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.0008671/0.0008668, 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.001536/0.001536, 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.513/1.513, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.502/1.502, allocations: 252 MB / 0.5102 GB, free: 4.777 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.0005077/0.0005078, allocations: 12 kB / 0.6243 GB, free: 1.113 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5778/0.5783, allocations: 106.3 MB / 0.7281 GB, free: 11.42 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002435/0.5808, allocations: 1.366 MB / 0.7295 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0008766/0.5817, allocations: 479.7 kB / 0.7299 GB, free: 9.57 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.67e-05/0.5817, allocations: 0 / 0.7299 GB, free: 9.57 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.382e-05/0.5818, allocations: 3.938 kB / 0.7299 GB, free: 9.566 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.987e-05/0.5819, allocations: 19.84 kB / 0.73 GB, free: 9.547 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001653/0.582, allocations: 15.98 kB / 0.73 GB, free: 9.531 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.5821, allocations: 71.72 kB / 0.73 GB, free: 9.461 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.5823, allocations: 23.97 kB / 0.7301 GB, free: 9.438 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.5824, allocations: 23.92 kB / 0.7301 GB, free: 9.414 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 9.624e-05/0.5825, allocations: 31.84 kB / 0.7301 GB, free: 9.383 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.5825, allocations: 0 / 0.7301 GB, free: 9.383 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.767e-05/0.5825, allocations: 4 kB / 0.7301 GB, free: 9.379 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.183e-05/0.5826, allocations: 15.91 kB / 0.7301 GB, free: 9.363 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.386e-05/0.5826, allocations: 41.64 kB / 0.7302 GB, free: 9.316 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.185e-05/0.5827, allocations: 53.86 kB / 0.7302 GB, free: 9.266 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.5827, allocations: 0 / 0.7302 GB, free: 9.266 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.843e-06/0.5827, allocations: 0 / 0.7302 GB, free: 9.266 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.5827, allocations: 4 kB / 0.7302 GB, free: 9.262 MB / 0.545 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.0005318/0.5833, allocations: 383 kB / 0.7306 GB, free: 8.84 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.5833, allocations: 8.031 kB / 0.7306 GB, free: 8.832 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.324e-05/0.5834, allocations: 11.89 kB / 0.7306 GB, free: 8.82 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.5835, allocations: 175 kB / 0.7308 GB, free: 8.609 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.5835, allocations: 8 kB / 0.7308 GB, free: 8.602 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.5836, allocations: 11.94 kB / 0.7308 GB, free: 8.59 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.5838, allocations: 95.25 kB / 0.7309 GB, free: 8.484 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.5838, allocations: 0 / 0.7309 GB, free: 8.484 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.5838, allocations: 4 kB / 0.7309 GB, free: 8.48 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.421e-06/0.5839, allocations: 0 / 0.7309 GB, free: 8.48 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000204/0.5841, allocations: 63.95 kB / 0.731 GB, free: 8.418 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005099/0.5846, allocations: 332.6 kB / 0.7313 GB, free: 8.043 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000278/0.5849, allocations: 54.56 kB / 0.7313 GB, free: 7.98 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.706e-05/0.585, allocations: 28.94 kB / 0.7314 GB, free: 7.949 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.585, allocations: 0 / 0.7314 GB, free: 7.949 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.585, allocations: 42.56 kB / 0.7314 GB, free: 7.898 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 8.51e-07/0.585, allocations: 0 / 0.7314 GB, free: 7.898 MB / 0.545 GB Notification: Performance of matching and sorting (n=4): time 0.0003301/0.5854, allocations: 121.7 kB / 0.7315 GB, free: 7.773 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.5854, allocations: 77.11 kB / 0.7316 GB, free: 7.68 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.5855, allocations: 137.2 kB / 0.7317 GB, free: 7.539 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.357e-05/0.5856, allocations: 25.7 kB / 0.7317 GB, free: 7.508 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.498e-05/0.5857, allocations: 96.05 kB / 0.7318 GB, free: 7.41 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.5857, allocations: 15.8 kB / 0.7318 GB, free: 7.395 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-06/0.5857, allocations: 0 / 0.7318 GB, free: 7.395 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.5859, allocations: 318.8 kB / 0.7322 GB, free: 7.074 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.083e-05/0.586, allocations: 27.98 kB / 0.7322 GB, free: 7.047 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.903e-05/0.5861, allocations: 45.69 kB / 0.7322 GB, free: 6.996 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.933e-05/0.5861, allocations: 27.98 kB / 0.7322 GB, free: 6.969 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5862, allocations: 3.938 kB / 0.7323 GB, free: 6.965 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001834/0.5863, allocations: 89.7 kB / 0.7323 GB, free: 6.871 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.5864, allocations: 4 kB / 0.7323 GB, free: 6.867 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.5864, allocations: 3.953 kB / 0.7323 GB, free: 6.863 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.5864, allocations: 0 / 0.7323 GB, free: 6.863 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.5865, allocations: 16.17 kB / 0.7324 GB, free: 6.848 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.5865, allocations: 4 kB / 0.7324 GB, free: 6.844 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.892e-05/0.5866, allocations: 27.83 kB / 0.7324 GB, free: 6.816 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.655e-06/0.5866, allocations: 0 / 0.7324 GB, free: 6.816 MB / 0.545 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 0.0001029/0.5867, allocations: 113.8 kB / 0.7325 GB, free: 6.695 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.798e-05/0.5868, allocations: 8 kB / 0.7325 GB, free: 6.688 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.452e-05/0.5868, allocations: 12.23 kB / 0.7325 GB, free: 6.672 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.5868, allocations: 7.953 kB / 0.7325 GB, free: 6.664 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.5868, allocations: 3.938 kB / 0.7325 GB, free: 6.66 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.5868, allocations: 0 / 0.7325 GB, free: 6.66 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001937/0.587, allocations: 193.5 kB / 0.7327 GB, free: 6.422 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.5871, allocations: 3.938 kB / 0.7327 GB, free: 6.418 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.584e-05/0.5871, allocations: 12 kB / 0.7327 GB, free: 6.406 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.5871, allocations: 0 / 0.7327 GB, free: 6.406 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.5872, allocations: 3.984 kB / 0.7327 GB, free: 6.402 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.5872, allocations: 0 / 0.7327 GB, free: 6.402 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5872, allocations: 3.953 kB / 0.7327 GB, free: 6.398 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002332/0.5874, allocations: 183.5 kB / 0.7329 GB, free: 6.203 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-05/0.5875, allocations: 81.02 kB / 0.733 GB, free: 6.105 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.5875, allocations: 8 kB / 0.733 GB, free: 6.098 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.5876, allocations: 11.98 kB / 0.733 GB, free: 6.086 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.632e-05/0.5877, allocations: 15.94 kB / 0.733 GB, free: 6.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.5877, allocations: 4 kB / 0.733 GB, free: 6.066 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.174e-05/0.5877, allocations: 99.27 kB / 0.7331 GB, free: 5.969 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.954e-06/0.5878, allocations: 0 / 0.7331 GB, free: 5.969 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002175/0.588, allocations: 15.94 kB / 0.7331 GB, free: 5.953 MB / 0.545 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.0001261/0.5881, allocations: 103.2 kB / 0.7332 GB, free: 5.844 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002041/0.5883, allocations: 63.97 kB / 0.7333 GB, free: 5.781 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.5883, allocations: 0 / 0.7333 GB, free: 5.781 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.981e-05/0.5884, allocations: 27.98 kB / 0.7333 GB, free: 5.754 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002699/0.5887, allocations: 4 kB / 0.7333 GB, free: 5.75 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004304/0.5891, allocations: 206.4 kB / 0.7335 GB, free: 5.523 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004287/0.5896, allocations: 0.6887 MB / 0.7342 GB, free: 4.809 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.154e-05/0.5896, allocations: 12.11 kB / 0.7342 GB, free: 4.797 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.435e-05/0.5897, allocations: 15.44 kB / 0.7342 GB, free: 4.781 MB / 0.545 GB Notification: Performance of SimCode: time 2.41e-07/0.5897, allocations: 0 / 0.7342 GB, free: 4.781 MB / 0.545 GB Notification: Performance of Templates: time 0.002893/0.5926, allocations: 0.7211 MB / 0.7349 GB, free: 4.098 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: