Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.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.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01737/0.01737, allocations: 221.3 kB / 15.17 MB, free: 5.93 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.001126/0.001125, allocations: 179.1 kB / 16.06 MB, free: 5.828 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.968/3.968, allocations: 389.1 MB / 405.9 MB, free: 11.82 MB / 330.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: 9.246 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0005265/0.0005267, allocations: 8 kB / 1.008 GB, free: 138.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1301, allocations: 98.73 MB / 1.104 GB, free: 42.03 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.005905/0.136, allocations: 5.347 MB / 1.109 GB, free: 36.66 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.003435/0.1395, allocations: 2.074 MB / 1.111 GB, free: 34.59 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004173/0.1399, allocations: 11.94 kB / 1.111 GB, free: 34.57 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.1402, allocations: 55.48 kB / 1.111 GB, free: 34.52 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0008272/0.141, allocations: 253 kB / 1.112 GB, free: 34.27 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009425/0.142, allocations: 296.6 kB / 1.112 GB, free: 33.99 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0008005/0.1428, allocations: 0.8254 MB / 1.113 GB, free: 33.16 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001305/0.1441, allocations: 0.7146 MB / 1.113 GB, free: 32.43 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003263/0.1444, allocations: 234.9 kB / 1.114 GB, free: 32.2 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004498/0.1449, allocations: 298.8 kB / 1.114 GB, free: 31.91 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 7.143e-05/0.145, allocations: 22.34 kB / 1.114 GB, free: 31.89 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004329/0.1454, allocations: 187.7 kB / 1.114 GB, free: 31.7 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.1456, allocations: 147.5 kB / 1.114 GB, free: 31.56 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.1457, allocations: 129.4 kB / 1.114 GB, free: 31.43 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0006857/0.1464, allocations: 0.7288 MB / 1.115 GB, free: 30.7 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.406e-06/0.1464, allocations: 4 kB / 1.115 GB, free: 30.69 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.928e-06/0.1465, allocations: 1.094 kB / 1.115 GB, free: 30.69 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.993e-06/0.1465, allocations: 0 / 1.115 GB, free: 30.69 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001472/0.148, allocations: 0.831 MB / 1.116 GB, free: 29.81 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.479e-05/0.148, allocations: 12.03 kB / 1.116 GB, free: 29.8 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008009/0.1488, allocations: 139 kB / 1.116 GB, free: 29.66 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006116/0.1495, allocations: 421.9 kB / 1.116 GB, free: 29.21 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.758e-05/0.1495, allocations: 37.56 kB / 1.116 GB, free: 29.18 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.687e-05/0.1496, allocations: 47.98 kB / 1.117 GB, free: 29.13 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.1509, allocations: 0.6982 MB / 1.117 GB, free: 28.41 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.151, allocations: 4 kB / 1.117 GB, free: 28.41 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.463e-05/0.1511, allocations: 24.5 kB / 1.117 GB, free: 28.39 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/0.1512, allocations: 56.91 kB / 1.117 GB, free: 28.33 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.1525, allocations: 0.5636 MB / 1.118 GB, free: 27.77 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003699/0.1563, allocations: 2.808 MB / 1.121 GB, free: 24.76 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.1576, allocations: 0.5611 MB / 1.121 GB, free: 24.18 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005386/0.1582, allocations: 261.6 kB / 1.121 GB, free: 23.93 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003836/0.1586, allocations: 0.5662 MB / 1.122 GB, free: 23.23 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007887/0.1594, allocations: 418.2 kB / 1.122 GB, free: 22.81 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.631e-06/0.1594, allocations: 0 / 1.122 GB, free: 22.81 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.00178/0.1612, allocations: 0.748 MB / 1.123 GB, free: 22.06 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.496e-05/0.1613, allocations: 81.11 kB / 1.123 GB, free: 21.96 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003959/0.1617, allocations: 352.8 kB / 1.123 GB, free: 21.62 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.531e-05/0.1618, allocations: 45.69 kB / 1.124 GB, free: 21.57 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.162, allocations: 280.4 kB / 1.124 GB, free: 21.29 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.1621, allocations: 149.9 kB / 1.124 GB, free: 21.14 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.895e-05/0.1621, allocations: 8 kB / 1.124 GB, free: 21.14 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.814e-05/0.1622, allocations: 362.8 kB / 1.124 GB, free: 20.77 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005482/0.1628, allocations: 235.8 kB / 1.124 GB, free: 20.55 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006114/0.1634, allocations: 366 kB / 1.125 GB, free: 20.15 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005874/0.164, allocations: 278.1 kB / 1.125 GB, free: 19.88 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.528e-06/0.1641, allocations: 4 kB / 1.125 GB, free: 19.87 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001484/0.1655, allocations: 0.6886 MB / 1.126 GB, free: 19.18 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.341e-05/0.1657, allocations: 206.5 kB / 1.126 GB, free: 18.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.365e-06/0.1657, allocations: 3.094 kB / 1.126 GB, free: 18.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.1657, allocations: 8 kB / 1.126 GB, free: 18.93 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006171/0.1663, allocations: 111.8 kB / 1.126 GB, free: 18.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.1664, allocations: 4 kB / 1.126 GB, free: 18.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000546/0.1669, allocations: 78.66 kB / 1.126 GB, free: 18.74 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.777e-05/0.167, allocations: 20 kB / 1.126 GB, free: 18.72 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.281e-06/0.167, allocations: 4 kB / 1.126 GB, free: 18.71 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001243/0.1683, allocations: 0.5785 MB / 1.127 GB, free: 18.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.472e-06/0.1683, allocations: 4 kB / 1.127 GB, free: 18.13 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.933e-06/0.1683, allocations: 8 kB / 1.127 GB, free: 18.12 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000516/0.1688, allocations: 107.2 kB / 1.127 GB, free: 18.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.887e-06/0.1689, allocations: 4 kB / 1.127 GB, free: 18.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004849/0.1694, allocations: 71.53 kB / 1.127 GB, free: 17.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.954e-05/0.1694, allocations: 23.98 kB / 1.127 GB, free: 17.93 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * 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.0003614/0.1698, allocations: 290 kB / 1.127 GB, free: 17.64 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.055e-05/0.1699, allocations: 50.88 kB / 1.127 GB, free: 17.59 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001296/0.1712, allocations: 0.6023 MB / 1.128 GB, free: 16.98 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.395e-06/0.1712, allocations: 10.84 kB / 1.128 GB, free: 16.98 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.535e-06/0.1713, allocations: 0 / 1.128 GB, free: 16.98 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.1713, allocations: 3.953 kB / 1.128 GB, free: 16.97 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002699/0.174, allocations: 1.383 MB / 1.129 GB, free: 15.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.337e-06/0.174, allocations: 0 / 1.129 GB, free: 15.54 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006123/0.1746, allocations: 87.88 kB / 1.129 GB, free: 15.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.281e-06/0.1747, allocations: 2.781 kB / 1.129 GB, free: 15.45 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.863e-05/0.1747, allocations: 15.95 kB / 1.129 GB, free: 15.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.25e-06/0.1748, allocations: 7.984 kB / 1.129 GB, free: 15.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.388e-06/0.1748, allocations: 0 / 1.129 GB, free: 15.43 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/0.1767, allocations: 0.9707 MB / 1.13 GB, free: 14.45 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002572/0.177, allocations: 180 kB / 1.13 GB, free: 14.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.428e-05/0.1771, allocations: 12 kB / 1.13 GB, free: 14.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004514/0.1776, allocations: 43.91 kB / 1.131 GB, free: 14.2 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.1778, allocations: 52.36 kB / 1.131 GB, free: 14.15 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.672e-05/0.1778, allocations: 19.92 kB / 1.131 GB, free: 14.13 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002864/0.1781, allocations: 243.2 kB / 1.131 GB, free: 13.89 MB / 0.6042 GB Notification: Performance of sort global known variables: time 7.19e-07/0.1781, allocations: 0.9375 kB / 1.131 GB, free: 13.89 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0009253/0.1791, allocations: 259.1 kB / 1.131 GB, free: 13.64 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001956/0.1793, allocations: 136.5 kB / 1.131 GB, free: 13.5 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001945/0.1812, allocations: 0.9797 MB / 1.132 GB, free: 12.5 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.295e-06/0.1813, allocations: 0 / 1.132 GB, free: 12.5 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0005993/0.1819, allocations: 290.1 kB / 1.132 GB, free: 12.22 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.183, allocations: 157 kB / 1.133 GB, free: 12.08 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.185, allocations: 1.251 MB / 1.134 GB, free: 10.82 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.1855, allocations: 0.9104 MB / 1.135 GB, free: 9.883 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0006864/0.1862, allocations: 142.6 kB / 1.135 GB, free: 9.758 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002017/0.1864, allocations: 47.36 kB / 1.135 GB, free: 9.711 MB / 0.6042 GB Notification: Performance of SimCode: time 1.709e-06/0.1864, allocations: 4 kB / 1.135 GB, free: 9.707 MB / 0.6042 GB Notification: Performance of Templates: time 0.0173/0.2037, allocations: 7.798 MB / 1.143 GB, free: 2.324 MB / 0.6042 GB