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.0008344/0.0008345, allocations: 84.38 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.001125/0.001125, 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 1.975/1.975, allocations: 205.4 MB / 222.1 MB, free: 5.883 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.7078/0.7078, allocations: 95.63 MB / 366 MB, free: 10.43 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.0006213/0.0006217, allocations: 19.91 kB / 446.9 MB, free: 9.422 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4163/0.417, allocations: 70.32 MB / 0.5051 GB, free: 16.54 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.003077/0.4201, allocations: 2.508 MB / 0.5075 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.4218, allocations: 0.9285 MB / 0.5084 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002621/0.4221, allocations: 11.94 kB / 0.5084 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002038/0.4223, allocations: 39.58 kB / 0.5085 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001664/0.4225, allocations: 67.44 kB / 0.5085 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004543/0.4229, allocations: 143.7 kB / 0.5087 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003943/0.4233, allocations: 435.3 kB / 0.5091 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003256/0.4237, allocations: 153.1 kB / 0.5092 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001506/0.4238, allocations: 127.2 kB / 0.5093 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001606/0.424, allocations: 135.1 kB / 0.5095 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.388e-05/0.424, allocations: 15.94 kB / 0.5095 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.201e-05/0.4241, allocations: 12 kB / 0.5095 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.354e-05/0.4241, allocations: 59.64 kB / 0.5096 GB, free: 11.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.799e-05/0.4242, allocations: 97.45 kB / 0.5097 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002754/0.4245, allocations: 389 kB / 0.51 GB, free: 11.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.4245, allocations: 0 / 0.51 GB, free: 11.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4245, allocations: 0 / 0.51 GB, free: 11.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.4245, allocations: 0 / 0.51 GB, free: 11.42 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.0008469/0.4254, allocations: 0.6426 MB / 0.5107 GB, free: 10.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.4254, allocations: 15.98 kB / 0.5107 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.68e-05/0.4255, allocations: 51.34 kB / 0.5107 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003797/0.4259, allocations: 369.1 kB / 0.5111 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.4259, allocations: 28.61 kB / 0.5111 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.998e-05/0.426, allocations: 32 kB / 0.5111 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005079/0.4265, allocations: 364.4 kB / 0.5115 GB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.4265, allocations: 0 / 0.5115 GB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.28e-05/0.4265, allocations: 20 kB / 0.5115 GB, free: 9.805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.4265, allocations: 4 kB / 0.5115 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000419/0.427, allocations: 246.5 kB / 0.5117 GB, free: 9.562 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.4283, allocations: 1.202 MB / 0.5129 GB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005128/0.4289, allocations: 283.3 kB / 0.5132 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.4291, allocations: 121.2 kB / 0.5133 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.547e-05/0.4291, allocations: 4.188 kB / 0.5133 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.4291, allocations: 38.75 kB / 0.5133 GB, free: 7.832 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.272e-06/0.4291, allocations: 3.938 kB / 0.5133 GB, free: 7.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006399/0.4298, allocations: 349.7 kB / 0.5137 GB, free: 7.484 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/0.4299, allocations: 140.5 kB / 0.5138 GB, free: 7.316 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003171/0.4302, allocations: 361.7 kB / 0.5141 GB, free: 6.957 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.4302, allocations: 29.7 kB / 0.5142 GB, free: 6.922 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.4303, allocations: 224.3 kB / 0.5144 GB, free: 6.695 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.308e-05/0.4304, allocations: 78.84 kB / 0.5145 GB, free: 6.617 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.241e-05/0.4304, allocations: 4 kB / 0.5145 GB, free: 6.613 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.31e-05/0.4305, allocations: 350.8 kB / 0.5148 GB, free: 6.262 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.4307, allocations: 88.44 kB / 0.5149 GB, free: 6.176 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.4309, allocations: 150.9 kB / 0.515 GB, free: 6.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001681/0.431, allocations: 111.8 kB / 0.5151 GB, free: 5.898 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.4311, allocations: 0 / 0.5151 GB, free: 5.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004073/0.4315, allocations: 297 kB / 0.5154 GB, free: 5.602 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.732e-05/0.4315, allocations: 111.6 kB / 0.5155 GB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.4315, allocations: 4 kB / 0.5155 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.4316, allocations: 7.891 kB / 0.5155 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.4318, allocations: 60 kB / 0.5156 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.4318, allocations: 3.984 kB / 0.5156 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001708/0.432, allocations: 43.81 kB / 0.5156 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.432, allocations: 4 kB / 0.5156 GB, free: 5.355 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.512e-06/0.432, allocations: 4 kB / 0.5156 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003006/0.4323, allocations: 211.8 kB / 0.5159 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-06/0.4323, allocations: 0 / 0.5159 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-06/0.4323, allocations: 0 / 0.5159 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.4325, allocations: 51.91 kB / 0.5159 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.455e-06/0.4325, allocations: 0 / 0.5159 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.4327, allocations: 43.77 kB / 0.5159 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.4327, allocations: 12 kB / 0.516 GB, free: 5.039 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 ($PRE.con.hys.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001602/0.4328, allocations: 237 kB / 0.5162 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.182e-05/0.4329, allocations: 43.52 kB / 0.5162 GB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.311e-05/0.433, allocations: 39.47 kB / 0.5163 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.433, allocations: 4 kB / 0.5163 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.433, allocations: 0 / 0.5163 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.433, allocations: 0 / 0.5163 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003583/0.4334, allocations: 433.1 kB / 0.5167 GB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4334, allocations: 3.938 kB / 0.5167 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002076/0.4336, allocations: 47.97 kB / 0.5167 GB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.4336, allocations: 4 kB / 0.5167 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.4336, allocations: 0 / 0.5167 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4336, allocations: 0 / 0.5167 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4337, allocations: 0 / 0.5167 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006181/0.4343, allocations: 492.8 kB / 0.5172 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.257e-05/0.4344, allocations: 136.7 kB / 0.5173 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.4344, allocations: 8 kB / 0.5173 GB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.4346, allocations: 31.91 kB / 0.5174 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.335e-05/0.4347, allocations: 15.97 kB / 0.5174 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.4347, allocations: 8 kB / 0.5174 GB, free: 3.473 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002026/0.4349, allocations: 255.2 kB / 0.5176 GB, free: 3.223 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4349, allocations: 4 kB / 0.5176 GB, free: 3.219 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003862/0.4353, allocations: 123.5 kB / 0.5178 GB, free: 3.098 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 (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.0001277/0.4354, allocations: 107.2 kB / 0.5179 GB, free: 2.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005827/0.436, allocations: 340.7 kB / 0.5182 GB, free: 2.648 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.436, allocations: 0 / 0.5182 GB, free: 2.648 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001759/0.4362, allocations: 119.9 kB / 0.5183 GB, free: 2.531 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000584/0.4368, allocations: 91.27 kB / 0.5184 GB, free: 2.445 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.438, allocations: 0.8609 MB / 0.5192 GB, free: 1.562 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/0.4383, allocations: 0.7992 MB / 0.52 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001461/0.4384, allocations: 38.95 kB / 0.52 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.423e-05/0.4385, allocations: 27.44 kB / 0.5201 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4385, allocations: 0 / 0.5201 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of Templates: time 0.006963/0.4455, allocations: 3.305 MB / 0.5233 GB, free: 13.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: