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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 176.2 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7546/0.7546, allocations: 130.7 MB / 138.7 MB, free: 3.531 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.525/1.525, allocations: 221.5 MB / 391.8 MB, free: 14.17 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009205/0.00092, allocations: 103.4 kB / 473.9 MB, free: 4.473 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.629e-05/1.632e-05, allocations: 0 / 0.5485 GB, free: 13.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4146/0.4146, allocations: 81.57 MB / 0.6282 GB, free: 42.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1413/0.5559, allocations: 112.7 MB / 0.7382 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000211/0.5562, allocations: 67.97 kB / 0.7383 GB, free: 14 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.007979/0.5642, allocations: 2.85 MB / 0.741 GB, free: 11.14 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.246e-06/0.5642, allocations: 0 / 0.741 GB, free: 11.14 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.438e-05/0.5642, allocations: 7.938 kB / 0.7411 GB, free: 11.14 MB / 0.5261 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.0006689/0.5649, allocations: 458 kB / 0.7415 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.565, allocations: 8.031 kB / 0.7415 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.361e-05/0.565, allocations: 23.72 kB / 0.7415 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002379/0.5653, allocations: 219 kB / 0.7417 GB, free: 10.36 MB / 0.5261 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.0001033/0.5654, allocations: 29.7 kB / 0.7418 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.5654, allocations: 8 kB / 0.7418 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002203/0.5657, allocations: 75.67 kB / 0.7418 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.5659, allocations: 105.7 kB / 0.7419 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.5659, allocations: 0 / 0.7419 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.5659, allocations: 0 / 0.7419 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.5659, allocations: 4 kB / 0.7419 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009898/0.5669, allocations: 0.5351 MB / 0.7425 GB, free: 9.547 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000279/0.5672, allocations: 94.75 kB / 0.7426 GB, free: 9.445 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.107e-05/0.5673, allocations: 52.84 kB / 0.7426 GB, free: 9.391 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.5674, allocations: 0 / 0.7426 GB, free: 9.391 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.5674, allocations: 35.5 kB / 0.7426 GB, free: 9.348 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=12): time 2.856e-06/0.5674, allocations: 3.984 kB / 0.7426 GB, free: 9.344 MB / 0.5261 GB Notification: Performance of matching and sorting (n=12): time 0.0002701/0.5677, allocations: 101.6 kB / 0.7427 GB, free: 9.238 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/0.5677, allocations: 59.41 kB / 0.7428 GB, free: 9.168 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.5678, allocations: 132 kB / 0.7429 GB, free: 9.035 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.5679, allocations: 25.7 kB / 0.7429 GB, free: 9.004 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.609e-05/0.568, allocations: 124.2 kB / 0.7431 GB, free: 8.875 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.701e-05/0.568, allocations: 47.38 kB / 0.7431 GB, free: 8.828 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-06/0.568, allocations: 0 / 0.7431 GB, free: 8.828 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.5682, allocations: 326.8 kB / 0.7434 GB, free: 8.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.017e-05/0.5682, allocations: 31.94 kB / 0.7435 GB, free: 8.469 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.752e-05/0.5683, allocations: 54.56 kB / 0.7435 GB, free: 8.406 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.103e-05/0.5684, allocations: 37.11 kB / 0.7435 GB, free: 8.371 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.5684, allocations: 0 / 0.7435 GB, free: 8.371 MB / 0.5261 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002013/0.5686, allocations: 121.4 kB / 0.7437 GB, free: 8.246 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.5686, allocations: 4 kB / 0.7437 GB, free: 8.242 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.5686, allocations: 0 / 0.7437 GB, free: 8.242 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.5687, allocations: 4 kB / 0.7437 GB, free: 8.238 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.5689, allocations: 47.95 kB / 0.7437 GB, free: 8.191 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.5689, allocations: 8 kB / 0.7437 GB, free: 8.184 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000163/0.5691, allocations: 27.98 kB / 0.7437 GB, free: 8.156 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.5691, allocations: 3.984 kB / 0.7437 GB, free: 8.152 MB / 0.5261 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.433e-05/0.5692, allocations: 112.9 kB / 0.7439 GB, free: 8.035 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.728e-05/0.5692, allocations: 15.81 kB / 0.7439 GB, free: 8.02 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.387e-05/0.5693, allocations: 16.62 kB / 0.7439 GB, free: 8.004 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.5693, allocations: 4 kB / 0.7439 GB, free: 8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.5693, allocations: 0 / 0.7439 GB, free: 8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.5693, allocations: 0 / 0.7439 GB, free: 8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002306/0.5695, allocations: 198.2 kB / 0.7441 GB, free: 7.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.5695, allocations: 3.953 kB / 0.7441 GB, free: 7.766 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002311/0.5698, allocations: 43.89 kB / 0.7441 GB, free: 7.723 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.5698, allocations: 11.94 kB / 0.7441 GB, free: 7.711 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.5698, allocations: 0 / 0.7441 GB, free: 7.711 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.5698, allocations: 0 / 0.7441 GB, free: 7.711 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.5698, allocations: 4 kB / 0.7441 GB, free: 7.707 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003306/0.5702, allocations: 247.2 kB / 0.7444 GB, free: 7.453 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.744e-05/0.5702, allocations: 89 kB / 0.7445 GB, free: 7.348 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.5703, allocations: 0 / 0.7445 GB, free: 7.348 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.5704, allocations: 32.03 kB / 0.7445 GB, free: 7.316 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.847e-05/0.5705, allocations: 7.984 kB / 0.7445 GB, free: 7.309 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.5705, allocations: 15.92 kB / 0.7445 GB, free: 7.293 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 8.109e-05/0.5706, allocations: 100.4 kB / 0.7446 GB, free: 7.195 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.405e-06/0.5706, allocations: 0 / 0.7446 GB, free: 7.195 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002587/0.5709, allocations: 43.77 kB / 0.7446 GB, free: 7.152 MB / 0.5261 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.0001305/0.571, allocations: 99.25 kB / 0.7447 GB, free: 7.047 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001882/0.5712, allocations: 81.06 kB / 0.7448 GB, free: 6.969 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5712, allocations: 0 / 0.7448 GB, free: 6.969 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 7.95e-05/0.5713, allocations: 47.98 kB / 0.7449 GB, free: 6.922 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002294/0.5716, allocations: 15.88 kB / 0.7449 GB, free: 6.906 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006064/0.5722, allocations: 261.3 kB / 0.7451 GB, free: 6.625 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.5725, allocations: 0.7234 MB / 0.7458 GB, free: 5.875 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.893e-05/0.5726, allocations: 12.55 kB / 0.7458 GB, free: 5.863 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.33e-05/0.5726, allocations: 11.44 kB / 0.7459 GB, free: 5.852 MB / 0.5261 GB Notification: Performance of SimCode: time 1.734e-06/0.5726, allocations: 0 / 0.7459 GB, free: 5.852 MB / 0.5261 GB Notification: Performance of Templates: time 0.003869/0.5765, allocations: 1.236 MB / 0.7471 GB, free: 4.629 MB / 0.5261 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)