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.0008764/0.0008763, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.00106/0.00106, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.018/2.018, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.704/0.704, allocations: 95.62 MB / 366 MB, free: 10.37 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.0006042/0.0006042, allocations: 20 kB / 446.9 MB, free: 9.367 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4108/0.4114, allocations: 70.34 MB / 0.5051 GB, free: 16.49 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.00252/0.414, allocations: 2.644 MB / 0.5076 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.4154, allocations: 0.975 MB / 0.5086 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002193/0.4156, allocations: 11.94 kB / 0.5086 GB, free: 12.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.4158, allocations: 47.52 kB / 0.5087 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.416, allocations: 63.44 kB / 0.5087 GB, free: 12.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003938/0.4164, allocations: 163.7 kB / 0.5089 GB, free: 12.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003331/0.4167, allocations: 487.8 kB / 0.5093 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002674/0.417, allocations: 187.4 kB / 0.5095 GB, free: 11.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.4171, allocations: 147.1 kB / 0.5097 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/0.4173, allocations: 155 kB / 0.5098 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.37e-05/0.4173, allocations: 12 kB / 0.5098 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.293e-05/0.4174, allocations: 16 kB / 0.5098 GB, free: 11.58 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.589e-05/0.4174, allocations: 63.62 kB / 0.5099 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.023e-05/0.4175, allocations: 105.5 kB / 0.51 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.4178, allocations: 436.9 kB / 0.5104 GB, free: 10.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.4178, allocations: 4 kB / 0.5104 GB, free: 10.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4178, allocations: 0 / 0.5104 GB, free: 10.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.4178, allocations: 4 kB / 0.5104 GB, free: 10.97 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.0008153/0.4186, allocations: 0.6914 MB / 0.5111 GB, free: 10.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.902e-05/0.4187, allocations: 11.98 kB / 0.5111 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.389e-05/0.4187, allocations: 63.25 kB / 0.5112 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.4191, allocations: 392.9 kB / 0.5115 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.4191, allocations: 32.95 kB / 0.5116 GB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.106e-05/0.4192, allocations: 36 kB / 0.5116 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005812/0.4198, allocations: 420.8 kB / 0.512 GB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.4198, allocations: 4 kB / 0.512 GB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.4198, allocations: 19.94 kB / 0.512 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.4199, allocations: 8 kB / 0.512 GB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000482/0.4203, allocations: 303.9 kB / 0.5123 GB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.4217, allocations: 1.34 MB / 0.5136 GB, free: 7.492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005795/0.4223, allocations: 341 kB / 0.514 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.4225, allocations: 152.8 kB / 0.5141 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.4226, allocations: 4 kB / 0.5141 GB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000322/0.4229, allocations: 193.8 kB / 0.5143 GB, free: 6.797 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.723e-06/0.4229, allocations: 0 / 0.5143 GB, free: 6.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.0006995/0.4236, allocations: 438.5 kB / 0.5147 GB, free: 6.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.4237, allocations: 106.8 kB / 0.5148 GB, free: 6.234 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002993/0.424, allocations: 369.6 kB / 0.5152 GB, free: 5.863 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.424, allocations: 37.7 kB / 0.5152 GB, free: 5.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.4242, allocations: 244.4 kB / 0.5154 GB, free: 5.574 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.482e-05/0.4242, allocations: 102.5 kB / 0.5155 GB, free: 5.473 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.569e-05/0.4243, allocations: 8 kB / 0.5155 GB, free: 5.465 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.319e-05/0.4243, allocations: 354.8 kB / 0.5159 GB, free: 5.109 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.4245, allocations: 112 kB / 0.516 GB, free: 5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.4248, allocations: 177.9 kB / 0.5162 GB, free: 4.809 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.425, allocations: 130.1 kB / 0.5163 GB, free: 4.684 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.425, allocations: 0 / 0.5163 GB, free: 4.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005075/0.4255, allocations: 370.5 kB / 0.5166 GB, free: 4.316 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.165e-05/0.4255, allocations: 115.7 kB / 0.5167 GB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.4256, allocations: 3.938 kB / 0.5167 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.4256, allocations: 4 kB / 0.5168 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.4258, allocations: 67.91 kB / 0.5168 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.4258, allocations: 7.938 kB / 0.5168 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/0.4261, allocations: 51.66 kB / 0.5169 GB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.4261, allocations: 16 kB / 0.5169 GB, free: 4.039 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.749e-06/0.4261, allocations: 0 / 0.5169 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000373/0.4265, allocations: 268.1 kB / 0.5171 GB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-06/0.4265, allocations: 0 / 0.5171 GB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.328e-06/0.4265, allocations: 8.047 kB / 0.5172 GB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002052/0.4267, allocations: 59.91 kB / 0.5172 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.526e-06/0.4267, allocations: 4 kB / 0.5172 GB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.4269, allocations: 43.67 kB / 0.5173 GB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.4269, allocations: 8 kB / 0.5173 GB, free: 3.656 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 ($whenCondition3,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,$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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001676/0.4271, allocations: 256.8 kB / 0.5175 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.061e-05/0.4271, allocations: 47.52 kB / 0.5176 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.551e-05/0.4272, allocations: 48.3 kB / 0.5176 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.4272, allocations: 7.953 kB / 0.5176 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.383e-06/0.4272, allocations: 0 / 0.5176 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.4272, allocations: 0 / 0.5176 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009437/0.4282, allocations: 0.8728 MB / 0.5185 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.4282, allocations: 0 / 0.5185 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002245/0.4284, allocations: 55.91 kB / 0.5185 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.4284, allocations: 7.953 kB / 0.5185 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.4285, allocations: 4 kB / 0.5185 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.4285, allocations: 4 kB / 0.5185 GB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.4285, allocations: 4 kB / 0.5185 GB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000728/0.4292, allocations: 0.5734 MB / 0.5191 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.4293, allocations: 144.5 kB / 0.5192 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.833e-05/0.4294, allocations: 15.95 kB / 0.5192 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.4296, allocations: 23.98 kB / 0.5193 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.26e-05/0.4297, allocations: 28.02 kB / 0.5193 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.4297, allocations: 12 kB / 0.5193 GB, free: 1.461 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002592/0.43, allocations: 259.2 kB / 0.5196 GB, free: 1.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.43, allocations: 3.938 kB / 0.5196 GB, free: 1.203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004654/0.4304, allocations: 155.4 kB / 0.5197 GB, free: 1.051 MB / 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 (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.0001166/0.4306, allocations: 111.9 kB / 0.5198 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006821/0.4313, allocations: 447.8 kB / 0.5202 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4313, allocations: 0 / 0.5202 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.4315, allocations: 156.2 kB / 0.5204 GB, free: 352 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005212/0.432, allocations: 83.12 kB / 0.5205 GB, free: 272 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00147/0.4335, allocations: 0.9762 MB / 0.5214 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.4339, allocations: 0.8237 MB / 0.5222 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002053/0.4341, allocations: 47.25 kB / 0.5223 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.447e-05/0.4342, allocations: 31.44 kB / 0.5223 GB, free: 14.33 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4342, allocations: 0 / 0.5223 GB, free: 14.33 MB / 398.1 MB Notification: Performance of Templates: time 0.007874/0.4421, allocations: 3.733 MB / 0.5259 GB, free: 10.62 MB / 398.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: