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.004244/0.00425, allocations: 231.2 kB / 15.82 MB, free: 6.293 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.001141/0.001141, allocations: 175.3 kB / 16.7 MB, free: 5.453 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.468/3.468, allocations: 389.1 MB / 406.5 MB, free: 6.809 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.461/4.461, allocations: 472.3 MB / 0.9024 GB, free: 10.76 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005347/0.0005351, allocations: 12 kB / 1.008 GB, free: 6.715 MB / 0.6511 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2263, allocations: 98.7 MB / 1.105 GB, free: 3.852 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8505/1.077, allocations: 144.8 MB / 1.246 GB, free: 183.7 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003457/1.077, allocations: 99.06 kB / 1.246 GB, free: 183.7 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 0.1125/1.19, allocations: 29.21 MB / 1.275 GB, free: 159.7 MB / 0.7917 GB Notification: Performance of FrontEnd: time 2.335e-06/1.19, allocations: 0 / 1.275 GB, free: 159.7 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 4.197e-05/1.19, allocations: 16 kB / 1.275 GB, free: 159.7 MB / 0.7917 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.002438/1.192, allocations: 0.8841 MB / 1.276 GB, free: 158.8 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/1.192, allocations: 11.97 kB / 1.276 GB, free: 158.8 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001475/1.194, allocations: 147 kB / 1.276 GB, free: 158.6 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009833/1.195, allocations: 433.5 kB / 1.276 GB, free: 158.2 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.298e-05/1.195, allocations: 41.48 kB / 1.276 GB, free: 158.2 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/1.195, allocations: 51.38 kB / 1.276 GB, free: 158.2 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001681/1.197, allocations: 0.689 MB / 1.277 GB, free: 157.7 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/1.197, allocations: 1.5 kB / 1.277 GB, free: 157.7 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.393e-05/1.197, allocations: 22.94 kB / 1.277 GB, free: 157.7 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.447e-05/1.197, allocations: 44.53 kB / 1.277 GB, free: 157.6 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/1.199, allocations: 0.5747 MB / 1.277 GB, free: 157.2 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004778/1.203, allocations: 2.844 MB / 1.28 GB, free: 154.6 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001647/1.205, allocations: 0.5901 MB / 1.281 GB, free: 154.2 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006818/1.206, allocations: 268.3 kB / 1.281 GB, free: 154 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004656/1.206, allocations: 0.5641 MB / 1.282 GB, free: 153.3 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001012/1.207, allocations: 419.5 kB / 1.282 GB, free: 153 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=49): time 3.376e-06/1.207, allocations: 1.531 kB / 1.282 GB, free: 153 MB / 0.7917 GB Notification: Performance of matching and sorting (n=49): time 0.002284/1.21, allocations: 0.7697 MB / 1.283 GB, free: 152.5 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/1.21, allocations: 86.7 kB / 1.283 GB, free: 152.4 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004636/1.21, allocations: 340.1 kB / 1.283 GB, free: 152.1 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 9.063e-05/1.21, allocations: 51.2 kB / 1.283 GB, free: 152.1 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/1.211, allocations: 274.6 kB / 1.283 GB, free: 151.8 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/1.211, allocations: 167.4 kB / 1.284 GB, free: 151.7 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.001e-05/1.211, allocations: 7.062 kB / 1.284 GB, free: 151.7 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 9.74e-05/1.211, allocations: 363.2 kB / 1.284 GB, free: 151.4 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006918/1.212, allocations: 244.9 kB / 1.284 GB, free: 151.2 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008056/1.212, allocations: 365.7 kB / 1.285 GB, free: 150.9 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000746/1.213, allocations: 303.5 kB / 1.285 GB, free: 150.7 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/1.213, allocations: 0 / 1.285 GB, free: 150.7 MB / 0.7917 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001822/1.215, allocations: 0.7072 MB / 1.286 GB, free: 150.2 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/1.215, allocations: 203.8 kB / 1.286 GB, free: 150 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/1.215, allocations: 0 / 1.286 GB, free: 150 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.563e-05/1.215, allocations: 8 kB / 1.286 GB, free: 150 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009447/1.216, allocations: 111 kB / 1.286 GB, free: 149.9 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/1.216, allocations: 11.98 kB / 1.286 GB, free: 149.9 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008812/1.217, allocations: 65.7 kB / 1.286 GB, free: 149.8 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.445e-05/1.217, allocations: 30.92 kB / 1.286 GB, free: 149.8 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/1.217, allocations: 7.953 kB / 1.286 GB, free: 149.8 MB / 0.7917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001545/1.219, allocations: 0.5861 MB / 1.287 GB, free: 149.4 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/1.219, allocations: 7.984 kB / 1.287 GB, free: 149.4 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/1.219, allocations: 8 kB / 1.287 GB, free: 149.4 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007761/1.22, allocations: 106.6 kB / 1.287 GB, free: 149.3 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/1.22, allocations: 4 kB / 1.287 GB, free: 149.3 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007772/1.22, allocations: 62.52 kB / 1.287 GB, free: 149.2 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.518e-05/1.22, allocations: 22.75 kB / 1.287 GB, free: 149.2 MB / 0.7917 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 (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.0004896/1.221, allocations: 309 kB / 1.287 GB, free: 148.9 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/1.221, allocations: 52.05 kB / 1.287 GB, free: 148.9 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/1.223, allocations: 0.6031 MB / 1.288 GB, free: 148.5 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.016e-06/1.223, allocations: 8 kB / 1.288 GB, free: 148.5 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/1.223, allocations: 3.938 kB / 1.288 GB, free: 148.5 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/1.223, allocations: 0 / 1.288 GB, free: 148.5 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009343/1.224, allocations: 0.6255 MB / 1.288 GB, free: 147.9 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/1.224, allocations: 0 / 1.288 GB, free: 147.9 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009282/1.225, allocations: 99.39 kB / 1.288 GB, free: 147.8 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-06/1.225, allocations: 0 / 1.288 GB, free: 147.8 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-05/1.225, allocations: 18.44 kB / 1.288 GB, free: 147.8 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.653e-06/1.225, allocations: 8 kB / 1.288 GB, free: 147.8 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.225, allocations: 0 / 1.288 GB, free: 147.8 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/1.227, allocations: 0.9183 MB / 1.289 GB, free: 147.2 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003142/1.227, allocations: 183.6 kB / 1.29 GB, free: 147 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/1.228, allocations: 11.25 kB / 1.29 GB, free: 147 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006021/1.228, allocations: 46.52 kB / 1.29 GB, free: 147 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/1.228, allocations: 50.11 kB / 1.29 GB, free: 146.9 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.033e-05/1.228, allocations: 18.81 kB / 1.29 GB, free: 146.9 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0003284/1.229, allocations: 244.1 kB / 1.29 GB, free: 146.7 MB / 0.7917 GB Notification: Performance of sort global known variables: time 4.3e-07/1.229, allocations: 0 / 1.29 GB, free: 146.7 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.001033/1.23, allocations: 284.1 kB / 1.29 GB, free: 146.5 MB / 0.7917 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.0002602/1.23, allocations: 154.9 kB / 1.29 GB, free: 146.3 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.002449/1.233, allocations: 1.004 MB / 1.291 GB, free: 145.6 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/1.233, allocations: 0 / 1.291 GB, free: 145.6 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.0007591/1.233, allocations: 293.6 kB / 1.292 GB, free: 145.4 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/1.235, allocations: 167.8 kB / 1.292 GB, free: 145.3 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002674/1.238, allocations: 1.263 MB / 1.293 GB, free: 144.1 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004012/1.238, allocations: 0.9086 MB / 1.294 GB, free: 143.2 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0009293/1.239, allocations: 144.6 kB / 1.294 GB, free: 143 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/1.239, allocations: 43.19 kB / 1.294 GB, free: 143 MB / 0.7917 GB Notification: Performance of SimCode: time 1.182e-06/1.239, allocations: 0 / 1.294 GB, free: 143 MB / 0.7917 GB Notification: Performance of Templates: time 0.02051/1.26, allocations: 7.67 MB / 1.301 GB, free: 135.6 MB / 0.7917 GB