Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01029/0.0103, allocations: 221.6 kB / 15.17 MB, free: 5.996 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001135/0.001136, allocations: 176.3 kB / 16.06 MB, free: 5.871 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.566/3.566, allocations: 389.1 MB / 405.9 MB, free: 67.57 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 3.857/3.857, allocations: 472.3 MB / 0.9018 GB, free: 87.49 MB / 490.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004685/0.0004688, allocations: 11.84 kB / 1.008 GB, free: 37.5 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1502, allocations: 98.72 MB / 1.104 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.005594/0.1558, allocations: 3.683 MB / 1.108 GB, free: 8.117 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.003567/0.1594, allocations: 1.884 MB / 1.109 GB, free: 6.227 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002848/0.1597, allocations: 19.88 kB / 1.109 GB, free: 6.207 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0002943/0.16, allocations: 79.3 kB / 1.11 GB, free: 6.129 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0006962/0.1608, allocations: 166.4 kB / 1.11 GB, free: 5.969 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.1619, allocations: 335.5 kB / 1.11 GB, free: 5.645 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001141/0.163, allocations: 0.8971 MB / 1.111 GB, free: 4.746 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.1642, allocations: 0.7847 MB / 1.112 GB, free: 3.934 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003342/0.1645, allocations: 255 kB / 1.112 GB, free: 3.684 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004846/0.165, allocations: 303.2 kB / 1.112 GB, free: 3.387 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 8.916e-05/0.1651, allocations: 36.48 kB / 1.112 GB, free: 3.352 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002617/0.1654, allocations: 96.31 kB / 1.112 GB, free: 3.258 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.000192/0.1656, allocations: 159.5 kB / 1.112 GB, free: 3.102 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.1658, allocations: 137.3 kB / 1.113 GB, free: 2.961 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0008163/0.1666, allocations: 0.6393 MB / 1.113 GB, free: 2.32 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.66e-06/0.1666, allocations: 0 / 1.113 GB, free: 2.32 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.876e-06/0.1666, allocations: 0 / 1.113 GB, free: 2.32 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.042e-05/0.1666, allocations: 0 / 1.113 GB, free: 2.32 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.001535/0.1682, allocations: 0.8008 MB / 1.114 GB, free: 1.473 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.1682, allocations: 8.031 kB / 1.114 GB, free: 1.465 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006498/0.1689, allocations: 123 kB / 1.114 GB, free: 1.344 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007164/0.1696, allocations: 419.7 kB / 1.115 GB, free: 0.8945 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.704e-05/0.1697, allocations: 65.98 kB / 1.115 GB, free: 0.8281 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.1699, allocations: 76 kB / 1.115 GB, free: 0.7539 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.1716, allocations: 0.8574 MB / 1.116 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.1717, allocations: 11.89 kB / 1.116 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-05/0.1718, allocations: 32 kB / 1.116 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.92e-05/0.1719, allocations: 45.3 kB / 1.116 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.1733, allocations: 0.567 MB / 1.116 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005125/0.1784, allocations: 3.685 MB / 1.12 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007757/0.1792, allocations: 315.8 kB / 1.12 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005256/0.1797, allocations: 209.5 kB / 1.12 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 4.032e-05/0.1798, allocations: 8.375 kB / 1.12 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005361/0.1803, allocations: 251.9 kB / 1.121 GB, free: 10.49 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=47): time 3.524e-06/0.1804, allocations: 0 / 1.121 GB, free: 10.49 MB / 0.5417 GB Notification: Performance of matching and sorting (n=47): time 0.001111/0.1815, allocations: 451.9 kB / 1.121 GB, free: 10.04 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.885e-05/0.1816, allocations: 89.11 kB / 1.121 GB, free: 9.934 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005614/0.1821, allocations: 413.2 kB / 1.121 GB, free: 9.52 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.872e-05/0.1822, allocations: 53.69 kB / 1.121 GB, free: 9.461 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.00031/0.1826, allocations: 335.5 kB / 1.122 GB, free: 9.129 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.1827, allocations: 130.3 kB / 1.122 GB, free: 9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.1828, allocations: 16 kB / 1.122 GB, free: 8.984 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002049/0.183, allocations: 362.8 kB / 1.122 GB, free: 8.621 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003914/0.1834, allocations: 150 kB / 1.122 GB, free: 8.473 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006146/0.184, allocations: 392.5 kB / 1.123 GB, free: 7.988 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004438/0.1845, allocations: 186.1 kB / 1.123 GB, free: 7.809 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.281e-06/0.1845, allocations: 11.88 kB / 1.123 GB, free: 7.797 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00128/0.1858, allocations: 0.5841 MB / 1.124 GB, free: 7.207 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002355/0.186, allocations: 302.4 kB / 1.124 GB, free: 6.812 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.1861, allocations: 8 kB / 1.124 GB, free: 6.805 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.623e-05/0.1861, allocations: 12 kB / 1.124 GB, free: 6.793 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004363/0.1865, allocations: 99.77 kB / 1.124 GB, free: 6.695 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.843e-05/0.1866, allocations: 19.92 kB / 1.124 GB, free: 6.676 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004409/0.187, allocations: 79.12 kB / 1.124 GB, free: 6.598 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.612e-05/0.1871, allocations: 35.98 kB / 1.124 GB, free: 6.562 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.636e-06/0.1872, allocations: 6.812 kB / 1.124 GB, free: 6.559 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001126/0.1883, allocations: 0.5168 MB / 1.125 GB, free: 6.039 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.1883, allocations: 8 kB / 1.125 GB, free: 6.031 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.1884, allocations: 15.95 kB / 1.125 GB, free: 6.016 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004045/0.1888, allocations: 99.77 kB / 1.125 GB, free: 5.918 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.416e-05/0.1888, allocations: 19.92 kB / 1.125 GB, free: 5.898 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003898/0.1892, allocations: 63.78 kB / 1.125 GB, free: 5.836 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.256e-05/0.1893, allocations: 39.98 kB / 1.125 GB, free: 5.797 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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.0004162/0.1897, allocations: 320.8 kB / 1.125 GB, free: 5.473 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.011e-05/0.1898, allocations: 51.42 kB / 1.125 GB, free: 5.422 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009068/0.1907, allocations: 397 kB / 1.126 GB, free: 5.031 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.919e-06/0.1908, allocations: 4 kB / 1.126 GB, free: 5.027 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.282e-06/0.1908, allocations: 0 / 1.126 GB, free: 5.027 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.1908, allocations: 11.98 kB / 1.126 GB, free: 5.016 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.193, allocations: 1.198 MB / 1.127 GB, free: 3.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.593e-06/0.193, allocations: 4 kB / 1.127 GB, free: 3.727 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.1933, allocations: 55.97 kB / 1.127 GB, free: 3.672 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.53e-06/0.1933, allocations: 4 kB / 1.127 GB, free: 3.668 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.585e-05/0.1934, allocations: 8 kB / 1.127 GB, free: 3.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.716e-06/0.1934, allocations: 3.984 kB / 1.127 GB, free: 3.656 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.376e-06/0.1934, allocations: 4 kB / 1.127 GB, free: 3.652 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.1947, allocations: 0.6477 MB / 1.127 GB, free: 2.98 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.1949, allocations: 152.4 kB / 1.128 GB, free: 2.812 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.82e-05/0.195, allocations: 12 kB / 1.128 GB, free: 2.801 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002622/0.1953, allocations: 19.98 kB / 1.128 GB, free: 2.781 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.1954, allocations: 48.36 kB / 1.128 GB, free: 2.734 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.402e-05/0.1955, allocations: 16 kB / 1.128 GB, free: 2.719 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003497/0.1958, allocations: 259.2 kB / 1.128 GB, free: 2.465 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.99e-07/0.1958, allocations: 0 / 1.128 GB, free: 2.465 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001065/0.1969, allocations: 263 kB / 1.128 GB, free: 2.207 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (52): * Single equations (assignments): 48 * 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.0002032/0.1971, allocations: 129.4 kB / 1.128 GB, free: 2.07 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001527/0.1987, allocations: 0.7109 MB / 1.129 GB, free: 1.363 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.1987, allocations: 0 / 1.129 GB, free: 1.363 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004149/0.1991, allocations: 194.5 kB / 1.129 GB, free: 1.172 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007617/0.1999, allocations: 105.4 kB / 1.129 GB, free: 1.07 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/0.2021, allocations: 1.202 MB / 1.13 GB, free: 15.83 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006857/0.2028, allocations: 0.9228 MB / 1.131 GB, free: 14.88 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0005241/0.2033, allocations: 112.7 kB / 1.131 GB, free: 14.77 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001668/0.2035, allocations: 51.42 kB / 1.132 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of SimCode: time 1.284e-06/0.2035, allocations: 0 / 1.132 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of Templates: time 0.01559/0.2191, allocations: 5.394 MB / 1.137 GB, free: 9.367 MB / 0.5573 GB