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 2.602/2.602, allocations: 287.5 MB / 302.4 MB, free: 8.301 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.001312/0.001311, allocations: 188.4 kB / 371 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 2.179/2.179, allocations: 205.4 MB / 0.6297 GB, free: 10.5 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.0009444/0.000944, allocations: 86.48 kB / 0.743 GB, free: 6.488 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007895/0.0007898, allocations: 15.75 kB / 0.8658 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2324, allocations: 115.3 MB / 0.9784 GB, free: 28.34 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003028/0.2355, allocations: 1.926 MB / 0.9802 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002165/0.2377, allocations: 0.9675 MB / 0.9812 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002696/0.238, allocations: 11.94 kB / 0.9812 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001716/0.2382, allocations: 43.59 kB / 0.9812 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002753/0.2385, allocations: 35.7 kB / 0.9813 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006953/0.2392, allocations: 175.8 kB / 0.9814 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0007268/0.2399, allocations: 0.5465 MB / 0.982 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006166/0.2406, allocations: 348.4 kB / 0.9823 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000251/0.2409, allocations: 147.4 kB / 0.9824 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.2411, allocations: 163.1 kB / 0.9826 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 6.05e-05/0.2412, allocations: 20 kB / 0.9826 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.2413, allocations: 32 kB / 0.9826 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.2415, allocations: 87.66 kB / 0.9827 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.2416, allocations: 101.5 kB / 0.9828 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0006464/0.2422, allocations: 0.5302 MB / 0.9833 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2423, allocations: 4 kB / 0.9833 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.716e-06/0.2423, allocations: 0 / 0.9833 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.667e-06/0.2423, allocations: 0 / 0.9833 GB, free: 23.19 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.0014/0.2437, allocations: 0.6265 MB / 0.984 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.2438, allocations: 16.02 kB / 0.984 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.2439, allocations: 55.38 kB / 0.984 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004913/0.2444, allocations: 335 kB / 0.9843 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.154e-05/0.2445, allocations: 45.31 kB / 0.9844 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.2447, allocations: 56 kB / 0.9844 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.2461, allocations: 0.5695 MB / 0.985 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.47e-05/0.2461, allocations: 0 / 0.985 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.124e-05/0.2462, allocations: 20 kB / 0.985 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.405e-05/0.2463, allocations: 24.98 kB / 0.985 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/0.2475, allocations: 427.6 kB / 0.9854 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003272/0.2508, allocations: 1.938 MB / 0.9873 GB, free: 18.89 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008515/0.2517, allocations: 350.5 kB / 0.9877 GB, free: 18.55 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004342/0.2521, allocations: 188.8 kB / 0.9879 GB, free: 18.36 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 8.846e-05/0.2522, allocations: 4 kB / 0.9879 GB, free: 18.36 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005796/0.2528, allocations: 222.3 kB / 0.9881 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 3.918e-06/0.2529, allocations: 0 / 0.9881 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001355/0.2542, allocations: 493.1 kB / 0.9885 GB, free: 17.64 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.2543, allocations: 59.16 kB / 0.9886 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003205/0.2546, allocations: 245.7 kB / 0.9888 GB, free: 17.31 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.585e-05/0.2547, allocations: 49.69 kB / 0.9889 GB, free: 17.26 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.2549, allocations: 212.8 kB / 0.9891 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.255, allocations: 118.4 kB / 0.9892 GB, free: 16.93 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.851e-05/0.2551, allocations: 15.94 kB / 0.9892 GB, free: 16.91 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.2552, allocations: 350.8 kB / 0.9895 GB, free: 16.56 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004421/0.2556, allocations: 161.2 kB / 0.9897 GB, free: 16.41 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005098/0.2561, allocations: 292.7 kB / 0.99 GB, free: 16.07 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004751/0.2566, allocations: 166.2 kB / 0.9901 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.2567, allocations: 0 / 0.9901 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001217/0.2579, allocations: 0.5064 MB / 0.9906 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.2579, allocations: 4 kB / 0.9906 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.258, allocations: 4 kB / 0.9906 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.113e-05/0.258, allocations: 8 kB / 0.9906 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004056/0.2584, allocations: 67.83 kB / 0.9907 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/0.2584, allocations: 4 kB / 0.9907 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003863/0.2588, allocations: 63.77 kB / 0.9908 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.44e-05/0.2589, allocations: 27.98 kB / 0.9908 GB, free: 15.22 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.0003741/0.2593, allocations: 230.8 kB / 0.991 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.967e-05/0.2594, allocations: 27.72 kB / 0.991 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.2605, allocations: 435.4 kB / 0.9915 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.397e-06/0.2605, allocations: 8 kB / 0.9915 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.2606, allocations: 0 / 0.9915 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.2606, allocations: 3.984 kB / 0.9915 GB, free: 14.51 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002122/0.2627, allocations: 1.134 MB / 0.9926 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.2628, allocations: 0 / 0.9926 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002698/0.2631, allocations: 31.92 kB / 0.9926 GB, free: 13.28 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.2631, allocations: 3.938 kB / 0.9926 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.782e-05/0.2631, allocations: 15.98 kB / 0.9926 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.895e-06/0.2631, allocations: 11.95 kB / 0.9926 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2632, allocations: 0 / 0.9926 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009415/0.2641, allocations: 499.7 kB / 0.9931 GB, free: 12.74 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.273e-05/0.2642, allocations: 108.7 kB / 0.9932 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.452e-05/0.2643, allocations: 8 kB / 0.9932 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.2646, allocations: 35.97 kB / 0.9933 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.2648, allocations: 68.3 kB / 0.9933 GB, free: 12.51 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.915e-05/0.2649, allocations: 19.98 kB / 0.9934 GB, free: 12.49 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001329/0.265, allocations: 136.2 kB / 0.9935 GB, free: 12.36 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.81e-07/0.265, allocations: 0 / 0.9935 GB, free: 12.36 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005821/0.2656, allocations: 115.6 kB / 0.9936 GB, free: 12.24 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.000237/0.2659, allocations: 141 kB / 0.9937 GB, free: 12.1 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001097/0.267, allocations: 442.3 kB / 0.9941 GB, free: 11.67 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.267, allocations: 192 / 0.9941 GB, free: 11.67 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004947/0.2675, allocations: 222.3 kB / 0.9944 GB, free: 11.45 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005254/0.2681, allocations: 43.92 kB / 0.9944 GB, free: 11.41 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.2698, allocations: 0.8568 MB / 0.9952 GB, free: 10.53 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003022/0.2702, allocations: 0.8155 MB / 0.996 GB, free: 9.688 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003668/0.2705, allocations: 63.25 kB / 0.9961 GB, free: 9.629 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.2707, allocations: 39.42 kB / 0.9961 GB, free: 9.59 MB / 0.6198 GB Notification: Performance of SimCode: time 1.202e-06/0.2707, allocations: 0 / 0.9961 GB, free: 9.59 MB / 0.6198 GB Notification: Performance of Templates: time 0.01186/0.2826, allocations: 3.75 MB / 0.9998 GB, free: 5.871 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)