Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_8_0_x_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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.41/1.41, allocations: 288.4 MB / 303.6 MB, free: 8.125 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.0008571/0.0008571, allocations: 164.6 kB / 372.2 MB, free: 10.15 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.117/1.117, allocations: 205.4 MB / 0.631 GB, free: 9.914 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006349/0.0006349, allocations: 93.25 kB / 0.7444 GB, free: 5.828 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003167/0.0003167, allocations: 16.16 kB / 0.8676 GB, free: 141.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1546, allocations: 115.3 MB / 0.9802 GB, free: 27.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.001618/0.1563, allocations: 1.704 MB / 0.9819 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008309/0.1571, allocations: 0.7063 MB / 0.9826 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.536e-05/0.1572, allocations: 11.94 kB / 0.9826 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 9.166e-05/0.1573, allocations: 19.8 kB / 0.9826 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.127e-05/0.1574, allocations: 31.72 kB / 0.9826 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002639/0.1577, allocations: 103.9 kB / 0.9827 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002395/0.158, allocations: 343.3 kB / 0.983 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.1582, allocations: 211.9 kB / 0.9832 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.985e-05/0.1583, allocations: 95.62 kB / 0.9833 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.1584, allocations: 115.4 kB / 0.9834 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.071e-05/0.1584, allocations: 16 kB / 0.9835 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.984e-05/0.1585, allocations: 16 kB / 0.9835 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.036e-05/0.1586, allocations: 55.75 kB / 0.9835 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.772e-05/0.1586, allocations: 137.1 kB / 0.9837 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.1588, allocations: 307.3 kB / 0.9839 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.1589, allocations: 3.938 kB / 0.984 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.172e-06/0.1589, allocations: 0 / 0.984 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.1589, allocations: 4 kB / 0.984 GB, free: 23.38 MB / 0.6198 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.0006343/0.1595, allocations: 0.5366 MB / 0.9845 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.1596, allocations: 12.03 kB / 0.9845 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.389e-05/0.1596, allocations: 66.72 kB / 0.9846 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.085e-05/0.1597, allocations: 36.56 kB / 0.9846 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.1599, allocations: 275.8 kB / 0.9849 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.834e-05/0.1599, allocations: 29.03 kB / 0.9849 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.529e-05/0.1599, allocations: 28.38 kB / 0.9849 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005099/0.1605, allocations: 333 kB / 0.9852 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1605, allocations: 0 / 0.9852 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.657e-05/0.1605, allocations: 27.91 kB / 0.9853 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.1605, allocations: 12 kB / 0.9853 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004751/0.161, allocations: 254.1 kB / 0.9855 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.1621, allocations: 0.9551 MB / 0.9864 GB, free: 20.66 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000496/0.1626, allocations: 278.8 kB / 0.9867 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002041/0.1628, allocations: 128.8 kB / 0.9868 GB, free: 20.25 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.1628, allocations: 0 / 0.9868 GB, free: 20.25 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000333/0.1631, allocations: 191.2 kB / 0.987 GB, free: 20.05 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=32): time 1.473e-06/0.1632, allocations: 0 / 0.987 GB, free: 20.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=32): time 0.0006756/0.1638, allocations: 369.2 kB / 0.9874 GB, free: 19.69 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.324e-05/0.1639, allocations: 59.39 kB / 0.9874 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.164, allocations: 203.3 kB / 0.9876 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.164, allocations: 41.7 kB / 0.9877 GB, free: 19.36 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.472e-05/0.1641, allocations: 144.6 kB / 0.9878 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.152e-05/0.1641, allocations: 82.84 kB / 0.9879 GB, free: 19.13 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.659e-05/0.1642, allocations: 16 kB / 0.9879 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.495e-05/0.1642, allocations: 338.8 kB / 0.9882 GB, free: 18.78 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.1644, allocations: 108.8 kB / 0.9883 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.1647, allocations: 177.5 kB / 0.9885 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003763/0.1651, allocations: 282.4 kB / 0.9887 GB, free: 18.18 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1651, allocations: 0 / 0.9887 GB, free: 18.18 MB / 0.6198 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005444/0.1656, allocations: 371 kB / 0.9891 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.1656, allocations: 35.41 kB / 0.9891 GB, free: 17.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1657, allocations: 4 kB / 0.9891 GB, free: 17.76 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.1657, allocations: 4 kB / 0.9891 GB, free: 17.75 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.1659, allocations: 43.91 kB / 0.9892 GB, free: 17.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.1659, allocations: 4 kB / 0.9892 GB, free: 17.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002182/0.1661, allocations: 59.69 kB / 0.9892 GB, free: 17.65 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.877e-05/0.1661, allocations: 16 kB / 0.9893 GB, free: 17.63 MB / 0.6198 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.condition,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.on.active,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.1662, allocations: 178.7 kB / 0.9894 GB, free: 17.45 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.387e-05/0.1663, allocations: 23.72 kB / 0.9895 GB, free: 17.43 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005032/0.1668, allocations: 302.4 kB / 0.9897 GB, free: 17.12 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1668, allocations: 4 kB / 0.9897 GB, free: 17.12 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1668, allocations: 0 / 0.9897 GB, free: 17.12 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1668, allocations: 0 / 0.9897 GB, free: 17.12 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008179/0.1676, allocations: 0.7687 MB / 0.9905 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.1677, allocations: 4 kB / 0.9905 GB, free: 16.29 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001197/0.1678, allocations: 31.91 kB / 0.9905 GB, free: 16.26 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.1678, allocations: 11.92 kB / 0.9905 GB, free: 16.25 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.1678, allocations: 7.938 kB / 0.9906 GB, free: 16.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1678, allocations: 4 kB / 0.9906 GB, free: 16.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1678, allocations: 0 / 0.9906 GB, free: 16.24 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004334/0.1683, allocations: 383.3 kB / 0.9909 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.652e-05/0.1683, allocations: 100.7 kB / 0.991 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.979e-05/0.1683, allocations: 15.88 kB / 0.991 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.1685, allocations: 43.95 kB / 0.9911 GB, free: 15.67 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.32e-05/0.1686, allocations: 43.94 kB / 0.9911 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.1687, allocations: 4 kB / 0.9911 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.286e-05/0.1687, allocations: 139.4 kB / 0.9913 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1687, allocations: 0 / 0.9913 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002611/0.169, allocations: 75.75 kB / 0.9913 GB, free: 15.41 MB / 0.6198 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 (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.0006358/0.1696, allocations: 0.9174 MB / 0.9922 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004891/0.1701, allocations: 347 kB / 0.9926 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1702, allocations: 0 / 0.9926 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000227/0.1704, allocations: 149.2 kB / 0.9927 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.1707, allocations: 27.98 kB / 0.9927 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/0.1724, allocations: 1.441 MB / 0.9941 GB, free: 12.44 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001322/0.1726, allocations: 0.7564 MB / 0.9949 GB, free: 11.66 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.542e-05/0.1727, allocations: 30.39 kB / 0.9949 GB, free: 11.63 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.1728, allocations: 93.7 kB / 0.995 GB, free: 11.54 MB / 0.6198 GB Notification: Performance of SimCode: time 2.2e-07/0.1728, allocations: 0 / 0.995 GB, free: 11.54 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5095/0.6823, allocations: 5.098 MB / 1 GB, free: 6.633 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001669/0.6825, allocations: 225.7 kB / 1 GB, free: 6.391 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/2.475, allocations: 0 / 1 GB, free: 6.391 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)