Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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 loadModel(Buildings): time 4.12/4.12, allocations: 432.7 MB / 445.3 MB, free: 15.72 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.788e-05/2.819e-05, allocations: 2.984 kB / 0.5383 GB, free: 10.24 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1776, allocations: 98.72 MB / 0.6347 GB, free: 1.895 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2228/0.4004, allocations: 144.7 MB / 0.776 GB, free: 1 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003192/0.4008, allocations: 91.94 kB / 0.7761 GB, free: 0.9102 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.6119/1.013, allocations: 29.08 MB / 0.8045 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of FrontEnd: time 3.185e-06/1.013, allocations: 0 / 0.8045 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.502e-05/1.013, allocations: 15.62 kB / 0.8045 GB, free: 135.4 MB / 0.6511 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.001861/1.015, allocations: 0.8212 MB / 0.8053 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/1.015, allocations: 7.719 kB / 0.8053 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/1.016, allocations: 151 kB / 0.8055 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008903/1.017, allocations: 441.5 kB / 0.8059 GB, free: 134.3 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.373e-05/1.017, allocations: 40.61 kB / 0.8059 GB, free: 134.2 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/1.017, allocations: 51.34 kB / 0.806 GB, free: 134.2 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/1.019, allocations: 0.6499 MB / 0.8066 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/1.019, allocations: 3.938 kB / 0.8066 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.044e-05/1.019, allocations: 24 kB / 0.8066 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.15e-05/1.019, allocations: 44.97 kB / 0.8067 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/1.02, allocations: 0.5232 MB / 0.8072 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004074/1.024, allocations: 2.833 MB / 0.81 GB, free: 130.1 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/1.025, allocations: 0.5564 MB / 0.8105 GB, free: 129.5 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004399/1.026, allocations: 241.6 kB / 0.8107 GB, free: 129.2 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003961/1.026, allocations: 0.5703 MB / 0.8113 GB, free: 128.5 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007041/1.027, allocations: 379.8 kB / 0.8117 GB, free: 128.1 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 4.435e-06/1.027, allocations: 4 kB / 0.8117 GB, free: 128.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.00115/1.028, allocations: 0.5111 MB / 0.8122 GB, free: 127.6 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/1.028, allocations: 85.58 kB / 0.8122 GB, free: 127.5 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004276/1.028, allocations: 299.6 kB / 0.8125 GB, free: 127.2 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.851e-05/1.029, allocations: 41.7 kB / 0.8126 GB, free: 127.2 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002025/1.029, allocations: 280.4 kB / 0.8128 GB, free: 126.9 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/1.029, allocations: 157.8 kB / 0.813 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.4e-05/1.029, allocations: 12 kB / 0.813 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.315e-05/1.029, allocations: 354.8 kB / 0.8133 GB, free: 126.4 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004611/1.03, allocations: 225 kB / 0.8135 GB, free: 126.2 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005376/1.03, allocations: 338.4 kB / 0.8139 GB, free: 125.8 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005087/1.031, allocations: 282.2 kB / 0.8141 GB, free: 125.5 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/1.031, allocations: 7.891 kB / 0.8141 GB, free: 125.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001341/1.032, allocations: 0.6584 MB / 0.8148 GB, free: 124.8 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002545/1.032, allocations: 1.072 MB / 0.8158 GB, free: 123.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/1.032, allocations: 0 / 0.8158 GB, free: 123.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.671e-05/1.032, allocations: 8 kB / 0.8158 GB, free: 123.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007389/1.033, allocations: 119.8 kB / 0.816 GB, free: 123.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/1.033, allocations: 8 kB / 0.816 GB, free: 123.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006593/1.034, allocations: 67.62 kB / 0.816 GB, free: 123.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-05/1.034, allocations: 20 kB / 0.816 GB, free: 123.4 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/1.034, allocations: 4 kB / 0.8161 GB, free: 123.4 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001129/1.035, allocations: 0.5562 MB / 0.8166 GB, free: 122.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.75e-06/1.035, allocations: 0 / 0.8166 GB, free: 122.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/1.035, allocations: 11.95 kB / 0.8166 GB, free: 122.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005854/1.036, allocations: 107.8 kB / 0.8167 GB, free: 122.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/1.036, allocations: 8.375 kB / 0.8167 GB, free: 122.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006154/1.036, allocations: 59.64 kB / 0.8168 GB, free: 122.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-05/1.036, allocations: 24.16 kB / 0.8168 GB, free: 122.7 MB / 0.6511 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * 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.0002028/1.037, allocations: 155 kB / 0.8169 GB, free: 122.5 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/1.037, allocations: 47.44 kB / 0.817 GB, free: 122.5 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0012/1.038, allocations: 0.5594 MB / 0.8175 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.964e-06/1.038, allocations: 7.953 kB / 0.8175 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.495e-06/1.038, allocations: 4 kB / 0.8175 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.785e-06/1.038, allocations: 3.984 kB / 0.8176 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008963/1.039, allocations: 0.6225 MB / 0.8182 GB, free: 121.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.514e-06/1.039, allocations: 4 kB / 0.8182 GB, free: 121.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006963/1.04, allocations: 91.86 kB / 0.8183 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/1.04, allocations: 4 kB / 0.8183 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.472e-05/1.04, allocations: 12 kB / 0.8183 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/1.04, allocations: 0 / 0.8183 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.051e-06/1.04, allocations: 3.953 kB / 0.8183 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001603/1.041, allocations: 0.8775 MB / 0.8191 GB, free: 120.2 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003068/1.042, allocations: 176.4 kB / 0.8193 GB, free: 120 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/1.042, allocations: 19.98 kB / 0.8193 GB, free: 120 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004695/1.042, allocations: 39.91 kB / 0.8194 GB, free: 119.9 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/1.043, allocations: 52.36 kB / 0.8194 GB, free: 119.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.108e-05/1.043, allocations: 12 kB / 0.8194 GB, free: 119.9 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003275/1.043, allocations: 246.2 kB / 0.8196 GB, free: 119.6 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.54e-07/1.043, allocations: 0 / 0.8196 GB, free: 119.6 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001006/1.044, allocations: 279.1 kB / 0.8199 GB, free: 119.4 MB / 0.6511 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) * 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.0002568/1.044, allocations: 156.3 kB / 0.8201 GB, free: 119.2 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001713/1.046, allocations: 0.9448 MB / 0.821 GB, free: 118.2 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.46e-06/1.046, allocations: 0 / 0.821 GB, free: 118.2 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005253/1.047, allocations: 270.4 kB / 0.8212 GB, free: 118 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009606/1.048, allocations: 145.5 kB / 0.8214 GB, free: 117.8 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001949/1.05, allocations: 0.8122 MB / 0.8222 GB, free: 117 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/1.05, allocations: 0.9035 MB / 0.8231 GB, free: 116.1 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0008788/1.051, allocations: 165 kB / 0.8232 GB, free: 115.9 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000195/1.051, allocations: 43.42 kB / 0.8233 GB, free: 115.9 MB / 0.6511 GB Notification: Performance of SimCode: time 2.008e-06/1.051, allocations: 0 / 0.8233 GB, free: 115.9 MB / 0.6511 GB Notification: Performance of Templates: time 0.01922/1.07, allocations: 8.252 MB / 0.8313 GB, free: 107.7 MB / 0.6511 GB