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.001135/0.001135, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00118/0.001181, allocations: 194 kB / 16.14 MB, free: 6.707 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.128/1.128, allocations: 205.1 MB / 222 MB, free: 4.773 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.582/1.582, allocations: 292.3 MB / 0.5484 GB, free: 13.68 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.001425/0.001425, allocations: 73.42 kB / 0.6709 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1668/0.1682, allocations: 114.5 MB / 0.7828 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003054/0.1713, allocations: 2.103 MB / 0.7848 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001168/0.1725, allocations: 0.7491 MB / 0.7856 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.1727, allocations: 7.938 kB / 0.7856 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.1728, allocations: 15.8 kB / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.96e-05/0.1729, allocations: 27.78 kB / 0.7856 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003873/0.1733, allocations: 143.9 kB / 0.7858 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003698/0.1737, allocations: 375.2 kB / 0.7861 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003002/0.174, allocations: 212.5 kB / 0.7863 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.1741, allocations: 119.5 kB / 0.7864 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.1743, allocations: 135.4 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5e-05/0.1744, allocations: 24 kB / 0.7866 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.355e-05/0.1744, allocations: 23.94 kB / 0.7866 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.403e-05/0.1745, allocations: 67.75 kB / 0.7867 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.1746, allocations: 135.2 kB / 0.7868 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003219/0.175, allocations: 386.8 kB / 0.7872 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.175, allocations: 0 / 0.7872 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.11e-07/0.175, allocations: 0 / 0.7872 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.175, allocations: 0 / 0.7872 GB, free: 9.418 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.0008744/0.1759, allocations: 0.6029 MB / 0.7878 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.1759, allocations: 8.031 kB / 0.7878 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.906e-05/0.176, allocations: 70.72 kB / 0.7878 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.335e-05/0.1761, allocations: 32.56 kB / 0.7879 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002818/0.1764, allocations: 278.8 kB / 0.7881 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.1764, allocations: 21.03 kB / 0.7882 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.836e-05/0.1765, allocations: 40.36 kB / 0.7882 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006541/0.1772, allocations: 332.9 kB / 0.7885 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.1772, allocations: 0 / 0.7885 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/0.1772, allocations: 15.98 kB / 0.7885 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.1772, allocations: 8 kB / 0.7885 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005744/0.1778, allocations: 258.1 kB / 0.7888 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001324/0.1791, allocations: 0.951 MB / 0.7897 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006078/0.1798, allocations: 262.9 kB / 0.79 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/0.18, allocations: 124.8 kB / 0.7901 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.18, allocations: 8 kB / 0.7901 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004036/0.1805, allocations: 183.2 kB / 0.7903 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 1.883e-06/0.1805, allocations: 3.938 kB / 0.7903 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0007968/0.1813, allocations: 350.6 kB / 0.7906 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.1813, allocations: 63.39 kB / 0.7907 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.1815, allocations: 199.3 kB / 0.7909 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.788e-05/0.1815, allocations: 41.7 kB / 0.7909 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.312e-05/0.1816, allocations: 156.5 kB / 0.791 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.117e-05/0.1817, allocations: 78.91 kB / 0.7911 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.1818, allocations: 82.12 kB / 0.7912 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.1819, allocations: 342.8 kB / 0.7915 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000259/0.1822, allocations: 104.8 kB / 0.7916 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.1825, allocations: 173.4 kB / 0.7918 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004553/0.1829, allocations: 262.7 kB / 0.792 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.183, allocations: 7.984 kB / 0.792 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006537/0.1836, allocations: 362.8 kB / 0.7924 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/0.1837, allocations: 37.78 kB / 0.7924 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1837, allocations: 8 kB / 0.7924 GB, free: 3.727 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.1837, allocations: 4 kB / 0.7924 GB, free: 3.723 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001942/0.1839, allocations: 43.91 kB / 0.7925 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.1839, allocations: 0 / 0.7925 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002538/0.1842, allocations: 59.59 kB / 0.7925 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.203e-05/0.1842, allocations: 11.98 kB / 0.7926 GB, free: 3.609 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.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.0001536/0.1844, allocations: 183.4 kB / 0.7927 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.343e-05/0.1844, allocations: 19.72 kB / 0.7927 GB, free: 3.402 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006069/0.185, allocations: 296.6 kB / 0.793 GB, free: 3.113 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.185, allocations: 4 kB / 0.793 GB, free: 3.109 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.185, allocations: 4 kB / 0.793 GB, free: 3.105 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1851, allocations: 0 / 0.793 GB, free: 3.105 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.1861, allocations: 0.7519 MB / 0.7938 GB, free: 2.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1861, allocations: 0 / 0.7938 GB, free: 2.297 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001401/0.1863, allocations: 35.89 kB / 0.7938 GB, free: 2.262 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.1863, allocations: 0 / 0.7938 GB, free: 2.262 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.14e-05/0.1863, allocations: 15.94 kB / 0.7938 GB, free: 2.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1863, allocations: 0 / 0.7938 GB, free: 2.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1863, allocations: 0 / 0.7938 GB, free: 2.246 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005546/0.1869, allocations: 371 kB / 0.7942 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.501e-05/0.187, allocations: 108.7 kB / 0.7943 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.829e-05/0.187, allocations: 7.938 kB / 0.7943 GB, free: 1.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002428/0.1872, allocations: 35.95 kB / 0.7943 GB, free: 1.699 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.1874, allocations: 39.95 kB / 0.7944 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.178e-05/0.1874, allocations: 11.98 kB / 0.7944 GB, free: 1.648 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.527e-05/0.1875, allocations: 135.7 kB / 0.7945 GB, free: 1.516 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1875, allocations: 4 kB / 0.7945 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003096/0.1878, allocations: 67.84 kB / 0.7946 GB, free: 1.445 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.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.000846/0.1887, allocations: 0.9144 MB / 0.7955 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006283/0.1893, allocations: 340.8 kB / 0.7958 GB, free: 164 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1893, allocations: 0 / 0.7958 GB, free: 164 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002716/0.1896, allocations: 143.8 kB / 0.7959 GB, free: 20 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/0.1899, allocations: 42.67 kB / 0.796 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003293/0.1932, allocations: 2.707 MB / 0.7986 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.1935, allocations: 0.7603 MB / 0.7993 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001138/0.1937, allocations: 30.28 kB / 0.7994 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.1938, allocations: 83.41 kB / 0.7995 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of SimCode: time 3.81e-07/0.1938, allocations: 0 / 0.7995 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3978/0.5917, allocations: 5.19 MB / 0.8045 GB, free: 7.219 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001949/0.5919, allocations: 221.2 kB / 0.8047 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.316, allocations: 2.812 kB / 0.8047 GB, free: 6.969 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)