Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_dev_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.003092/0.003092, allocations: 179.5 kB / 7.454 MB, free: 2.523 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.701/0.701, allocations: 133.5 MB / 141.4 MB, free: 15.78 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.604/1.604, allocations: 221.3 MB / 395 MB, free: 10.23 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.0011/0.0011, allocations: 97.59 kB / 477.8 MB, free: 10.8 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4847/0.4858, allocations: 88.42 MB / 0.5529 GB, free: 88.92 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.6836, allocations: 82.3 MB / 0.6333 GB, free: 14 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5324/1.216, allocations: 112.8 MB / 0.7435 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/1.216, allocations: 71.25 kB / 0.7436 GB, free: 10.75 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.00779/1.224, allocations: 3.031 MB / 0.7465 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/1.224, allocations: 9.219 kB / 0.7465 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.573e-05/1.224, allocations: 23.83 kB / 0.7466 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002485/1.225, allocations: 209.7 kB / 0.7468 GB, free: 25.93 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.0001039/1.225, allocations: 42.2 kB / 0.7468 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.941e-05/1.225, allocations: 7.688 kB / 0.7468 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001837/1.225, allocations: 77.19 kB / 0.7469 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/1.225, allocations: 101.8 kB / 0.747 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/1.225, allocations: 4 kB / 0.747 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/1.225, allocations: 0 / 0.747 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/1.225, allocations: 3.844 kB / 0.747 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009351/1.226, allocations: 0.5334 MB / 0.7475 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002515/1.226, allocations: 96.8 kB / 0.7476 GB, free: 25.49 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.581e-05/1.226, allocations: 46.08 kB / 0.7476 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/1.226, allocations: 8.5 kB / 0.7476 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.32e-05/1.226, allocations: 31.27 kB / 0.7477 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=12): time 2.154e-06/1.226, allocations: 0 / 0.7477 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12): time 0.0002368/1.227, allocations: 104.3 kB / 0.7478 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/1.227, allocations: 59.25 kB / 0.7478 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/1.227, allocations: 131.6 kB / 0.748 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/1.227, allocations: 26.31 kB / 0.748 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.05e-05/1.227, allocations: 121 kB / 0.7481 GB, free: 25.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.961e-05/1.227, allocations: 42.12 kB / 0.7481 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.385e-06/1.227, allocations: 3.844 kB / 0.7481 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001073/1.227, allocations: 323 kB / 0.7484 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.784e-05/1.227, allocations: 28.47 kB / 0.7485 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.029e-05/1.227, allocations: 59.52 kB / 0.7485 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.248e-05/1.227, allocations: 29.75 kB / 0.7486 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/1.227, allocations: 0 / 0.7486 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001864/1.228, allocations: 128.5 kB / 0.7487 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/1.228, allocations: 4.625 kB / 0.7487 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/1.228, allocations: 3.875 kB / 0.7487 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/1.228, allocations: 4.062 kB / 0.7487 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/1.228, allocations: 46.78 kB / 0.7487 GB, free: 24.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/1.228, allocations: 1.297 kB / 0.7487 GB, free: 24.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001708/1.228, allocations: 37.83 kB / 0.7488 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/1.228, allocations: 7.828 kB / 0.7488 GB, free: 24.66 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 7.76e-05/1.228, allocations: 112.7 kB / 0.7489 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.561e-05/1.228, allocations: 11.66 kB / 0.7489 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.813e-05/1.228, allocations: 17.02 kB / 0.7489 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/1.228, allocations: 8.578 kB / 0.7489 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/1.228, allocations: 0 / 0.7489 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/1.228, allocations: 8.469 kB / 0.7489 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002378/1.228, allocations: 202.5 kB / 0.7491 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/1.228, allocations: 0.7031 kB / 0.7491 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/1.229, allocations: 46.34 kB / 0.7492 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/1.229, allocations: 3.875 kB / 0.7492 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/1.229, allocations: 0.6094 kB / 0.7492 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/1.229, allocations: 0 / 0.7492 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.229, allocations: 4 kB / 0.7492 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003228/1.229, allocations: 244.8 kB / 0.7494 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004115/1.229, allocations: 0.6645 MB / 0.7501 GB, free: 23.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.083e-05/1.23, allocations: 85.77 kB / 0.7501 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/1.23, allocations: 4.5 kB / 0.7502 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001928/1.23, allocations: 30.36 kB / 0.7502 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.545e-05/1.23, allocations: 13.81 kB / 0.7502 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/1.23, allocations: 7.938 kB / 0.7502 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.857e-05/1.23, allocations: 108 kB / 0.7503 GB, free: 23.51 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008126/1.231, allocations: 38.59 kB / 0.7503 GB, free: 23.5 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.00013/1.231, allocations: 98.61 kB / 0.7504 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001801/1.231, allocations: 83.11 kB / 0.7505 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/1.231, allocations: 0 / 0.7505 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 7.316e-05/1.231, allocations: 49.64 kB / 0.7506 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/1.231, allocations: 25.02 kB / 0.7506 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000665/1.232, allocations: 247.9 kB / 0.7508 GB, free: 23.26 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000412/1.233, allocations: 0.7474 MB / 0.7516 GB, free: 22.55 MB / 0.5105 GB Notification: Performance of SimCode: time 2.8e-07/1.233, allocations: 0 / 0.7516 GB, free: 22.55 MB / 0.5105 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)