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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8059/0.8059, allocations: 133.6 MB / 141.6 MB, free: 2.871 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.426/1.426, allocations: 221.5 MB / 395.4 MB, free: 10.79 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.0009853/0.0009855, allocations: 96.73 kB / 478.2 MB, free: 1.32 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.561e-05/1.562e-05, allocations: 0 / 0.5535 GB, free: 8.992 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4327/0.4327, allocations: 82.31 MB / 0.6339 GB, free: 40.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1361/0.5688, allocations: 112.9 MB / 0.7442 GB, free: 9.77 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.5691, allocations: 75.97 kB / 0.7443 GB, free: 9.695 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.008468/0.5776, allocations: 2.844 MB / 0.747 GB, free: 6.832 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.566e-06/0.5776, allocations: 4 kB / 0.747 GB, free: 6.828 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.314e-05/0.5776, allocations: 4 kB / 0.747 GB, free: 6.824 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.0006852/0.5783, allocations: 462 kB / 0.7475 GB, free: 6.328 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.5784, allocations: 12.03 kB / 0.7475 GB, free: 6.316 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.782e-05/0.5785, allocations: 23.66 kB / 0.7475 GB, free: 6.293 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002614/0.5787, allocations: 217.2 kB / 0.7477 GB, free: 6.043 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.0001219/0.5789, allocations: 37.69 kB / 0.7478 GB, free: 6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/0.5789, allocations: 8 kB / 0.7478 GB, free: 5.992 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001906/0.5791, allocations: 67.98 kB / 0.7478 GB, free: 5.926 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001986/0.5793, allocations: 105.7 kB / 0.7479 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.5793, allocations: 0 / 0.7479 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.5793, allocations: 0 / 0.7479 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.5794, allocations: 8 kB / 0.7479 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009178/0.5803, allocations: 0.5312 MB / 0.7485 GB, free: 5.227 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002652/0.5806, allocations: 106.7 kB / 0.7486 GB, free: 5.113 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.23e-05/0.5807, allocations: 48.84 kB / 0.7486 GB, free: 5.062 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.5807, allocations: 4 kB / 0.7486 GB, free: 5.059 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.5807, allocations: 34.72 kB / 0.7486 GB, free: 5.016 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.5807, allocations: 3.938 kB / 0.7486 GB, free: 5.012 MB / 0.5261 GB Notification: Performance of matching and sorting (n=12): time 0.0002529/0.581, allocations: 97.5 kB / 0.7487 GB, free: 4.91 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.581, allocations: 59.41 kB / 0.7488 GB, free: 4.84 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.5811, allocations: 131.4 kB / 0.7489 GB, free: 4.707 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.5812, allocations: 29.7 kB / 0.749 GB, free: 4.672 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.618e-05/0.5812, allocations: 120.2 kB / 0.7491 GB, free: 4.547 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.598e-05/0.5813, allocations: 43.39 kB / 0.7491 GB, free: 4.504 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.795e-06/0.5813, allocations: 0 / 0.7491 GB, free: 4.504 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.5814, allocations: 322.8 kB / 0.7494 GB, free: 4.18 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.173e-05/0.5815, allocations: 28 kB / 0.7494 GB, free: 4.152 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.211e-05/0.5816, allocations: 58.56 kB / 0.7495 GB, free: 4.086 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.416e-05/0.5816, allocations: 35.94 kB / 0.7495 GB, free: 4.051 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5817, allocations: 0 / 0.7495 GB, free: 4.051 MB / 0.5261 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001871/0.5818, allocations: 117.4 kB / 0.7496 GB, free: 3.93 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.5819, allocations: 4 kB / 0.7496 GB, free: 3.926 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.5819, allocations: 4 kB / 0.7497 GB, free: 3.922 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.5819, allocations: 0 / 0.7497 GB, free: 3.922 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.5821, allocations: 55.89 kB / 0.7497 GB, free: 3.867 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.5821, allocations: 4 kB / 0.7497 GB, free: 3.863 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.5823, allocations: 27.98 kB / 0.7497 GB, free: 3.836 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.5823, allocations: 7.984 kB / 0.7497 GB, free: 3.828 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 8.457e-05/0.5824, allocations: 112.9 kB / 0.7499 GB, free: 3.711 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001728/0.5826, allocations: 105.4 kB / 0.75 GB, free: 3.602 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.137e-05/0.5826, allocations: 11.91 kB / 0.75 GB, free: 3.59 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.14e-05/0.5827, allocations: 12.61 kB / 0.75 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.5827, allocations: 4 kB / 0.75 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.5827, allocations: 0 / 0.75 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.5827, allocations: 0 / 0.75 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000225/0.5829, allocations: 210 kB / 0.7502 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.5829, allocations: 0 / 0.7502 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002059/0.5832, allocations: 47.97 kB / 0.7502 GB, free: 3.289 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.5832, allocations: 0 / 0.7502 GB, free: 3.289 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.5832, allocations: 0 / 0.7502 GB, free: 3.289 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.5832, allocations: 0 / 0.7502 GB, free: 3.289 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.5832, allocations: 3.938 kB / 0.7502 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000313/0.5835, allocations: 247.3 kB / 0.7505 GB, free: 3.027 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.536e-05/0.5836, allocations: 88.95 kB / 0.7506 GB, free: 2.922 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.5836, allocations: 0 / 0.7506 GB, free: 2.922 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.5838, allocations: 27.97 kB / 0.7506 GB, free: 2.895 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/0.5839, allocations: 19.97 kB / 0.7506 GB, free: 2.875 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.5839, allocations: 4 kB / 0.7506 GB, free: 2.871 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 6.83e-05/0.584, allocations: 113.7 kB / 0.7507 GB, free: 2.762 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/0.584, allocations: 0 / 0.7507 GB, free: 2.762 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002582/0.5842, allocations: 35.84 kB / 0.7507 GB, free: 2.727 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.0005565/0.5848, allocations: 0.7777 MB / 0.7515 GB, free: 1.922 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001765/0.585, allocations: 84.05 kB / 0.7516 GB, free: 1.84 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.585, allocations: 4.062 kB / 0.7516 GB, free: 1.836 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 8.14e-05/0.5851, allocations: 43.94 kB / 0.7516 GB, free: 1.793 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.5853, allocations: 19.73 kB / 0.7516 GB, free: 1.777 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007468/0.5861, allocations: 307.7 kB / 0.7519 GB, free: 1.438 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.5864, allocations: 0.7158 MB / 0.7526 GB, free: 0.6953 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.132e-05/0.5865, allocations: 16.55 kB / 0.7527 GB, free: 0.6797 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.801e-05/0.5866, allocations: 39.42 kB / 0.7527 GB, free: 0.6406 MB / 0.5261 GB Notification: Performance of SimCode: time 2.5e-07/0.5866, allocations: 0 / 0.7527 GB, free: 0.6406 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/0.6094, allocations: 2.414 MB / 0.7551 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002342/0.6097, allocations: 134.1 kB / 0.7552 GB, free: 14.06 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/2.252, allocations: 0 / 0.7552 GB, free: 14.06 MB / 0.5417 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)