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.41/2.41, allocations: 251.1 MB / 266.1 MB, free: 11.59 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001503/0.001502, allocations: 175.3 kB / 325.6 MB, free: 2.801 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.451/2.451, allocations: 205.4 MB / 0.5766 GB, free: 21.08 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.001119/0.001118, allocations: 96.69 kB / 0.6811 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004662/0.0004662, allocations: 11.47 kB / 0.7951 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2518, allocations: 106.3 MB / 0.8989 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2613/0.5132, allocations: 151.8 MB / 1.047 GB, free: 9.828 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004129/0.5137, allocations: 99.94 kB / 1.047 GB, free: 9.73 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.75/1.264, allocations: 29.26 MB / 1.076 GB, free: 150.2 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.404e-06/1.264, allocations: 0 / 1.076 GB, free: 150.2 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.929e-05/1.264, allocations: 16.59 kB / 1.076 GB, free: 150.2 MB / 0.698 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.002675/1.267, allocations: 0.882 MB / 1.077 GB, free: 149.5 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/1.267, allocations: 9.062 kB / 1.077 GB, free: 149.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001585/1.268, allocations: 143.4 kB / 1.077 GB, free: 149.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/1.269, allocations: 446.5 kB / 1.077 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.206e-05/1.269, allocations: 42.34 kB / 1.077 GB, free: 149.1 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/1.27, allocations: 57.34 kB / 1.077 GB, free: 149.1 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002056/1.272, allocations: 0.6749 MB / 1.078 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.124e-05/1.272, allocations: 1.406 kB / 1.078 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/1.272, allocations: 22.88 kB / 1.078 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/1.272, allocations: 42.88 kB / 1.078 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002133/1.274, allocations: 0.5796 MB / 1.079 GB, free: 148.8 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005369/1.28, allocations: 2.828 MB / 1.081 GB, free: 146.7 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/1.282, allocations: 0.5916 MB / 1.082 GB, free: 146.6 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004931/1.282, allocations: 0.5653 MB / 1.083 GB, free: 145.9 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/1.283, allocations: 420.8 kB / 1.083 GB, free: 145.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 3.827e-06/1.283, allocations: 0 / 1.083 GB, free: 145.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.002721/1.286, allocations: 0.7632 MB / 1.084 GB, free: 145.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/1.286, allocations: 91.52 kB / 1.084 GB, free: 145.5 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006194/1.287, allocations: 307.1 kB / 1.084 GB, free: 145.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001579/1.287, allocations: 42.45 kB / 1.084 GB, free: 145.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002868/1.287, allocations: 282.2 kB / 1.084 GB, free: 145.1 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/1.287, allocations: 146.3 kB / 1.085 GB, free: 145 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-05/1.288, allocations: 15.12 kB / 1.085 GB, free: 144.9 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001123/1.288, allocations: 352.9 kB / 1.085 GB, free: 144.6 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009336/1.289, allocations: 245.6 kB / 1.085 GB, free: 144.5 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009766/1.29, allocations: 370.2 kB / 1.085 GB, free: 144.2 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009893/1.291, allocations: 291.9 kB / 1.086 GB, free: 144 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.798e-06/1.291, allocations: 4.953 kB / 1.086 GB, free: 144 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002198/1.293, allocations: 0.7072 MB / 1.086 GB, free: 143.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002754/1.293, allocations: 1.072 MB / 1.088 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/1.293, allocations: 0 / 1.088 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.923e-05/1.293, allocations: 11.72 kB / 1.088 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/1.294, allocations: 123.3 kB / 1.088 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/1.294, allocations: 11.86 kB / 1.088 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009432/1.295, allocations: 80.47 kB / 1.088 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-05/1.295, allocations: 19.59 kB / 1.088 GB, free: 142.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/1.295, allocations: 4.594 kB / 1.088 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001704/1.297, allocations: 0.5925 MB / 1.088 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/1.297, allocations: 3.188 kB / 1.088 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/1.297, allocations: 10.89 kB / 1.088 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007958/1.298, allocations: 108.9 kB / 1.088 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/1.298, allocations: 7.625 kB / 1.088 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007968/1.299, allocations: 58.14 kB / 1.089 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.933e-05/1.299, allocations: 26.11 kB / 1.089 GB, free: 142 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 () * 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.0005426/1.299, allocations: 297.2 kB / 1.089 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/1.3, allocations: 49.41 kB / 1.089 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/1.301, allocations: 0.6057 MB / 1.089 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/1.301, allocations: 7.641 kB / 1.089 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/1.301, allocations: 0 / 1.089 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/1.301, allocations: 3.625 kB / 1.089 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/1.302, allocations: 0.6312 MB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/1.302, allocations: 0 / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009112/1.303, allocations: 94.42 kB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/1.303, allocations: 0 / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.293e-05/1.303, allocations: 15.64 kB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/1.303, allocations: 7.75 kB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/1.303, allocations: 7.953 kB / 1.09 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/1.306, allocations: 0.934 MB / 1.091 GB, free: 140.3 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003768/1.306, allocations: 179.7 kB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/1.306, allocations: 11.72 kB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006241/1.307, allocations: 47.17 kB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/1.307, allocations: 48.95 kB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.153e-05/1.307, allocations: 14.52 kB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003591/1.308, allocations: 244 kB / 1.092 GB, free: 139.9 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.333e-06/1.308, allocations: 0 / 1.092 GB, free: 139.9 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001126/1.309, allocations: 281.9 kB / 1.092 GB, free: 139.8 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) * 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.0002815/1.309, allocations: 155.9 kB / 1.092 GB, free: 139.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002548/1.312, allocations: 1.002 MB / 1.093 GB, free: 139.2 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.312, allocations: 0 / 1.093 GB, free: 139.2 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000788/1.313, allocations: 285.7 kB / 1.093 GB, free: 139 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/1.314, allocations: 149.3 kB / 1.093 GB, free: 139 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003026/1.317, allocations: 1.28 MB / 1.095 GB, free: 138.1 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/1.317, allocations: 0.9103 MB / 1.096 GB, free: 137.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009431/1.318, allocations: 145.7 kB / 1.096 GB, free: 137.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/1.319, allocations: 50.02 kB / 1.096 GB, free: 137.2 MB / 0.698 GB Notification: Performance of SimCode: time 1.172e-06/1.319, allocations: 0 / 1.096 GB, free: 137.2 MB / 0.698 GB Notification: Performance of Templates: time 0.02146/1.34, allocations: 7.653 MB / 1.103 GB, free: 129.9 MB / 0.698 GB