Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.754/1.754, allocations: 288.4 MB / 303.4 MB, free: 8.031 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00127/0.00127, allocations: 179.4 kB / 372 MB, free: 10.22 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.4 MB / 0.6307 GB, free: 9.969 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008465/0.0008464, allocations: 96.83 kB / 0.7441 GB, free: 5.891 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004555/0.0004556, allocations: 15.53 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2703, allocations: 115.3 MB / 0.9796 GB, free: 27.64 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002714/0.2731, allocations: 1.923 MB / 0.9815 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001732/0.2749, allocations: 0.9595 MB / 0.9824 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002146/0.2751, allocations: 11.94 kB / 0.9824 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001848/0.2753, allocations: 43.59 kB / 0.9825 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002964/0.2756, allocations: 35.72 kB / 0.9825 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.2761, allocations: 183.8 kB / 0.9827 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0005018/0.2766, allocations: 0.5388 MB / 0.9832 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004883/0.2771, allocations: 356.3 kB / 0.9835 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.2773, allocations: 143.4 kB / 0.9837 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001976/0.2775, allocations: 171 kB / 0.9838 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.917e-05/0.2776, allocations: 20 kB / 0.9838 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.2777, allocations: 31.98 kB / 0.9839 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.2778, allocations: 83.67 kB / 0.984 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.918e-05/0.2779, allocations: 109.4 kB / 0.9841 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004113/0.2783, allocations: 0.5224 MB / 0.9846 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.2783, allocations: 4 kB / 0.9846 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.214e-06/0.2784, allocations: 0 / 0.9846 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.038e-05/0.2784, allocations: 0 / 0.9846 GB, free: 22.5 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001079/0.2795, allocations: 0.6304 MB / 0.9852 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.2795, allocations: 12.02 kB / 0.9852 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.847e-05/0.2796, allocations: 55.39 kB / 0.9853 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003854/0.28, allocations: 336.9 kB / 0.9856 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.391e-05/0.2801, allocations: 45.31 kB / 0.9856 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.316e-05/0.2802, allocations: 59.98 kB / 0.9857 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008679/0.281, allocations: 0.5735 MB / 0.9862 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.887e-05/0.2811, allocations: 0 / 0.9862 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.302e-05/0.2811, allocations: 16 kB / 0.9863 GB, free: 20.66 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.593e-05/0.2812, allocations: 25 kB / 0.9863 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006823/0.2819, allocations: 423.7 kB / 0.9867 GB, free: 20.22 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00202/0.2839, allocations: 1.934 MB / 0.9886 GB, free: 18.21 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005225/0.2844, allocations: 348.4 kB / 0.9889 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002484/0.2847, allocations: 188.8 kB / 0.9891 GB, free: 17.67 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 5.609e-05/0.2847, allocations: 8 kB / 0.9891 GB, free: 17.66 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003631/0.2851, allocations: 230 kB / 0.9893 GB, free: 17.43 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 1.703e-06/0.2851, allocations: 0 / 0.9893 GB, free: 17.43 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.0008345/0.286, allocations: 482.2 kB / 0.9898 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.286, allocations: 67.14 kB / 0.9898 GB, free: 16.87 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.2862, allocations: 245.7 kB / 0.9901 GB, free: 16.62 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.2863, allocations: 49.7 kB / 0.9901 GB, free: 16.56 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.2864, allocations: 208.8 kB / 0.9903 GB, free: 16.36 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.421e-05/0.2865, allocations: 126.4 kB / 0.9904 GB, free: 16.23 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.006e-05/0.2865, allocations: 8 kB / 0.9904 GB, free: 16.22 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.278e-05/0.2866, allocations: 346.8 kB / 0.9908 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002482/0.2869, allocations: 161.2 kB / 0.9909 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003264/0.2872, allocations: 292.7 kB / 0.9912 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.2875, allocations: 170.2 kB / 0.9914 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.2875, allocations: 0 / 0.9914 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006899/0.2882, allocations: 0.5026 MB / 0.9919 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.2882, allocations: 11.98 kB / 0.9919 GB, free: 14.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.2882, allocations: 11.94 kB / 0.9919 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.2883, allocations: 8 kB / 0.9919 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002387/0.2885, allocations: 59.84 kB / 0.9919 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/0.2885, allocations: 8 kB / 0.992 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002203/0.2888, allocations: 63.5 kB / 0.992 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.24e-05/0.2888, allocations: 28.06 kB / 0.992 GB, free: 14.52 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.condition,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.condition,con.t3.enableFire,con.t4.condition,con.t4.enableFire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * 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.0002434/0.2891, allocations: 230.8 kB / 0.9923 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-05/0.2891, allocations: 27.72 kB / 0.9923 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000641/0.2897, allocations: 431.4 kB / 0.9927 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.2898, allocations: 7.984 kB / 0.9927 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.2898, allocations: 0 / 0.9927 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.2898, allocations: 0 / 0.9927 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.2911, allocations: 1.142 MB / 0.9938 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2911, allocations: 4 kB / 0.9938 GB, free: 12.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001429/0.2913, allocations: 35.84 kB / 0.9939 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.2913, allocations: 7.938 kB / 0.9939 GB, free: 12.56 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.2913, allocations: 12 kB / 0.9939 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2913, allocations: 0 / 0.9939 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.2913, allocations: 3.953 kB / 0.9939 GB, free: 12.54 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005565/0.2919, allocations: 0.4919 MB / 0.9944 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.287e-05/0.2919, allocations: 108.7 kB / 0.9945 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.209e-05/0.292, allocations: 12 kB / 0.9945 GB, free: 11.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.2922, allocations: 31.98 kB / 0.9945 GB, free: 11.87 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.2923, allocations: 68.33 kB / 0.9946 GB, free: 11.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-05/0.2924, allocations: 15.95 kB / 0.9946 GB, free: 11.79 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.886e-05/0.2924, allocations: 136.5 kB / 0.9947 GB, free: 11.65 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2924, allocations: 0 / 0.9947 GB, free: 11.65 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003689/0.2928, allocations: 107.6 kB / 0.9948 GB, free: 11.55 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (con.t2.enableFire,con.t1.enableFire,con.discharge.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.fire,con.t1.t_start,con.t2.condition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.condition,con.t3.enableFire,con.t4.condition,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002447/0.2931, allocations: 143.1 kB / 0.995 GB, free: 11.4 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000643/0.2937, allocations: 437.5 kB / 0.9954 GB, free: 10.98 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2937, allocations: 0 / 0.9954 GB, free: 10.98 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002733/0.294, allocations: 215.4 kB / 0.9956 GB, free: 10.76 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.2944, allocations: 51.91 kB / 0.9956 GB, free: 10.71 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.2955, allocations: 0.8482 MB / 0.9965 GB, free: 9.84 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.2958, allocations: 0.8194 MB / 0.9973 GB, free: 8.996 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000184/0.296, allocations: 71.17 kB / 0.9973 GB, free: 8.93 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.2961, allocations: 39.42 kB / 0.9974 GB, free: 8.891 MB / 0.6198 GB Notification: Performance of SimCode: time 2.4e-07/0.2961, allocations: 0 / 0.9974 GB, free: 8.891 MB / 0.6198 GB Notification: Performance of Templates: time 0.007072/0.3032, allocations: 3.75 MB / 1.001 GB, free: 5.199 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)