Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_8_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.001175/0.001175, 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.001194/0.001194, allocations: 195.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.23/1.23, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.58/1.58, allocations: 292.3 MB / 0.5489 GB, free: 12.86 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 71.31 kB / 0.6716 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1626, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.00302/0.1657, allocations: 2.012 MB / 0.7854 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001121/0.1668, allocations: 0.7296 MB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.1669, allocations: 4 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.1671, allocations: 39.53 kB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.307e-05/0.1672, allocations: 31.66 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000398/0.1676, allocations: 163.8 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003852/0.168, allocations: 407.2 kB / 0.7868 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003105/0.1683, allocations: 248.1 kB / 0.787 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.1685, allocations: 135.6 kB / 0.7871 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.1686, allocations: 147.4 kB / 0.7873 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.609e-05/0.1687, allocations: 40 kB / 0.7873 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.619e-05/0.1688, allocations: 52 kB / 0.7874 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.539e-05/0.1688, allocations: 87.73 kB / 0.7875 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.169, allocations: 151.3 kB / 0.7876 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.1693, allocations: 410.8 kB / 0.788 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1693, allocations: 0 / 0.788 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of FrontEnd: time 5.861e-06/0.1693, allocations: 0 / 0.788 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.995e-06/0.1694, allocations: 3.938 kB / 0.788 GB, free: 8.738 MB / 0.6075 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.000801/0.1702, allocations: 0.599 MB / 0.7886 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.1702, allocations: 15.97 kB / 0.7886 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.796e-05/0.1703, allocations: 70.72 kB / 0.7887 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.473e-05/0.1703, allocations: 32.56 kB / 0.7887 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.1706, allocations: 270.8 kB / 0.7889 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.1706, allocations: 25.03 kB / 0.789 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.5e-05/0.1707, allocations: 40.36 kB / 0.789 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005545/0.1712, allocations: 329 kB / 0.7893 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.1713, allocations: 0 / 0.7893 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.648e-05/0.1713, allocations: 16 kB / 0.7893 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1713, allocations: 8 kB / 0.7893 GB, free: 7.238 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005307/0.1718, allocations: 258 kB / 0.7896 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.1731, allocations: 0.955 MB / 0.7905 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005764/0.1737, allocations: 265.4 kB / 0.7908 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/0.1739, allocations: 124.8 kB / 0.7909 GB, free: 5.586 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.174, allocations: 11.98 kB / 0.7909 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003591/0.1743, allocations: 179.3 kB / 0.7911 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 1.583e-06/0.1743, allocations: 0 / 0.7911 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0007435/0.1751, allocations: 359.6 kB / 0.7914 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.1751, allocations: 55.41 kB / 0.7915 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.1753, allocations: 203.3 kB / 0.7917 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.1753, allocations: 37.7 kB / 0.7917 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.44e-05/0.1754, allocations: 152.6 kB / 0.7919 GB, free: 4.562 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.982e-05/0.1755, allocations: 82.89 kB / 0.7919 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.1756, allocations: 86.12 kB / 0.792 GB, free: 4.391 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.1757, allocations: 346.8 kB / 0.7923 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002444/0.176, allocations: 104.8 kB / 0.7924 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.1762, allocations: 169.2 kB / 0.7926 GB, free: 3.758 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004288/0.1767, allocations: 258.7 kB / 0.7929 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1767, allocations: 0 / 0.7929 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006173/0.1773, allocations: 374.9 kB / 0.7932 GB, free: 3.102 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.1773, allocations: 29.7 kB / 0.7932 GB, free: 3.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1774, allocations: 4 kB / 0.7932 GB, free: 3.062 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.1774, allocations: 0 / 0.7932 GB, free: 3.062 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.1776, allocations: 47.84 kB / 0.7933 GB, free: 3.016 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.1776, allocations: 4 kB / 0.7933 GB, free: 3.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.1778, allocations: 59.72 kB / 0.7933 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.894e-05/0.1779, allocations: 11.98 kB / 0.7934 GB, free: 2.941 MB / 0.6075 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.0001441/0.178, allocations: 178.4 kB / 0.7935 GB, free: 2.758 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.32e-05/0.178, allocations: 23.7 kB / 0.7936 GB, free: 2.734 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005714/0.1786, allocations: 304.6 kB / 0.7938 GB, free: 2.434 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1786, allocations: 4 kB / 0.7938 GB, free: 2.43 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1786, allocations: 3.938 kB / 0.7938 GB, free: 2.426 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.1787, allocations: 0 / 0.7938 GB, free: 2.426 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00097/0.1796, allocations: 0.7519 MB / 0.7946 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.1796, allocations: 0 / 0.7946 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.1798, allocations: 35.91 kB / 0.7946 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/0.1798, allocations: 4 kB / 0.7946 GB, free: 1.578 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.1798, allocations: 11.88 kB / 0.7946 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1798, allocations: 0 / 0.7946 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1798, allocations: 4 kB / 0.7946 GB, free: 1.562 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005137/0.1803, allocations: 363.2 kB / 0.795 GB, free: 1.191 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.961e-05/0.1804, allocations: 100.8 kB / 0.7951 GB, free: 1.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/0.1804, allocations: 11.94 kB / 0.7951 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.1807, allocations: 35.95 kB / 0.7951 GB, free: 1.027 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.59e-05/0.1808, allocations: 35.95 kB / 0.7952 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.1808, allocations: 12 kB / 0.7952 GB, free: 0.9805 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.02e-05/0.1809, allocations: 135.7 kB / 0.7953 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1809, allocations: 0 / 0.7953 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002908/0.1812, allocations: 71.84 kB / 0.7954 GB, free: 0.7773 MB / 0.6075 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.0007998/0.182, allocations: 0.9221 MB / 0.7963 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006545/0.1827, allocations: 351 kB / 0.7966 GB, free: 15.47 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1827, allocations: 0 / 0.7966 GB, free: 15.47 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.1829, allocations: 144.9 kB / 0.7967 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.1832, allocations: 28.3 kB / 0.7968 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.1862, allocations: 2.628 MB / 0.7993 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.1865, allocations: 0.7642 MB / 0.8001 GB, free: 11.76 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001079/0.1866, allocations: 34.27 kB / 0.8001 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.1868, allocations: 87.34 kB / 0.8002 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of SimCode: time 2.2e-07/0.1868, allocations: 0 / 0.8002 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.995/2.181, allocations: 5.544 MB / 0.8056 GB, free: 6.23 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/15.12, allocations: 15.06 kB / 0.8056 GB, free: 6.219 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)