Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.AC.OnePhase.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.01266/0.01266, allocations: 220.3 kB / 15.17 MB, free: 6.012 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.001121/0.001121, allocations: 176.2 kB / 16.06 MB, free: 5.875 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.814/3.814, allocations: 389.1 MB / 405.9 MB, free: 67.64 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 4.161/4.161, allocations: 472.3 MB / 0.9018 GB, free: 87.64 MB / 490.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004745/0.0004748, allocations: 11.44 kB / 1.008 GB, free: 37.23 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1606, allocations: 98.71 MB / 1.104 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005914/0.1665, allocations: 3.859 MB / 1.108 GB, free: 7.965 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.004319/0.1709, allocations: 2.07 MB / 1.11 GB, free: 5.891 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003636/0.1713, allocations: 15.88 kB / 1.11 GB, free: 5.875 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0002329/0.1715, allocations: 55.48 kB / 1.11 GB, free: 5.82 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0007923/0.1723, allocations: 252.3 kB / 1.11 GB, free: 5.578 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.1734, allocations: 293.5 kB / 1.11 GB, free: 5.293 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001092/0.1745, allocations: 0.8338 MB / 1.111 GB, free: 4.457 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001732/0.1763, allocations: 0.7166 MB / 1.112 GB, free: 3.703 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004653/0.1767, allocations: 231 kB / 1.112 GB, free: 3.477 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005465/0.1773, allocations: 298.8 kB / 1.112 GB, free: 3.184 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 7.711e-05/0.1774, allocations: 20 kB / 1.112 GB, free: 3.164 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006094/0.178, allocations: 191.6 kB / 1.113 GB, free: 2.977 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.1782, allocations: 147.5 kB / 1.113 GB, free: 2.832 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.000177/0.1784, allocations: 133.3 kB / 1.113 GB, free: 2.695 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0009876/0.1794, allocations: 0.7288 MB / 1.114 GB, free: 1.965 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.745e-06/0.1794, allocations: 4 kB / 1.114 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.942e-06/0.1795, allocations: 0 / 1.114 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.066e-05/0.1795, allocations: 0 / 1.114 GB, free: 1.961 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001805/0.1813, allocations: 0.8399 MB / 1.114 GB, free: 1.066 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.1813, allocations: 12.03 kB / 1.114 GB, free: 1.055 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008452/0.1822, allocations: 135.1 kB / 1.115 GB, free: 0.9219 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007678/0.183, allocations: 421.8 kB / 1.115 GB, free: 480 kB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.605e-05/0.1831, allocations: 41 kB / 1.115 GB, free: 440 kB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.1832, allocations: 52 kB / 1.115 GB, free: 388 kB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.1849, allocations: 0.6965 MB / 1.116 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.1849, allocations: 8 kB / 1.116 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.863e-05/0.185, allocations: 19.98 kB / 1.116 GB, free: 15.62 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.595e-05/0.1851, allocations: 56.92 kB / 1.116 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.1866, allocations: 0.5698 MB / 1.116 GB, free: 14.99 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004611/0.1912, allocations: 2.806 MB / 1.119 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.1928, allocations: 0.5672 MB / 1.12 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006195/0.1935, allocations: 257.6 kB / 1.12 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006141/0.1941, allocations: 0.5701 MB / 1.12 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009154/0.195, allocations: 404.2 kB / 1.121 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=46): time 3.607e-06/0.195, allocations: 0 / 1.121 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46): time 0.002046/0.1971, allocations: 0.7433 MB / 1.122 GB, free: 9.258 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.564e-05/0.1972, allocations: 93.09 kB / 1.122 GB, free: 9.148 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005248/0.1977, allocations: 345.6 kB / 1.122 GB, free: 8.805 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.993e-05/0.1978, allocations: 41.69 kB / 1.122 GB, free: 8.758 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002765/0.1981, allocations: 284.4 kB / 1.122 GB, free: 8.473 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.1983, allocations: 145.9 kB / 1.122 GB, free: 8.328 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/0.1984, allocations: 8 kB / 1.122 GB, free: 8.32 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001969/0.1986, allocations: 358.8 kB / 1.123 GB, free: 7.961 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006422/0.1992, allocations: 237 kB / 1.123 GB, free: 7.73 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007726/0.2, allocations: 366.6 kB / 1.123 GB, free: 7.328 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006925/0.2007, allocations: 289.5 kB / 1.124 GB, free: 7.039 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.2008, allocations: 7.984 kB / 1.124 GB, free: 7.031 MB / 0.5417 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001722/0.2025, allocations: 0.6795 MB / 1.124 GB, free: 6.34 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001654/0.2027, allocations: 204.5 kB / 1.125 GB, free: 6.098 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.08e-06/0.2027, allocations: 0 / 1.125 GB, free: 6.098 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.681e-05/0.2027, allocations: 12.14 kB / 1.125 GB, free: 6.086 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006966/0.2034, allocations: 119.8 kB / 1.125 GB, free: 5.969 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.2035, allocations: 11.92 kB / 1.125 GB, free: 5.957 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006024/0.2041, allocations: 75.47 kB / 1.125 GB, free: 5.883 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.691e-05/0.2042, allocations: 20 kB / 1.125 GB, free: 5.863 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.836e-06/0.2042, allocations: 4 kB / 1.125 GB, free: 5.859 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001463/0.2057, allocations: 0.5795 MB / 1.125 GB, free: 5.273 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.2057, allocations: 4 kB / 1.125 GB, free: 5.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.2057, allocations: 8.047 kB / 1.125 GB, free: 5.262 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000555/0.2063, allocations: 112 kB / 1.125 GB, free: 5.152 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.2063, allocations: 7.938 kB / 1.125 GB, free: 5.145 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005201/0.2068, allocations: 59.64 kB / 1.126 GB, free: 5.086 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.648e-05/0.2069, allocations: 23.98 kB / 1.126 GB, free: 5.062 MB / 0.5417 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.0004962/0.2074, allocations: 295.2 kB / 1.126 GB, free: 4.766 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.2075, allocations: 51.38 kB / 1.126 GB, free: 4.715 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.2091, allocations: 0.5946 MB / 1.126 GB, free: 4.117 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.2091, allocations: 4 kB / 1.126 GB, free: 4.113 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.725e-06/0.2091, allocations: 8 kB / 1.126 GB, free: 4.105 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.2091, allocations: 0 / 1.126 GB, free: 4.105 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003196/0.2123, allocations: 1.384 MB / 1.128 GB, free: 2.664 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.327e-06/0.2124, allocations: 0 / 1.128 GB, free: 2.664 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005796/0.213, allocations: 83.88 kB / 1.128 GB, free: 2.582 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.804e-06/0.213, allocations: 0 / 1.128 GB, free: 2.582 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.409e-05/0.213, allocations: 15.98 kB / 1.128 GB, free: 2.566 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.162e-06/0.2131, allocations: 4 kB / 1.128 GB, free: 2.562 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.676e-06/0.2131, allocations: 192 / 1.128 GB, free: 2.562 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00217/0.2152, allocations: 0.9752 MB / 1.129 GB, free: 1.57 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003231/0.2156, allocations: 180.5 kB / 1.129 GB, free: 1.375 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.929e-05/0.2157, allocations: 20 kB / 1.129 GB, free: 1.355 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004646/0.2162, allocations: 35.95 kB / 1.129 GB, free: 1.32 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.2164, allocations: 52.36 kB / 1.129 GB, free: 1.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.258e-05/0.2164, allocations: 19.92 kB / 1.129 GB, free: 1.25 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003676/0.2168, allocations: 247.1 kB / 1.129 GB, free: 1.008 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.16e-07/0.2168, allocations: 0 / 1.129 GB, free: 1.008 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001034/0.2179, allocations: 263.1 kB / 1.13 GB, free: 0.75 MB / 0.5417 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.0002409/0.2181, allocations: 139.2 kB / 1.13 GB, free: 0.6055 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002353/0.2205, allocations: 0.9795 MB / 1.131 GB, free: 15.6 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.2205, allocations: 0 / 1.131 GB, free: 15.6 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007041/0.2212, allocations: 278.4 kB / 1.131 GB, free: 15.33 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.2224, allocations: 173.9 kB / 1.131 GB, free: 15.16 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.225, allocations: 1.247 MB / 1.132 GB, free: 13.89 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006858/0.2257, allocations: 0.9072 MB / 1.133 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007686/0.2265, allocations: 144.3 kB / 1.133 GB, free: 12.81 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002186/0.2267, allocations: 43.42 kB / 1.133 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of SimCode: time 1.633e-06/0.2268, allocations: 0 / 1.133 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of Templates: time 0.02061/0.2474, allocations: 7.8 MB / 1.141 GB, free: 5.066 MB / 0.5573 GB