Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007693/0.0007692, allocations: 90.52 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006991/0.006991, allocations: 170.2 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 223.2 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.823/2.823, allocations: 473.4 MB / 0.7469 GB, free: 6.062 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003862/0.0003862, allocations: 10.56 kB / 0.9158 GB, free: 33.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3525, allocations: 162.2 MB / 1.074 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002196/0.3548, allocations: 1.735 MB / 1.076 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00117/0.356, allocations: 0.7013 MB / 1.077 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.3561, allocations: 4 kB / 1.077 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001181/0.3562, allocations: 23.73 kB / 1.077 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.777e-05/0.3563, allocations: 27.78 kB / 1.077 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003888/0.3567, allocations: 143.9 kB / 1.077 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004017/0.3571, allocations: 367.3 kB / 1.077 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003233/0.3575, allocations: 216.9 kB / 1.077 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.3576, allocations: 95.58 kB / 1.077 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001591/0.3578, allocations: 115.4 kB / 1.077 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.361e-05/0.3578, allocations: 12 kB / 1.077 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.491e-05/0.3579, allocations: 20 kB / 1.077 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.478e-05/0.358, allocations: 55.75 kB / 1.078 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.3581, allocations: 149 kB / 1.078 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003472/0.3585, allocations: 371 kB / 1.078 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.3585, allocations: 0 / 1.078 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.134e-06/0.3585, allocations: 3.938 kB / 1.078 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.253e-06/0.3585, allocations: 4 kB / 1.078 GB, free: 3.48 MB / 0.8262 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.0008749/0.3594, allocations: 0.5406 MB / 1.079 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.3594, allocations: 12.03 kB / 1.079 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.72e-05/0.3595, allocations: 32.56 kB / 1.079 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.3598, allocations: 278.6 kB / 1.079 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.155e-05/0.3599, allocations: 29.03 kB / 1.079 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.202e-05/0.3599, allocations: 36.36 kB / 1.079 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000654/0.3606, allocations: 337.2 kB / 1.079 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.3606, allocations: 4 kB / 1.079 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.3607, allocations: 8 kB / 1.079 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.3607, allocations: 12 kB / 1.079 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005938/0.3613, allocations: 262 kB / 1.08 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/0.3627, allocations: 0.9591 MB / 1.08 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006426/0.3634, allocations: 277 kB / 1.081 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002673/0.3637, allocations: 136.7 kB / 1.081 GB, free: 432 kB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.3637, allocations: 4 kB / 1.081 GB, free: 428 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004097/0.3641, allocations: 183.3 kB / 1.081 GB, free: 232 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=32): time 1.873e-06/0.3641, allocations: 0 / 1.081 GB, free: 232 kB / 0.8262 GB Notification: Performance of matching and sorting (n=32): time 0.0008757/0.365, allocations: 374 kB / 1.081 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.3651, allocations: 59.41 kB / 1.081 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.3653, allocations: 207.1 kB / 1.082 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.315e-05/0.3653, allocations: 45.7 kB / 1.082 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.3654, allocations: 144.6 kB / 1.082 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.77e-05/0.3655, allocations: 90.83 kB / 1.082 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.643e-05/0.3656, allocations: 57.69 kB / 1.082 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.3657, allocations: 342.8 kB / 1.082 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.366, allocations: 108.8 kB / 1.082 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002939/0.3663, allocations: 173.5 kB / 1.083 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000484/0.3668, allocations: 270.6 kB / 1.083 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.3668, allocations: 4 kB / 1.083 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006886/0.3675, allocations: 374.9 kB / 1.083 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.707e-05/0.3675, allocations: 41.62 kB / 1.083 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.3676, allocations: 0 / 1.083 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.3676, allocations: 4 kB / 1.083 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.3678, allocations: 47.91 kB / 1.083 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.3678, allocations: 0 / 1.083 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/0.3681, allocations: 63.69 kB / 1.083 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.743e-05/0.3681, allocations: 12 kB / 1.083 GB, free: 13.73 MB / 0.8419 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,wseCon.stateGraphRoot.activeSteps,wseCon.T2.t_start,$PRE.wseCon.T2.t_start,wseCon.T2.fire,wseCon.T2.enableFire,wseCon.T2.condition,wseCon.on.oldActive,$PRE.wseCon.on.oldActive,wseCon.on.newActive,$PRE.wseCon.on.newActive,wseCon.on.localActive,$PRE.wseCon.on.localActive,wseCon.on.active,wseCon.T1.t_start,$PRE.wseCon.T1.t_start,wseCon.T1.fire,wseCon.T1.enableFire,wseCon.T1.condition,wseCon.off.active,wseCon.off.oldActive,$PRE.wseCon.off.oldActive,wseCon.off.newActive,$PRE.wseCon.off.newActive,wseCon.off.localActive,$PRE.wseCon.off.localActive,wseCHWST.count,$PRE.wseCHWST.count,wseCHWST.T_start,$PRE.wseCHWST.T_start,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001867/0.3683, allocations: 177.7 kB / 1.084 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.24e-05/0.3683, allocations: 23.81 kB / 1.084 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000651/0.369, allocations: 312.2 kB / 1.084 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.369, allocations: 4 kB / 1.084 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.369, allocations: 0 / 1.084 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.369, allocations: 0 / 1.084 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.3702, allocations: 0.7675 MB / 1.085 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3702, allocations: 0 / 1.085 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001357/0.3703, allocations: 35.92 kB / 1.085 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.3703, allocations: 3.984 kB / 1.085 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.197e-05/0.3704, allocations: 8 kB / 1.085 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.3704, allocations: 7.875 kB / 1.085 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3704, allocations: 0 / 1.085 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005942/0.371, allocations: 383.1 kB / 1.085 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.724e-05/0.371, allocations: 96.86 kB / 1.085 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.75e-05/0.3711, allocations: 12 kB / 1.085 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.3713, allocations: 47.83 kB / 1.085 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.3715, allocations: 39.95 kB / 1.085 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.3715, allocations: 4 kB / 1.085 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001122/0.3716, allocations: 135.7 kB / 1.085 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2e-07/0.3716, allocations: 0 / 1.085 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003375/0.372, allocations: 75.75 kB / 1.085 GB, free: 11.52 MB / 0.8419 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.condition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.active,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.fire,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002099/0.3722, allocations: 121.4 kB / 1.086 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006757/0.3729, allocations: 350.9 kB / 1.086 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3729, allocations: 0 / 1.086 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002973/0.3732, allocations: 144.1 kB / 1.086 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.3736, allocations: 38.55 kB / 1.086 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009261/0.3745, allocations: 0.5389 MB / 1.087 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/0.3749, allocations: 0.7642 MB / 1.087 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001132/0.375, allocations: 26.28 kB / 1.087 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.053e-05/0.3751, allocations: 23.44 kB / 1.087 GB, free: 9.457 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.3751, allocations: 4 kB / 1.087 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of Templates: time 0.006558/0.3817, allocations: 2.821 MB / 1.09 GB, free: 6.652 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)