Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005857/0.005857, allocations: 100.8 kB / 15.73 MB, free: 5.953 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.00136/0.001361, allocations: 187 kB / 16.67 MB, free: 5.883 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.22/1.22, allocations: 205.1 MB / 222.6 MB, free: 4.352 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.353/1.353, allocations: 251.7 MB / 0.5094 GB, free: 3.039 MB / 414.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: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 67.84 kB / 0.7258 GB, free: 9.059 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.1689, allocations: 104.7 MB / 0.828 GB, free: 248 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00235/0.1713, allocations: 1.666 MB / 0.8297 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0006411/0.172, allocations: 0.4917 MB / 0.8301 GB, free: 14.07 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.162e-05/0.172, allocations: 0 / 0.8301 GB, free: 14.07 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.097e-05/0.1721, allocations: 11.86 kB / 0.8302 GB, free: 14.05 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.329e-05/0.1721, allocations: 11.88 kB / 0.8302 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001457/0.1723, allocations: 31.91 kB / 0.8302 GB, free: 14.01 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 9.976e-05/0.1724, allocations: 87.7 kB / 0.8303 GB, free: 13.93 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 9.844e-05/0.1725, allocations: 27.92 kB / 0.8303 GB, free: 13.9 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.551e-05/0.1726, allocations: 31.86 kB / 0.8303 GB, free: 13.87 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.048e-05/0.1727, allocations: 43.75 kB / 0.8304 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.118e-05/0.1727, allocations: 11.94 kB / 0.8304 GB, free: 13.81 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.297e-05/0.1727, allocations: 12 kB / 0.8304 GB, free: 13.8 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.307e-05/0.1728, allocations: 15.94 kB / 0.8304 GB, free: 13.79 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.266e-05/0.1728, allocations: 35.8 kB / 0.8305 GB, free: 13.75 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001047/0.1729, allocations: 79.75 kB / 0.8305 GB, free: 13.67 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1729, allocations: 4 kB / 0.8305 GB, free: 13.67 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.102e-06/0.1729, allocations: 0 / 0.8305 GB, free: 13.67 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.1729, allocations: 0 / 0.8305 GB, free: 13.67 MB / 0.6544 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.0004753/0.1734, allocations: 387.1 kB / 0.8309 GB, free: 13.24 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 2.673e-05/0.1735, allocations: 12.03 kB / 0.8309 GB, free: 13.23 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/0.1735, allocations: 12.84 kB / 0.8309 GB, free: 13.22 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.1736, allocations: 176.1 kB / 0.8311 GB, free: 13.01 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.1736, allocations: 8.312 kB / 0.8311 GB, free: 13 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.1736, allocations: 4.375 kB / 0.8311 GB, free: 13 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/0.1738, allocations: 95.67 kB / 0.8312 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.1739, allocations: 0 / 0.8312 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.1739, allocations: 3.938 kB / 0.8312 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1739, allocations: 4 kB / 0.8312 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001473/0.174, allocations: 51.91 kB / 0.8313 GB, free: 12.83 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004048/0.1744, allocations: 324.7 kB / 0.8316 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001204/0.1746, allocations: 46.59 kB / 0.8316 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.581e-05/0.1747, allocations: 36.94 kB / 0.8316 GB, free: 12.37 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.1747, allocations: 3.984 kB / 0.8316 GB, free: 12.37 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.1747, allocations: 30.56 kB / 0.8317 GB, free: 12.33 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.1747, allocations: 0 / 0.8317 GB, free: 12.33 MB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.0002991/0.175, allocations: 101.6 kB / 0.8318 GB, free: 12.22 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.1751, allocations: 85.11 kB / 0.8319 GB, free: 12.12 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.557e-05/0.1752, allocations: 126.1 kB / 0.832 GB, free: 11.99 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.1752, allocations: 29.7 kB / 0.832 GB, free: 11.95 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.116e-05/0.1752, allocations: 104 kB / 0.8321 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.1753, allocations: 11.75 kB / 0.8321 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.873e-05/0.1753, allocations: 25.7 kB / 0.8321 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.976e-05/0.1754, allocations: 318.8 kB / 0.8324 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.52e-05/0.1755, allocations: 19.98 kB / 0.8325 GB, free: 11.46 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.808e-05/0.1756, allocations: 53.62 kB / 0.8325 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.1757, allocations: 44.84 kB / 0.8326 GB, free: 11.36 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1757, allocations: 0 / 0.8326 GB, free: 11.36 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001754/0.1759, allocations: 85.56 kB / 0.8326 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.1759, allocations: 8 kB / 0.8326 GB, free: 11.26 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.1759, allocations: 32 / 0.8326 GB, free: 11.26 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.1759, allocations: 4 kB / 0.8326 GB, free: 11.26 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.637e-05/0.176, allocations: 19.92 kB / 0.8327 GB, free: 11.24 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.176, allocations: 0 / 0.8327 GB, free: 11.24 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.509e-05/0.1761, allocations: 11.98 kB / 0.8327 GB, free: 11.23 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.1761, allocations: 3.938 kB / 0.8327 GB, free: 11.22 MB / 0.6544 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 (chiSwi.hysteresis.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.44e-05/0.1762, allocations: 113.8 kB / 0.8328 GB, free: 11.1 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.841e-05/0.1763, allocations: 7.906 kB / 0.8328 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.853e-05/0.1763, allocations: 12.25 kB / 0.8328 GB, free: 11.07 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.1763, allocations: 4 kB / 0.8328 GB, free: 11.07 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.1763, allocations: 0 / 0.8328 GB, free: 11.07 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1763, allocations: 3.984 kB / 0.8328 GB, free: 11.07 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001631/0.1765, allocations: 189.5 kB / 0.833 GB, free: 10.83 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1765, allocations: 3.938 kB / 0.833 GB, free: 10.83 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.616e-05/0.1766, allocations: 11.98 kB / 0.833 GB, free: 10.82 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.1766, allocations: 0 / 0.833 GB, free: 10.82 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-06/0.1766, allocations: 0 / 0.833 GB, free: 10.82 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.1766, allocations: 4.188 kB / 0.833 GB, free: 10.81 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1766, allocations: 4 kB / 0.833 GB, free: 10.81 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002095/0.1768, allocations: 187.3 kB / 0.8332 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.198e-05/0.1768, allocations: 81.09 kB / 0.8333 GB, free: 10.51 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.1769, allocations: 0 / 0.8333 GB, free: 10.51 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.177, allocations: 11.98 kB / 0.8333 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.706e-05/0.177, allocations: 11.98 kB / 0.8333 GB, free: 10.49 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.177, allocations: 4 kB / 0.8333 GB, free: 10.48 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.635e-05/0.1771, allocations: 110.3 kB / 0.8334 GB, free: 10.38 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.1771, allocations: 0 / 0.8334 GB, free: 10.38 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002114/0.1773, allocations: 11.91 kB / 0.8334 GB, free: 10.37 MB / 0.6544 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.772e-05/0.1774, allocations: 99.25 kB / 0.8335 GB, free: 10.26 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002027/0.1776, allocations: 63.89 kB / 0.8336 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1776, allocations: 0 / 0.8336 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 7.708e-05/0.1777, allocations: 31.98 kB / 0.8336 GB, free: 10.17 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.178, allocations: 0 / 0.8336 GB, free: 10.17 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003422/0.1783, allocations: 175.1 kB / 0.8338 GB, free: 9.969 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.1785, allocations: 0.6885 MB / 0.8344 GB, free: 9.254 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.028e-05/0.1786, allocations: 16.25 kB / 0.8345 GB, free: 9.238 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.448e-05/0.1786, allocations: 15.42 kB / 0.8345 GB, free: 9.223 MB / 0.6544 GB Notification: Performance of SimCode: time 2.21e-07/0.1786, allocations: 0 / 0.8345 GB, free: 9.223 MB / 0.6544 GB Notification: Performance of Templates: time 0.002589/0.1812, allocations: 0.8861 MB / 0.8353 GB, free: 8.379 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)