Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.659/1.659, allocations: 292.6 MB / 307.6 MB, free: 5.227 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001214/0.001215, allocations: 189 kB / 377.1 MB, free: 1.523 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.858/1.858, allocations: 205.4 MB / 0.6367 GB, free: 8.543 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001029/0.001029, allocations: 90.2 kB / 0.751 GB, free: 63.07 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003577, allocations: 8 kB / 0.8748 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3195, allocations: 116.3 MB / 0.9884 GB, free: 6.738 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9657/1.285, allocations: 140.4 MB / 1.126 GB, free: 34.49 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/1.286, allocations: 95.08 kB / 1.126 GB, free: 34.42 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.004117/1.29, allocations: 1.506 MB / 1.127 GB, free: 33.27 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.887e-06/1.29, allocations: 0 / 1.127 GB, free: 33.27 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 8.135e-06/1.29, allocations: 1.641 kB / 1.127 GB, free: 33.27 MB / 0.7292 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.000469/1.29, allocations: 390.4 kB / 1.127 GB, free: 32.86 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/1.29, allocations: 12.02 kB / 1.127 GB, free: 32.84 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.512e-05/1.29, allocations: 10.48 kB / 1.127 GB, free: 32.84 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/1.291, allocations: 178.9 kB / 1.128 GB, free: 32.62 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/1.291, allocations: 0.5 kB / 1.128 GB, free: 32.62 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.053e-05/1.291, allocations: 7.438 kB / 1.128 GB, free: 32.62 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/1.291, allocations: 101.9 kB / 1.128 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/1.291, allocations: 0.9375 kB / 1.128 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/1.291, allocations: 0 / 1.128 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.912e-06/1.291, allocations: 0 / 1.128 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001504/1.291, allocations: 58.31 kB / 1.128 GB, free: 32.47 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004774/1.292, allocations: 334.5 kB / 1.128 GB, free: 32.13 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001297/1.292, allocations: 54.81 kB / 1.128 GB, free: 32.07 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/1.292, allocations: 96 / 1.128 GB, free: 32.07 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/1.292, allocations: 34.5 kB / 1.128 GB, free: 32.03 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=4): time 8.02e-07/1.292, allocations: 0 / 1.128 GB, free: 32.03 MB / 0.7292 GB Notification: Performance of matching and sorting (n=4): time 0.0003355/1.292, allocations: 113.2 kB / 1.128 GB, free: 31.93 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/1.292, allocations: 88.62 kB / 1.128 GB, free: 31.83 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.879e-05/1.292, allocations: 114.9 kB / 1.129 GB, free: 31.71 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/1.292, allocations: 31.45 kB / 1.129 GB, free: 31.68 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.011e-05/1.292, allocations: 99.47 kB / 1.129 GB, free: 31.58 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.169e-05/1.292, allocations: 19.73 kB / 1.129 GB, free: 31.56 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-06/1.292, allocations: 0 / 1.129 GB, free: 31.56 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.795e-05/1.292, allocations: 318.9 kB / 1.129 GB, free: 31.24 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.322e-05/1.293, allocations: 31.38 kB / 1.129 GB, free: 31.21 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.515e-05/1.293, allocations: 48.73 kB / 1.129 GB, free: 31.17 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.467e-05/1.293, allocations: 24.2 kB / 1.129 GB, free: 31.15 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/1.293, allocations: 4.031 kB / 1.129 GB, free: 31.14 MB / 0.7292 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001747/1.293, allocations: 96.34 kB / 1.129 GB, free: 31.05 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/1.293, allocations: 5.031 kB / 1.129 GB, free: 31.05 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/1.293, allocations: 0 / 1.129 GB, free: 31.05 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/1.293, allocations: 4.5 kB / 1.129 GB, free: 31.05 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/1.293, allocations: 15.56 kB / 1.129 GB, free: 31.04 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/1.293, allocations: 3.953 kB / 1.129 GB, free: 31.03 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.665e-05/1.293, allocations: 15.52 kB / 1.129 GB, free: 31.02 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/1.293, allocations: 2.922 kB / 1.129 GB, free: 31.02 MB / 0.7292 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 8.117e-05/1.293, allocations: 117.8 kB / 1.129 GB, free: 30.89 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/1.293, allocations: 8.469 kB / 1.129 GB, free: 30.89 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.662e-05/1.293, allocations: 8.25 kB / 1.129 GB, free: 30.88 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/1.293, allocations: 8 kB / 1.129 GB, free: 30.87 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/1.293, allocations: 1.062 kB / 1.129 GB, free: 30.87 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/1.293, allocations: 8.453 kB / 1.129 GB, free: 30.87 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001512/1.294, allocations: 183.5 kB / 1.13 GB, free: 30.65 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/1.294, allocations: 4 kB / 1.13 GB, free: 30.65 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.923e-05/1.294, allocations: 11.92 kB / 1.13 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/1.294, allocations: 0 / 1.13 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/1.294, allocations: 0.5625 kB / 1.13 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/1.294, allocations: 0.5 kB / 1.13 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/1.294, allocations: 4 kB / 1.13 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001984/1.294, allocations: 184.9 kB / 1.13 GB, free: 30.45 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.788e-05/1.294, allocations: 81.02 kB / 1.13 GB, free: 30.36 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/1.294, allocations: 10.06 kB / 1.13 GB, free: 30.35 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/1.294, allocations: 16.31 kB / 1.13 GB, free: 30.34 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/1.294, allocations: 14.84 kB / 1.13 GB, free: 30.33 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/1.294, allocations: 4 kB / 1.13 GB, free: 30.32 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.533e-05/1.294, allocations: 95.59 kB / 1.13 GB, free: 30.23 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/1.294, allocations: 3.609 kB / 1.13 GB, free: 30.23 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002076/1.294, allocations: 16 kB / 1.13 GB, free: 30.22 MB / 0.7292 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.0001144/1.295, allocations: 102.8 kB / 1.13 GB, free: 30.11 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002045/1.295, allocations: 59.17 kB / 1.13 GB, free: 30.06 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/1.295, allocations: 0 / 1.13 GB, free: 30.06 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 8.239e-05/1.295, allocations: 39.67 kB / 1.13 GB, free: 30.03 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/1.295, allocations: 9.344 kB / 1.13 GB, free: 30.02 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004154/1.295, allocations: 199.7 kB / 1.13 GB, free: 29.83 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001875/1.296, allocations: 0.6999 MB / 1.131 GB, free: 29.11 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.762e-05/1.296, allocations: 8.5 kB / 1.131 GB, free: 29.11 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.395e-05/1.296, allocations: 11.44 kB / 1.131 GB, free: 29.1 MB / 0.7292 GB Notification: Performance of SimCode: time 2.11e-07/1.296, allocations: 0 / 1.131 GB, free: 29.1 MB / 0.7292 GB Notification: Performance of Templates: time 0.003041/1.299, allocations: 0.7153 MB / 1.132 GB, free: 28.7 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)