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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.016/4.016, allocations: 433.4 MB / 440.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.159e-05/3.164e-05, allocations: 8 kB / 0.5325 GB, free: 1.957 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5483/0.5484, allocations: 98.7 MB / 0.6289 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2338/0.7822, allocations: 144 MB / 0.7696 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005252/0.7828, allocations: 91.94 kB / 0.7696 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1181/0.9009, allocations: 28.95 MB / 0.7979 GB, free: 2.215 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.104e-06/0.9009, allocations: 0 / 0.7979 GB, free: 2.215 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 4.498e-05/0.901, allocations: 19.94 kB / 0.7979 GB, free: 2.195 MB / 0.6667 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.001908/0.9029, allocations: 0.8159 MB / 0.7987 GB, free: 1.32 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.903, allocations: 8.031 kB / 0.7987 GB, free: 1.312 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001214/0.9042, allocations: 166.9 kB / 0.7989 GB, free: 1.148 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009839/0.9052, allocations: 435.3 kB / 0.7993 GB, free: 0.6836 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/0.9053, allocations: 12 kB / 0.7993 GB, free: 0.6719 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.9054, allocations: 32 kB / 0.7994 GB, free: 0.6406 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001135/0.9066, allocations: 454.5 kB / 0.7998 GB, free: 204 kB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4426/1.349, allocations: 0.5822 MB / 0.8004 GB, free: 153.7 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.308e-05/1.349, allocations: 1.469 kB / 0.8004 GB, free: 153.7 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.589e-05/1.349, allocations: 8.516 kB / 0.8004 GB, free: 153.7 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001044/1.35, allocations: 40.94 kB / 0.8004 GB, free: 153.7 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004402/1.354, allocations: 2.73 MB / 0.8031 GB, free: 152.1 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/1.355, allocations: 0.5221 MB / 0.8036 GB, free: 152 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005237/1.356, allocations: 236.3 kB / 0.8038 GB, free: 152 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003865/1.356, allocations: 0.5638 MB / 0.8044 GB, free: 151.3 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007217/1.357, allocations: 368.3 kB / 0.8047 GB, free: 151.3 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=49): time 3.74e-06/1.357, allocations: 0 / 0.8047 GB, free: 151.3 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49): time 0.001245/1.358, allocations: 0.4926 MB / 0.8052 GB, free: 151.2 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/1.358, allocations: 83.22 kB / 0.8053 GB, free: 151.1 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004149/1.359, allocations: 285.6 kB / 0.8055 GB, free: 151 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 7.36e-05/1.359, allocations: 36.52 kB / 0.8056 GB, free: 151 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002131/1.359, allocations: 276 kB / 0.8058 GB, free: 150.8 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.000149/1.359, allocations: 152 kB / 0.806 GB, free: 150.8 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.054e-05/1.359, allocations: 1.344 kB / 0.806 GB, free: 150.8 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001047/1.359, allocations: 358.7 kB / 0.8063 GB, free: 150.5 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004502/1.36, allocations: 206.9 kB / 0.8065 GB, free: 150.5 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005437/1.36, allocations: 331.6 kB / 0.8068 GB, free: 150.3 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005855/1.361, allocations: 248.4 kB / 0.8071 GB, free: 150.3 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.394e-06/1.361, allocations: 0.9688 kB / 0.8071 GB, free: 150.3 MB / 0.6667 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001435/1.362, allocations: 0.5877 MB / 0.8077 GB, free: 150.3 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002531/1.363, allocations: 1.075 MB / 0.8087 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/1.363, allocations: 1.938 kB / 0.8087 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.571e-05/1.363, allocations: 7.094 kB / 0.8087 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007172/1.363, allocations: 115.6 kB / 0.8088 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/1.364, allocations: 12.11 kB / 0.8088 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006589/1.364, allocations: 66.84 kB / 0.8089 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-05/1.364, allocations: 21.08 kB / 0.8089 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/1.364, allocations: 4.281 kB / 0.8089 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001202/1.366, allocations: 482.8 kB / 0.8094 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/1.366, allocations: 4.656 kB / 0.8094 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/1.366, allocations: 5.438 kB / 0.8094 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005731/1.366, allocations: 108.2 kB / 0.8095 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/1.366, allocations: 8.375 kB / 0.8095 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005726/1.367, allocations: 51.12 kB / 0.8096 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.983e-05/1.367, allocations: 20.62 kB / 0.8096 GB, free: 149.1 MB / 0.6667 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.0001977/1.367, allocations: 130.1 kB / 0.8097 GB, free: 149 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/1.367, allocations: 47.66 kB / 0.8097 GB, free: 149 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/1.368, allocations: 0.532 MB / 0.8103 GB, free: 148.9 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/1.368, allocations: 11.38 kB / 0.8103 GB, free: 148.9 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.243e-06/1.369, allocations: 0 / 0.8103 GB, free: 148.9 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/1.369, allocations: 3.719 kB / 0.8103 GB, free: 148.9 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008605/1.369, allocations: 0.5437 MB / 0.8108 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.849e-06/1.369, allocations: 1.219 kB / 0.8108 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006672/1.37, allocations: 93 kB / 0.8109 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.126e-05/1.37, allocations: 2.047 kB / 0.8109 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.782e-05/1.37, allocations: 4.031 kB / 0.8109 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.687e-06/1.37, allocations: 1.906 kB / 0.8109 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.126e-06/1.37, allocations: 5.047 kB / 0.8109 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/1.372, allocations: 0.8373 MB / 0.8117 GB, free: 148.6 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000292/1.372, allocations: 174.2 kB / 0.8119 GB, free: 148.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/1.372, allocations: 6.609 kB / 0.8119 GB, free: 148.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004596/1.373, allocations: 41.75 kB / 0.8119 GB, free: 148.5 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/1.373, allocations: 49.05 kB / 0.812 GB, free: 148.5 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.437e-05/1.373, allocations: 20.64 kB / 0.812 GB, free: 148.5 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0003031/1.373, allocations: 219.7 kB / 0.8122 GB, free: 148.4 MB / 0.6667 GB Notification: Performance of sort global known variables: time 7.65e-07/1.373, allocations: 0 / 0.8122 GB, free: 148.4 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001042/1.374, allocations: 258 kB / 0.8125 GB, free: 148.4 MB / 0.6667 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.000235/1.375, allocations: 138.4 kB / 0.8126 GB, free: 148.3 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.00173/1.376, allocations: 0.8902 MB / 0.8135 GB, free: 148.2 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.363e-06/1.376, allocations: 0.9062 kB / 0.8135 GB, free: 148.2 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0005377/1.377, allocations: 257.4 kB / 0.8137 GB, free: 148.2 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009353/1.378, allocations: 148.7 kB / 0.8139 GB, free: 148.2 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002009/1.38, allocations: 0.7778 MB / 0.8146 GB, free: 148 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005175/1.381, allocations: 0.9103 MB / 0.8155 GB, free: 147.3 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.001018/1.382, allocations: 161.4 kB / 0.8157 GB, free: 147.2 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002224/1.382, allocations: 41.67 kB / 0.8157 GB, free: 147.2 MB / 0.6667 GB Notification: Performance of SimCode: time 1.721e-06/1.382, allocations: 0 / 0.8157 GB, free: 147.2 MB / 0.6667 GB Notification: Performance of Templates: time 0.01905/1.401, allocations: 7.879 MB / 0.8234 GB, free: 146.9 MB / 0.6667 GB