﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4260	Build to JS impossible	fuzesedu@…	Martin Sjölund	"I wanted to build .mo to JavaScript. I used this repo to help me with emscripten https://github.com/tshort/openmodelica-javascript

After succesfull generation of JS file thanks to MODEL.makefile js.mem file was created and following error was stored there.

The JS files are not possible to simulate in following environment:
https://github.com/tshort/mdpad/tree/gh-pages/

 _prof.realdata wb Time measurements output file %s could not be opened: %s _prof.intdata %s event at time=%.12g time state Disabled time measurements because the output file could not be generated: %s Execution failed!
 call external Object Constructors call external Object Constructors finished check for discrete changes at time=%.12g C1.v < (-Nr.Ve) C1.v > Nr.Ve 1.0 + G.alpha * (G.T - G.T_ref) C1.C C2.C L.L updating min-values updating max-values updating nominal-values updating start-values during initialization   The following assertion has been violated %sat time %f
Ro.T_ref >= 0.0 The following assertion has been violated %sat time %f
Ro.T >= 0.0 The following assertion has been violated %sat time %f
G.T_ref >= 0.0 The following assertion has been violated %sat time %f
G.T >= 0.0 The following assertion has been violated %sat time %f
C1.C >= 0.0 The following assertion has been violated %sat time %f
C2.C >= 0.0 The following assertion has been violated %sat time %f
Nr.Ga >= -1.0 The following assertion has been violated %sat time %f
Nr.Gb >= -1.0 C:/OpenModelica1.9.7/lib/omlibrary/Modelica 3.2.1/Electrical/Analog/Examples/Utilities/NonlinearResistor.mo C:/OpenModelica1.9.7/lib/omlibrary/Modelica 3.2.1/Electrical/Analog/Basic.mo C:/OpenModelica1.9.7/lib/omlibrary/Modelica 3.2.1/Electrical/Analog/Interfaces.mo model linear_Modelica_Electrical_Analog_Examples_ChuaCircuit
  parameter Integer n = 3; // states 
  parameter Integer k = 0; // top-level inputs 
  parameter Integer l = 0; // top-level outputs 
  parameter Real x0[3] = {%s};
  parameter Real u0[0] = {%s};
  parameter Real A[3,3] = [%s];
  parameter Real B[3,0] = zeros(3,0);%s
  parameter Real C[0,3] = zeros(0,3);%s
  parameter Real D[0,0] = zeros(0,0);%s
  Real x[3](start=x0);
  input Real u[0];
  output Real y[0];

  Real x_PC1Pv = x[1];
  Real x_PC2Pv = x[2];
  Real x_PLPi = x[3];
      
equation
  der(x) = A * x + B * u;
  y = C * x + D * u;
end linear_Modelica_Electrical_Analog_Examples_ChuaCircuit;
 Internal Error: unknown base partition %ld Internal Error: unknown sub partition %ld T!""
K'hnopqb ($	
%#‚}&*+<=>?CGJMXYZ[\]^_`acdefgijklrstyz{| Illegal byte sequence Domain error Result not representable Not a tty Permission denied Operation not permitted No such file or directory No such process File exists Value too large for data type No space left on device Out of memory Resource busy Interrupted system call Resource temporarily unavailable Invalid seek Cross-device link Read-only file system Directory not empty Connection reset by peer Operation timed out Connection refused Host is down Host is unreachable Address in use Broken pipe I/O error No such device or address Block device required No such device Not a directory Is a directory Text file busy Exec format error Invalid argument Argument list too long Symbolic link loop Filename too long Too many open files in system No file descriptors available Bad file descriptor No child process Bad address File too large Too many links No locks available Resource deadlock would occur State not recoverable Previous owner died Operation canceled Function not implemented No message of desired type Identifier removed Device not a stream No data available Device timeout Out of streams resources Link has been severed Protocol error Bad message File descriptor in bad state Not a socket Destination address required Message too large Protocol wrong type for socket Protocol not available Protocol not supported Socket type not supported Not supported Protocol family not supported Address family not supported by protocol Address not available Network is down Network unreachable Connection reset by network Connection aborted No buffer space available Socket is connected Socket not connected Cannot send after socket shutdown Operation already in progress Operation in progress Stale file handle Remote I/O error Quota exceeded No medium found Wrong medium type No error information  rwa"	defect	new	normal	Future	Build Environment	v1.9.4-v1.9.x		javascript	
