Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.272/1.272, allocations: 251.5 MB / 266.7 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000894/0.0008942, allocations: 170.6 kB / 325.8 MB, free: 2.703 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.348/1.348, allocations: 205 MB / 0.576 GB, free: 21.01 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006543/0.0006546, allocations: 78.36 kB / 0.6797 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002858/0.0002858, allocations: 8.625 kB / 0.7933 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1563, allocations: 105.4 MB / 0.8962 GB, free: 68.1 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.001704/0.158, allocations: 1.782 MB / 0.8979 GB, free: 66.3 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008957/0.1589, allocations: 0.7408 MB / 0.8987 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.346e-05/0.1591, allocations: 4 kB / 0.8987 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.1592, allocations: 27.8 kB / 0.8987 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.978e-05/0.1593, allocations: 31.72 kB / 0.8987 GB, free: 65.49 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002882/0.1596, allocations: 139.8 kB / 0.8989 GB, free: 65.35 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002426/0.1598, allocations: 371.2 kB / 0.8992 GB, free: 64.99 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.16, allocations: 200.3 kB / 0.8994 GB, free: 64.79 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.999e-05/0.1601, allocations: 111.5 kB / 0.8995 GB, free: 64.68 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.1602, allocations: 115.4 kB / 0.8996 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.091e-05/0.1603, allocations: 16 kB / 0.8996 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.891e-05/0.1603, allocations: 20 kB / 0.8997 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.369e-05/0.1604, allocations: 47.83 kB / 0.8997 GB, free: 64.49 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.573e-05/0.1605, allocations: 123.2 kB / 0.8998 GB, free: 64.37 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002336/0.1607, allocations: 374.7 kB / 0.9002 GB, free: 64 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1607, allocations: 0 / 0.9002 GB, free: 64 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.233e-06/0.1607, allocations: 0 / 0.9002 GB, free: 64 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.1607, allocations: 0 / 0.9002 GB, free: 64 MB / 0.6042 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.0005898/0.1613, allocations: 0.5445 MB / 0.9007 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.896e-05/0.1614, allocations: 11.97 kB / 0.9007 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.671e-05/0.1615, allocations: 62.72 kB / 0.9008 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.479e-05/0.1615, allocations: 36.56 kB / 0.9008 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.1617, allocations: 259.9 kB / 0.9011 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.1617, allocations: 37.02 kB / 0.9011 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.685e-05/0.1618, allocations: 36.31 kB / 0.9011 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/0.1623, allocations: 337 kB / 0.9015 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1623, allocations: 0 / 0.9015 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.556e-05/0.1623, allocations: 15.98 kB / 0.9015 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.1623, allocations: 8 kB / 0.9015 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004676/0.1628, allocations: 258.1 kB / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.1639, allocations: 0.9668 MB / 0.9027 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000508/0.1644, allocations: 278.3 kB / 0.9029 GB, free: 61 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.1646, allocations: 128.8 kB / 0.9031 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.1646, allocations: 0 / 0.9031 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003212/0.1649, allocations: 199.1 kB / 0.9032 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=32): time 1.583e-06/0.165, allocations: 0 / 0.9032 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of matching and sorting (n=32): time 0.0006741/0.1656, allocations: 362.7 kB / 0.9036 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.526e-05/0.1657, allocations: 63.39 kB / 0.9037 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.1658, allocations: 199.3 kB / 0.9038 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.1658, allocations: 45.69 kB / 0.9039 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/0.1659, allocations: 160.4 kB / 0.904 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.294e-05/0.1659, allocations: 78.94 kB / 0.9041 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.162e-05/0.166, allocations: 61.67 kB / 0.9042 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.721e-05/0.1661, allocations: 338.8 kB / 0.9045 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002239/0.1663, allocations: 116.8 kB / 0.9046 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002308/0.1665, allocations: 177.4 kB / 0.9048 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003788/0.1669, allocations: 270.5 kB / 0.905 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1669, allocations: 0 / 0.905 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005406/0.1675, allocations: 379 kB / 0.9054 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.1675, allocations: 29.7 kB / 0.9054 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1675, allocations: 4 kB / 0.9054 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.1675, allocations: 4 kB / 0.9054 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.1677, allocations: 47.84 kB / 0.9055 GB, free: 58.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.1677, allocations: 4 kB / 0.9055 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/0.1679, allocations: 63.59 kB / 0.9055 GB, free: 58.19 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.168, allocations: 19.98 kB / 0.9056 GB, free: 58.17 MB / 0.6042 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.0001169/0.1681, allocations: 173.7 kB / 0.9057 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.806e-05/0.1681, allocations: 19.8 kB / 0.9057 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005034/0.1686, allocations: 318.3 kB / 0.9061 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.1687, allocations: 4 kB / 0.9061 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.1687, allocations: 0 / 0.9061 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1687, allocations: 0 / 0.9061 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008343/0.1695, allocations: 0.7633 MB / 0.9068 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1695, allocations: 0 / 0.9068 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.1696, allocations: 35.97 kB / 0.9068 GB, free: 56.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1697, allocations: 4 kB / 0.9068 GB, free: 56.79 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.1697, allocations: 7.938 kB / 0.9068 GB, free: 56.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1697, allocations: 4 kB / 0.9069 GB, free: 56.78 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1697, allocations: 3.938 kB / 0.9069 GB, free: 56.78 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004331/0.1701, allocations: 384.8 kB / 0.9072 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.786e-05/0.1702, allocations: 100.8 kB / 0.9073 GB, free: 56.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.175e-05/0.1702, allocations: 11.94 kB / 0.9073 GB, free: 56.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.1704, allocations: 39.95 kB / 0.9074 GB, free: 56.22 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.301e-05/0.1705, allocations: 35.95 kB / 0.9074 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.1705, allocations: 12 kB / 0.9074 GB, free: 56.17 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.356e-05/0.1706, allocations: 135.2 kB / 0.9075 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of sort global known variables: time 6.51e-07/0.1706, allocations: 0 / 0.9075 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000257/0.1709, allocations: 67.78 kB / 0.9076 GB, free: 55.97 MB / 0.6042 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.0006117/0.1715, allocations: 0.9418 MB / 0.9085 GB, free: 55 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004794/0.172, allocations: 347.1 kB / 0.9089 GB, free: 54.65 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.552e-06/0.172, allocations: 3.938 kB / 0.9089 GB, free: 54.65 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.1722, allocations: 139.9 kB / 0.909 GB, free: 54.51 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/0.1725, allocations: 46.62 kB / 0.909 GB, free: 54.47 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002464/0.175, allocations: 2.733 MB / 0.9117 GB, free: 51.62 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001339/0.1751, allocations: 0.7603 MB / 0.9124 GB, free: 50.84 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.762e-05/0.1752, allocations: 26.28 kB / 0.9125 GB, free: 50.81 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.1754, allocations: 83.41 kB / 0.9126 GB, free: 50.73 MB / 0.6042 GB Notification: Performance of SimCode: time 2.1e-07/0.1754, allocations: 0 / 0.9126 GB, free: 50.73 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4572/0.6326, allocations: 5.103 MB / 0.9175 GB, free: 45.82 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001915/0.6328, allocations: 236.4 kB / 0.9178 GB, free: 45.56 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.838/2.471, allocations: 0 / 0.9178 GB, free: 45.56 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)