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.779/2.779, allocations: 287.3 MB / 302.3 MB, free: 8.328 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.001568/0.001568, allocations: 185 kB / 370.8 MB, free: 10.87 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.162/2.162, allocations: 205.4 MB / 0.6295 GB, free: 10.62 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.001109/0.001108, allocations: 96.33 kB / 0.7428 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004782/0.0004783, allocations: 12.05 kB / 0.8656 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2378, allocations: 115.3 MB / 0.9782 GB, free: 28.41 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.004417/0.2423, allocations: 1.923 MB / 0.9801 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003397/0.2458, allocations: 0.9675 MB / 0.981 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004756/0.2463, allocations: 11.94 kB / 0.981 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002585/0.2466, allocations: 43.59 kB / 0.9811 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0003963/0.247, allocations: 31.88 kB / 0.9811 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001113/0.2482, allocations: 187.7 kB / 0.9813 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001001/0.2492, allocations: 352 kB / 0.9816 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001017/0.2503, allocations: 352.4 kB / 0.982 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004101/0.2507, allocations: 143.4 kB / 0.9821 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003548/0.2511, allocations: 163.2 kB / 0.9822 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 8.297e-05/0.2512, allocations: 20 kB / 0.9823 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001672/0.2514, allocations: 24 kB / 0.9823 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001995/0.2516, allocations: 87.72 kB / 0.9824 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001466/0.2518, allocations: 101.5 kB / 0.9825 GB, free: 24 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.2529, allocations: 0.534 MB / 0.983 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2529, allocations: 4 kB / 0.983 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.216e-06/0.2529, allocations: 0 / 0.983 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.45e-05/0.2529, allocations: 0 / 0.983 GB, free: 23.46 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.001962/0.2549, allocations: 0.6362 MB / 0.9836 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.255, allocations: 12.02 kB / 0.9836 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000264/0.2553, allocations: 51.39 kB / 0.9837 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007156/0.256, allocations: 339 kB / 0.984 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.31e-05/0.2562, allocations: 45.31 kB / 0.984 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/0.2563, allocations: 52 kB / 0.9841 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002325/0.2587, allocations: 0.5695 MB / 0.9846 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.284e-05/0.2588, allocations: 11.92 kB / 0.9847 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.2589, allocations: 20 kB / 0.9847 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-05/0.259, allocations: 17 kB / 0.9847 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001869/0.2609, allocations: 435.6 kB / 0.9851 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004817/0.2657, allocations: 1.923 MB / 0.987 GB, free: 19.17 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.2672, allocations: 355.6 kB / 0.9873 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-05/0.2673, allocations: 8 kB / 0.9873 GB, free: 18.81 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008319/0.2681, allocations: 226.2 kB / 0.9875 GB, free: 18.57 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 5.48e-06/0.2682, allocations: 0 / 0.9875 GB, free: 18.57 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.002054/0.2703, allocations: 481.2 kB / 0.988 GB, free: 18.1 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.2704, allocations: 63.14 kB / 0.9881 GB, free: 18.02 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004248/0.2708, allocations: 241.8 kB / 0.9883 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001274/0.271, allocations: 49.69 kB / 0.9883 GB, free: 17.72 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.2712, allocations: 216.7 kB / 0.9886 GB, free: 17.5 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001815/0.2714, allocations: 118.4 kB / 0.9887 GB, free: 17.39 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-05/0.2715, allocations: 15.94 kB / 0.9887 GB, free: 17.37 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.2716, allocations: 350.8 kB / 0.989 GB, free: 17.02 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000714/0.2724, allocations: 157.2 kB / 0.9892 GB, free: 16.87 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008192/0.2732, allocations: 288.7 kB / 0.9894 GB, free: 16.53 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007124/0.274, allocations: 178.1 kB / 0.9896 GB, free: 16.36 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/0.274, allocations: 0 / 0.9896 GB, free: 16.36 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001902/0.2759, allocations: 0.4987 MB / 0.9901 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.594e-05/0.276, allocations: 8 kB / 0.9901 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.276, allocations: 4 kB / 0.9901 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.567e-05/0.2761, allocations: 8 kB / 0.9901 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006098/0.2767, allocations: 63.83 kB / 0.9902 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.539e-05/0.2768, allocations: 11.94 kB / 0.9902 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006045/0.2774, allocations: 63.64 kB / 0.9902 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.657e-05/0.2775, allocations: 27.98 kB / 0.9903 GB, free: 15.67 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.0005402/0.2781, allocations: 222.9 kB / 0.9905 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.2782, allocations: 27.7 kB / 0.9905 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/0.2799, allocations: 435.4 kB / 0.9909 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.28, allocations: 7.938 kB / 0.9909 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.28, allocations: 0 / 0.9909 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/0.28, allocations: 7.984 kB / 0.9909 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00333/0.2834, allocations: 1.134 MB / 0.9921 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.2834, allocations: 0 / 0.9921 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003839/0.2838, allocations: 35.92 kB / 0.9921 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.429e-05/0.2839, allocations: 7.984 kB / 0.9921 GB, free: 13.72 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.777e-05/0.284, allocations: 8 kB / 0.9921 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.055e-06/0.284, allocations: 3.938 kB / 0.9921 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.284, allocations: 3.953 kB / 0.9921 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.2854, allocations: 0.4997 MB / 0.9926 GB, free: 13.19 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.149e-05/0.2856, allocations: 104.7 kB / 0.9927 GB, free: 13.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.54e-05/0.2857, allocations: 11.98 kB / 0.9927 GB, free: 13.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005022/0.2862, allocations: 31.98 kB / 0.9927 GB, free: 13.03 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002915/0.2865, allocations: 68.3 kB / 0.9928 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.293e-05/0.2866, allocations: 15.98 kB / 0.9928 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002007/0.2868, allocations: 140.2 kB / 0.993 GB, free: 12.81 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.31e-07/0.2869, allocations: 0 / 0.993 GB, free: 12.81 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0009829/0.2879, allocations: 107.6 kB / 0.9931 GB, free: 12.7 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.0003447/0.2882, allocations: 147.1 kB / 0.9932 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001658/0.2899, allocations: 437.5 kB / 0.9936 GB, free: 12.13 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.29, allocations: 0.9375 kB / 0.9936 GB, free: 12.13 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0007604/0.2907, allocations: 218.4 kB / 0.9938 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005902/0.2914, allocations: 35.98 kB / 0.9939 GB, free: 11.88 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.2939, allocations: 0.8443 MB / 0.9947 GB, free: 11.01 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004867/0.2944, allocations: 0.8272 MB / 0.9955 GB, free: 10.16 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000551/0.295, allocations: 67.23 kB / 0.9956 GB, free: 10.09 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002688/0.2953, allocations: 39.42 kB / 0.9956 GB, free: 10.05 MB / 0.6198 GB Notification: Performance of SimCode: time 1.252e-06/0.2953, allocations: 0 / 0.9956 GB, free: 10.05 MB / 0.6198 GB Notification: Performance of Templates: time 0.0166/0.3119, allocations: 3.741 MB / 0.9992 GB, free: 6.344 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)