Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7056/0.7056, allocations: 128.7 MB / 144.5 MB, free: 1.344 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001186/0.001186, allocations: 188.4 kB / 174.2 MB, free: 5.922 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205 MB / 408.9 MB, free: 9.68 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 98.34 kB / 485.1 MB, free: 13.57 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009697/0.0009697, allocations: 52.44 kB / 0.558 GB, free: 97.53 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.15, allocations: 75.47 MB / 0.6317 GB, free: 33.05 MB / 442.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.004464/0.1545, allocations: 3.187 MB / 0.6348 GB, free: 29.84 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.1566, allocations: 1.018 MB / 0.6358 GB, free: 28.81 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004291/0.1571, allocations: 15.94 kB / 0.6358 GB, free: 28.79 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002503/0.1574, allocations: 47.52 kB / 0.6358 GB, free: 28.75 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.1576, allocations: 75.42 kB / 0.6359 GB, free: 28.67 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005623/0.1581, allocations: 245.6 kB / 0.6361 GB, free: 28.43 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003915/0.1585, allocations: 0.5153 MB / 0.6366 GB, free: 27.92 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003475/0.1589, allocations: 251.3 kB / 0.6369 GB, free: 27.68 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.1591, allocations: 175 kB / 0.637 GB, free: 27.5 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/0.1592, allocations: 190.9 kB / 0.6372 GB, free: 27.32 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 4.961e-05/0.1593, allocations: 24 kB / 0.6372 GB, free: 27.29 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.367e-05/0.1594, allocations: 24 kB / 0.6373 GB, free: 27.27 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 5.837e-05/0.1594, allocations: 91.56 kB / 0.6374 GB, free: 27.18 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.1596, allocations: 218.7 kB / 0.6376 GB, free: 26.96 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003425/0.1599, allocations: 0.553 MB / 0.6381 GB, free: 26.41 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1599, allocations: 4 kB / 0.6381 GB, free: 26.41 MB / 442.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.1599, allocations: 0 / 0.6381 GB, free: 26.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.16, allocations: 0 / 0.6381 GB, free: 26.41 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001009/0.161, allocations: 0.7622 MB / 0.6389 GB, free: 25.6 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.161, allocations: 12.03 kB / 0.6389 GB, free: 25.59 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.741e-05/0.1611, allocations: 56.22 kB / 0.6389 GB, free: 25.53 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004406/0.1616, allocations: 420.6 kB / 0.6393 GB, free: 25.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.1616, allocations: 29.38 kB / 0.6394 GB, free: 25.05 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.814e-05/0.1616, allocations: 36.38 kB / 0.6394 GB, free: 25.01 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005065/0.1621, allocations: 409.9 kB / 0.6398 GB, free: 24.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.1622, allocations: 0 / 0.6398 GB, free: 24.59 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/0.1622, allocations: 16 kB / 0.6398 GB, free: 24.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.485e-06/0.1622, allocations: 8 kB / 0.6398 GB, free: 24.56 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004472/0.1627, allocations: 271.8 kB / 0.6401 GB, free: 24.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.1641, allocations: 1.328 MB / 0.6414 GB, free: 22.89 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005887/0.1647, allocations: 310.5 kB / 0.6417 GB, free: 22.58 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002185/0.1649, allocations: 136.8 kB / 0.6418 GB, free: 22.44 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.881e-05/0.1649, allocations: 7.984 kB / 0.6418 GB, free: 22.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004237/0.1654, allocations: 177.4 kB / 0.642 GB, free: 22.25 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 1.663e-06/0.1654, allocations: 0 / 0.642 GB, free: 22.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007049/0.1661, allocations: 381.8 kB / 0.6423 GB, free: 21.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.1662, allocations: 81.11 kB / 0.6424 GB, free: 21.77 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002897/0.1665, allocations: 353.6 kB / 0.6427 GB, free: 21.42 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.1665, allocations: 37.7 kB / 0.6428 GB, free: 21.38 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.1666, allocations: 240.8 kB / 0.643 GB, free: 21.13 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.667e-05/0.1667, allocations: 98.56 kB / 0.6431 GB, free: 21.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.344e-05/0.1668, allocations: 74.06 kB / 0.6432 GB, free: 20.95 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.617e-05/0.1669, allocations: 346.8 kB / 0.6435 GB, free: 20.61 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.1671, allocations: 118.2 kB / 0.6436 GB, free: 20.49 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003082/0.1674, allocations: 168.6 kB / 0.6438 GB, free: 20.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003964/0.1678, allocations: 263.8 kB / 0.644 GB, free: 20.02 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1678, allocations: 3.938 kB / 0.644 GB, free: 20.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000509/0.1684, allocations: 362.1 kB / 0.6444 GB, free: 19.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.1684, allocations: 6.031 kB / 0.6444 GB, free: 19.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1684, allocations: 4 kB / 0.6444 GB, free: 19.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.1684, allocations: 4 kB / 0.6444 GB, free: 19.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002447/0.1687, allocations: 63.89 kB / 0.6444 GB, free: 19.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.1687, allocations: 4 kB / 0.6445 GB, free: 19.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.1689, allocations: 47.77 kB / 0.6445 GB, free: 19.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.1689, allocations: 16 kB / 0.6445 GB, free: 19.52 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002491/0.1691, allocations: 220.8 kB / 0.6447 GB, free: 19.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000173/0.1693, allocations: 170.6 kB / 0.6449 GB, free: 19.11 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002936/0.1696, allocations: 242 kB / 0.6451 GB, free: 18.85 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.232e-06/0.1696, allocations: 3.938 kB / 0.6451 GB, free: 18.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=45) (initialization_lambda0): time 0.000426/0.1701, allocations: 349 kB / 0.6455 GB, free: 18.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.494e-06/0.1701, allocations: 8 kB / 0.6455 GB, free: 18.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.934e-06/0.1701, allocations: 0 / 0.6455 GB, free: 18.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.148e-06/0.1701, allocations: 4 kB / 0.6455 GB, free: 18.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.1703, allocations: 63.91 kB / 0.6455 GB, free: 18.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.1703, allocations: 4 kB / 0.6455 GB, free: 18.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.1705, allocations: 39.95 kB / 0.6456 GB, free: 18.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.1705, allocations: 12 kB / 0.6456 GB, free: 18.37 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 (con.greaterEqualThreshold.y,con.hys.y,$PRE.con.hys.y,con.on,con.offTimer.entryTime,$PRE.con.offTimer.entryTime,con.onTimer.entryTime,$PRE.con.onTimer.entryTime,con.offHys.entryTime,$PRE.con.offHys.entryTime,$whenCondition1,$whenCondition2,$whenCondition3,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.1706, allocations: 208 kB / 0.6458 GB, free: 18.16 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.1707, allocations: 39.53 kB / 0.6458 GB, free: 18.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.99e-05/0.1708, allocations: 44.25 kB / 0.6459 GB, free: 18.08 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1708, allocations: 4 kB / 0.6459 GB, free: 18.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.1708, allocations: 3.938 kB / 0.6459 GB, free: 18.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.1708, allocations: 11.97 kB / 0.6459 GB, free: 18.06 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009408/0.1718, allocations: 0.8113 MB / 0.6467 GB, free: 17.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1718, allocations: 0 / 0.6467 GB, free: 17.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002157/0.172, allocations: 47.92 kB / 0.6467 GB, free: 17.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.172, allocations: 7.984 kB / 0.6467 GB, free: 17.14 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.172, allocations: 4 kB / 0.6467 GB, free: 17.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.172, allocations: 8 kB / 0.6467 GB, free: 17.12 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1721, allocations: 0 / 0.6467 GB, free: 17.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003379/0.1754, allocations: 2.803 MB / 0.6495 GB, free: 14.19 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.237e-05/0.1755, allocations: 144.5 kB / 0.6496 GB, free: 14.03 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.1756, allocations: 11.98 kB / 0.6496 GB, free: 14.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.1758, allocations: 20.05 kB / 0.6496 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.89e-05/0.1758, allocations: 23.97 kB / 0.6497 GB, free: 13.97 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.1759, allocations: 4 kB / 0.6497 GB, free: 13.97 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001784/0.176, allocations: 247.2 kB / 0.6499 GB, free: 13.73 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1761, allocations: 0 / 0.6499 GB, free: 13.73 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006306/0.1767, allocations: 215.3 kB / 0.6501 GB, free: 13.52 MB / 442.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.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001128/0.1768, allocations: 115.2 kB / 0.6502 GB, free: 13.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006534/0.1775, allocations: 424.1 kB / 0.6506 GB, free: 12.98 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1775, allocations: 0 / 0.6506 GB, free: 12.98 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002053/0.1777, allocations: 131.8 kB / 0.6507 GB, free: 12.85 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005211/0.1782, allocations: 92.81 kB / 0.6508 GB, free: 12.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.1797, allocations: 1.218 MB / 0.652 GB, free: 11.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.18, allocations: 0.8276 MB / 0.6528 GB, free: 10.65 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000218/0.1802, allocations: 51.23 kB / 0.6529 GB, free: 10.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.1803, allocations: 35.44 kB / 0.6529 GB, free: 10.56 MB / 442.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1803, allocations: 0 / 0.6529 GB, free: 10.56 MB / 442.7 MB Notification: Performance of Templates: time 0.007447/0.1878, allocations: 4.432 MB / 0.6572 GB, free: 6.164 MB / 442.7 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)