Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Electrical.DC.Storage.Examples.Battery.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.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.62/2.62, allocations: 287.9 MB / 302.9 MB, free: 8.34 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.001427/0.001427, allocations: 175 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 2.011/2.011, allocations: 205.4 MB / 0.6301 GB, free: 10.36 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.001068/0.001068, allocations: 96.03 kB / 0.7434 GB, free: 6.371 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004691/0.0004694, allocations: 14.69 kB / 0.8662 GB, free: 141.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1549, allocations: 115.3 MB / 0.9788 GB, free: 28.16 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.004613/0.1596, allocations: 3.653 MB / 0.9823 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003519/0.1632, allocations: 1.903 MB / 0.9842 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004588/0.1637, allocations: 19.88 kB / 0.9842 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002385/0.1639, allocations: 79.34 kB / 0.9843 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0005013/0.1644, allocations: 163.4 kB / 0.9844 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.1655, allocations: 327.4 kB / 0.9847 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0006818/0.1662, allocations: 0.5389 MB / 0.9853 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008665/0.167, allocations: 0.7839 MB / 0.986 GB, free: 20.63 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002595/0.1673, allocations: 243 kB / 0.9863 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003407/0.1677, allocations: 266.8 kB / 0.9865 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 7.342e-05/0.1678, allocations: 28 kB / 0.9865 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000249/0.168, allocations: 91.89 kB / 0.9866 GB, free: 20.01 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.1682, allocations: 155.4 kB / 0.9868 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.1683, allocations: 141.3 kB / 0.9869 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0006402/0.169, allocations: 0.6393 MB / 0.9875 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.848e-06/0.169, allocations: 0 / 0.9875 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.256e-06/0.169, allocations: 0 / 0.9875 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.069e-05/0.169, allocations: 0 / 0.9875 GB, free: 19.07 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.001255/0.1703, allocations: 0.8009 MB / 0.9883 GB, free: 18.23 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.1703, allocations: 12.02 kB / 0.9883 GB, free: 18.21 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006339/0.171, allocations: 127 kB / 0.9885 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005995/0.1716, allocations: 423.7 kB / 0.9889 GB, free: 17.64 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.497e-05/0.1717, allocations: 62 kB / 0.9889 GB, free: 17.58 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.1718, allocations: 79.98 kB / 0.989 GB, free: 17.5 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.1733, allocations: 0.8652 MB / 0.9898 GB, free: 16.57 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/0.1733, allocations: 7.875 kB / 0.9898 GB, free: 16.56 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.779e-05/0.1734, allocations: 39.95 kB / 0.9899 GB, free: 16.52 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.6e-05/0.1735, allocations: 49.98 kB / 0.9899 GB, free: 16.47 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.1746, allocations: 0.5619 MB / 0.9905 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004023/0.1787, allocations: 3.716 MB / 0.9941 GB, free: 11.98 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007006/0.1794, allocations: 313.4 kB / 0.9944 GB, free: 11.67 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.796e-05/0.1795, allocations: 8.469 kB / 0.9944 GB, free: 11.66 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004477/0.1799, allocations: 221.2 kB / 0.9946 GB, free: 11.43 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=47): time 4.141e-06/0.18, allocations: 0 / 0.9946 GB, free: 11.43 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47): time 0.0009924/0.181, allocations: 454.5 kB / 0.9951 GB, free: 10.98 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.181, allocations: 59.84 kB / 0.9951 GB, free: 10.91 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000469/0.1815, allocations: 425.1 kB / 0.9955 GB, free: 10.49 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.983e-05/0.1816, allocations: 49.69 kB / 0.9956 GB, free: 10.44 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.1818, allocations: 335.5 kB / 0.9959 GB, free: 10.11 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.1819, allocations: 138.2 kB / 0.996 GB, free: 9.969 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.21e-05/0.1819, allocations: 12 kB / 0.996 GB, free: 9.957 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.153e-05/0.182, allocations: 358.8 kB / 0.9964 GB, free: 9.598 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003495/0.1824, allocations: 153.9 kB / 0.9965 GB, free: 9.445 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000463/0.1829, allocations: 395.6 kB / 0.9969 GB, free: 8.961 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/0.1833, allocations: 182.1 kB / 0.9971 GB, free: 8.781 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.388e-06/0.1833, allocations: 3.953 kB / 0.9971 GB, free: 8.777 MB / 0.6198 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001104/0.1844, allocations: 0.5963 MB / 0.9977 GB, free: 8.176 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005301/0.185, allocations: 2.7 MB / 1 GB, free: 5.262 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.185, allocations: 8 kB / 1 GB, free: 5.254 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.674e-05/0.185, allocations: 12 kB / 1 GB, free: 5.242 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004516/0.1855, allocations: 99.77 kB / 1 GB, free: 5.145 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.92e-05/0.1855, allocations: 15.92 kB / 1 GB, free: 5.129 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004663/0.186, allocations: 91.02 kB / 1.001 GB, free: 5.039 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-05/0.1861, allocations: 35.98 kB / 1.001 GB, free: 5.004 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.1861, allocations: 4 kB / 1.001 GB, free: 5 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001028/0.1871, allocations: 0.5203 MB / 1.001 GB, free: 4.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.1872, allocations: 4 kB / 1.001 GB, free: 4.477 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1872, allocations: 12 kB / 1.001 GB, free: 4.465 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003938/0.1876, allocations: 108.5 kB / 1.001 GB, free: 4.359 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-05/0.1876, allocations: 15.94 kB / 1.001 GB, free: 4.344 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004332/0.1881, allocations: 71.36 kB / 1.001 GB, free: 4.273 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.787e-05/0.1882, allocations: 32 kB / 1.001 GB, free: 4.242 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,off.active,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,toOn.condition,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * 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.0003823/0.1886, allocations: 320.8 kB / 1.002 GB, free: 3.918 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.708e-05/0.1886, allocations: 47.39 kB / 1.002 GB, free: 3.871 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008026/0.1895, allocations: 405.4 kB / 1.002 GB, free: 3.469 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/0.1895, allocations: 12 kB / 1.002 GB, free: 3.457 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.359e-06/0.1895, allocations: 7.875 kB / 1.002 GB, free: 3.449 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.1895, allocations: 3.984 kB / 1.002 GB, free: 3.445 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.1913, allocations: 1.055 MB / 1.003 GB, free: 2.324 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.348e-06/0.1913, allocations: 4 kB / 1.003 GB, free: 2.32 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002872/0.1916, allocations: 51.97 kB / 1.003 GB, free: 2.27 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.645e-06/0.1917, allocations: 3.938 kB / 1.003 GB, free: 2.266 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-05/0.1917, allocations: 8 kB / 1.003 GB, free: 2.258 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.79e-06/0.1917, allocations: 4 kB / 1.003 GB, free: 2.254 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.426e-06/0.1917, allocations: 0 / 1.003 GB, free: 2.254 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.1928, allocations: 0.6642 MB / 1.004 GB, free: 1.559 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000184/0.193, allocations: 156.4 kB / 1.004 GB, free: 1.387 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.523e-05/0.1931, allocations: 8 kB / 1.004 GB, free: 1.379 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002724/0.1934, allocations: 23.94 kB / 1.004 GB, free: 1.355 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.1935, allocations: 52.3 kB / 1.004 GB, free: 1.305 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.1936, allocations: 12 kB / 1.004 GB, free: 1.293 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002899/0.1939, allocations: 255.2 kB / 1.004 GB, free: 1.043 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.76e-07/0.1939, allocations: 4.062 kB / 1.004 GB, free: 1.039 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001027/0.1949, allocations: 274.8 kB / 1.005 GB, free: 0.7695 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,off.active,off.newActive,off.oldActive,toOn.condition,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,hold.newActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001798/0.1951, allocations: 125.4 kB / 1.005 GB, free: 0.6367 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001599/0.1967, allocations: 0.7183 MB / 1.005 GB, free: 15.92 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.382e-06/0.1968, allocations: 0 / 1.005 GB, free: 15.92 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0004201/0.1972, allocations: 190.4 kB / 1.006 GB, free: 15.73 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006627/0.1979, allocations: 94.03 kB / 1.006 GB, free: 15.64 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.2003, allocations: 1.184 MB / 1.007 GB, free: 14.43 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007149/0.2011, allocations: 0.9228 MB / 1.008 GB, free: 13.48 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0006212/0.2017, allocations: 116.7 kB / 1.008 GB, free: 13.36 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.2019, allocations: 51.42 kB / 1.008 GB, free: 13.31 MB / 0.6355 GB Notification: Performance of SimCode: time 1.621e-06/0.2019, allocations: 0 / 1.008 GB, free: 13.31 MB / 0.6355 GB Notification: Performance of Templates: time 0.01791/0.2199, allocations: 5.339 MB / 1.013 GB, free: 8.031 MB / 0.6355 GB