Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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: translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001602/0.001602, allocations: 170 kB / 7.646 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9899/0.9899, allocations: 133.6 MB / 141.6 MB, free: 2.824 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.364/1.364, allocations: 221.5 MB / 395.5 MB, free: 10.78 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.000819/0.0008191, allocations: 104.2 kB / 478.2 MB, free: 1.312 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.294e-05/1.295e-05, allocations: 0 / 0.5534 GB, free: 9.066 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4238/0.4238, allocations: 82.3 MB / 0.6338 GB, free: 40.87 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1489/0.5727, allocations: 112.9 MB / 0.7441 GB, free: 9.867 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.5729, allocations: 71.95 kB / 0.7442 GB, free: 9.797 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.007616/0.5806, allocations: 2.84 MB / 0.7469 GB, free: 6.938 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.613e-06/0.5806, allocations: 0 / 0.7469 GB, free: 6.938 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.356e-05/0.5806, allocations: 4 kB / 0.7469 GB, free: 6.934 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.0006446/0.5813, allocations: 470 kB / 0.7474 GB, free: 6.43 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.5813, allocations: 12.22 kB / 0.7474 GB, free: 6.418 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.714e-05/0.5814, allocations: 19.72 kB / 0.7474 GB, free: 6.398 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.5816, allocations: 209 kB / 0.7476 GB, free: 6.156 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.0001126/0.5818, allocations: 33.69 kB / 0.7477 GB, free: 6.117 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.054e-05/0.5818, allocations: 8 kB / 0.7477 GB, free: 6.109 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002032/0.582, allocations: 83.92 kB / 0.7477 GB, free: 6.027 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.5822, allocations: 105.7 kB / 0.7478 GB, free: 5.918 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.5822, allocations: 7.922 kB / 0.7478 GB, free: 5.91 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.5823, allocations: 0 / 0.7478 GB, free: 5.91 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.5823, allocations: 4 kB / 0.7479 GB, free: 5.906 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008918/0.5832, allocations: 0.5313 MB / 0.7484 GB, free: 5.324 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002551/0.5834, allocations: 98.69 kB / 0.7485 GB, free: 5.219 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.432e-05/0.5835, allocations: 44.86 kB / 0.7485 GB, free: 5.172 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.5835, allocations: 4 kB / 0.7485 GB, free: 5.168 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.5836, allocations: 34.56 kB / 0.7485 GB, free: 5.125 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.5836, allocations: 0 / 0.7485 GB, free: 5.125 MB / 0.5261 GB Notification: Performance of matching and sorting (n=12): time 0.0002304/0.5838, allocations: 109.6 kB / 0.7486 GB, free: 5.012 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.776e-05/0.5839, allocations: 55.34 kB / 0.7487 GB, free: 4.945 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.584, allocations: 128.3 kB / 0.7488 GB, free: 4.816 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.584, allocations: 25.7 kB / 0.7488 GB, free: 4.785 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.483e-05/0.5841, allocations: 128.1 kB / 0.749 GB, free: 4.652 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.5841, allocations: 47.38 kB / 0.749 GB, free: 4.605 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-06/0.5841, allocations: 0 / 0.749 GB, free: 4.605 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.5842, allocations: 322.8 kB / 0.7493 GB, free: 4.281 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.031e-05/0.5843, allocations: 32 kB / 0.7494 GB, free: 4.25 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.397e-05/0.5844, allocations: 50.58 kB / 0.7494 GB, free: 4.191 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.398e-05/0.5845, allocations: 31.94 kB / 0.7494 GB, free: 4.16 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.5845, allocations: 0 / 0.7494 GB, free: 4.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001839/0.5847, allocations: 125.4 kB / 0.7496 GB, free: 4.031 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.5847, allocations: 8.062 kB / 0.7496 GB, free: 4.023 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.5847, allocations: 0 / 0.7496 GB, free: 4.023 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.5847, allocations: 4 kB / 0.7496 GB, free: 4.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002025/0.5849, allocations: 43.97 kB / 0.7496 GB, free: 3.977 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.5849, allocations: 7.938 kB / 0.7496 GB, free: 3.969 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.5851, allocations: 31.97 kB / 0.7496 GB, free: 3.938 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.5851, allocations: 4 kB / 0.7496 GB, free: 3.934 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.334e-05/0.5852, allocations: 108.9 kB / 0.7497 GB, free: 3.82 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.602e-05/0.5852, allocations: 15.81 kB / 0.7498 GB, free: 3.805 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.4e-05/0.5853, allocations: 16.61 kB / 0.7498 GB, free: 3.793 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.5853, allocations: 4 kB / 0.7498 GB, free: 3.789 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.5853, allocations: 0 / 0.7498 GB, free: 3.789 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.5853, allocations: 4 kB / 0.7498 GB, free: 3.785 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002078/0.5855, allocations: 198.2 kB / 0.75 GB, free: 3.555 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.5855, allocations: 0 / 0.75 GB, free: 3.555 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001958/0.5857, allocations: 43.91 kB / 0.75 GB, free: 3.512 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.5858, allocations: 3.953 kB / 0.75 GB, free: 3.508 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.5858, allocations: 3.938 kB / 0.75 GB, free: 3.504 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.5858, allocations: 0 / 0.75 GB, free: 3.504 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5858, allocations: 0 / 0.75 GB, free: 3.504 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003013/0.5861, allocations: 251.3 kB / 0.7503 GB, free: 3.242 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.49e-05/0.5862, allocations: 85.05 kB / 0.7503 GB, free: 3.141 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.566e-05/0.5862, allocations: 3.953 kB / 0.7504 GB, free: 3.137 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.5864, allocations: 36.03 kB / 0.7504 GB, free: 3.102 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.5864, allocations: 15.97 kB / 0.7504 GB, free: 3.086 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.5864, allocations: 4 kB / 0.7504 GB, free: 3.082 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 6.623e-05/0.5865, allocations: 105.5 kB / 0.7505 GB, free: 2.98 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5865, allocations: 0 / 0.7505 GB, free: 2.98 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002685/0.5868, allocations: 35.84 kB / 0.7505 GB, free: 2.945 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.000115/0.5869, allocations: 103.1 kB / 0.7506 GB, free: 2.832 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001827/0.5871, allocations: 87.23 kB / 0.7507 GB, free: 2.75 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.5871, allocations: 8.062 kB / 0.7507 GB, free: 2.742 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 7.183e-05/0.5872, allocations: 40 kB / 0.7508 GB, free: 2.703 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002132/0.5874, allocations: 13.7 kB / 0.7508 GB, free: 2.691 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005652/0.588, allocations: 265.4 kB / 0.751 GB, free: 2.406 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.5883, allocations: 0.7197 MB / 0.7517 GB, free: 1.66 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 6.85e-05/0.5883, allocations: 16.48 kB / 0.7518 GB, free: 1.645 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.24e-05/0.5884, allocations: 15.42 kB / 0.7518 GB, free: 1.629 MB / 0.5261 GB Notification: Performance of SimCode: time 2.5e-07/0.5884, allocations: 0 / 0.7518 GB, free: 1.629 MB / 0.5261 GB Notification: Performance of Templates: time 0.003501/0.5919, allocations: 1.236 MB / 0.753 GB, free: 412 kB / 0.5261 GB make -j1 -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.makefile (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & ./IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)