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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001914/0.001914, allocations: 194.2 kB / 16.14 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.506/1.506, allocations: 205.1 MB / 222 MB, free: 4.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5831/0.5831, allocations: 95.48 MB / 364.8 MB, free: 10.09 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.91 kB / 444.7 MB, free: 10.08 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3414, allocations: 69.08 MB / 0.5017 GB, free: 17.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.004018/0.3454, allocations: 3.151 MB / 0.5048 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.3473, allocations: 1.017 MB / 0.5058 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005442/0.3479, allocations: 8 kB / 0.5058 GB, free: 13.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003/0.3482, allocations: 47.52 kB / 0.5058 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002592/0.3485, allocations: 75.42 kB / 0.5059 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005565/0.349, allocations: 227.7 kB / 0.5061 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003998/0.3494, allocations: 0.5036 MB / 0.5066 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003551/0.3498, allocations: 257.4 kB / 0.5068 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.35, allocations: 171 kB / 0.507 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.3501, allocations: 202.8 kB / 0.5072 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.658e-05/0.3502, allocations: 24 kB / 0.5072 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.437e-05/0.3502, allocations: 28 kB / 0.5073 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.414e-05/0.3503, allocations: 79.62 kB / 0.5073 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.3504, allocations: 218.6 kB / 0.5075 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003075/0.3507, allocations: 0.5528 MB / 0.5081 GB, free: 11.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3507, allocations: 0 / 0.5081 GB, free: 11.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.3507, allocations: 4 kB / 0.5081 GB, free: 11.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.3508, allocations: 0 / 0.5081 GB, free: 11.03 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.000905/0.3517, allocations: 0.7693 MB / 0.5088 GB, free: 10.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.3517, allocations: 11.98 kB / 0.5088 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.787e-05/0.3518, allocations: 64.28 kB / 0.5089 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003361/0.3521, allocations: 394 kB / 0.5093 GB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.3522, allocations: 37.36 kB / 0.5093 GB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.968e-05/0.3522, allocations: 40.31 kB / 0.5094 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005335/0.3528, allocations: 421.1 kB / 0.5098 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3528, allocations: 7.906 kB / 0.5098 GB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.116e-05/0.3528, allocations: 12 kB / 0.5098 GB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.3528, allocations: 8 kB / 0.5098 GB, free: 9.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004799/0.3533, allocations: 295.8 kB / 0.5101 GB, free: 8.887 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.3547, allocations: 1.336 MB / 0.5114 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005605/0.3552, allocations: 331.2 kB / 0.5117 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.3555, allocations: 144.7 kB / 0.5118 GB, free: 7.004 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.049e-05/0.3555, allocations: 4 kB / 0.5118 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003787/0.3559, allocations: 189.5 kB / 0.512 GB, free: 6.805 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.774e-06/0.3559, allocations: 0 / 0.512 GB, free: 6.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.0007123/0.3566, allocations: 417.7 kB / 0.5124 GB, free: 6.391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.3567, allocations: 110.8 kB / 0.5125 GB, free: 6.258 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002995/0.357, allocations: 373.6 kB / 0.5129 GB, free: 5.883 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.357, allocations: 37.69 kB / 0.5129 GB, free: 5.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.3572, allocations: 240.5 kB / 0.5131 GB, free: 5.598 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.764e-05/0.3572, allocations: 98.56 kB / 0.5132 GB, free: 5.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.132e-05/0.3573, allocations: 73.59 kB / 0.5133 GB, free: 5.422 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.464e-05/0.3574, allocations: 358.7 kB / 0.5136 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.3576, allocations: 120.6 kB / 0.5138 GB, free: 4.941 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.3579, allocations: 166.1 kB / 0.5139 GB, free: 4.762 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003888/0.3583, allocations: 257.9 kB / 0.5142 GB, free: 4.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3583, allocations: 4.031 kB / 0.5142 GB, free: 4.496 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005144/0.3588, allocations: 357.9 kB / 0.5145 GB, free: 4.141 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.3588, allocations: 5.875 kB / 0.5145 GB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.3588, allocations: 0 / 0.5145 GB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.3588, allocations: 4 kB / 0.5145 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/0.3591, allocations: 63.91 kB / 0.5146 GB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.3591, allocations: 0 / 0.5146 GB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/0.3593, allocations: 47.75 kB / 0.5146 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.3593, allocations: 12 kB / 0.5146 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002461/0.3596, allocations: 224.1 kB / 0.5148 GB, free: 3.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001772/0.3598, allocations: 158.3 kB / 0.515 GB, free: 3.617 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002962/0.3601, allocations: 243.6 kB / 0.5152 GB, free: 3.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.262e-06/0.3601, allocations: 0 / 0.5152 GB, free: 3.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0004212/0.3605, allocations: 336.8 kB / 0.5155 GB, free: 3.031 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.562e-06/0.3605, allocations: 4 kB / 0.5156 GB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-06/0.3605, allocations: 4.094 kB / 0.5156 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.434e-06/0.3606, allocations: 7.938 kB / 0.5156 GB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002107/0.3608, allocations: 55.91 kB / 0.5156 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.3608, allocations: 4 kB / 0.5156 GB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.361, allocations: 43.7 kB / 0.5157 GB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.361, allocations: 8 kB / 0.5157 GB, free: 2.906 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 (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,con.greaterEqualThreshold.y,$whenCondition1,$whenCondition2,$whenCondition3,con.con.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 42 * 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.0001108/0.3611, allocations: 212 kB / 0.5159 GB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.128e-05/0.3611, allocations: 39.53 kB / 0.5159 GB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.854e-05/0.3612, allocations: 52.28 kB / 0.516 GB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.3612, allocations: 4 kB / 0.516 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3612, allocations: 0 / 0.516 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3613, allocations: 3.938 kB / 0.516 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008813/0.3621, allocations: 0.8766 MB / 0.5168 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.3622, allocations: 4 kB / 0.5168 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002313/0.3624, allocations: 51.91 kB / 0.5169 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.3624, allocations: 4 kB / 0.5169 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/0.3624, allocations: 4 kB / 0.5169 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3624, allocations: 4 kB / 0.5169 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3624, allocations: 3.938 kB / 0.5169 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007066/0.3632, allocations: 0.5548 MB / 0.5174 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.3633, allocations: 148.5 kB / 0.5176 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.523e-05/0.3633, allocations: 7.984 kB / 0.5176 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.3635, allocations: 19.98 kB / 0.5176 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.693e-05/0.3636, allocations: 31.89 kB / 0.5176 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.3636, allocations: 8 kB / 0.5176 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002015/0.3638, allocations: 259.2 kB / 0.5179 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3638, allocations: 4.062 kB / 0.5179 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004092/0.3643, allocations: 155.4 kB / 0.518 GB, free: 388 kB / 382.1 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.greaterEqualThreshold.y,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 (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.0001044/0.3644, allocations: 115.2 kB / 0.5181 GB, free: 264 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007356/0.3651, allocations: 427.9 kB / 0.5186 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.3651, allocations: 4.375 kB / 0.5186 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002648/0.3654, allocations: 147.8 kB / 0.5187 GB, free: 15.69 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005464/0.366, allocations: 75.58 kB / 0.5188 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.3674, allocations: 0.9888 MB / 0.5197 GB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.3679, allocations: 0.8198 MB / 0.5205 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001952/0.3681, allocations: 51.25 kB / 0.5206 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.376e-05/0.3682, allocations: 35.42 kB / 0.5206 GB, free: 13.67 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3682, allocations: 0 / 0.5206 GB, free: 13.67 MB / 398.1 MB Notification: Performance of Templates: time 0.008178/0.3763, allocations: 3.882 MB / 0.5244 GB, free: 9.812 MB / 398.1 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)