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.5744/0.5744, allocations: 94.7 MB / 107.3 MB, free: 5.211 MB / 90.74 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001487/0.001488, allocations: 174.7 kB / 130.7 MB, free: 7.57 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.863/1.863, allocations: 170.5 MB / 324.5 MB, free: 4.02 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.002031/0.002031, allocations: 119.6 kB / 386.6 MB, free: 16.29 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.72e-05/4.722e-05, allocations: 4 kB / 456 MB, free: 11.79 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5615/0.5615, allocations: 61.51 MB / 0.5054 GB, free: 49.61 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1618/0.7234, allocations: 100.4 MB / 0.6034 GB, free: 11.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.7237, allocations: 76.58 kB / 0.6035 GB, free: 11.13 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02376/0.7474, allocations: 8.74 MB / 0.612 GB, free: 2.512 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.7475, allocations: 0 / 0.612 GB, free: 2.512 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.11e-05/0.7475, allocations: 10.62 kB / 0.612 GB, free: 2.504 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.001151/0.7487, allocations: 0.6461 MB / 0.6126 GB, free: 1.812 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.229e-05/0.7488, allocations: 11.97 kB / 0.6127 GB, free: 1.801 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.7489, allocations: 51.44 kB / 0.6127 GB, free: 1.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007194/0.7497, allocations: 388.9 kB / 0.6131 GB, free: 1.332 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.194e-05/0.7497, allocations: 24.78 kB / 0.6131 GB, free: 1.309 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.136e-05/0.7498, allocations: 40 kB / 0.6131 GB, free: 1.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006863/0.7505, allocations: 363.8 kB / 0.6135 GB, free: 0.8984 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.7505, allocations: 0 / 0.6135 GB, free: 0.8984 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.173e-05/0.7506, allocations: 12 kB / 0.6135 GB, free: 0.8867 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.7506, allocations: 8 kB / 0.6135 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004525/0.751, allocations: 243.1 kB / 0.6137 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.753, allocations: 1.12 MB / 0.6148 GB, free: 15.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006053/0.7536, allocations: 292.3 kB / 0.6151 GB, free: 15.16 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002142/0.7538, allocations: 132.3 kB / 0.6152 GB, free: 15.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.24e-05/0.7539, allocations: 7.953 kB / 0.6152 GB, free: 15.03 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003313/0.7542, allocations: 163.9 kB / 0.6154 GB, free: 14.86 MB / 442.7 MB Notification: Performance of pre-optimization done (n=32): time 2.305e-06/0.7542, allocations: 0 / 0.6154 GB, free: 14.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=32): time 0.0005455/0.7548, allocations: 265.7 kB / 0.6157 GB, free: 14.59 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.844e-05/0.7549, allocations: 110.8 kB / 0.6158 GB, free: 14.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003878/0.7553, allocations: 303.5 kB / 0.616 GB, free: 14.16 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.7553, allocations: 29.7 kB / 0.6161 GB, free: 14.12 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001985/0.7555, allocations: 224.9 kB / 0.6163 GB, free: 13.89 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.899e-05/0.7556, allocations: 94.61 kB / 0.6164 GB, free: 13.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.876e-05/0.7557, allocations: 8 kB / 0.6164 GB, free: 13.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.7559, allocations: 350.7 kB / 0.6167 GB, free: 13.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.756, allocations: 88.66 kB / 0.6168 GB, free: 13.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.7562, allocations: 134.3 kB / 0.6169 GB, free: 13.21 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.7564, allocations: 97.97 kB / 0.617 GB, free: 13.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.7564, allocations: 4 kB / 0.617 GB, free: 13.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004572/0.7569, allocations: 286.1 kB / 0.6173 GB, free: 12.83 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.7569, allocations: 11.95 kB / 0.6173 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.7569, allocations: 0 / 0.6173 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.757, allocations: 3.938 kB / 0.6173 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003097/0.7573, allocations: 63.91 kB / 0.6174 GB, free: 12.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.7573, allocations: 1.219 kB / 0.6174 GB, free: 12.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.7575, allocations: 43.8 kB / 0.6174 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.7576, allocations: 11.98 kB / 0.6174 GB, free: 12.7 MB / 442.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 () * 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.0001399/0.7577, allocations: 133.2 kB / 0.6176 GB, free: 12.56 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.658e-05/0.7578, allocations: 35.53 kB / 0.6176 GB, free: 12.53 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.7579, allocations: 55.33 kB / 0.6176 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.7579, allocations: 0 / 0.6176 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.7579, allocations: 4 kB / 0.6177 GB, free: 12.47 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.7579, allocations: 0 / 0.6177 GB, free: 12.47 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/0.759, allocations: 0.8066 MB / 0.6184 GB, free: 11.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.759, allocations: 3.953 kB / 0.6184 GB, free: 11.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000254/0.7593, allocations: 55.91 kB / 0.6185 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.7593, allocations: 4 kB / 0.6185 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.499e-05/0.7593, allocations: 5.688 kB / 0.6185 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.7594, allocations: 7.984 kB / 0.6185 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.7594, allocations: 0 / 0.6185 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007578/0.7601, allocations: 492.1 kB / 0.619 GB, free: 11.04 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.7603, allocations: 148.5 kB / 0.6191 GB, free: 10.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.093e-05/0.7604, allocations: 8 kB / 0.6191 GB, free: 10.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.7606, allocations: 28.05 kB / 0.6192 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.088e-05/0.7607, allocations: 31.94 kB / 0.6192 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-05/0.7607, allocations: 4 kB / 0.6192 GB, free: 10.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002875/0.761, allocations: 238.2 kB / 0.6194 GB, free: 10.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.761, allocations: 0 / 0.6194 GB, free: 10.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003793/0.7614, allocations: 79.75 kB / 0.6195 GB, free: 10.49 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.and3.u1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y) * Number of discrete states: 1 (con.hys.y) * 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.0002174/0.7616, allocations: 119.1 kB / 0.6196 GB, free: 10.37 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004732/0.7621, allocations: 235.6 kB / 0.6198 GB, free: 10.14 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.7621, allocations: 0 / 0.6198 GB, free: 10.14 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002279/0.7624, allocations: 127.9 kB / 0.62 GB, free: 10.01 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.7629, allocations: 59.31 kB / 0.62 GB, free: 9.961 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.7644, allocations: 0.5484 MB / 0.6205 GB, free: 9.391 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008109/0.7652, allocations: 0.8154 MB / 0.6213 GB, free: 8.547 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001894/0.7654, allocations: 46.59 kB / 0.6214 GB, free: 8.508 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.971e-05/0.7655, allocations: 31.38 kB / 0.6214 GB, free: 8.48 MB / 442.7 MB Notification: Performance of SimCode: time 1.252e-06/0.7655, allocations: 0 / 0.6214 GB, free: 8.48 MB / 442.7 MB Notification: Performance of Templates: time 0.009412/0.7749, allocations: 3.378 MB / 0.6247 GB, free: 5.184 MB / 442.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)