Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5689/0.5689, allocations: 95.61 MB / 110.6 MB, free: 9.391 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001182/0.001182, allocations: 169.9 kB / 134.2 MB, free: 2.273 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.437/1.437, allocations: 170.7 MB / 328.4 MB, free: 12.28 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001807/0.001807, allocations: 108.5 kB / 390.7 MB, free: 13.95 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003381/0.0003383, allocations: 8 kB / 462.7 MB, free: 35.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1314, allocations: 61.53 MB / 0.512 GB, free: 6.102 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3909/0.5224, allocations: 100.5 MB / 0.6101 GB, free: 6.988 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.5227, allocations: 85.69 kB / 0.6102 GB, free: 6.941 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02272/0.5454, allocations: 8.756 MB / 0.6187 GB, free: 15.54 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5455, allocations: 4 kB / 0.6187 GB, free: 15.54 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.744e-05/0.5455, allocations: 8.188 kB / 0.6187 GB, free: 15.53 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001155/0.5467, allocations: 0.7012 MB / 0.6194 GB, free: 14.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.5467, allocations: 11.98 kB / 0.6194 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.5468, allocations: 54.31 kB / 0.6195 GB, free: 14.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005897/0.5474, allocations: 388.4 kB / 0.6198 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.74e-05/0.5475, allocations: 27.75 kB / 0.6199 GB, free: 14.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.04e-05/0.5476, allocations: 45.56 kB / 0.6199 GB, free: 14.33 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006887/0.5483, allocations: 387.5 kB / 0.6203 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.5483, allocations: 0 / 0.6203 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.812e-05/0.5483, allocations: 13.69 kB / 0.6203 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.5483, allocations: 8 kB / 0.6203 GB, free: 14.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005358/0.5489, allocations: 288 kB / 0.6206 GB, free: 13.85 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.5505, allocations: 1.113 MB / 0.6217 GB, free: 12.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006773/0.5512, allocations: 361 kB / 0.622 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.5513, allocations: 4.5 kB / 0.622 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003289/0.5516, allocations: 182.7 kB / 0.6222 GB, free: 12.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=32): time 1.653e-06/0.5516, allocations: 0 / 0.6222 GB, free: 12.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=32): time 0.0008311/0.5524, allocations: 421.7 kB / 0.6226 GB, free: 12.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.954e-05/0.5525, allocations: 110.8 kB / 0.6227 GB, free: 12.08 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000316/0.5529, allocations: 305.6 kB / 0.623 GB, free: 11.84 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.473e-05/0.5529, allocations: 36.7 kB / 0.623 GB, free: 11.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.5531, allocations: 219.4 kB / 0.6232 GB, free: 11.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.78e-05/0.5531, allocations: 101.1 kB / 0.6233 GB, free: 11.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.271e-05/0.5532, allocations: 3.375 kB / 0.6233 GB, free: 11.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.5533, allocations: 347.9 kB / 0.6237 GB, free: 11.22 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.5535, allocations: 111.9 kB / 0.6238 GB, free: 11.15 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002413/0.5538, allocations: 150.8 kB / 0.6239 GB, free: 11.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000214/0.554, allocations: 117.7 kB / 0.624 GB, free: 10.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.554, allocations: 0 / 0.624 GB, free: 10.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000566/0.5546, allocations: 334.6 kB / 0.6243 GB, free: 10.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.5546, allocations: 11.89 kB / 0.6243 GB, free: 10.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.5546, allocations: 4 kB / 0.6244 GB, free: 10.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.5546, allocations: 0 / 0.6244 GB, free: 10.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.5549, allocations: 63.91 kB / 0.6244 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.5549, allocations: 3.984 kB / 0.6244 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.5552, allocations: 43.84 kB / 0.6245 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.5552, allocations: 12 kB / 0.6245 GB, free: 10.57 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,con.and3.u1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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 0.0001943/0.5554, allocations: 166.3 kB / 0.6246 GB, free: 10.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.176e-05/0.5555, allocations: 35.53 kB / 0.6247 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.92e-05/0.5555, allocations: 44.02 kB / 0.6247 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.5556, allocations: 4 kB / 0.6247 GB, free: 10.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5556, allocations: 0 / 0.6247 GB, free: 10.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.5556, allocations: 11.98 kB / 0.6247 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.5568, allocations: 0.8466 MB / 0.6255 GB, free: 9.398 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5568, allocations: 0 / 0.6255 GB, free: 9.398 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/0.5571, allocations: 59.86 kB / 0.6256 GB, free: 9.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.5571, allocations: 3.938 kB / 0.6256 GB, free: 9.336 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.5571, allocations: 4 kB / 0.6256 GB, free: 9.332 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.5571, allocations: 4 kB / 0.6256 GB, free: 9.328 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.5571, allocations: 0 / 0.6256 GB, free: 9.328 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008994/0.558, allocations: 0.5503 MB / 0.6262 GB, free: 8.758 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.5582, allocations: 144.6 kB / 0.6263 GB, free: 8.598 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.092e-05/0.5583, allocations: 15.89 kB / 0.6263 GB, free: 8.582 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002152/0.5585, allocations: 28.05 kB / 0.6263 GB, free: 8.555 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.307e-05/0.5586, allocations: 19.97 kB / 0.6264 GB, free: 8.535 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.5586, allocations: 11.98 kB / 0.6264 GB, free: 8.523 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002769/0.5589, allocations: 239.2 kB / 0.6266 GB, free: 8.293 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5589, allocations: 0 / 0.6266 GB, free: 8.293 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003628/0.5593, allocations: 87.69 kB / 0.6267 GB, free: 8.207 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.and3.u1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001672/0.5594, allocations: 119.2 kB / 0.6268 GB, free: 8.078 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006346/0.5601, allocations: 267.6 kB / 0.627 GB, free: 7.816 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.5601, allocations: 4.062 kB / 0.627 GB, free: 7.812 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002745/0.5604, allocations: 148.4 kB / 0.6272 GB, free: 7.668 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004262/0.5608, allocations: 54.91 kB / 0.6272 GB, free: 7.613 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/0.5624, allocations: 0.9309 MB / 0.6281 GB, free: 6.652 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/0.5628, allocations: 0.8232 MB / 0.629 GB, free: 5.801 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.563, allocations: 30.97 kB / 0.629 GB, free: 5.773 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.679e-05/0.5631, allocations: 31.42 kB / 0.629 GB, free: 5.742 MB / 426.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5631, allocations: 0 / 0.629 GB, free: 5.742 MB / 426.7 MB Notification: Performance of Templates: time 0.007401/0.5705, allocations: 3.372 MB / 0.6323 GB, free: 2.383 MB / 426.7 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)