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.599/1.599, allocations: 289.9 MB / 297.4 MB, free: 6.391 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.001048/0.001048, allocations: 180.8 kB / 366.7 MB, free: 1.707 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.612/1.612, allocations: 205.2 MB / 0.626 GB, free: 7.199 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.0009007/0.0009008, allocations: 88.61 kB / 0.74 GB, free: 39.58 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.796e-05/1.789e-05, allocations: 0 / 0.8597 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7385/0.7386, allocations: 116.3 MB / 0.9733 GB, free: 76.42 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2049/0.9435, allocations: 141.7 MB / 1.112 GB, free: 8.516 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/0.9439, allocations: 93.69 kB / 1.112 GB, free: 8.426 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01203/0.9559, allocations: 4.635 MB / 1.116 GB, free: 3.82 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.182e-06/0.956, allocations: 3.938 kB / 1.116 GB, free: 3.816 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.543e-05/0.956, allocations: 4 kB / 1.116 GB, free: 3.812 MB / 0.7136 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.0007717/0.9568, allocations: 0.5301 MB / 1.117 GB, free: 3.234 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.9568, allocations: 12.03 kB / 1.117 GB, free: 3.223 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.305e-05/0.9569, allocations: 35.58 kB / 1.117 GB, free: 3.188 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.9572, allocations: 270.6 kB / 1.117 GB, free: 2.883 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.581e-05/0.9573, allocations: 14.81 kB / 1.117 GB, free: 2.871 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.653e-05/0.9573, allocations: 20 kB / 1.117 GB, free: 2.852 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003907/0.9577, allocations: 201.5 kB / 1.117 GB, free: 2.652 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000462/0.9582, allocations: 265 kB / 1.118 GB, free: 2.379 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.9582, allocations: 0 / 1.118 GB, free: 2.379 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.987e-05/0.9583, allocations: 7.938 kB / 1.118 GB, free: 2.371 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.9583, allocations: 11.95 kB / 1.118 GB, free: 2.359 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/0.9596, allocations: 0.8846 MB / 1.118 GB, free: 1.434 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003851/0.96, allocations: 211.2 kB / 1.119 GB, free: 1.219 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.9602, allocations: 97.39 kB / 1.119 GB, free: 1.121 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.9602, allocations: 7.984 kB / 1.119 GB, free: 1.113 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002634/0.9605, allocations: 152.1 kB / 1.119 GB, free: 0.9531 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=32): time 1.663e-06/0.9605, allocations: 0 / 1.119 GB, free: 0.9531 MB / 0.7136 GB Notification: Performance of matching and sorting (n=32): time 0.0003941/0.9609, allocations: 210.5 kB / 1.119 GB, free: 0.7422 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.961, allocations: 55.41 kB / 1.119 GB, free: 0.6758 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.9611, allocations: 167.9 kB / 1.119 GB, free: 0.5 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.598e-05/0.9611, allocations: 33.7 kB / 1.119 GB, free: 472 kB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.9613, allocations: 160.8 kB / 1.12 GB, free: 308 kB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 6.087e-05/0.9613, allocations: 75.05 kB / 1.12 GB, free: 232 kB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.43e-05/0.9613, allocations: 0 / 1.12 GB, free: 232 kB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.9615, allocations: 334.8 kB / 1.12 GB, free: 15.89 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.9616, allocations: 80.88 kB / 1.12 GB, free: 15.81 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.9618, allocations: 144.3 kB / 1.12 GB, free: 15.65 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001345/0.962, allocations: 79.92 kB / 1.12 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.962, allocations: 0 / 1.12 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004286/0.9624, allocations: 265.2 kB / 1.12 GB, free: 15.3 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.95e-05/0.9624, allocations: 33.69 kB / 1.12 GB, free: 15.27 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.9625, allocations: 7.938 kB / 1.12 GB, free: 15.26 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.9625, allocations: 4.156 kB / 1.12 GB, free: 15.25 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000216/0.9627, allocations: 49.59 kB / 1.121 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.9627, allocations: 6.656 kB / 1.121 GB, free: 15.2 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000231/0.963, allocations: 43.75 kB / 1.121 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.963, allocations: 16 kB / 1.121 GB, free: 15.14 MB / 0.7292 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 0.0001213/0.9631, allocations: 141.4 kB / 1.121 GB, free: 15 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.725e-05/0.9632, allocations: 15.81 kB / 1.121 GB, free: 14.98 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004306/0.9636, allocations: 248.4 kB / 1.121 GB, free: 14.74 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.9636, allocations: 4 kB / 1.121 GB, free: 14.74 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.9636, allocations: 0 / 1.121 GB, free: 14.74 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.9637, allocations: 0 / 1.121 GB, free: 14.74 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008042/0.9645, allocations: 0.6394 MB / 1.122 GB, free: 14.05 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.9645, allocations: 0 / 1.122 GB, free: 14.05 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001438/0.9646, allocations: 35.97 kB / 1.122 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.9646, allocations: 0 / 1.122 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.9647, allocations: 3.938 kB / 1.122 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.636e-06/0.9647, allocations: 8 kB / 1.122 GB, free: 14.01 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.9647, allocations: 0 / 1.122 GB, free: 14.01 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000363/0.9651, allocations: 323 kB / 1.122 GB, free: 13.68 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.342e-05/0.9651, allocations: 96.3 kB / 1.122 GB, free: 13.57 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.381e-05/0.9652, allocations: 0 / 1.122 GB, free: 13.57 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.9654, allocations: 39.95 kB / 1.122 GB, free: 13.53 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.9655, allocations: 39.94 kB / 1.122 GB, free: 13.49 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.965e-05/0.9655, allocations: 12 kB / 1.122 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 8.683e-05/0.9656, allocations: 115.9 kB / 1.122 GB, free: 13.36 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9656, allocations: 0 / 1.122 GB, free: 13.36 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000301/0.9659, allocations: 51.94 kB / 1.122 GB, free: 13.31 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: 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.0001906/0.9661, allocations: 121.4 kB / 1.122 GB, free: 13.19 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004152/0.9666, allocations: 283.2 kB / 1.123 GB, free: 12.9 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.9666, allocations: 0 / 1.123 GB, free: 12.9 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.9667, allocations: 120.4 kB / 1.123 GB, free: 12.78 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.967, allocations: 19.98 kB / 1.123 GB, free: 12.76 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005985/0.9676, allocations: 303.1 kB / 1.123 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.9679, allocations: 0.7723 MB / 1.124 GB, free: 11.65 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001088/0.9681, allocations: 24.64 kB / 1.124 GB, free: 11.63 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.612e-05/0.9681, allocations: 27.42 kB / 1.124 GB, free: 11.6 MB / 0.7292 GB Notification: Performance of SimCode: time 2.41e-07/0.9682, allocations: 0 / 1.124 GB, free: 11.6 MB / 0.7292 GB Notification: Performance of Templates: time 0.00568/0.9738, allocations: 2.491 MB / 1.126 GB, free: 9.184 MB / 0.7292 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)