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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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.1-maint.8.1.x/package.mo): time 1.649/1.649, allocations: 293 MB / 309 MB, free: 4.754 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.0009448/0.0009449, allocations: 179.4 kB / 378.7 MB, free: 0.9805 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.791/1.791, allocations: 205.4 MB / 0.6383 GB, free: 9.148 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.0008193/0.0008197, allocations: 86.8 kB / 0.7527 GB, free: 62.32 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004176/0.0004178, allocations: 16 kB / 0.8768 GB, free: 10.53 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2836, allocations: 116.4 MB / 0.9905 GB, free: 5.988 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7616/1.045, allocations: 140.5 MB / 1.128 GB, free: 33.65 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/1.045, allocations: 93.25 kB / 1.128 GB, free: 33.57 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003899/1.049, allocations: 1.516 MB / 1.129 GB, free: 32.42 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.784e-06/1.049, allocations: 0 / 1.129 GB, free: 32.42 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 8.646e-06/1.049, allocations: 0 / 1.129 GB, free: 32.42 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.0003983/1.05, allocations: 395.1 kB / 1.13 GB, free: 32 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/1.05, allocations: 8.031 kB / 1.13 GB, free: 31.99 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.023e-05/1.05, allocations: 9.469 kB / 1.13 GB, free: 31.98 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/1.05, allocations: 180.3 kB / 1.13 GB, free: 31.77 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/1.05, allocations: 384 / 1.13 GB, free: 31.77 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/1.05, allocations: 4.375 kB / 1.13 GB, free: 31.77 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002104/1.05, allocations: 102.8 kB / 1.13 GB, free: 31.67 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/1.05, allocations: 192 / 1.13 GB, free: 31.67 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/1.05, allocations: 3.938 kB / 1.13 GB, free: 31.67 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/1.05, allocations: 1.219 kB / 1.13 GB, free: 31.67 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/1.051, allocations: 55.64 kB / 1.13 GB, free: 31.62 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004704/1.051, allocations: 338.6 kB / 1.13 GB, free: 31.27 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/1.051, allocations: 54.05 kB / 1.13 GB, free: 31.21 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.6e-05/1.051, allocations: 32.33 kB / 1.13 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/1.051, allocations: 0 / 1.13 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/1.051, allocations: 38.12 kB / 1.13 GB, free: 31.14 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=4): time 1.133e-06/1.051, allocations: 3.938 kB / 1.13 GB, free: 31.14 MB / 0.7292 GB Notification: Performance of matching and sorting (n=4): time 0.0003104/1.052, allocations: 115.9 kB / 1.131 GB, free: 31.03 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/1.052, allocations: 77.11 kB / 1.131 GB, free: 30.94 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.069e-05/1.052, allocations: 131.1 kB / 1.131 GB, free: 30.8 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/1.052, allocations: 29.31 kB / 1.131 GB, free: 30.77 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.483e-05/1.052, allocations: 100 kB / 1.131 GB, free: 30.68 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/1.052, allocations: 15.84 kB / 1.131 GB, free: 30.66 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-06/1.052, allocations: 4 kB / 1.131 GB, free: 30.66 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.045e-05/1.052, allocations: 318.1 kB / 1.131 GB, free: 30.34 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.232e-05/1.052, allocations: 27.47 kB / 1.131 GB, free: 30.32 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.388e-05/1.052, allocations: 45.03 kB / 1.131 GB, free: 30.27 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/1.052, allocations: 64.44 kB / 1.131 GB, free: 30.21 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/1.052, allocations: 0.5625 kB / 1.131 GB, free: 30.21 MB / 0.7292 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000171/1.052, allocations: 95.78 kB / 1.131 GB, free: 30.12 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/1.052, allocations: 4 kB / 1.131 GB, free: 30.12 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/1.052, allocations: 0.625 kB / 1.131 GB, free: 30.12 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/1.052, allocations: 0 / 1.131 GB, free: 30.12 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/1.053, allocations: 16.45 kB / 1.131 GB, free: 30.11 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/1.053, allocations: 0.5625 kB / 1.131 GB, free: 30.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.319e-05/1.053, allocations: 11.33 kB / 1.131 GB, free: 30.1 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/1.053, allocations: 9.062 kB / 1.131 GB, free: 30.09 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 7.066e-05/1.053, allocations: 125.7 kB / 1.132 GB, free: 29.96 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.693e-05/1.053, allocations: 7.906 kB / 1.132 GB, free: 29.95 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.258e-05/1.053, allocations: 15.67 kB / 1.132 GB, free: 29.94 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/1.053, allocations: 1.031 kB / 1.132 GB, free: 29.94 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/1.053, allocations: 4 kB / 1.132 GB, free: 29.94 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/1.053, allocations: 0 / 1.132 GB, free: 29.94 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/1.053, allocations: 183.4 kB / 1.132 GB, free: 29.72 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/1.053, allocations: 0.75 kB / 1.132 GB, free: 29.72 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.583e-05/1.053, allocations: 19.52 kB / 1.132 GB, free: 29.71 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/1.053, allocations: 1.219 kB / 1.132 GB, free: 29.71 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/1.053, allocations: 3.422 kB / 1.132 GB, free: 29.71 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/1.053, allocations: 0 / 1.132 GB, free: 29.71 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/1.053, allocations: 0.5625 kB / 1.132 GB, free: 29.71 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001969/1.053, allocations: 189.6 kB / 1.132 GB, free: 29.52 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.809e-05/1.053, allocations: 81.58 kB / 1.132 GB, free: 29.42 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/1.053, allocations: 11.42 kB / 1.132 GB, free: 29.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.69e-05/1.054, allocations: 16.12 kB / 1.132 GB, free: 29.4 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.308e-05/1.054, allocations: 8.156 kB / 1.132 GB, free: 29.39 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/1.054, allocations: 4 kB / 1.132 GB, free: 29.39 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 4.334e-05/1.054, allocations: 108.4 kB / 1.132 GB, free: 29.29 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1e-07/1.054, allocations: 0.5625 kB / 1.132 GB, free: 29.29 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002052/1.054, allocations: 8 kB / 1.132 GB, free: 29.29 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.0001034/1.054, allocations: 103.7 kB / 1.132 GB, free: 29.17 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001977/1.054, allocations: 66.58 kB / 1.132 GB, free: 29.12 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.054, allocations: 8 kB / 1.132 GB, free: 29.11 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 7.496e-05/1.054, allocations: 32.02 kB / 1.132 GB, free: 29.08 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/1.055, allocations: 4.938 kB / 1.132 GB, free: 29.08 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003574/1.055, allocations: 196.7 kB / 1.133 GB, free: 28.89 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/1.055, allocations: 0.6875 MB / 1.133 GB, free: 28.18 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 4.681e-05/1.055, allocations: 8.031 kB / 1.133 GB, free: 28.18 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.299e-05/1.055, allocations: 11.44 kB / 1.133 GB, free: 28.17 MB / 0.7292 GB Notification: Performance of SimCode: time 2e-07/1.055, allocations: 0 / 1.133 GB, free: 28.17 MB / 0.7292 GB Notification: Performance of Templates: time 0.002632/1.058, allocations: 0.7265 MB / 1.134 GB, free: 27.77 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)