Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.343/2.343, allocations: 253.2 MB / 260.6 MB, free: 7.539 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.001424/0.001424, allocations: 180.4 kB / 319.9 MB, free: 3.129 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.212/2.212, allocations: 205.6 MB / 0.5709 GB, free: 15.29 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.001063/0.001063, allocations: 86.77 kB / 0.6751 GB, free: 4.656 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.9e-05/2.912e-05, allocations: 4 kB / 0.7849 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2382, allocations: 106.3 MB / 0.8887 GB, free: 11.85 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9806/1.219, allocations: 150.6 MB / 1.036 GB, free: 4.164 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003579/1.219, allocations: 95.55 kB / 1.036 GB, free: 4.109 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1574/1.377, allocations: 27.07 MB / 1.062 GB, free: 13.71 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.184e-06/1.377, allocations: 4 kB / 1.062 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.137e-05/1.377, allocations: 19.94 kB / 1.062 GB, free: 13.68 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.002515/1.379, allocations: 0.8172 MB / 1.063 GB, free: 12.86 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/1.379, allocations: 8.031 kB / 1.063 GB, free: 12.85 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001568/1.381, allocations: 154.7 kB / 1.063 GB, free: 12.7 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/1.382, allocations: 434.5 kB / 1.064 GB, free: 12.29 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/1.382, allocations: 12 kB / 1.064 GB, free: 12.28 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/1.382, allocations: 32 kB / 1.064 GB, free: 12.25 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001276/1.384, allocations: 464.4 kB / 1.064 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/1.385, allocations: 0.5852 MB / 1.065 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/1.385, allocations: 7.938 kB / 1.065 GB, free: 11.49 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.258e-05/1.385, allocations: 3.938 kB / 1.065 GB, free: 11.49 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001104/1.385, allocations: 41.17 kB / 1.065 GB, free: 11.45 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005453/1.391, allocations: 2.724 MB / 1.067 GB, free: 8.914 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001334/1.392, allocations: 0.5303 MB / 1.068 GB, free: 8.539 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005038/1.393, allocations: 228.2 kB / 1.068 GB, free: 8.395 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006196/1.393, allocations: 0.5583 MB / 1.069 GB, free: 7.707 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000846/1.394, allocations: 381.2 kB / 1.069 GB, free: 7.41 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 3.116e-06/1.394, allocations: 0 / 1.069 GB, free: 7.41 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.001453/1.396, allocations: 0.4929 MB / 1.07 GB, free: 7.047 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.608e-05/1.396, allocations: 81.55 kB / 1.07 GB, free: 6.945 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004719/1.396, allocations: 278.3 kB / 1.07 GB, free: 6.727 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 9.357e-05/1.396, allocations: 41.47 kB / 1.07 GB, free: 6.684 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002939/1.397, allocations: 282.1 kB / 1.07 GB, free: 6.465 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002064/1.397, allocations: 149.1 kB / 1.07 GB, free: 6.336 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.583e-05/1.397, allocations: 0 / 1.07 GB, free: 6.336 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001703/1.397, allocations: 360.1 kB / 1.071 GB, free: 5.996 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005/1.398, allocations: 203.9 kB / 1.071 GB, free: 5.883 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006163/1.398, allocations: 331.7 kB / 1.071 GB, free: 5.617 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006569/1.399, allocations: 250.5 kB / 1.071 GB, free: 5.457 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/1.399, allocations: 0 / 1.071 GB, free: 5.457 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001637/1.401, allocations: 0.58 MB / 1.072 GB, free: 5.035 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005173/1.401, allocations: 1.085 MB / 1.073 GB, free: 3.883 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/1.401, allocations: 4 kB / 1.073 GB, free: 3.879 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.738e-05/1.401, allocations: 4 kB / 1.073 GB, free: 3.875 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/1.402, allocations: 115.4 kB / 1.073 GB, free: 3.766 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/1.402, allocations: 4 kB / 1.073 GB, free: 3.762 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009509/1.403, allocations: 63.62 kB / 1.073 GB, free: 3.699 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.582e-05/1.403, allocations: 22.44 kB / 1.073 GB, free: 3.684 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/1.403, allocations: 4 kB / 1.073 GB, free: 3.68 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001334/1.405, allocations: 480.3 kB / 1.074 GB, free: 3.352 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/1.405, allocations: 0 / 1.074 GB, free: 3.352 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/1.405, allocations: 8 kB / 1.074 GB, free: 3.344 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008549/1.406, allocations: 107.6 kB / 1.074 GB, free: 3.242 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/1.406, allocations: 11.95 kB / 1.074 GB, free: 3.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007836/1.407, allocations: 63.11 kB / 1.074 GB, free: 3.172 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-05/1.407, allocations: 22.67 kB / 1.074 GB, free: 3.152 MB / 0.6823 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.0002608/1.407, allocations: 128.1 kB / 1.074 GB, free: 3.027 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/1.407, allocations: 47.53 kB / 1.074 GB, free: 2.98 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001501/1.409, allocations: 0.5278 MB / 1.075 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/1.409, allocations: 12.03 kB / 1.075 GB, free: 2.602 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.006e-06/1.409, allocations: 3.953 kB / 1.075 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/1.409, allocations: 3.984 kB / 1.075 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/1.41, allocations: 0.5265 MB / 1.075 GB, free: 2.16 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/1.41, allocations: 0 / 1.075 GB, free: 2.16 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009851/1.411, allocations: 94.98 kB / 1.075 GB, free: 2.07 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/1.411, allocations: 8 kB / 1.075 GB, free: 2.062 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.049e-05/1.411, allocations: 3.562 kB / 1.075 GB, free: 2.062 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.115e-06/1.411, allocations: 4 kB / 1.075 GB, free: 2.059 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.411, allocations: 3.938 kB / 1.075 GB, free: 2.055 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/1.413, allocations: 0.8297 MB / 1.076 GB, free: 1.465 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003952/1.413, allocations: 189.4 kB / 1.076 GB, free: 1.285 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/1.413, allocations: 7.562 kB / 1.076 GB, free: 1.281 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006523/1.414, allocations: 31.95 kB / 1.076 GB, free: 1.25 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/1.414, allocations: 54.75 kB / 1.076 GB, free: 1.207 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.837e-05/1.414, allocations: 15.62 kB / 1.076 GB, free: 1.195 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0003518/1.415, allocations: 221.8 kB / 1.077 GB, free: 1.027 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.21e-07/1.415, allocations: 0 / 1.077 GB, free: 1.027 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001159/1.416, allocations: 251.1 kB / 1.077 GB, free: 0.7812 MB / 0.6823 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.0003112/1.416, allocations: 144 kB / 1.077 GB, free: 0.6406 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001969/1.418, allocations: 0.8918 MB / 1.078 GB, free: 0 / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/1.418, allocations: 0 / 1.078 GB, free: 0 / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006183/1.419, allocations: 250.9 kB / 1.078 GB, free: 15.84 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/1.42, allocations: 148.3 kB / 1.078 GB, free: 15.72 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/1.423, allocations: 0.7701 MB / 1.079 GB, free: 15.04 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007486/1.423, allocations: 0.9093 MB / 1.08 GB, free: 14.11 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001172/1.425, allocations: 168.6 kB / 1.08 GB, free: 13.95 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000249/1.425, allocations: 38.75 kB / 1.08 GB, free: 13.92 MB / 0.698 GB Notification: Performance of SimCode: time 1.193e-06/1.425, allocations: 0 / 1.08 GB, free: 13.92 MB / 0.698 GB Notification: Performance of Templates: time 0.02406/1.449, allocations: 7.873 MB / 1.088 GB, free: 6.121 MB / 0.698 GB