Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.72/1.72, allocations: 287.5 MB / 302.6 MB, free: 8.207 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.001583/0.001583, allocations: 189.2 kB / 371.2 MB, free: 10.84 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.434/1.434, allocations: 205.4 MB / 0.6298 GB, free: 10.61 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.0007957/0.0007958, allocations: 96.84 kB / 0.7432 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004078/0.0004078, allocations: 12.27 kB / 0.8661 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2538, allocations: 115.3 MB / 0.9787 GB, free: 28.22 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002311/0.2562, allocations: 1.922 MB / 0.9806 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001635/0.2578, allocations: 0.9675 MB / 0.9815 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.258, allocations: 15.94 kB / 0.9815 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.2582, allocations: 39.59 kB / 0.9816 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002356/0.2584, allocations: 27.78 kB / 0.9816 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003833/0.2588, allocations: 187.7 kB / 0.9818 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004211/0.2593, allocations: 0.5349 MB / 0.9823 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004247/0.2597, allocations: 396.6 kB / 0.9827 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.2599, allocations: 135.5 kB / 0.9828 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.26, allocations: 163.1 kB / 0.983 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.098e-05/0.2601, allocations: 24 kB / 0.983 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.809e-05/0.2602, allocations: 31.98 kB / 0.983 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.2603, allocations: 95.59 kB / 0.9831 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.047e-05/0.2604, allocations: 101.5 kB / 0.9832 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003656/0.2607, allocations: 0.5263 MB / 0.9837 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2608, allocations: 0 / 0.9837 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.705e-06/0.2608, allocations: 4 kB / 0.9837 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.2608, allocations: 3.938 kB / 0.9837 GB, free: 23.03 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.0009546/0.2617, allocations: 0.6345 MB / 0.9843 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.2618, allocations: 8.031 kB / 0.9843 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.064e-05/0.2619, allocations: 48.38 kB / 0.9844 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.2622, allocations: 336.3 kB / 0.9847 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.587e-05/0.2623, allocations: 45.69 kB / 0.9848 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-05/0.2623, allocations: 64.34 kB / 0.9848 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007771/0.2631, allocations: 0.5699 MB / 0.9854 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.2632, allocations: 4 kB / 0.9854 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.029e-05/0.2632, allocations: 24 kB / 0.9854 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.841e-05/0.2632, allocations: 17 kB / 0.9854 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006544/0.2639, allocations: 435.6 kB / 0.9858 GB, free: 20.75 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001777/0.2657, allocations: 1.911 MB / 0.9877 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004752/0.2662, allocations: 359 kB / 0.988 GB, free: 18.4 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000234/0.2664, allocations: 192.7 kB / 0.9882 GB, free: 18.21 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 5.066e-05/0.2665, allocations: 11.98 kB / 0.9882 GB, free: 18.2 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003192/0.2668, allocations: 233.9 kB / 0.9885 GB, free: 17.95 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 1.794e-06/0.2668, allocations: 0 / 0.9885 GB, free: 17.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.0007334/0.2676, allocations: 478.6 kB / 0.9889 GB, free: 17.48 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.2676, allocations: 63.16 kB / 0.989 GB, free: 17.41 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.2678, allocations: 241.7 kB / 0.9892 GB, free: 17.16 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.721e-05/0.2678, allocations: 49.7 kB / 0.9893 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.665e-05/0.2679, allocations: 224.7 kB / 0.9895 GB, free: 16.88 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.443e-05/0.268, allocations: 114.5 kB / 0.9896 GB, free: 16.77 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.791e-05/0.268, allocations: 12 kB / 0.9896 GB, free: 16.76 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.277e-05/0.2681, allocations: 342.8 kB / 0.9899 GB, free: 16.41 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002396/0.2683, allocations: 165.2 kB / 0.9901 GB, free: 16.25 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.2686, allocations: 284.8 kB / 0.9903 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004469/0.2691, allocations: 406.4 kB / 0.9907 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2691, allocations: 0 / 0.9907 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006696/0.2698, allocations: 0.5023 MB / 0.9912 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.2698, allocations: 4 kB / 0.9912 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.2698, allocations: 4.469 kB / 0.9912 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.2698, allocations: 12 kB / 0.9912 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002226/0.2701, allocations: 63.83 kB / 0.9913 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.2701, allocations: 11.94 kB / 0.9913 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.2703, allocations: 67.45 kB / 0.9914 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.881e-05/0.2703, allocations: 27.98 kB / 0.9914 GB, free: 14.79 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.0002045/0.2705, allocations: 234.8 kB / 0.9916 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.333e-05/0.2706, allocations: 31.7 kB / 0.9917 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006356/0.2712, allocations: 423.5 kB / 0.9921 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2712, allocations: 8 kB / 0.9921 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.2712, allocations: 0 / 0.9921 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.2713, allocations: 3.984 kB / 0.9921 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/0.2724, allocations: 1.141 MB / 0.9932 GB, free: 12.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.2725, allocations: 0 / 0.9932 GB, free: 12.88 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.2726, allocations: 31.92 kB / 0.9932 GB, free: 12.84 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.2726, allocations: 11.92 kB / 0.9932 GB, free: 12.83 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.2726, allocations: 12 kB / 0.9932 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.2727, allocations: 0 / 0.9932 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2727, allocations: 3.938 kB / 0.9932 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005328/0.2732, allocations: 0.4919 MB / 0.9937 GB, free: 12.31 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.132e-05/0.2732, allocations: 112.5 kB / 0.9938 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.174e-05/0.2733, allocations: 15.98 kB / 0.9938 GB, free: 12.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.2735, allocations: 27.98 kB / 0.9939 GB, free: 12.14 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.2736, allocations: 68.34 kB / 0.9939 GB, free: 12.07 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.2736, allocations: 15.98 kB / 0.994 GB, free: 12.05 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 8.254e-05/0.2737, allocations: 140.5 kB / 0.9941 GB, free: 11.92 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2737, allocations: 0 / 0.9941 GB, free: 11.92 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003326/0.2741, allocations: 107.6 kB / 0.9942 GB, free: 11.81 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.0001732/0.2742, allocations: 135.2 kB / 0.9943 GB, free: 11.67 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006197/0.2749, allocations: 445.5 kB / 0.9947 GB, free: 11.23 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2749, allocations: 0 / 0.9947 GB, free: 11.23 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002738/0.2752, allocations: 210.4 kB / 0.9949 GB, free: 11.02 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.2755, allocations: 52.8 kB / 0.995 GB, free: 10.97 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.2765, allocations: 0.8481 MB / 0.9958 GB, free: 10.1 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.2768, allocations: 0.8233 MB / 0.9966 GB, free: 9.25 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001908/0.277, allocations: 63.25 kB / 0.9967 GB, free: 9.191 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.2771, allocations: 39.42 kB / 0.9967 GB, free: 9.152 MB / 0.6198 GB Notification: Performance of SimCode: time 3.91e-07/0.2771, allocations: 0 / 0.9967 GB, free: 9.152 MB / 0.6198 GB Notification: Performance of Templates: time 0.006582/0.2837, allocations: 3.745 MB / 1 GB, free: 5.441 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)