Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.651/2.651, allocations: 287.9 MB / 302.9 MB, free: 8.273 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00152/0.00152, allocations: 179.4 kB / 371.4 MB, free: 10.65 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.971/1.971, allocations: 205.4 MB / 0.6301 GB, free: 10.39 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001056/0.001056, allocations: 90.84 kB / 0.7434 GB, free: 6.398 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004768/0.000477, allocations: 11.81 kB / 0.8662 GB, free: 141.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1594, allocations: 115.3 MB / 0.9788 GB, free: 28.18 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002366/0.1618, allocations: 1.923 MB / 0.9806 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001692/0.1635, allocations: 0.9675 MB / 0.9816 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002061/0.1638, allocations: 11.94 kB / 0.9816 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.1639, allocations: 43.59 kB / 0.9816 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002215/0.1641, allocations: 43.86 kB / 0.9817 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005111/0.1647, allocations: 179.7 kB / 0.9818 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004234/0.1651, allocations: 356 kB / 0.9822 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004771/0.1656, allocations: 340.4 kB / 0.9825 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001997/0.1658, allocations: 155.4 kB / 0.9827 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.166, allocations: 159.2 kB / 0.9828 GB, free: 24 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.889e-05/0.1661, allocations: 16 kB / 0.9828 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001019/0.1662, allocations: 35.98 kB / 0.9829 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.1663, allocations: 83.72 kB / 0.9829 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.342e-05/0.1664, allocations: 101.5 kB / 0.983 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004932/0.1669, allocations: 0.5301 MB / 0.9836 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.27e-06/0.1669, allocations: 0 / 0.9836 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.447e-06/0.167, allocations: 0 / 0.9836 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.759e-06/0.167, allocations: 0 / 0.9836 GB, free: 23.23 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.00101/0.168, allocations: 0.6317 MB / 0.9842 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.168, allocations: 12.02 kB / 0.9842 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.1682, allocations: 55.39 kB / 0.9842 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.1686, allocations: 339 kB / 0.9846 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.681e-05/0.1687, allocations: 53.25 kB / 0.9846 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.35e-05/0.1688, allocations: 60 kB / 0.9847 GB, free: 22 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/0.1698, allocations: 0.5617 MB / 0.9852 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.855e-05/0.1699, allocations: 4 kB / 0.9852 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.372e-05/0.1699, allocations: 20 kB / 0.9852 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.54e-05/0.17, allocations: 24.94 kB / 0.9853 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009503/0.171, allocations: 427.6 kB / 0.9857 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002573/0.1735, allocations: 1.926 MB / 0.9875 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000709/0.1743, allocations: 355.6 kB / 0.9879 GB, free: 18.58 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 5.849e-05/0.1744, allocations: 4 kB / 0.9879 GB, free: 18.58 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004485/0.1748, allocations: 230.2 kB / 0.9881 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 4.678e-06/0.1749, allocations: 0 / 0.9881 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001074/0.176, allocations: 477.2 kB / 0.9886 GB, free: 17.87 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.176, allocations: 67.16 kB / 0.9886 GB, free: 17.79 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.1763, allocations: 237.8 kB / 0.9889 GB, free: 17.54 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.893e-05/0.1763, allocations: 49.69 kB / 0.9889 GB, free: 17.49 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.1765, allocations: 220.7 kB / 0.9891 GB, free: 17.27 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.1766, allocations: 122.3 kB / 0.9892 GB, free: 17.15 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.905e-05/0.1766, allocations: 12 kB / 0.9892 GB, free: 17.14 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.832e-05/0.1767, allocations: 346.8 kB / 0.9896 GB, free: 16.79 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003704/0.1771, allocations: 161.2 kB / 0.9897 GB, free: 16.63 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004314/0.1776, allocations: 288.7 kB / 0.99 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003753/0.1779, allocations: 170.1 kB / 0.9902 GB, free: 16.14 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.898e-06/0.178, allocations: 0 / 0.9902 GB, free: 16.14 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001026/0.179, allocations: 0.5023 MB / 0.9907 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.179, allocations: 4 kB / 0.9907 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.1791, allocations: 8.453 kB / 0.9907 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/0.1791, allocations: 12 kB / 0.9907 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002929/0.1794, allocations: 67.83 kB / 0.9907 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.1794, allocations: 7.938 kB / 0.9908 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000297/0.1797, allocations: 59.52 kB / 0.9908 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.696e-05/0.1798, allocations: 31.98 kB / 0.9908 GB, free: 15.44 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.0003137/0.1801, allocations: 226.9 kB / 0.9911 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.865e-05/0.1802, allocations: 23.72 kB / 0.9911 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008981/0.1811, allocations: 435.4 kB / 0.9915 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.414e-06/0.1811, allocations: 12 kB / 0.9915 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1812, allocations: 0 / 0.9915 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.724e-06/0.1812, allocations: 7.922 kB / 0.9915 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001831/0.183, allocations: 1.13 MB / 0.9926 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.498e-06/0.1831, allocations: 0 / 0.9926 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.1833, allocations: 35.92 kB / 0.9926 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8e-06/0.1833, allocations: 0 / 0.9926 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/0.1833, allocations: 11.98 kB / 0.9927 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.88e-06/0.1834, allocations: 4 kB / 0.9927 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.778e-06/0.1834, allocations: 3.953 kB / 0.9927 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008101/0.1842, allocations: 0.4996 MB / 0.9932 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.981e-05/0.1843, allocations: 108.7 kB / 0.9933 GB, free: 12.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.902e-05/0.1843, allocations: 8 kB / 0.9933 GB, free: 12.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.1846, allocations: 27.97 kB / 0.9933 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.1848, allocations: 68.3 kB / 0.9934 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.697e-05/0.1848, allocations: 19.98 kB / 0.9934 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000119/0.185, allocations: 136.2 kB / 0.9935 GB, free: 12.58 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.587e-06/0.185, allocations: 0 / 0.9935 GB, free: 12.58 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005762/0.1856, allocations: 119.5 kB / 0.9936 GB, free: 12.46 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.0002063/0.1858, allocations: 144.9 kB / 0.9938 GB, free: 12.32 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0009172/0.1867, allocations: 437.5 kB / 0.9942 GB, free: 11.89 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.281e-06/0.1867, allocations: 0 / 0.9942 GB, free: 11.89 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004114/0.1872, allocations: 226.3 kB / 0.9944 GB, free: 11.67 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003505/0.1875, allocations: 32.92 kB / 0.9944 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.189, allocations: 0.8443 MB / 0.9952 GB, free: 10.77 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.1894, allocations: 0.8311 MB / 0.9961 GB, free: 9.914 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003118/0.1897, allocations: 59.25 kB / 0.9961 GB, free: 9.859 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.1898, allocations: 39.42 kB / 0.9962 GB, free: 9.82 MB / 0.6198 GB Notification: Performance of SimCode: time 1.784e-06/0.1899, allocations: 0 / 0.9962 GB, free: 9.82 MB / 0.6198 GB Notification: Performance of Templates: time 0.01068/0.2005, allocations: 3.744 MB / 0.9998 GB, free: 6.113 MB / 0.6198 GB