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/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/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: translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling") [: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.005491/0.005491, allocations: 186.2 kB / 7.456 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7061/0.7061, allocations: 130.6 MB / 138.5 MB, free: 2.164 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 221.3 MB / 391.4 MB, free: 13.04 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.0009068/0.0009068, allocations: 96.89 kB / 473.4 MB, free: 14.38 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.51e-06/5.61e-06, allocations: 0 / 0.5479 GB, free: 89.04 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1296, allocations: 81.58 MB / 0.6276 GB, free: 18.2 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3898/0.5194, allocations: 112.6 MB / 0.7375 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001929/0.5197, allocations: 72.45 kB / 0.7376 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.007025/0.5267, allocations: 2.566 MB / 0.7401 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.201e-05/0.5267, allocations: 3.844 kB / 0.7401 GB, free: 11.2 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.0007069/0.5275, allocations: 477.8 kB / 0.7406 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.5275, allocations: 11.59 kB / 0.7406 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.075e-05/0.5276, allocations: 19.44 kB / 0.7406 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.5278, allocations: 206 kB / 0.7408 GB, free: 26.58 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.0001165/0.5279, allocations: 41.36 kB / 0.7408 GB, free: 26.55 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.528, allocations: 12.55 kB / 0.7408 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001948/0.5282, allocations: 74.34 kB / 0.7409 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001907/0.5284, allocations: 102.1 kB / 0.741 GB, free: 26.51 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.5284, allocations: 0 / 0.741 GB, free: 26.51 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.5284, allocations: 5.875 kB / 0.741 GB, free: 26.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.5284, allocations: 3.844 kB / 0.741 GB, free: 26.5 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009218/0.5294, allocations: 0.5408 MB / 0.7415 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.5296, allocations: 94.28 kB / 0.7416 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.102e-05/0.5297, allocations: 45.11 kB / 0.7417 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.5297, allocations: 8.922 kB / 0.7417 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.5298, allocations: 34.66 kB / 0.7417 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=12): time 1.462e-06/0.5298, allocations: 3.938 kB / 0.7417 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12): time 0.0002383/0.53, allocations: 101.7 kB / 0.7418 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.5301, allocations: 55.41 kB / 0.7419 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.313e-05/0.5302, allocations: 135.4 kB / 0.742 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.5302, allocations: 25.7 kB / 0.742 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.452e-05/0.5302, allocations: 121.3 kB / 0.7421 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.932e-05/0.5303, allocations: 44.86 kB / 0.7422 GB, free: 25.71 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.735e-06/0.5303, allocations: 0 / 0.7422 GB, free: 25.71 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.5304, allocations: 323.3 kB / 0.7425 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.729e-05/0.5305, allocations: 28.62 kB / 0.7425 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.743e-05/0.5305, allocations: 58.62 kB / 0.7426 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.126e-05/0.5306, allocations: 26.44 kB / 0.7426 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5306, allocations: 3.844 kB / 0.7426 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001819/0.5308, allocations: 123.5 kB / 0.7427 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.5308, allocations: 7.891 kB / 0.7427 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.5308, allocations: 0 / 0.7427 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.5309, allocations: 0 / 0.7427 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.5311, allocations: 59.03 kB / 0.7428 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.5311, allocations: 0.7031 kB / 0.7428 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001619/0.5313, allocations: 42.12 kB / 0.7428 GB, free: 25.31 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.5313, allocations: 3.844 kB / 0.7428 GB, free: 25.31 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.411e-05/0.5314, allocations: 106.8 kB / 0.7429 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.5314, allocations: 19.53 kB / 0.7429 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.244e-05/0.5314, allocations: 12.86 kB / 0.743 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.5315, allocations: 3.812 kB / 0.743 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.5315, allocations: 0 / 0.743 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.5315, allocations: 1.734 kB / 0.743 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002048/0.5317, allocations: 205.2 kB / 0.7432 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.5317, allocations: 0 / 0.7432 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002015/0.5319, allocations: 50.03 kB / 0.7432 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.5319, allocations: 0 / 0.7432 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.5319, allocations: 1.453 kB / 0.7432 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.5319, allocations: 0 / 0.7432 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.5319, allocations: 0 / 0.7432 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002794/0.5322, allocations: 255.8 kB / 0.7435 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.246e-05/0.5323, allocations: 88.77 kB / 0.7435 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.5323, allocations: 0 / 0.7435 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/0.5325, allocations: 34.08 kB / 0.7436 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.175e-05/0.5326, allocations: 13.77 kB / 0.7436 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.5326, allocations: 1.5 kB / 0.7436 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.448e-05/0.5326, allocations: 108.6 kB / 0.7437 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002549/0.5329, allocations: 34.94 kB / 0.7437 GB, free: 24.68 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.0001279/0.533, allocations: 104 kB / 0.7438 GB, free: 24.59 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001646/0.5332, allocations: 80.3 kB / 0.7439 GB, free: 24.58 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.5332, allocations: 8 kB / 0.7439 GB, free: 24.58 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 6.634e-05/0.5333, allocations: 38.44 kB / 0.7439 GB, free: 24.58 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.5335, allocations: 26.11 kB / 0.744 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006137/0.5342, allocations: 253.6 kB / 0.7442 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000331/0.5345, allocations: 0.7354 MB / 0.7449 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of SimCode: time 2.31e-07/0.5345, allocations: 3.938 kB / 0.7449 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of Templates: time 0.004204/0.5387, allocations: 1.527 MB / 0.7464 GB, free: 23.62 MB / 0.5105 GB make -j1 -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.makefile (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 & ./IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)