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.001462/0.001462, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001697/0.001696, allocations: 187 kB / 16.25 MB, free: 6.625 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.322/1.322, allocations: 205.1 MB / 222.1 MB, free: 4.734 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.6031/0.6031, allocations: 95.47 MB / 364.9 MB, free: 10.07 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.002845/0.002845, allocations: 68.41 kB / 444.8 MB, free: 10 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.3592, allocations: 69.08 MB / 0.5019 GB, free: 17.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003576/0.3628, allocations: 3.152 MB / 0.505 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.3645, allocations: 1.002 MB / 0.5059 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004488/0.365, allocations: 16 kB / 0.5059 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002782/0.3653, allocations: 55.5 kB / 0.506 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003033/0.3656, allocations: 71.42 kB / 0.5061 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006284/0.3662, allocations: 219.7 kB / 0.5063 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005552/0.3668, allocations: 0.5622 MB / 0.5068 GB, free: 12.47 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004003/0.3672, allocations: 257.4 kB / 0.5071 GB, free: 12.22 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.3674, allocations: 211 kB / 0.5073 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.3676, allocations: 218.8 kB / 0.5075 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.613e-05/0.3676, allocations: 52 kB / 0.5075 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.918e-05/0.3677, allocations: 56 kB / 0.5076 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.073e-05/0.3678, allocations: 115.6 kB / 0.5077 GB, free: 11.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.3679, allocations: 258.6 kB / 0.5079 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004239/0.3683, allocations: 0.5685 MB / 0.5085 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3683, allocations: 3.984 kB / 0.5085 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3684, allocations: 0 / 0.5085 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.3684, allocations: 0 / 0.5085 GB, free: 10.75 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.0009546/0.3693, allocations: 0.7732 MB / 0.5093 GB, free: 9.926 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.3694, allocations: 15.98 kB / 0.5093 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.191e-05/0.3695, allocations: 64.27 kB / 0.5093 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003618/0.3698, allocations: 394 kB / 0.5097 GB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.3699, allocations: 29.38 kB / 0.5097 GB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.255e-05/0.3699, allocations: 44.38 kB / 0.5098 GB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005744/0.3705, allocations: 425 kB / 0.5102 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.3705, allocations: 3.906 kB / 0.5102 GB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/0.3706, allocations: 16 kB / 0.5102 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.3706, allocations: 12 kB / 0.5102 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004812/0.3711, allocations: 295.8 kB / 0.5105 GB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.3725, allocations: 1.32 MB / 0.5118 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005363/0.373, allocations: 341.4 kB / 0.5121 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000209/0.3732, allocations: 140.8 kB / 0.5122 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.3733, allocations: 8 kB / 0.5123 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003493/0.3736, allocations: 177.5 kB / 0.5124 GB, free: 6.531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.663e-06/0.3736, allocations: 0 / 0.5124 GB, free: 6.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.0006933/0.3743, allocations: 422.5 kB / 0.5128 GB, free: 6.113 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.3744, allocations: 118.8 kB / 0.5129 GB, free: 5.973 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002773/0.3747, allocations: 373.6 kB / 0.5133 GB, free: 5.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.3747, allocations: 37.7 kB / 0.5133 GB, free: 5.555 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.3748, allocations: 236.5 kB / 0.5136 GB, free: 5.316 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.376e-05/0.3749, allocations: 102.5 kB / 0.5137 GB, free: 5.215 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.085e-05/0.375, allocations: 77.59 kB / 0.5137 GB, free: 5.133 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.919e-05/0.3751, allocations: 350.7 kB / 0.5141 GB, free: 4.781 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.3753, allocations: 120.6 kB / 0.5142 GB, free: 4.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.3755, allocations: 170.1 kB / 0.5143 GB, free: 4.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003659/0.3759, allocations: 253.9 kB / 0.5146 GB, free: 4.219 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3759, allocations: 4 kB / 0.5146 GB, free: 4.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005028/0.3764, allocations: 349.9 kB / 0.5149 GB, free: 3.867 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.3764, allocations: 8 kB / 0.5149 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3764, allocations: 7.922 kB / 0.5149 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.3764, allocations: 8.094 kB / 0.5149 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.3767, allocations: 59.91 kB / 0.515 GB, free: 3.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.3767, allocations: 4 kB / 0.515 GB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000191/0.3769, allocations: 39.67 kB / 0.515 GB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.3769, allocations: 12 kB / 0.5151 GB, free: 3.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002424/0.3772, allocations: 224.1 kB / 0.5153 GB, free: 3.508 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001713/0.3773, allocations: 166.2 kB / 0.5154 GB, free: 3.328 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002912/0.3776, allocations: 235.5 kB / 0.5157 GB, free: 3.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.252e-06/0.3777, allocations: 3.938 kB / 0.5157 GB, free: 3.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0004292/0.3781, allocations: 340.9 kB / 0.516 GB, free: 2.742 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.046e-06/0.3781, allocations: 4 kB / 0.516 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-06/0.3781, allocations: 0 / 0.516 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.978e-06/0.3781, allocations: 4 kB / 0.516 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.3783, allocations: 63.84 kB / 0.516 GB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.3784, allocations: 0 / 0.516 GB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.3786, allocations: 35.77 kB / 0.5161 GB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.896e-05/0.3786, allocations: 16.09 kB / 0.5161 GB, free: 2.621 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 9.685e-05/0.3787, allocations: 212 kB / 0.5163 GB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.3787, allocations: 39.53 kB / 0.5163 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.99e-05/0.3788, allocations: 48.3 kB / 0.5164 GB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.3788, allocations: 0 / 0.5164 GB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3788, allocations: 8 kB / 0.5164 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.3788, allocations: 3.984 kB / 0.5164 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000906/0.3798, allocations: 0.8688 MB / 0.5172 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3798, allocations: 4 kB / 0.5172 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002408/0.38, allocations: 47.91 kB / 0.5173 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.38, allocations: 0 / 0.5173 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.3801, allocations: 8 kB / 0.5173 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3801, allocations: 0 / 0.5173 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3801, allocations: 7.922 kB / 0.5173 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007376/0.3808, allocations: 0.554 MB / 0.5178 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.3809, allocations: 148.5 kB / 0.518 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.118e-05/0.381, allocations: 11.94 kB / 0.518 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.3812, allocations: 23.97 kB / 0.518 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.66e-05/0.3813, allocations: 31.97 kB / 0.5181 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.3813, allocations: 8 kB / 0.5181 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001958/0.3815, allocations: 263.2 kB / 0.5183 GB, free: 256 kB / 382.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3815, allocations: 0 / 0.5183 GB, free: 256 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004442/0.382, allocations: 159.4 kB / 0.5185 GB, free: 96 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.0001163/0.3821, allocations: 103.2 kB / 0.5186 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008693/0.383, allocations: 451.8 kB / 0.519 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.383, allocations: 0 / 0.519 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002698/0.3832, allocations: 147.8 kB / 0.5191 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006224/0.3839, allocations: 87.58 kB / 0.5192 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001886/0.3858, allocations: 0.9927 MB / 0.5202 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000458/0.3862, allocations: 0.8237 MB / 0.521 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002191/0.3865, allocations: 47.25 kB / 0.521 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.3866, allocations: 27.44 kB / 0.5211 GB, free: 13.37 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3866, allocations: 0 / 0.5211 GB, free: 13.37 MB / 398.1 MB Notification: Performance of Templates: time 0.009162/0.3958, allocations: 4.071 MB / 0.525 GB, free: 9.332 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)