Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.606/1.606, allocations: 289.7 MB / 302.3 MB, free: 2.199 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.001113/0.001113, allocations: 179.5 kB / 371.6 MB, free: 3.406 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.683/1.683, allocations: 205.1 MB / 0.6309 GB, free: 11.77 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.0008947/0.0008946, allocations: 89.78 kB / 0.745 GB, free: 54.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.546e-05/3.549e-05, allocations: 4 kB / 0.8662 GB, free: 15.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2907, allocations: 116.3 MB / 0.9798 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9054/1.196, allocations: 142.4 MB / 1.119 GB, free: 42.07 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/1.196, allocations: 95.64 kB / 1.119 GB, free: 42.03 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01112/1.208, allocations: 4.695 MB / 1.124 GB, free: 39.49 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.225e-06/1.208, allocations: 4 kB / 1.124 GB, free: 39.49 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.451e-05/1.208, allocations: 4 kB / 1.124 GB, free: 39.48 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0006779/1.208, allocations: 0.5379 MB / 1.124 GB, free: 38.97 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/1.208, allocations: 8.594 kB / 1.124 GB, free: 38.96 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.59e-05/1.209, allocations: 35.62 kB / 1.124 GB, free: 38.93 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/1.209, allocations: 269.3 kB / 1.124 GB, free: 38.68 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.876e-05/1.209, allocations: 34.62 kB / 1.124 GB, free: 38.66 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.868e-05/1.209, allocations: 34.94 kB / 1.124 GB, free: 38.64 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004748/1.209, allocations: 307.2 kB / 1.125 GB, free: 38.46 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/1.209, allocations: 0.6562 kB / 1.125 GB, free: 38.46 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/1.209, allocations: 11.58 kB / 1.125 GB, free: 38.46 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/1.209, allocations: 8 kB / 1.125 GB, free: 38.45 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003457/1.21, allocations: 226.8 kB / 1.125 GB, free: 38.32 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/1.211, allocations: 0.942 MB / 1.126 GB, free: 37.72 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003898/1.211, allocations: 232 kB / 1.126 GB, free: 37.57 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/1.212, allocations: 105.8 kB / 1.126 GB, free: 37.5 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/1.212, allocations: 4.656 kB / 1.126 GB, free: 37.5 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002593/1.212, allocations: 164.3 kB / 1.126 GB, free: 37.39 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=32): time 4.018e-06/1.212, allocations: 1.172 kB / 1.126 GB, free: 37.39 MB / 0.7448 GB Notification: Performance of matching and sorting (n=32): time 0.0003854/1.212, allocations: 234.4 kB / 1.127 GB, free: 37.21 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/1.212, allocations: 66.77 kB / 1.127 GB, free: 37.14 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/1.213, allocations: 180.5 kB / 1.127 GB, free: 36.99 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/1.213, allocations: 40.48 kB / 1.127 GB, free: 36.95 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.376e-05/1.213, allocations: 160.5 kB / 1.127 GB, free: 36.82 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 5.081e-05/1.213, allocations: 79.12 kB / 1.127 GB, free: 36.77 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.525e-05/1.213, allocations: 6.812 kB / 1.127 GB, free: 36.77 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.402e-05/1.213, allocations: 331.9 kB / 1.127 GB, free: 36.45 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/1.213, allocations: 91 kB / 1.127 GB, free: 36.39 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001697/1.213, allocations: 147.8 kB / 1.128 GB, free: 36.29 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/1.213, allocations: 119 kB / 1.128 GB, free: 36.2 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.213, allocations: 0 / 1.128 GB, free: 36.2 MB / 0.7448 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004219/1.214, allocations: 325 kB / 1.128 GB, free: 35.96 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/1.214, allocations: 36.89 kB / 1.128 GB, free: 35.92 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/1.214, allocations: 1.312 kB / 1.128 GB, free: 35.92 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/1.214, allocations: 4.156 kB / 1.128 GB, free: 35.92 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001979/1.214, allocations: 50.47 kB / 1.128 GB, free: 35.88 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/1.214, allocations: 8.797 kB / 1.128 GB, free: 35.87 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/1.214, allocations: 53.86 kB / 1.128 GB, free: 35.84 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.419e-05/1.214, allocations: 15.69 kB / 1.128 GB, free: 35.82 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wseCHWST.T_start,wseCHWST.T_start,$PRE.wseCHWST.count,wseCHWST.count,$PRE.wseCon.off.localActive,wseCon.off.localActive,$PRE.wseCon.off.newActive,wseCon.off.newActive,$PRE.wseCon.off.oldActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.T1.condition,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * 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 9.247e-05/1.214, allocations: 143.4 kB / 1.128 GB, free: 35.7 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.964e-05/1.214, allocations: 27.38 kB / 1.128 GB, free: 35.67 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004094/1.215, allocations: 255.9 kB / 1.129 GB, free: 35.52 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/1.215, allocations: 4 kB / 1.129 GB, free: 35.51 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/1.215, allocations: 0 / 1.129 GB, free: 35.51 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/1.215, allocations: 7.562 kB / 1.129 GB, free: 35.51 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007686/1.216, allocations: 0.7226 MB / 1.129 GB, free: 34.97 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/1.216, allocations: 0 / 1.129 GB, free: 34.97 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/1.216, allocations: 32.16 kB / 1.129 GB, free: 34.94 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/1.216, allocations: 0 / 1.129 GB, free: 34.94 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/1.216, allocations: 19.11 kB / 1.129 GB, free: 34.93 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/1.216, allocations: 4 kB / 1.129 GB, free: 34.93 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.216, allocations: 0 / 1.129 GB, free: 34.93 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003269/1.216, allocations: 325.7 kB / 1.13 GB, free: 34.66 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-05/1.216, allocations: 104.1 kB / 1.13 GB, free: 34.55 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.548e-05/1.216, allocations: 7.688 kB / 1.13 GB, free: 34.55 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/1.217, allocations: 48.83 kB / 1.13 GB, free: 34.52 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/1.217, allocations: 40.59 kB / 1.13 GB, free: 34.5 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/1.217, allocations: 8 kB / 1.13 GB, free: 34.49 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.327e-05/1.217, allocations: 130.4 kB / 1.13 GB, free: 34.39 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.3e-07/1.217, allocations: 0 / 1.13 GB, free: 34.39 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002756/1.217, allocations: 63 kB / 1.13 GB, free: 34.34 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: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.fire,wseCon.T1.t_start,wseCon.T1.condition,wseCon.on.newActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.fire,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001708/1.217, allocations: 132.2 kB / 1.13 GB, free: 34.2 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003882/1.218, allocations: 295 kB / 1.13 GB, free: 33.98 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/1.218, allocations: 3.938 kB / 1.13 GB, free: 33.97 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001572/1.218, allocations: 117.6 kB / 1.131 GB, free: 33.89 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/1.218, allocations: 24.95 kB / 1.131 GB, free: 33.88 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000561/1.219, allocations: 333.7 kB / 1.131 GB, free: 33.62 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/1.219, allocations: 0.7696 MB / 1.132 GB, free: 32.86 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.000108/1.219, allocations: 31.56 kB / 1.132 GB, free: 32.83 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.27e-05/1.219, allocations: 26.91 kB / 1.132 GB, free: 32.81 MB / 0.7448 GB Notification: Performance of SimCode: time 3.4e-07/1.219, allocations: 0 / 1.132 GB, free: 32.81 MB / 0.7448 GB Notification: Performance of Templates: time 0.005523/1.225, allocations: 2.673 MB / 1.134 GB, free: 31.33 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)