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.0008138/0.0008137, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.009445/0.009445, allocations: 170 kB / 16.26 MB, free: 6.613 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.59/1.59, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.6567/0.6567, allocations: 95.63 MB / 366.4 MB, free: 10.23 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.001004/0.001004, allocations: 12 kB / 447.5 MB, free: 8.977 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3857, allocations: 70.34 MB / 0.5057 GB, free: 16.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.002772/0.3885, allocations: 2.767 MB / 0.5084 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.39, allocations: 0.9941 MB / 0.5093 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003287/0.3903, allocations: 11.94 kB / 0.5093 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.3906, allocations: 47.58 kB / 0.5094 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.3907, allocations: 75.38 kB / 0.5095 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004704/0.3912, allocations: 215.8 kB / 0.5097 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003593/0.3916, allocations: 0.5113 MB / 0.5102 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003428/0.3919, allocations: 245.4 kB / 0.5104 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.3921, allocations: 147 kB / 0.5105 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002037/0.3923, allocations: 162.9 kB / 0.5107 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.302e-05/0.3924, allocations: 16 kB / 0.5107 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.756e-05/0.3924, allocations: 12 kB / 0.5107 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.116e-05/0.3925, allocations: 67.62 kB / 0.5108 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.3927, allocations: 220.3 kB / 0.511 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004199/0.3931, allocations: 0.5253 MB / 0.5115 GB, free: 10.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3931, allocations: 0 / 0.5115 GB, free: 10.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3931, allocations: 0 / 0.5115 GB, free: 10.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.497e-06/0.3931, allocations: 0 / 0.5115 GB, free: 10.3 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.001108/0.3943, allocations: 0.6877 MB / 0.5122 GB, free: 9.562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.3943, allocations: 11.98 kB / 0.5122 GB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.3944, allocations: 64.19 kB / 0.5123 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004667/0.3949, allocations: 402 kB / 0.5126 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.338e-05/0.395, allocations: 33.38 kB / 0.5127 GB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.669e-05/0.395, allocations: 40.36 kB / 0.5127 GB, free: 8.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006796/0.3957, allocations: 425.1 kB / 0.5131 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.3958, allocations: 0 / 0.5131 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.3958, allocations: 16 kB / 0.5131 GB, free: 8.531 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.3958, allocations: 12 kB / 0.5131 GB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005474/0.3964, allocations: 307.8 kB / 0.5134 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.3981, allocations: 1.339 MB / 0.5147 GB, free: 6.809 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005868/0.3987, allocations: 349.3 kB / 0.5151 GB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/0.3989, allocations: 152.7 kB / 0.5152 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.072e-05/0.399, allocations: 4 kB / 0.5152 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003272/0.3993, allocations: 197.5 kB / 0.5154 GB, free: 6.102 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.684e-06/0.3993, allocations: 0 / 0.5154 GB, free: 6.102 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.0007761/0.4001, allocations: 441.9 kB / 0.5158 GB, free: 5.664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.178e-05/0.4002, allocations: 110.8 kB / 0.5159 GB, free: 5.531 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003364/0.4005, allocations: 377.6 kB / 0.5163 GB, free: 5.152 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.718e-05/0.4005, allocations: 41.69 kB / 0.5163 GB, free: 5.105 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.4007, allocations: 232.5 kB / 0.5166 GB, free: 4.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.702e-05/0.4008, allocations: 102.5 kB / 0.5167 GB, free: 4.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.946e-05/0.4008, allocations: 41.69 kB / 0.5167 GB, free: 4.723 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.401, allocations: 358.7 kB / 0.517 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002969/0.4013, allocations: 119.9 kB / 0.5172 GB, free: 4.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.4015, allocations: 173.9 kB / 0.5173 GB, free: 4.059 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004417/0.402, allocations: 269.9 kB / 0.5176 GB, free: 3.785 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.402, allocations: 0 / 0.5176 GB, free: 3.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005318/0.4025, allocations: 374.2 kB / 0.5179 GB, free: 3.414 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.733e-05/0.4026, allocations: 124 kB / 0.5181 GB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.4026, allocations: 0 / 0.5181 GB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.4026, allocations: 4 kB / 0.5181 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.4029, allocations: 59.91 kB / 0.5181 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.4029, allocations: 4 kB / 0.5181 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/0.4031, allocations: 67.5 kB / 0.5182 GB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/0.4032, allocations: 8 kB / 0.5182 GB, free: 3.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.4e-06/0.4032, allocations: 4 kB / 0.5182 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000386/0.4036, allocations: 271.7 kB / 0.5185 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-06/0.4036, allocations: 96 / 0.5185 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.595e-06/0.4036, allocations: 4 kB / 0.5185 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.4038, allocations: 63.91 kB / 0.5185 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.065e-06/0.4038, allocations: 0 / 0.5185 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/0.404, allocations: 43.67 kB / 0.5186 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.404, allocations: 12 kB / 0.5186 GB, free: 2.746 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.0001803/0.4042, allocations: 256.9 kB / 0.5188 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.626e-05/0.4042, allocations: 43.52 kB / 0.5189 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.048e-05/0.4043, allocations: 40.3 kB / 0.5189 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.4043, allocations: 7.938 kB / 0.5189 GB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.4044, allocations: 0 / 0.5189 GB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.4044, allocations: 0 / 0.5189 GB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009877/0.4054, allocations: 0.8845 MB / 0.5198 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.4054, allocations: 0 / 0.5198 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002347/0.4056, allocations: 55.91 kB / 0.5198 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.4056, allocations: 4 kB / 0.5198 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.4056, allocations: 4 kB / 0.5198 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.4057, allocations: 8 kB / 0.5198 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4057, allocations: 0 / 0.5198 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007443/0.4064, allocations: 0.5703 MB / 0.5204 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.4065, allocations: 148.6 kB / 0.5205 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.515e-05/0.4066, allocations: 11.94 kB / 0.5205 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/0.4068, allocations: 23.98 kB / 0.5206 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.519e-05/0.4069, allocations: 39.94 kB / 0.5206 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.4069, allocations: 12 kB / 0.5206 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002117/0.4071, allocations: 263.1 kB / 0.5209 GB, free: 296 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4071, allocations: 0 / 0.5209 GB, free: 296 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004391/0.4076, allocations: 159.4 kB / 0.521 GB, free: 136 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 9.908e-05/0.4077, allocations: 107.2 kB / 0.5211 GB, free: 20 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008238/0.4085, allocations: 460.7 kB / 0.5216 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4085, allocations: 0 / 0.5216 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002751/0.4088, allocations: 152.3 kB / 0.5217 GB, free: 15.42 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006129/0.4094, allocations: 71.75 kB / 0.5218 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.4109, allocations: 1.035 MB / 0.5228 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.4113, allocations: 0.8237 MB / 0.5236 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001898/0.4115, allocations: 51.25 kB / 0.5236 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.396e-05/0.4116, allocations: 27.44 kB / 0.5237 GB, free: 13.36 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4116, allocations: 4 kB / 0.5237 GB, free: 13.36 MB / 398.1 MB Notification: Performance of Templates: time 0.007928/0.4195, allocations: 3.86 MB / 0.5274 GB, free: 9.527 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: