Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008972/0.0008973, allocations: 91.38 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.00529/0.00529, allocations: 171.8 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.246/1.246, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.187/2.187, allocations: 390.9 MB / 0.6664 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.0002891, allocations: 8 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5247/0.525, allocations: 142.4 MB / 0.9552 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.001928/0.527, allocations: 1.733 MB / 0.9569 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001028/0.528, allocations: 0.6951 MB / 0.9575 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.5282, allocations: 5.375 kB / 0.9575 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000108/0.5283, allocations: 29.95 kB / 0.9576 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.073e-05/0.5284, allocations: 27.53 kB / 0.9576 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003483/0.5287, allocations: 140.4 kB / 0.9577 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003129/0.5291, allocations: 370.9 kB / 0.9581 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002702/0.5293, allocations: 206.7 kB / 0.9583 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.5295, allocations: 104.1 kB / 0.9584 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.5296, allocations: 111.8 kB / 0.9585 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.753e-05/0.5296, allocations: 12.84 kB / 0.9585 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.563e-05/0.5297, allocations: 29.11 kB / 0.9585 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.183e-05/0.5298, allocations: 56.12 kB / 0.9586 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.4e-05/0.5299, allocations: 149.3 kB / 0.9587 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002548/0.5301, allocations: 373.4 kB / 0.9591 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.5301, allocations: 0 / 0.9591 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.413e-06/0.5301, allocations: 1.281 kB / 0.9591 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.605e-06/0.5302, allocations: 0 / 0.9591 GB, free: 4.641 MB / 0.7169 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.0006862/0.5308, allocations: 0.545 MB / 0.9596 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.5309, allocations: 9.625 kB / 0.9596 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.143e-05/0.531, allocations: 64.34 kB / 0.9597 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.13e-05/0.531, allocations: 33.06 kB / 0.9597 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002092/0.5312, allocations: 271.3 kB / 0.96 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.5313, allocations: 30.77 kB / 0.96 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.416e-05/0.5313, allocations: 35.75 kB / 0.96 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005544/0.5319, allocations: 343.7 kB / 0.9604 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.5319, allocations: 0 / 0.9604 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.5319, allocations: 14.73 kB / 0.9604 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.532, allocations: 6.875 kB / 0.9604 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005342/0.5325, allocations: 263.9 kB / 0.9606 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.5336, allocations: 0.952 MB / 0.9616 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005811/0.5342, allocations: 277.7 kB / 0.9618 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002357/0.5345, allocations: 135.4 kB / 0.962 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.5345, allocations: 3 kB / 0.962 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003594/0.5349, allocations: 180.3 kB / 0.9621 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=32): time 1.844e-06/0.5349, allocations: 4 kB / 0.9621 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of matching and sorting (n=32): time 0.0007616/0.5357, allocations: 371.1 kB / 0.9625 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.986e-05/0.5357, allocations: 71.94 kB / 0.9626 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.5358, allocations: 194.9 kB / 0.9628 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.5359, allocations: 43.34 kB / 0.9628 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.493e-05/0.536, allocations: 154.2 kB / 0.9629 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.824e-05/0.536, allocations: 78.62 kB / 0.963 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.053e-05/0.5361, allocations: 61.8 kB / 0.9631 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.71e-05/0.5361, allocations: 337.1 kB / 0.9634 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002457/0.5364, allocations: 125 kB / 0.9635 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/0.5367, allocations: 166.4 kB / 0.9637 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004265/0.5371, allocations: 267.7 kB / 0.9639 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.5371, allocations: 9.156 kB / 0.9639 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006002/0.5377, allocations: 374.2 kB / 0.9643 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.5377, allocations: 32.8 kB / 0.9643 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.5377, allocations: 160 / 0.9643 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.5378, allocations: 7.312 kB / 0.9643 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.5379, allocations: 44.19 kB / 0.9644 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.538, allocations: 3.75 kB / 0.9644 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002448/0.5382, allocations: 56.38 kB / 0.9644 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.5383, allocations: 22.86 kB / 0.9645 GB, free: 0.5508 MB / 0.7169 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.0001318/0.5384, allocations: 171.3 kB / 0.9646 GB, free: 408 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.5384, allocations: 26.36 kB / 0.9646 GB, free: 392 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005566/0.539, allocations: 317.1 kB / 0.9649 GB, free: 216 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.539, allocations: 7.156 kB / 0.965 GB, free: 212 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.539, allocations: 1.062 kB / 0.965 GB, free: 212 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.539, allocations: 0 / 0.965 GB, free: 212 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.5401, allocations: 0.7625 MB / 0.9657 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.5401, allocations: 0 / 0.9657 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/0.5402, allocations: 38.69 kB / 0.9657 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.5402, allocations: 2.156 kB / 0.9657 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.5403, allocations: 9.125 kB / 0.9657 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.5403, allocations: 6.062 kB / 0.9658 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.5403, allocations: 0 / 0.9658 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005627/0.5409, allocations: 378.4 kB / 0.9661 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.411e-05/0.5409, allocations: 103 kB / 0.9662 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.541, allocations: 9.969 kB / 0.9662 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002402/0.5412, allocations: 38.14 kB / 0.9663 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.083e-05/0.5413, allocations: 36.55 kB / 0.9663 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.5413, allocations: 15.39 kB / 0.9663 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.577e-05/0.5414, allocations: 135.4 kB / 0.9664 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5414, allocations: 3.938 kB / 0.9664 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003132/0.5418, allocations: 65.28 kB / 0.9665 GB, free: 15.06 MB / 0.7325 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.000858/0.5426, allocations: 0.938 MB / 0.9674 GB, free: 14.28 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006343/0.5433, allocations: 369 kB / 0.9678 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.5433, allocations: 0 / 0.9678 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002792/0.5436, allocations: 141 kB / 0.9679 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.5439, allocations: 40.44 kB / 0.9679 GB, free: 14 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003327/0.5472, allocations: 2.742 MB / 0.9706 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.5475, allocations: 0.761 MB / 0.9714 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001077/0.5476, allocations: 30.06 kB / 0.9714 GB, free: 11.13 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.5478, allocations: 87.48 kB / 0.9715 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.5478, allocations: 1.531 kB / 0.9715 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9125/1.46, allocations: 5.075 MB / 0.9764 GB, free: 8.715 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/1.461, allocations: 238.2 kB / 0.9767 GB, free: 8.453 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.729/3.19, allocations: 1.312 kB / 0.9767 GB, free: 8.453 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)