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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.4/1.4, allocations: 252 MB / 267.6 MB, free: 10.96 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.001173/0.001173, allocations: 182.5 kB / 327.3 MB, free: 2.223 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.535/1.535, allocations: 205.4 MB / 0.5783 GB, free: 20.21 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.0006749/0.0006749, allocations: 82.31 kB / 0.6829 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002923, allocations: 8.781 kB / 0.797 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.173, allocations: 106.3 MB / 0.9008 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.00202/0.175, allocations: 1.7 MB / 0.9025 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009818/0.176, allocations: 0.7139 MB / 0.9032 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.1762, allocations: 7.938 kB / 0.9032 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.1763, allocations: 23.78 kB / 0.9032 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.952e-05/0.1764, allocations: 39.66 kB / 0.9033 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003332/0.1767, allocations: 99.89 kB / 0.9034 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002794/0.177, allocations: 351.3 kB / 0.9037 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002616/0.1773, allocations: 194.3 kB / 0.9039 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.1774, allocations: 103.6 kB / 0.904 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000112/0.1775, allocations: 103.5 kB / 0.9041 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.275e-05/0.1776, allocations: 12 kB / 0.9041 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.494e-05/0.1776, allocations: 27.98 kB / 0.9041 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.116e-05/0.1777, allocations: 55.75 kB / 0.9042 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.25e-05/0.1777, allocations: 69.58 kB / 0.9042 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002173/0.178, allocations: 303.5 kB / 0.9045 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.178, allocations: 0 / 0.9045 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.224e-06/0.178, allocations: 4 kB / 0.9045 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.178, allocations: 0 / 0.9045 GB, free: 60.09 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.0007156/0.1787, allocations: 0.5443 MB / 0.9051 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.1788, allocations: 8.031 kB / 0.9051 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.738e-05/0.1788, allocations: 39.58 kB / 0.9051 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002428/0.1791, allocations: 263.6 kB / 0.9054 GB, free: 59.15 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.651e-05/0.1791, allocations: 28.66 kB / 0.9054 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.111e-05/0.1792, allocations: 28 kB / 0.9054 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005768/0.1798, allocations: 340.9 kB / 0.9057 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.1798, allocations: 3.984 kB / 0.9057 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.868e-05/0.1798, allocations: 8 kB / 0.9057 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.1798, allocations: 8 kB / 0.9058 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005204/0.1804, allocations: 266 kB / 0.906 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.1815, allocations: 0.9513 MB / 0.9069 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000569/0.1821, allocations: 279.1 kB / 0.9072 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002196/0.1823, allocations: 136.7 kB / 0.9073 GB, free: 57.05 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.1824, allocations: 8 kB / 0.9073 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003832/0.1828, allocations: 179.2 kB / 0.9075 GB, free: 56.85 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=32): time 2.043e-06/0.1828, allocations: 4 kB / 0.9075 GB, free: 56.85 MB / 0.6042 GB Notification: Performance of matching and sorting (n=32): time 0.0007751/0.1836, allocations: 366.6 kB / 0.9079 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.1836, allocations: 63.34 kB / 0.9079 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.1838, allocations: 207.3 kB / 0.9081 GB, free: 56.2 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.1838, allocations: 45.7 kB / 0.9082 GB, free: 56.14 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.61e-05/0.1839, allocations: 152.5 kB / 0.9083 GB, free: 55.99 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.534e-05/0.1839, allocations: 79 kB / 0.9084 GB, free: 55.91 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.663e-05/0.1839, allocations: 4 kB / 0.9084 GB, free: 55.91 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.195e-05/0.184, allocations: 338.8 kB / 0.9087 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002396/0.1843, allocations: 112.8 kB / 0.9088 GB, free: 55.46 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002513/0.1845, allocations: 165.5 kB / 0.909 GB, free: 55.28 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.1848, allocations: 145.3 kB / 0.9091 GB, free: 55.13 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1848, allocations: 0 / 0.9091 GB, free: 55.13 MB / 0.6042 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005826/0.1854, allocations: 378.9 kB / 0.9095 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/0.1854, allocations: 33.7 kB / 0.9095 GB, free: 54.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.1854, allocations: 0 / 0.9095 GB, free: 54.71 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.1854, allocations: 4 kB / 0.9095 GB, free: 54.71 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.1857, allocations: 43.91 kB / 0.9096 GB, free: 54.66 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.1857, allocations: 4 kB / 0.9096 GB, free: 54.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002411/0.1859, allocations: 75.53 kB / 0.9096 GB, free: 54.59 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.324e-05/0.186, allocations: 16 kB / 0.9096 GB, free: 54.57 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,$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.0001366/0.1861, allocations: 175.7 kB / 0.9098 GB, free: 54.39 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.67e-05/0.1861, allocations: 23.81 kB / 0.9098 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005363/0.1867, allocations: 302.3 kB / 0.9101 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1867, allocations: 0 / 0.9101 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.1867, allocations: 4 kB / 0.9101 GB, free: 54.06 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.1867, allocations: 3.984 kB / 0.9101 GB, free: 54.06 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009649/0.1877, allocations: 0.7633 MB / 0.9109 GB, free: 53.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.123e-06/0.1877, allocations: 0 / 0.9109 GB, free: 53.24 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/0.1879, allocations: 39.92 kB / 0.9109 GB, free: 53.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1879, allocations: 0 / 0.9109 GB, free: 53.2 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.1879, allocations: 7.953 kB / 0.9109 GB, free: 53.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1879, allocations: 4 kB / 0.9109 GB, free: 53.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.1879, allocations: 3.984 kB / 0.9109 GB, free: 53.18 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004679/0.1884, allocations: 376.8 kB / 0.9113 GB, free: 52.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.028e-05/0.1884, allocations: 100.8 kB / 0.9114 GB, free: 52.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.511e-05/0.1885, allocations: 7.984 kB / 0.9114 GB, free: 52.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.1887, allocations: 47.92 kB / 0.9114 GB, free: 52.63 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.517e-05/0.1888, allocations: 47.81 kB / 0.9115 GB, free: 52.58 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.965e-05/0.1888, allocations: 15.98 kB / 0.9115 GB, free: 52.57 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.835e-05/0.1889, allocations: 127.2 kB / 0.9116 GB, free: 52.44 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.1889, allocations: 0 / 0.9116 GB, free: 52.44 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002921/0.1892, allocations: 67.84 kB / 0.9117 GB, free: 52.38 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 (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.0001629/0.1894, allocations: 125.4 kB / 0.9118 GB, free: 52.24 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006037/0.19, allocations: 331.3 kB / 0.9121 GB, free: 51.91 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.19, allocations: 3.938 kB / 0.9121 GB, free: 51.9 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002406/0.1903, allocations: 153.2 kB / 0.9123 GB, free: 51.75 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.1906, allocations: 28.17 kB / 0.9123 GB, free: 51.73 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007422/0.1914, allocations: 0.5372 MB / 0.9128 GB, free: 51.16 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001781/0.1916, allocations: 0.7603 MB / 0.9136 GB, free: 50.38 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.378e-05/0.1917, allocations: 27.44 kB / 0.9136 GB, free: 50.35 MB / 0.6042 GB Notification: Performance of SimCode: time 3.91e-07/0.1917, allocations: 3.938 kB / 0.9136 GB, free: 50.35 MB / 0.6042 GB Notification: Performance of Templates: time 0.004366/0.196, allocations: 3.44 MB / 0.917 GB, free: 46.92 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)