Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.418/2.418, allocations: 252.6 MB / 265.2 MB, free: 5.617 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002269/0.002269, allocations: 179.9 kB / 324.5 MB, free: 14.37 MB / 266.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.078/2.078, allocations: 205.4 MB / 0.5754 GB, free: 10.47 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001158/0.001158, allocations: 78.7 kB / 0.6797 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.798e-05/3.813e-05, allocations: 8 kB / 0.7911 GB, free: 96.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2046, allocations: 106.2 MB / 0.8949 GB, free: 6.273 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9203/1.125, allocations: 151.8 MB / 1.043 GB, free: 224 kB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003964/1.125, allocations: 93.88 kB / 1.043 GB, free: 172 kB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1247/1.25, allocations: 29.11 MB / 1.072 GB, free: 7.77 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.963e-06/1.25, allocations: 0 / 1.072 GB, free: 7.77 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.96e-05/1.25, allocations: 12 kB / 1.072 GB, free: 7.758 MB / 0.6823 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.002452/1.253, allocations: 0.8225 MB / 1.072 GB, free: 6.922 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/1.253, allocations: 8.031 kB / 1.072 GB, free: 6.914 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001502/1.254, allocations: 154.7 kB / 1.073 GB, free: 6.766 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/1.255, allocations: 438.7 kB / 1.073 GB, free: 6.359 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.94e-05/1.255, allocations: 35.19 kB / 1.073 GB, free: 6.34 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001517/1.256, allocations: 57.66 kB / 1.073 GB, free: 6.301 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001725/1.257, allocations: 0.6541 MB / 1.074 GB, free: 5.809 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/1.257, allocations: 0 / 1.074 GB, free: 5.809 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/1.257, allocations: 32.34 kB / 1.074 GB, free: 5.793 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001013/1.258, allocations: 36.8 kB / 1.074 GB, free: 5.762 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00148/1.259, allocations: 0.5269 MB / 1.074 GB, free: 5.41 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006084/1.265, allocations: 2.826 MB / 1.077 GB, free: 2.801 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/1.267, allocations: 0.549 MB / 1.078 GB, free: 2.41 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005934/1.267, allocations: 240.6 kB / 1.078 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006854/1.268, allocations: 0.5697 MB / 1.078 GB, free: 1.562 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009454/1.269, allocations: 381.9 kB / 1.079 GB, free: 1.262 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 3.376e-06/1.269, allocations: 0 / 1.079 GB, free: 1.262 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.00154/1.271, allocations: 0.5212 MB / 1.079 GB, free: 0.8789 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.517e-05/1.271, allocations: 81.55 kB / 1.079 GB, free: 0.7812 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005398/1.271, allocations: 297.4 kB / 1.08 GB, free: 0.5391 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001121/1.271, allocations: 48.12 kB / 1.08 GB, free: 0.4961 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002949/1.272, allocations: 283.9 kB / 1.08 GB, free: 288 kB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002122/1.272, allocations: 154.5 kB / 1.08 GB, free: 152 kB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.075e-05/1.272, allocations: 10.12 kB / 1.08 GB, free: 152 kB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002171/1.272, allocations: 355.5 kB / 1.08 GB, free: 15.81 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006/1.273, allocations: 217.5 kB / 1.081 GB, free: 15.68 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007581/1.274, allocations: 348.7 kB / 1.081 GB, free: 15.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006822/1.274, allocations: 283.6 kB / 1.081 GB, free: 15.2 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/1.274, allocations: 0 / 1.081 GB, free: 15.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001746/1.276, allocations: 0.6507 MB / 1.082 GB, free: 14.72 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005867/1.277, allocations: 1.077 MB / 1.083 GB, free: 13.58 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/1.277, allocations: 4 kB / 1.083 GB, free: 13.57 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.951e-05/1.277, allocations: 4 kB / 1.083 GB, free: 13.57 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/1.278, allocations: 122.6 kB / 1.083 GB, free: 13.46 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.988e-05/1.278, allocations: 11.98 kB / 1.083 GB, free: 13.45 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009194/1.279, allocations: 66.45 kB / 1.083 GB, free: 13.39 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.737e-05/1.279, allocations: 23.86 kB / 1.083 GB, free: 13.37 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/1.279, allocations: 4 kB / 1.083 GB, free: 13.36 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001427/1.28, allocations: 0.544 MB / 1.084 GB, free: 12.98 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/1.28, allocations: 8.031 kB / 1.084 GB, free: 12.98 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/1.281, allocations: 7.953 kB / 1.084 GB, free: 12.97 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008703/1.281, allocations: 111.5 kB / 1.084 GB, free: 12.86 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/1.281, allocations: 7.938 kB / 1.084 GB, free: 12.86 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007625/1.282, allocations: 69.77 kB / 1.084 GB, free: 12.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-05/1.282, allocations: 19.81 kB / 1.084 GB, free: 12.78 MB / 0.698 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.0002678/1.283, allocations: 152.4 kB / 1.084 GB, free: 12.64 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/1.283, allocations: 43.44 kB / 1.084 GB, free: 12.59 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/1.284, allocations: 0.5595 MB / 1.085 GB, free: 12.02 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/1.284, allocations: 7.953 kB / 1.085 GB, free: 12.02 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/1.284, allocations: 0 / 1.085 GB, free: 12.02 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/1.284, allocations: 3.984 kB / 1.085 GB, free: 12.01 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/1.286, allocations: 0.6264 MB / 1.085 GB, free: 11.34 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/1.286, allocations: 0 / 1.085 GB, free: 11.34 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/1.287, allocations: 99.8 kB / 1.085 GB, free: 11.24 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/1.287, allocations: 0 / 1.085 GB, free: 11.24 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.92e-05/1.287, allocations: 12 kB / 1.085 GB, free: 11.23 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/1.287, allocations: 4 kB / 1.085 GB, free: 11.22 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/1.287, allocations: 3.953 kB / 1.085 GB, free: 11.22 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002171/1.289, allocations: 0.8658 MB / 1.086 GB, free: 10.32 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004049/1.289, allocations: 180.3 kB / 1.086 GB, free: 10.13 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/1.29, allocations: 12 kB / 1.086 GB, free: 10.12 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000642/1.29, allocations: 47.89 kB / 1.086 GB, free: 10.07 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002202/1.29, allocations: 52.36 kB / 1.087 GB, free: 10.02 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.897e-05/1.29, allocations: 16 kB / 1.087 GB, free: 10 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004186/1.291, allocations: 234.2 kB / 1.087 GB, free: 9.781 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.71e-07/1.291, allocations: 7.938 kB / 1.087 GB, free: 9.773 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00116/1.292, allocations: 279.1 kB / 1.087 GB, free: 9.5 MB / 0.698 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.0003256/1.292, allocations: 149.5 kB / 1.087 GB, free: 9.344 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002347/1.295, allocations: 0.9336 MB / 1.088 GB, free: 8.387 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/1.295, allocations: 8.312 kB / 1.088 GB, free: 8.379 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007118/1.296, allocations: 266.4 kB / 1.088 GB, free: 8.117 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/1.297, allocations: 149.3 kB / 1.088 GB, free: 7.969 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00237/1.299, allocations: 0.8 MB / 1.089 GB, free: 7.145 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006417/1.3, allocations: 0.9074 MB / 1.09 GB, free: 6.211 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001101/1.301, allocations: 168.3 kB / 1.09 GB, free: 6.043 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002639/1.301, allocations: 39.42 kB / 1.09 GB, free: 6.004 MB / 0.698 GB Notification: Performance of SimCode: time 1.082e-06/1.301, allocations: 0 / 1.09 GB, free: 6.004 MB / 0.698 GB Notification: Performance of Templates: time 0.02493/1.326, allocations: 8.248 MB / 1.098 GB, free: 13.83 MB / 0.7136 GB