Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.0.0 (/home/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_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.733/1.733, allocations: 297.8 MB / 313.7 MB, free: 108 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 178.8 kB / 384.6 MB, free: 10.85 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.656/1.656, allocations: 223.2 MB / 0.6626 GB, free: 4.352 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008642/0.0008641, allocations: 94.94 kB / 0.7808 GB, free: 43.43 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004321/0.0004323, allocations: 15.98 kB / 0.9088 GB, free: 0.6875 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8053/0.8058, allocations: 120.3 MB / 1.026 GB, free: 56.21 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2032/1.009, allocations: 142.6 MB / 1.166 GB, free: 15.61 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/1.009, allocations: 99.92 kB / 1.166 GB, free: 15.52 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.004776/1.014, allocations: 1.551 MB / 1.167 GB, free: 14 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.547e-06/1.014, allocations: 0 / 1.167 GB, free: 14 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.416e-05/1.014, allocations: 0 / 1.167 GB, free: 14 MB / 0.7448 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.0005181/1.015, allocations: 395.2 kB / 1.168 GB, free: 13.57 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/1.015, allocations: 8.031 kB / 1.168 GB, free: 13.56 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.229e-05/1.015, allocations: 8.844 kB / 1.168 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/1.015, allocations: 176.2 kB / 1.168 GB, free: 13.34 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/1.015, allocations: 384 / 1.168 GB, free: 13.34 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.77e-05/1.015, allocations: 8.375 kB / 1.168 GB, free: 13.33 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002339/1.015, allocations: 101 kB / 1.168 GB, free: 13.22 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/1.015, allocations: 192 / 1.168 GB, free: 13.22 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/1.015, allocations: 3.938 kB / 1.168 GB, free: 13.22 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/1.015, allocations: 4 kB / 1.168 GB, free: 13.21 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001633/1.016, allocations: 51.97 kB / 1.168 GB, free: 13.16 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005745/1.016, allocations: 332.6 kB / 1.168 GB, free: 12.79 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001438/1.016, allocations: 54.5 kB / 1.168 GB, free: 12.73 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.93e-05/1.016, allocations: 37.59 kB / 1.168 GB, free: 12.69 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/1.016, allocations: 3.938 kB / 1.168 GB, free: 12.68 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/1.017, allocations: 34.56 kB / 1.168 GB, free: 12.64 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=4): time 1.493e-06/1.017, allocations: 3.938 kB / 1.168 GB, free: 12.64 MB / 0.7448 GB Notification: Performance of matching and sorting (n=4): time 0.0003694/1.017, allocations: 119 kB / 1.168 GB, free: 12.52 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/1.017, allocations: 77.11 kB / 1.169 GB, free: 12.42 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/1.017, allocations: 131.7 kB / 1.169 GB, free: 12.28 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/1.017, allocations: 25.7 kB / 1.169 GB, free: 12.25 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.508e-05/1.017, allocations: 104 kB / 1.169 GB, free: 12.14 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.505e-05/1.017, allocations: 15.89 kB / 1.169 GB, free: 12.13 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-06/1.017, allocations: 4 kB / 1.169 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001172/1.017, allocations: 322.8 kB / 1.169 GB, free: 11.8 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.177e-05/1.017, allocations: 23.98 kB / 1.169 GB, free: 11.78 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.465e-05/1.018, allocations: 49.64 kB / 1.169 GB, free: 11.72 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/1.018, allocations: 60.86 kB / 1.169 GB, free: 11.66 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/1.018, allocations: 0 / 1.169 GB, free: 11.66 MB / 0.7448 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002155/1.018, allocations: 89.58 kB / 1.169 GB, free: 11.57 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/1.018, allocations: 8 kB / 1.169 GB, free: 11.56 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/1.018, allocations: 0 / 1.169 GB, free: 11.56 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/1.018, allocations: 0 / 1.169 GB, free: 11.56 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/1.018, allocations: 15.98 kB / 1.169 GB, free: 11.54 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/1.018, allocations: 7.922 kB / 1.169 GB, free: 11.54 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.46e-05/1.018, allocations: 15.98 kB / 1.169 GB, free: 11.52 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/1.018, allocations: 0 / 1.169 GB, free: 11.52 MB / 0.7448 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.0001069/1.018, allocations: 125.8 kB / 1.17 GB, free: 11.39 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.211e-05/1.018, allocations: 7.906 kB / 1.17 GB, free: 11.38 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.919e-05/1.018, allocations: 12.23 kB / 1.17 GB, free: 11.36 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/1.018, allocations: 4 kB / 1.17 GB, free: 11.36 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/1.018, allocations: 0 / 1.17 GB, free: 11.36 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/1.018, allocations: 0 / 1.17 GB, free: 11.36 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/1.019, allocations: 185.6 kB / 1.17 GB, free: 11.12 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/1.019, allocations: 0.6094 kB / 1.17 GB, free: 11.12 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.948e-05/1.019, allocations: 16 kB / 1.17 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/1.019, allocations: 3.984 kB / 1.17 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/1.019, allocations: 0 / 1.17 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/1.019, allocations: 3.938 kB / 1.17 GB, free: 11.1 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/1.019, allocations: 0 / 1.17 GB, free: 11.1 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002657/1.019, allocations: 196 kB / 1.17 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.85e-05/1.019, allocations: 85.02 kB / 1.17 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.412e-05/1.019, allocations: 4.188 kB / 1.17 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/1.019, allocations: 15.98 kB / 1.17 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.482e-05/1.019, allocations: 7.984 kB / 1.17 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-06/1.019, allocations: 4 kB / 1.17 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.104e-05/1.019, allocations: 105.1 kB / 1.17 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.2e-07/1.019, allocations: 4 kB / 1.17 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002249/1.02, allocations: 15.94 kB / 1.17 GB, free: 10.64 MB / 0.7448 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.0001406/1.02, allocations: 111 kB / 1.17 GB, free: 10.53 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002243/1.02, allocations: 59.97 kB / 1.17 GB, free: 10.47 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/1.02, allocations: 4 kB / 1.17 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.959e-05/1.02, allocations: 35.91 kB / 1.17 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/1.02, allocations: 6.703 kB / 1.17 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004433/1.021, allocations: 195.1 kB / 1.171 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/1.021, allocations: 0.6887 MB / 1.171 GB, free: 9.496 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 5.188e-05/1.021, allocations: 4 kB / 1.171 GB, free: 9.492 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.938e-05/1.021, allocations: 11.44 kB / 1.171 GB, free: 9.48 MB / 0.7448 GB Notification: Performance of SimCode: time 2e-07/1.021, allocations: 0 / 1.171 GB, free: 9.48 MB / 0.7448 GB Notification: Performance of Templates: time 0.00317/1.025, allocations: 0.7248 MB / 1.172 GB, free: 8.797 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)