Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.099/5.099, allocations: 0.5623 GB / 0.5775 GB, free: 3.348 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002527/0.002526, allocations: 362.8 kB / 0.6446 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.228/4.228, allocations: 410.7 MB / 1.113 GB, free: 5.934 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002009/0.00201, allocations: 196.2 kB / 1.226 GB, free: 6.055 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004998/0.0005, allocations: 12 kB / 1.349 GB, free: 8.191 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7612/0.7617, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2121/0.9739, allocations: 139.3 MB / 1.597 GB, free: 144.9 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003554/0.9743, allocations: 91.94 kB / 1.597 GB, free: 144.8 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.006228/0.9805, allocations: 1.495 MB / 1.599 GB, free: 143.3 MB / 0.8542 GB Notification: Performance of FrontEnd: time 4.969e-06/0.9806, allocations: 7.984 kB / 1.599 GB, free: 143.3 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.053e-05/0.9806, allocations: 0 / 1.599 GB, free: 143.3 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005786/0.9812, allocations: 393.3 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.9813, allocations: 11.62 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.637e-05/0.9814, allocations: 8.906 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.9815, allocations: 178.9 kB / 1.599 GB, free: 142.7 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.9815, allocations: 4.5 kB / 1.599 GB, free: 142.6 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.9816, allocations: 9.641 kB / 1.6 GB, free: 142.6 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002847/0.9819, allocations: 101.5 kB / 1.6 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.9819, allocations: 0 / 1.6 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.9819, allocations: 5.25 kB / 1.6 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.9819, allocations: 0 / 1.6 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002633/0.9822, allocations: 53.56 kB / 1.6 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006077/0.9828, allocations: 333.2 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001965/0.983, allocations: 54.56 kB / 1.6 GB, free: 142 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.9832, allocations: 34.41 kB / 1.6 GB, free: 142 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.9832, allocations: 0 / 1.6 GB, free: 142 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.9833, allocations: 31.44 kB / 1.6 GB, free: 142 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=4): time 2.645e-06/0.9833, allocations: 4.984 kB / 1.6 GB, free: 142 MB / 0.8542 GB Notification: Performance of matching and sorting (n=4): time 0.0005162/0.9838, allocations: 117.6 kB / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.9839, allocations: 81.95 kB / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.984, allocations: 131.2 kB / 1.6 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.984, allocations: 25.7 kB / 1.6 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.395e-05/0.9841, allocations: 100 kB / 1.601 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.397e-05/0.9841, allocations: 16.41 kB / 1.601 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.997e-06/0.9841, allocations: 0 / 1.601 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.809e-05/0.9842, allocations: 332.7 kB / 1.601 GB, free: 141.1 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.9844, allocations: 23.98 kB / 1.601 GB, free: 141.1 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001402/0.9845, allocations: 42.61 kB / 1.601 GB, free: 141.1 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001323/0.9846, allocations: 29.11 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.9847, allocations: 0 / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003124/0.985, allocations: 96.83 kB / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.985, allocations: 4 kB / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.985, allocations: 0 / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.9851, allocations: 3.953 kB / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.9852, allocations: 12.64 kB / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.9852, allocations: 4.5 kB / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001432/0.9854, allocations: 13.98 kB / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.9854, allocations: 4 kB / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.506e-05/0.9855, allocations: 120 kB / 1.601 GB, free: 140.8 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.867e-05/0.9856, allocations: 11.89 kB / 1.601 GB, free: 140.8 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.927e-05/0.9856, allocations: 8.25 kB / 1.601 GB, free: 140.7 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.9856, allocations: 3.953 kB / 1.601 GB, free: 140.7 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.9857, allocations: 0 / 1.601 GB, free: 140.7 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.9857, allocations: 4 kB / 1.601 GB, free: 140.7 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.9859, allocations: 190.5 kB / 1.601 GB, free: 140.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.9859, allocations: 0 / 1.601 GB, free: 140.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.986, allocations: 17.08 kB / 1.601 GB, free: 140.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.986, allocations: 4.891 kB / 1.601 GB, free: 140.5 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.9861, allocations: 1.906 kB / 1.601 GB, free: 140.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.9861, allocations: 4 kB / 1.601 GB, free: 140.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.9861, allocations: 3.953 kB / 1.601 GB, free: 140.5 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003334/0.9864, allocations: 182.4 kB / 1.602 GB, free: 140.3 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.916e-05/0.9865, allocations: 81.02 kB / 1.602 GB, free: 140.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.9865, allocations: 4 kB / 1.602 GB, free: 140.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.9867, allocations: 17.42 kB / 1.602 GB, free: 140.2 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.887e-05/0.9868, allocations: 10.02 kB / 1.602 GB, free: 140.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.9868, allocations: 11.88 kB / 1.602 GB, free: 140.1 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.255e-05/0.9869, allocations: 106.4 kB / 1.602 GB, free: 140 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.6e-07/0.9869, allocations: 0.5312 kB / 1.602 GB, free: 140 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002887/0.9872, allocations: 8 kB / 1.602 GB, free: 140 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001176/0.9873, allocations: 107.9 kB / 1.602 GB, free: 139.9 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003277/0.9877, allocations: 65.36 kB / 1.602 GB, free: 139.9 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.9877, allocations: 0 / 1.602 GB, free: 139.9 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.9878, allocations: 35.97 kB / 1.602 GB, free: 139.8 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.9882, allocations: 9.719 kB / 1.602 GB, free: 139.8 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004709/0.9887, allocations: 199.9 kB / 1.602 GB, free: 139.6 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.9889, allocations: 0.6982 MB / 1.603 GB, free: 138.9 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.548e-05/0.9889, allocations: 0.6562 kB / 1.603 GB, free: 138.9 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.043e-05/0.989, allocations: 11.44 kB / 1.603 GB, free: 138.9 MB / 0.8542 GB Notification: Performance of SimCode: time 1.212e-06/0.989, allocations: 3.344 kB / 1.603 GB, free: 138.9 MB / 0.8542 GB Notification: Performance of Templates: time 0.00383/0.9928, allocations: 0.7121 MB / 1.604 GB, free: 138.2 MB / 0.8542 GB