Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.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_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",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.004493/0.004493, allocations: 177.2 kB / 7.458 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7405/0.7405, allocations: 133.5 MB / 141.4 MB, free: 15.82 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.563/1.563, allocations: 221.3 MB / 395 MB, free: 10.25 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.001135/0.001135, allocations: 90.5 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4775/0.4786, allocations: 88.42 MB / 0.5529 GB, free: 88.8 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.6821, allocations: 82.3 MB / 0.6333 GB, free: 14.04 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6131/1.295, allocations: 112.8 MB / 0.7435 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/1.295, allocations: 76.66 kB / 0.7436 GB, free: 10.69 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.008265/1.304, allocations: 3.041 MB / 0.7465 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/1.304, allocations: 8.469 kB / 0.7465 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.797e-05/1.304, allocations: 23.38 kB / 0.7466 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/1.304, allocations: 209.5 kB / 0.7468 GB, free: 25.86 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.0001292/1.304, allocations: 38.3 kB / 0.7468 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.352e-05/1.304, allocations: 12.77 kB / 0.7468 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001972/1.305, allocations: 75.27 kB / 0.7469 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/1.305, allocations: 104.9 kB / 0.747 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/1.305, allocations: 0 / 0.747 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/1.305, allocations: 0 / 0.747 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/1.305, allocations: 3.844 kB / 0.747 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/1.306, allocations: 0.5383 MB / 0.7475 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003253/1.306, allocations: 89.55 kB / 0.7476 GB, free: 25.42 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.714e-05/1.306, allocations: 50.48 kB / 0.7476 GB, free: 25.41 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/1.306, allocations: 11.75 kB / 0.7477 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.233e-05/1.306, allocations: 31.31 kB / 0.7477 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=12): time 1.213e-06/1.306, allocations: 3.938 kB / 0.7477 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12): time 0.0002884/1.307, allocations: 102.3 kB / 0.7478 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.665e-05/1.307, allocations: 55.25 kB / 0.7478 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/1.307, allocations: 128.5 kB / 0.748 GB, free: 25.16 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/1.307, allocations: 26.5 kB / 0.748 GB, free: 25.13 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.415e-05/1.307, allocations: 120.5 kB / 0.7481 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.899e-05/1.307, allocations: 42.64 kB / 0.7481 GB, free: 25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.594e-06/1.307, allocations: 0 / 0.7481 GB, free: 25 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001669/1.307, allocations: 324.5 kB / 0.7485 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.451e-05/1.307, allocations: 34.77 kB / 0.7485 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.404e-05/1.307, allocations: 50.94 kB / 0.7485 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.651e-05/1.308, allocations: 30.86 kB / 0.7486 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/1.308, allocations: 4 kB / 0.7486 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002066/1.308, allocations: 124.4 kB / 0.7487 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/1.308, allocations: 4.219 kB / 0.7487 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/1.308, allocations: 3.844 kB / 0.7487 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/1.308, allocations: 0 / 0.7487 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002346/1.308, allocations: 55.66 kB / 0.7488 GB, free: 24.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/1.308, allocations: 0 / 0.7488 GB, free: 24.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001789/1.308, allocations: 37.88 kB / 0.7488 GB, free: 24.59 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/1.308, allocations: 5.312 kB / 0.7488 GB, free: 24.59 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 0.0001089/1.308, allocations: 109.4 kB / 0.7489 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.825e-05/1.308, allocations: 11.69 kB / 0.7489 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.474e-05/1.309, allocations: 21.09 kB / 0.7489 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/1.309, allocations: 0 / 0.7489 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/1.309, allocations: 3.938 kB / 0.7489 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/1.309, allocations: 4.875 kB / 0.7489 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002944/1.309, allocations: 212.8 kB / 0.7491 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.309, allocations: 0 / 0.7491 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/1.309, allocations: 41.98 kB / 0.7492 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/1.309, allocations: 0.5156 kB / 0.7492 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/1.309, allocations: 12.42 kB / 0.7492 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/1.309, allocations: 0 / 0.7492 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.309, allocations: 0.6094 kB / 0.7492 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003114/1.309, allocations: 242.5 kB / 0.7494 GB, free: 24.15 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004983/1.31, allocations: 0.669 MB / 0.7501 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.918e-05/1.31, allocations: 85.72 kB / 0.7502 GB, free: 23.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.82e-05/1.31, allocations: 4.594 kB / 0.7502 GB, free: 23.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/1.31, allocations: 30.47 kB / 0.7502 GB, free: 23.52 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.551e-05/1.31, allocations: 20.64 kB / 0.7502 GB, free: 23.51 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/1.31, allocations: 4.469 kB / 0.7502 GB, free: 23.51 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.359e-05/1.31, allocations: 104.7 kB / 0.7503 GB, free: 23.44 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008087/1.311, allocations: 39.23 kB / 0.7504 GB, free: 23.43 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.0001438/1.311, allocations: 98.16 kB / 0.7504 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001978/1.312, allocations: 84.02 kB / 0.7505 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/1.312, allocations: 4.125 kB / 0.7505 GB, free: 23.33 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 7.861e-05/1.312, allocations: 48.67 kB / 0.7506 GB, free: 23.33 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/1.312, allocations: 9.281 kB / 0.7506 GB, free: 23.33 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007363/1.313, allocations: 261.3 kB / 0.7508 GB, free: 23.18 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003641/1.313, allocations: 0.7408 MB / 0.7516 GB, free: 22.48 MB / 0.5105 GB Notification: Performance of SimCode: time 3.3e-07/1.313, allocations: 0 / 0.7516 GB, free: 22.48 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)