Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.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_Heating,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.716/0.716, allocations: 133.4 MB / 146.7 MB, free: 10.8 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.675/1.675, allocations: 221.3 MB / 400.4 MB, free: 5.871 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.0009348/0.0009349, allocations: 96.77 kB / 483.3 MB, free: 5.883 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.45e-05/3.469e-05, allocations: 2.969 kB / 0.56 GB, free: 87.88 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1639, allocations: 82.32 MB / 0.6404 GB, free: 7.836 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5971/0.7611, allocations: 113.6 MB / 0.7513 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.7614, allocations: 76.05 kB / 0.7514 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.007376/0.7688, allocations: 2.855 MB / 0.7542 GB, free: 27.45 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.333e-06/0.7688, allocations: 0 / 0.7542 GB, free: 27.45 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.369e-05/0.7688, allocations: 3.906 kB / 0.7542 GB, free: 27.45 MB / 0.5105 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.0006141/0.7694, allocations: 465.4 kB / 0.7546 GB, free: 27.06 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.7695, allocations: 7.688 kB / 0.7546 GB, free: 27.06 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.14e-05/0.7696, allocations: 26.94 kB / 0.7547 GB, free: 27.05 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002226/0.7698, allocations: 211 kB / 0.7549 GB, free: 26.84 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.0001195/0.7699, allocations: 49.06 kB / 0.7549 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.374e-05/0.77, allocations: 11.25 kB / 0.7549 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002263/0.7702, allocations: 125.7 kB / 0.755 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.7702, allocations: 0 / 0.755 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.7702, allocations: 3.688 kB / 0.755 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.7702, allocations: 3.875 kB / 0.755 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001625/0.7704, allocations: 85.7 kB / 0.7551 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008542/0.7713, allocations: 0.573 MB / 0.7557 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/0.7715, allocations: 102.7 kB / 0.7558 GB, free: 26.37 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.792e-05/0.7716, allocations: 58.52 kB / 0.7558 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.7717, allocations: 4.219 kB / 0.7558 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.918e-05/0.7717, allocations: 34.5 kB / 0.7559 GB, free: 26.31 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.7717, allocations: 0 / 0.7559 GB, free: 26.31 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12): time 0.0002383/0.7719, allocations: 105.4 kB / 0.756 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.772, allocations: 57.78 kB / 0.756 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.7721, allocations: 135.3 kB / 0.7562 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.7721, allocations: 35.98 kB / 0.7562 GB, free: 26.08 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.423e-05/0.7722, allocations: 126.4 kB / 0.7563 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.114e-05/0.7722, allocations: 49.67 kB / 0.7564 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-06/0.7722, allocations: 0 / 0.7564 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.7724, allocations: 326.9 kB / 0.7567 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.001e-05/0.7724, allocations: 31.84 kB / 0.7567 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.866e-05/0.7725, allocations: 57.83 kB / 0.7568 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.435e-05/0.7726, allocations: 34.47 kB / 0.7568 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.7726, allocations: 4 kB / 0.7568 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00018/0.7728, allocations: 132.5 kB / 0.7569 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.7728, allocations: 4.969 kB / 0.7569 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.7728, allocations: 7.812 kB / 0.7569 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.7728, allocations: 0 / 0.7569 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001928/0.773, allocations: 47 kB / 0.757 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.773, allocations: 0 / 0.757 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001475/0.7732, allocations: 34.77 kB / 0.757 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.7732, allocations: 3.906 kB / 0.757 GB, free: 25.54 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.7e-05/0.7733, allocations: 118.9 kB / 0.7571 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.22e-05/0.7733, allocations: 15.59 kB / 0.7571 GB, free: 25.42 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.346e-05/0.7734, allocations: 18.36 kB / 0.7572 GB, free: 25.42 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.7734, allocations: 3.906 kB / 0.7572 GB, free: 25.42 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.7734, allocations: 0 / 0.7572 GB, free: 25.42 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.7734, allocations: 2.766 kB / 0.7572 GB, free: 25.42 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002053/0.7736, allocations: 235 kB / 0.7574 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.7736, allocations: 0 / 0.7574 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/0.7738, allocations: 47.02 kB / 0.7574 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.7738, allocations: 0 / 0.7574 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.7739, allocations: 7.047 kB / 0.7574 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.7739, allocations: 0.7031 kB / 0.7574 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.7739, allocations: 3.875 kB / 0.7575 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004092/0.7743, allocations: 259 kB / 0.7577 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.16e-05/0.7744, allocations: 84.89 kB / 0.7578 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.7744, allocations: 3.141 kB / 0.7578 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002202/0.7746, allocations: 32.03 kB / 0.7578 GB, free: 24.97 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.694e-05/0.7747, allocations: 9.406 kB / 0.7578 GB, free: 24.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.7747, allocations: 10.91 kB / 0.7578 GB, free: 24.97 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 9.235e-05/0.7748, allocations: 114.3 kB / 0.7579 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2e-07/0.7749, allocations: 0 / 0.7579 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003716/0.7752, allocations: 41.84 kB / 0.758 GB, free: 24.88 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.0001678/0.7754, allocations: 101.9 kB / 0.7581 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002463/0.7757, allocations: 88.77 kB / 0.7582 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.7757, allocations: 0 / 0.7582 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.7758, allocations: 51 kB / 0.7582 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.7761, allocations: 24.91 kB / 0.7582 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007281/0.7769, allocations: 271.1 kB / 0.7585 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.7772, allocations: 0.7166 MB / 0.7592 GB, free: 23.91 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 9.748e-05/0.7773, allocations: 21.31 kB / 0.7592 GB, free: 23.91 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.257e-05/0.7774, allocations: 11.31 kB / 0.7592 GB, free: 23.9 MB / 0.5105 GB Notification: Performance of SimCode: time 4.21e-07/0.7774, allocations: 0 / 0.7592 GB, free: 23.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.004615/0.782, allocations: 1.316 MB / 0.7605 GB, free: 23.43 MB / 0.5105 GB make -j1 -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.makefile (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & ./IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)