Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.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.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008331/0.0008331, allocations: 90.44 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.00597/0.00597, allocations: 172.5 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.625/1.625, allocations: 205.4 MB / 222.4 MB, free: 5.793 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.6149/0.6149, allocations: 95.63 MB / 366.4 MB, free: 10.3 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.0006019/0.0006019, allocations: 12 kB / 447.5 MB, free: 9.047 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.354, allocations: 70.33 MB / 0.5057 GB, free: 16.36 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.002428/0.3565, allocations: 2.619 MB / 0.5082 GB, free: 13.72 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001386/0.3579, allocations: 0.9477 MB / 0.5091 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.3581, allocations: 11.94 kB / 0.5091 GB, free: 12.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001687/0.3583, allocations: 47.58 kB / 0.5092 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001687/0.3585, allocations: 71.42 kB / 0.5093 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.3589, allocations: 199.8 kB / 0.5095 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004049/0.3594, allocations: 451.3 kB / 0.5099 GB, free: 12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003703/0.3597, allocations: 215.2 kB / 0.5101 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.3599, allocations: 131.1 kB / 0.5102 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.3601, allocations: 147 kB / 0.5104 GB, free: 11.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.524e-05/0.3602, allocations: 12 kB / 0.5104 GB, free: 11.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.544e-05/0.3602, allocations: 12 kB / 0.5104 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.701e-05/0.3603, allocations: 51.66 kB / 0.5104 GB, free: 11.44 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.3604, allocations: 196.5 kB / 0.5106 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003271/0.3608, allocations: 474.2 kB / 0.5111 GB, free: 10.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3608, allocations: 0 / 0.5111 GB, free: 10.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.3608, allocations: 0 / 0.5111 GB, free: 10.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.3608, allocations: 0 / 0.5111 GB, free: 10.77 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0009964/0.3618, allocations: 0.6467 MB / 0.5117 GB, free: 10.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.3619, allocations: 15.98 kB / 0.5117 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.969e-05/0.362, allocations: 56.28 kB / 0.5118 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004109/0.3624, allocations: 382.1 kB / 0.5121 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.3624, allocations: 25.03 kB / 0.5122 GB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.467e-05/0.3625, allocations: 28.38 kB / 0.5122 GB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005947/0.3631, allocations: 368.8 kB / 0.5125 GB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.3631, allocations: 7.984 kB / 0.5125 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.532e-05/0.3632, allocations: 12 kB / 0.5126 GB, free: 9.141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.3632, allocations: 11.94 kB / 0.5126 GB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004628/0.3637, allocations: 258.5 kB / 0.5128 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.365, allocations: 1.205 MB / 0.514 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005296/0.3656, allocations: 278.7 kB / 0.5143 GB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001908/0.3658, allocations: 116.8 kB / 0.5144 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.196e-05/0.3658, allocations: 4.375 kB / 0.5144 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.198e-05/0.3658, allocations: 42.5 kB / 0.5144 GB, free: 7.148 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 2.385e-06/0.3658, allocations: 0 / 0.5144 GB, free: 7.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006631/0.3665, allocations: 342.8 kB / 0.5147 GB, free: 6.809 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.256e-05/0.3666, allocations: 144.5 kB / 0.5149 GB, free: 6.637 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003422/0.3669, allocations: 361.6 kB / 0.5152 GB, free: 6.277 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.367, allocations: 29.7 kB / 0.5152 GB, free: 6.242 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.3671, allocations: 228.2 kB / 0.5155 GB, free: 6.012 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.255e-05/0.3672, allocations: 71 kB / 0.5155 GB, free: 5.941 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.636e-05/0.3673, allocations: 29.7 kB / 0.5156 GB, free: 5.906 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.3674, allocations: 346.8 kB / 0.5159 GB, free: 5.559 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.3676, allocations: 100.4 kB / 0.516 GB, free: 5.461 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/0.3678, allocations: 146.9 kB / 0.5161 GB, free: 5.297 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003659/0.3682, allocations: 231.1 kB / 0.5163 GB, free: 5.059 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3682, allocations: 4 kB / 0.5164 GB, free: 5.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004831/0.3687, allocations: 301 kB / 0.5166 GB, free: 4.754 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.441e-05/0.3687, allocations: 117.7 kB / 0.5168 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3688, allocations: 0 / 0.5168 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.61e-05/0.3688, allocations: 4 kB / 0.5168 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/0.369, allocations: 51.91 kB / 0.5168 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.369, allocations: 0 / 0.5168 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.3693, allocations: 59.66 kB / 0.5169 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.3693, allocations: 8 kB / 0.5169 GB, free: 4.504 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.741e-06/0.3693, allocations: 4 kB / 0.5169 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002955/0.3696, allocations: 208 kB / 0.5171 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-06/0.3696, allocations: 0 / 0.5171 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.425e-06/0.3696, allocations: 4 kB / 0.5171 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.3698, allocations: 51.91 kB / 0.5171 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.3698, allocations: 4 kB / 0.5171 GB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.37, allocations: 39.7 kB / 0.5172 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.37, allocations: 12.09 kB / 0.5172 GB, free: 4.188 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: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.000176/0.3702, allocations: 237 kB / 0.5174 GB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.525e-05/0.3703, allocations: 35.53 kB / 0.5174 GB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.083e-05/0.3704, allocations: 47.41 kB / 0.5175 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3704, allocations: 0 / 0.5175 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.3704, allocations: 0 / 0.5175 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3704, allocations: 3.984 kB / 0.5175 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003694/0.3708, allocations: 433.1 kB / 0.5179 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3708, allocations: 0 / 0.5179 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002105/0.371, allocations: 51.91 kB / 0.5179 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.371, allocations: 0 / 0.5179 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.371, allocations: 8 kB / 0.518 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.371, allocations: 0 / 0.518 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.371, allocations: 0 / 0.518 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006104/0.3717, allocations: 489.3 kB / 0.5184 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.443e-05/0.3718, allocations: 140.6 kB / 0.5186 GB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.133e-05/0.3718, allocations: 8 kB / 0.5186 GB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.372, allocations: 24.05 kB / 0.5186 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.818e-05/0.3721, allocations: 23.91 kB / 0.5186 GB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.3721, allocations: 4 kB / 0.5186 GB, free: 2.621 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001895/0.3723, allocations: 259.2 kB / 0.5189 GB, free: 2.367 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3723, allocations: 0 / 0.5189 GB, free: 2.367 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004016/0.3727, allocations: 127.5 kB / 0.519 GB, free: 2.242 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (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 (22): * Single equations (assignments): 22 * 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 Backend phase and start with SimCode phase: time 0.0001036/0.3728, allocations: 111.2 kB / 0.5191 GB, free: 2.121 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005955/0.3734, allocations: 347.9 kB / 0.5194 GB, free: 1.781 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3734, allocations: 0 / 0.5194 GB, free: 1.781 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001844/0.3736, allocations: 111.9 kB / 0.5195 GB, free: 1.672 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005994/0.3742, allocations: 83.42 kB / 0.5196 GB, free: 1.594 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.3753, allocations: 0.9116 MB / 0.5205 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.3756, allocations: 0.8031 MB / 0.5213 GB, free: 15.83 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001486/0.3757, allocations: 30.97 kB / 0.5213 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.402e-05/0.3758, allocations: 23.44 kB / 0.5213 GB, free: 15.78 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3758, allocations: 0 / 0.5213 GB, free: 15.78 MB / 398.1 MB Notification: Performance of Templates: time 0.006936/0.3827, allocations: 3.414 MB / 0.5247 GB, free: 12.4 MB / 398.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile Environment - environmentSimulation: (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) Environment - environmentSimulation: