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.0008347/0.0008348, allocations: 91.53 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.004779/0.004779, allocations: 172.6 kB / 16.26 MB, free: 6.676 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.147/1.147, allocations: 205.4 MB / 222.4 MB, free: 5.809 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.522/1.522, allocations: 292.7 MB / 0.5502 GB, free: 14.45 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.0005789/0.0005789, allocations: 12.22 kB / 0.6744 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.1711, allocations: 116.3 MB / 0.788 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.001949/0.1731, allocations: 1.742 MB / 0.7897 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001023/0.1741, allocations: 0.7296 MB / 0.7904 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.728e-05/0.1742, allocations: 4 kB / 0.7904 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.534e-05/0.1743, allocations: 31.67 kB / 0.7905 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.915e-05/0.1744, allocations: 27.78 kB / 0.7905 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.1747, allocations: 139.9 kB / 0.7906 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003442/0.1751, allocations: 367.2 kB / 0.791 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002716/0.1754, allocations: 200 kB / 0.7912 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.1755, allocations: 103.5 kB / 0.7913 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.1756, allocations: 123.4 kB / 0.7914 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.991e-05/0.1757, allocations: 12 kB / 0.7914 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.956e-05/0.1757, allocations: 20 kB / 0.7914 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.688e-05/0.1758, allocations: 55.77 kB / 0.7915 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.1759, allocations: 152.9 kB / 0.7916 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002994/0.1762, allocations: 366.7 kB / 0.792 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.1762, allocations: 0 / 0.792 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.803e-06/0.1763, allocations: 0 / 0.792 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.1763, allocations: 0 / 0.792 GB, free: 7.406 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.0007384/0.177, allocations: 0.5483 MB / 0.7925 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.177, allocations: 12.03 kB / 0.7925 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.42e-05/0.1771, allocations: 62.72 kB / 0.7926 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.089e-05/0.1772, allocations: 36.55 kB / 0.7926 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000254/0.1774, allocations: 275.8 kB / 0.7929 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/0.1775, allocations: 33.03 kB / 0.7929 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/0.1775, allocations: 28.38 kB / 0.7929 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005835/0.1781, allocations: 348.9 kB / 0.7933 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1781, allocations: 0 / 0.7933 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.1782, allocations: 12 kB / 0.7933 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1782, allocations: 4 kB / 0.7933 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005562/0.1788, allocations: 266 kB / 0.7935 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/0.18, allocations: 0.9589 MB / 0.7945 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005867/0.1806, allocations: 281.1 kB / 0.7947 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/0.1809, allocations: 124.8 kB / 0.7948 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.1809, allocations: 8 kB / 0.7949 GB, free: 4.262 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003742/0.1813, allocations: 183.3 kB / 0.795 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 1.613e-06/0.1813, allocations: 0 / 0.795 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0007681/0.1821, allocations: 374.5 kB / 0.7954 GB, free: 3.699 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.1821, allocations: 59.39 kB / 0.7954 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.1823, allocations: 203.3 kB / 0.7956 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.335e-05/0.1823, allocations: 37.7 kB / 0.7957 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.792e-05/0.1824, allocations: 152.6 kB / 0.7958 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.9e-05/0.1825, allocations: 82.84 kB / 0.7959 GB, free: 3.137 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.148e-05/0.1826, allocations: 57.69 kB / 0.796 GB, free: 3.074 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.1827, allocations: 342.8 kB / 0.7963 GB, free: 2.73 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/0.1829, allocations: 116.8 kB / 0.7964 GB, free: 2.613 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002813/0.1832, allocations: 165.5 kB / 0.7965 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004525/0.1837, allocations: 278.7 kB / 0.7968 GB, free: 2.141 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.1837, allocations: 0 / 0.7968 GB, free: 2.141 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006486/0.1844, allocations: 382.9 kB / 0.7972 GB, free: 1.754 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.1844, allocations: 33.64 kB / 0.7972 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1844, allocations: 4 kB / 0.7972 GB, free: 1.711 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.518e-06/0.1844, allocations: 0 / 0.7972 GB, free: 1.711 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.1846, allocations: 47.91 kB / 0.7973 GB, free: 1.664 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.1846, allocations: 4 kB / 0.7973 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002452/0.1849, allocations: 67.67 kB / 0.7973 GB, free: 1.594 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.1849, allocations: 8 kB / 0.7973 GB, free: 1.586 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.0001634/0.1851, allocations: 179.4 kB / 0.7975 GB, free: 1.402 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.1851, allocations: 27.66 kB / 0.7975 GB, free: 1.375 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006016/0.1857, allocations: 312.6 kB / 0.7978 GB, free: 1.07 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1857, allocations: 4 kB / 0.7978 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1857, allocations: 0 / 0.7978 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.1857, allocations: 3.984 kB / 0.7978 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.1868, allocations: 0.7636 MB / 0.7986 GB, free: 248 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1868, allocations: 0 / 0.7986 GB, free: 248 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.1869, allocations: 39.91 kB / 0.7986 GB, free: 208 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.1869, allocations: 4 kB / 0.7986 GB, free: 204 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.1869, allocations: 7.938 kB / 0.7986 GB, free: 196 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.187, allocations: 0 / 0.7986 GB, free: 196 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.187, allocations: 4 kB / 0.7986 GB, free: 192 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005501/0.1875, allocations: 379.4 kB / 0.799 GB, free: 15.8 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 5.518e-05/0.1876, allocations: 108.7 kB / 0.7991 GB, free: 15.67 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.284e-05/0.1876, allocations: 11.92 kB / 0.7991 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.1879, allocations: 35.97 kB / 0.7991 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.636e-05/0.188, allocations: 39.95 kB / 0.7992 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.188, allocations: 11.98 kB / 0.7992 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 9.387e-05/0.1881, allocations: 131.8 kB / 0.7993 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1881, allocations: 0 / 0.7993 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0002903/0.1884, allocations: 67.84 kB / 0.7994 GB, free: 15.38 MB / 0.6231 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.0008348/0.1892, allocations: 0.9445 MB / 0.8003 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0005924/0.1898, allocations: 352.8 kB / 0.8006 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1898, allocations: 0 / 0.8006 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000265/0.1901, allocations: 135.9 kB / 0.8008 GB, free: 13.92 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.1904, allocations: 36.23 kB / 0.8008 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003144/0.1936, allocations: 2.748 MB / 0.8035 GB, free: 11.02 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.1939, allocations: 0.7564 MB / 0.8042 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001032/0.194, allocations: 30.28 kB / 0.8043 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.1941, allocations: 87.39 kB / 0.8043 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of SimCode: time 3.41e-07/0.1941, allocations: 0 / 0.8043 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3314/0.5255, allocations: 5.072 MB / 0.8093 GB, free: 5.23 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002035/0.5257, allocations: 226.6 kB / 0.8095 GB, free: 4.977 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.781/2.307, allocations: 0 / 0.8095 GB, free: 4.977 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)