Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004419/0.00442, allocations: 183 kB / 7.459 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8766/0.8766, allocations: 133.5 MB / 141.4 MB, free: 15.73 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.654/1.654, allocations: 221.3 MB / 395 MB, free: 10.21 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 107 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4897/0.4908, allocations: 88.42 MB / 0.5529 GB, free: 88.98 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1996/0.6904, allocations: 82.3 MB / 0.6333 GB, free: 14.05 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6333/1.324, allocations: 112.8 MB / 0.7435 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000197/1.324, allocations: 74.72 kB / 0.7436 GB, free: 10.96 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.008489/1.332, allocations: 3.038 MB / 0.7465 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/1.333, allocations: 7.656 kB / 0.7465 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.331e-05/1.333, allocations: 25.83 kB / 0.7466 GB, free: 26.34 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/1.333, allocations: 201.5 kB / 0.7468 GB, free: 26.13 MB / 0.5105 GB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: con.y_boolean = false to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001169/1.333, allocations: 42.31 kB / 0.7468 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/1.333, allocations: 7.656 kB / 0.7468 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001842/1.333, allocations: 82.36 kB / 0.7469 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/1.333, allocations: 99.81 kB / 0.747 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/1.333, allocations: 0.5 kB / 0.747 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/1.333, allocations: 0 / 0.747 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/1.333, allocations: 3.844 kB / 0.747 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/1.334, allocations: 0.5397 MB / 0.7475 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002748/1.335, allocations: 91.83 kB / 0.7476 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.743e-05/1.335, allocations: 51.62 kB / 0.7476 GB, free: 25.69 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/1.335, allocations: 8.781 kB / 0.7477 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/1.335, allocations: 34.5 kB / 0.7477 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=12): time 1.322e-06/1.335, allocations: 0 / 0.7477 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12): time 0.0002688/1.335, allocations: 99.73 kB / 0.7478 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/1.335, allocations: 59.06 kB / 0.7478 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/1.335, allocations: 128.9 kB / 0.748 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.939e-05/1.335, allocations: 25.7 kB / 0.748 GB, free: 25.41 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.824e-05/1.335, allocations: 120.4 kB / 0.7481 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.587e-05/1.336, allocations: 45.11 kB / 0.7481 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.816e-06/1.336, allocations: 0 / 0.7481 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000131/1.336, allocations: 322.1 kB / 0.7485 GB, free: 24.96 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.102e-05/1.336, allocations: 33.8 kB / 0.7485 GB, free: 24.96 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.958e-05/1.336, allocations: 52.89 kB / 0.7485 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.22e-05/1.336, allocations: 28.41 kB / 0.7486 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/1.336, allocations: 3.938 kB / 0.7486 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002046/1.336, allocations: 121.6 kB / 0.7487 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/1.336, allocations: 5.375 kB / 0.7487 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/1.336, allocations: 1.828 kB / 0.7487 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/1.336, allocations: 1.344 kB / 0.7487 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002524/1.336, allocations: 56.22 kB / 0.7487 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/1.336, allocations: 1.219 kB / 0.7487 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/1.337, allocations: 36.94 kB / 0.7488 GB, free: 24.87 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/1.337, allocations: 4.406 kB / 0.7488 GB, free: 24.87 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.con.y_boolean,con.y_boolean) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.142e-05/1.337, allocations: 109.5 kB / 0.7489 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.651e-05/1.337, allocations: 18.56 kB / 0.7489 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.595e-05/1.337, allocations: 15.72 kB / 0.7489 GB, free: 24.74 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/1.337, allocations: 2.594 kB / 0.7489 GB, free: 24.74 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/1.337, allocations: 3.938 kB / 0.7489 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/1.337, allocations: 0.7969 kB / 0.7489 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002464/1.337, allocations: 209.5 kB / 0.7491 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/1.337, allocations: 1.922 kB / 0.7491 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002164/1.337, allocations: 41.52 kB / 0.7492 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/1.337, allocations: 0 / 0.7492 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/1.337, allocations: 8.734 kB / 0.7492 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/1.337, allocations: 0 / 0.7492 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.337, allocations: 4.453 kB / 0.7492 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003131/1.338, allocations: 246.4 kB / 0.7494 GB, free: 24.42 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004546/1.338, allocations: 0.6584 MB / 0.7501 GB, free: 23.91 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.16e-05/1.338, allocations: 89.8 kB / 0.7501 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/1.338, allocations: 0 / 0.7501 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/1.338, allocations: 30.44 kB / 0.7502 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.181e-05/1.339, allocations: 21.12 kB / 0.7502 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/1.339, allocations: 4.797 kB / 0.7502 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.726e-05/1.339, allocations: 108.4 kB / 0.7503 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008018/1.339, allocations: 35.52 kB / 0.7503 GB, free: 23.71 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (cap.T) * Number of discrete variables: 1 (con.y_boolean) * Number of discrete states: 1 (con.y_boolean) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001526/1.34, allocations: 101.8 kB / 0.7504 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001858/1.34, allocations: 84.69 kB / 0.7505 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/1.34, allocations: 4.125 kB / 0.7505 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 7.185e-05/1.34, allocations: 46.81 kB / 0.7506 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/1.34, allocations: 14.28 kB / 0.7506 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006828/1.341, allocations: 249.7 kB / 0.7508 GB, free: 23.47 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003929/1.341, allocations: 0.7408 MB / 0.7515 GB, free: 22.77 MB / 0.5105 GB Notification: Performance of SimCode: time 2.71e-07/1.341, allocations: 3.938 kB / 0.7515 GB, free: 22.76 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)