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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.0011, allocations: 106.6 kB / 15.99 MB, free: 5.914 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.001034/0.001034, allocations: 192.1 kB / 16.91 MB, free: 5.758 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.421/1.421, allocations: 205.1 MB / 222.8 MB, free: 4.477 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.668/1.668, allocations: 292.3 MB / 0.5492 GB, free: 13.65 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.001388/0.001388, allocations: 68.02 kB / 0.6717 GB, free: 26.46 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2688, allocations: 114.5 MB / 0.7835 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003392/0.2722, allocations: 2.104 MB / 0.7856 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001216/0.2735, allocations: 0.7412 MB / 0.7863 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.2736, allocations: 7.938 kB / 0.7863 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.2738, allocations: 19.8 kB / 0.7863 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.29e-05/0.2739, allocations: 27.78 kB / 0.7864 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004149/0.2743, allocations: 139.9 kB / 0.7865 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004334/0.2748, allocations: 415.2 kB / 0.7869 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003462/0.2751, allocations: 244.1 kB / 0.7871 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.2753, allocations: 131.6 kB / 0.7872 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.2754, allocations: 151.3 kB / 0.7874 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.422e-05/0.2755, allocations: 40 kB / 0.7874 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.9e-05/0.2756, allocations: 48 kB / 0.7875 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.776e-05/0.2757, allocations: 83.75 kB / 0.7875 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.2758, allocations: 155.2 kB / 0.7877 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003318/0.2762, allocations: 331.3 kB / 0.788 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2762, allocations: 0 / 0.788 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.193e-06/0.2762, allocations: 0 / 0.788 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.2762, allocations: 0 / 0.788 GB, free: 9.273 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.0009425/0.2772, allocations: 0.599 MB / 0.7886 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.2772, allocations: 8.031 kB / 0.7886 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.296e-05/0.2773, allocations: 32.56 kB / 0.7886 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/0.2776, allocations: 278.6 kB / 0.7889 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.172e-05/0.2777, allocations: 33.02 kB / 0.7889 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.757e-05/0.2777, allocations: 28.38 kB / 0.789 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006397/0.2784, allocations: 341.1 kB / 0.7893 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2784, allocations: 0 / 0.7893 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.2784, allocations: 11.98 kB / 0.7893 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.2784, allocations: 11.94 kB / 0.7893 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005487/0.279, allocations: 254.1 kB / 0.7896 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.2804, allocations: 0.9552 MB / 0.7905 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006161/0.2811, allocations: 266.8 kB / 0.7907 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.2813, allocations: 116.8 kB / 0.7908 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.2814, allocations: 11.98 kB / 0.7909 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004808/0.2818, allocations: 183.1 kB / 0.791 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 1.823e-06/0.2819, allocations: 4 kB / 0.791 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0008048/0.2827, allocations: 350.6 kB / 0.7914 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/0.2827, allocations: 55.41 kB / 0.7914 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001962/0.2829, allocations: 207.3 kB / 0.7916 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.206e-05/0.283, allocations: 41.7 kB / 0.7917 GB, free: 5.32 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.2831, allocations: 144.6 kB / 0.7918 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.239e-05/0.2832, allocations: 90.83 kB / 0.7919 GB, free: 5.086 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.2833, allocations: 90.11 kB / 0.792 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.2835, allocations: 334.8 kB / 0.7923 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002529/0.2837, allocations: 104.8 kB / 0.7924 GB, free: 4.551 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.284, allocations: 177.2 kB / 0.7926 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004576/0.2845, allocations: 266.7 kB / 0.7928 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2845, allocations: 0 / 0.7928 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006546/0.2852, allocations: 362.8 kB / 0.7932 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.906e-05/0.2852, allocations: 37.7 kB / 0.7932 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.2852, allocations: 4.156 kB / 0.7932 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.2853, allocations: 4 kB / 0.7932 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002007/0.2855, allocations: 39.91 kB / 0.7932 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.2855, allocations: 4 kB / 0.7932 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/0.2857, allocations: 59.58 kB / 0.7933 GB, free: 3.559 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.078e-05/0.2858, allocations: 16 kB / 0.7933 GB, free: 3.543 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.0001898/0.286, allocations: 179.4 kB / 0.7935 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.826e-05/0.286, allocations: 27.72 kB / 0.7935 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000629/0.2867, allocations: 292.6 kB / 0.7938 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.2867, allocations: 0 / 0.7938 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2867, allocations: 7.938 kB / 0.7938 GB, free: 3.035 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.2867, allocations: 7.984 kB / 0.7938 GB, free: 3.027 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.2878, allocations: 0.7441 MB / 0.7945 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2879, allocations: 0 / 0.7945 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001339/0.288, allocations: 35.91 kB / 0.7946 GB, free: 2.191 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.288, allocations: 0 / 0.7946 GB, free: 2.191 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.288, allocations: 12 kB / 0.7946 GB, free: 2.18 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.288, allocations: 3.938 kB / 0.7946 GB, free: 2.176 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.288, allocations: 0 / 0.7946 GB, free: 2.176 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005642/0.2886, allocations: 371 kB / 0.7949 GB, free: 1.797 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.186e-05/0.2887, allocations: 100.8 kB / 0.795 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.869e-05/0.2887, allocations: 11.98 kB / 0.795 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002339/0.289, allocations: 35.91 kB / 0.7951 GB, free: 1.633 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.2891, allocations: 39.95 kB / 0.7951 GB, free: 1.594 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.2891, allocations: 11.98 kB / 0.7951 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001336/0.2892, allocations: 135.7 kB / 0.7953 GB, free: 1.449 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2893, allocations: 3.938 kB / 0.7953 GB, free: 1.445 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003249/0.2896, allocations: 67.75 kB / 0.7953 GB, free: 1.379 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.0001843/0.2898, allocations: 129.4 kB / 0.7955 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006903/0.2905, allocations: 339.8 kB / 0.7958 GB, free: 0.8984 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2905, allocations: 0 / 0.7958 GB, free: 0.8984 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002555/0.2907, allocations: 135.8 kB / 0.7959 GB, free: 0.7656 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.2911, allocations: 36 kB / 0.7959 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008375/0.2919, allocations: 0.565 MB / 0.7965 GB, free: 144 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.2923, allocations: 0.7564 MB / 0.7972 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.343e-05/0.2924, allocations: 35.42 kB / 0.7973 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of SimCode: time 4.31e-07/0.2924, allocations: 0 / 0.7973 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of Templates: time 0.005197/0.2976, allocations: 3.469 MB / 0.8007 GB, free: 11.86 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (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 & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)