Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_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_1.6_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.001127/0.001128, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 196.5 kB / 16.53 MB, free: 6.664 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.4/1.4, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.796/2.796, allocations: 472.6 MB / 0.7451 GB, free: 4.746 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 64.06 kB / 0.912 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3298, allocations: 159.9 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003566/0.3334, allocations: 2.009 MB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.3347, allocations: 0.6896 MB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.3348, allocations: 7.938 kB / 1.071 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.335, allocations: 43.53 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.667e-05/0.3351, allocations: 39.59 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000449/0.3355, allocations: 151.8 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004157/0.336, allocations: 403.3 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003424/0.3363, allocations: 251.8 kB / 1.072 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.3365, allocations: 135.6 kB / 1.072 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.3367, allocations: 147.4 kB / 1.072 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.767e-05/0.3367, allocations: 40 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.3368, allocations: 48 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.162e-05/0.3369, allocations: 83.75 kB / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.3371, allocations: 155.2 kB / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003885/0.3375, allocations: 415 kB / 1.073 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3375, allocations: 0 / 1.073 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3375, allocations: 4 kB / 1.073 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.3375, allocations: 0 / 1.073 GB, free: 5.875 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.0009221/0.3384, allocations: 0.6028 MB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.3385, allocations: 12.03 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.303e-05/0.3386, allocations: 36.5 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003008/0.3389, allocations: 263.9 kB / 1.074 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.939e-05/0.3389, allocations: 33.02 kB / 1.074 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.237e-05/0.339, allocations: 32.38 kB / 1.074 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006233/0.3396, allocations: 333.2 kB / 1.074 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3396, allocations: 4 kB / 1.074 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.869e-05/0.3397, allocations: 15.98 kB / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.3397, allocations: 8 kB / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000555/0.3403, allocations: 250 kB / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.3417, allocations: 0.9627 MB / 1.075 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006309/0.3424, allocations: 270.8 kB / 1.075 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.3426, allocations: 121.3 kB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.3427, allocations: 4 kB / 1.075 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004599/0.3431, allocations: 179.8 kB / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=32): time 4.087e-06/0.3431, allocations: 0 / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=32): time 0.0008027/0.3439, allocations: 357.3 kB / 1.076 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.344, allocations: 63.34 kB / 1.076 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.3442, allocations: 207.2 kB / 1.076 GB, free: 1.953 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.05e-05/0.3442, allocations: 37.7 kB / 1.076 GB, free: 1.91 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.541e-05/0.3443, allocations: 156.6 kB / 1.076 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.324e-05/0.3444, allocations: 78.84 kB / 1.077 GB, free: 1.676 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.3445, allocations: 90.11 kB / 1.077 GB, free: 1.582 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.3446, allocations: 342.8 kB / 1.077 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.3449, allocations: 104.8 kB / 1.077 GB, free: 1.137 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/0.3452, allocations: 165.4 kB / 1.077 GB, free: 0.9531 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004525/0.3456, allocations: 258.6 kB / 1.077 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3456, allocations: 0 / 1.077 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006534/0.3463, allocations: 374.8 kB / 1.078 GB, free: 304 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.31e-05/0.3463, allocations: 29.7 kB / 1.078 GB, free: 268 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.3464, allocations: 4 kB / 1.078 GB, free: 264 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.3464, allocations: 0 / 1.078 GB, free: 264 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.3466, allocations: 47.84 kB / 1.078 GB, free: 216 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.3466, allocations: 4 kB / 1.078 GB, free: 212 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/0.3469, allocations: 63.78 kB / 1.078 GB, free: 148 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/0.3469, allocations: 12 kB / 1.078 GB, free: 136 kB / 0.8262 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.localCondition,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.localCondition,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.0002024/0.3471, allocations: 181.7 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.475e-05/0.3472, allocations: 19.72 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006121/0.3478, allocations: 300.3 kB / 1.078 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.3478, allocations: 4 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.3478, allocations: 0 / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3478, allocations: 3.984 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.3489, allocations: 0.7441 MB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3489, allocations: 4 kB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.349, allocations: 35.91 kB / 1.079 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.349, allocations: 4 kB / 1.079 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.3491, allocations: 4 kB / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.3491, allocations: 11.94 kB / 1.079 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3491, allocations: 0 / 1.079 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005777/0.3497, allocations: 371.1 kB / 1.08 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.914e-05/0.3497, allocations: 96.77 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.063e-05/0.3498, allocations: 8 kB / 1.08 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.35, allocations: 39.83 kB / 1.08 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.3501, allocations: 35.95 kB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.231e-05/0.3502, allocations: 12 kB / 1.08 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.331e-05/0.3503, allocations: 139.7 kB / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.3503, allocations: 0 / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003357/0.3506, allocations: 63.84 kB / 1.08 GB, free: 13.98 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.active,wseCon.off.active,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.localActive,wseCon.off.newActive,wseCon.off.oldActive,wseCon.T1.localCondition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.localActive,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.localCondition,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.0001966/0.3508, allocations: 129.4 kB / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007404/0.3516, allocations: 343.2 kB / 1.08 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3516, allocations: 8.125 kB / 1.08 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002685/0.3519, allocations: 139.8 kB / 1.081 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.3522, allocations: 32.91 kB / 1.081 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008348/0.3531, allocations: 470.4 kB / 1.081 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.3534, allocations: 0.7642 MB / 1.082 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001072/0.3535, allocations: 26.28 kB / 1.082 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.721e-05/0.3536, allocations: 27.44 kB / 1.082 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of SimCode: time 2.01e-07/0.3536, allocations: 0 / 1.082 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of Templates: time 0.00669/0.3603, allocations: 3.12 MB / 1.085 GB, free: 8.891 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)