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.413/2.413, allocations: 253.2 MB / 260.6 MB, free: 7.391 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.001545/0.001545, allocations: 182.7 kB / 319.9 MB, free: 3.09 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.114/2.114, allocations: 205.6 MB / 0.5708 GB, free: 15.28 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.001607/0.001607, allocations: 94.31 kB / 0.6751 GB, free: 4.645 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.354e-05/2.352e-05, allocations: 0 / 0.7849 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2106, allocations: 106.3 MB / 0.8887 GB, free: 11.86 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9092/1.12, allocations: 152 MB / 1.037 GB, free: 2.707 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003528/1.12, allocations: 91.69 kB / 1.037 GB, free: 2.656 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1262/1.246, allocations: 28.99 MB / 1.066 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.974e-06/1.247, allocations: 0 / 1.066 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.125e-05/1.247, allocations: 12 kB / 1.066 GB, free: 10.61 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.002548/1.249, allocations: 0.8198 MB / 1.066 GB, free: 9.777 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/1.249, allocations: 8.031 kB / 1.066 GB, free: 9.77 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001533/1.251, allocations: 147 kB / 1.066 GB, free: 9.625 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001138/1.252, allocations: 441.9 kB / 1.067 GB, free: 9.215 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.689e-05/1.252, allocations: 16 kB / 1.067 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/1.252, allocations: 32 kB / 1.067 GB, free: 9.168 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001278/1.253, allocations: 460.3 kB / 1.067 GB, free: 8.883 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/1.255, allocations: 0.5884 MB / 1.068 GB, free: 8.418 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.341e-05/1.255, allocations: 0 / 1.068 GB, free: 8.418 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.821e-05/1.255, allocations: 11.92 kB / 1.068 GB, free: 8.41 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001029/1.255, allocations: 44.36 kB / 1.068 GB, free: 8.371 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005471/1.261, allocations: 2.72 MB / 1.071 GB, free: 5.84 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/1.262, allocations: 0.5272 MB / 1.071 GB, free: 5.469 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005103/1.263, allocations: 231.1 kB / 1.071 GB, free: 5.32 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006416/1.263, allocations: 0.5622 MB / 1.072 GB, free: 4.629 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008663/1.264, allocations: 372.6 kB / 1.072 GB, free: 4.34 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 3.517e-06/1.264, allocations: 3.938 kB / 1.072 GB, free: 4.336 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.001435/1.266, allocations: 497.4 kB / 1.073 GB, free: 3.977 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.895e-05/1.266, allocations: 85.53 kB / 1.073 GB, free: 3.871 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004717/1.266, allocations: 279.8 kB / 1.073 GB, free: 3.652 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 9.977e-05/1.266, allocations: 36.73 kB / 1.073 GB, free: 3.613 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000284/1.267, allocations: 282.5 kB / 1.073 GB, free: 3.395 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/1.267, allocations: 145.1 kB / 1.074 GB, free: 3.27 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.667e-05/1.267, allocations: 0 / 1.074 GB, free: 3.27 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001738/1.267, allocations: 358.7 kB / 1.074 GB, free: 2.93 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005169/1.268, allocations: 210.1 kB / 1.074 GB, free: 2.812 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006197/1.268, allocations: 330.6 kB / 1.074 GB, free: 2.547 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006576/1.269, allocations: 238 kB / 1.075 GB, free: 2.398 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/1.269, allocations: 0 / 1.075 GB, free: 2.398 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001641/1.271, allocations: 0.5895 MB / 1.075 GB, free: 1.969 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005098/1.271, allocations: 1.08 MB / 1.076 GB, free: 0.8203 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/1.271, allocations: 4 kB / 1.076 GB, free: 0.8164 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.893e-05/1.271, allocations: 8 kB / 1.076 GB, free: 0.8086 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/1.272, allocations: 111.6 kB / 1.076 GB, free: 0.7031 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/1.272, allocations: 7.984 kB / 1.076 GB, free: 0.6953 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009215/1.273, allocations: 63.64 kB / 1.076 GB, free: 0.6328 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.6e-05/1.273, allocations: 26.42 kB / 1.077 GB, free: 0.6133 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/1.273, allocations: 5.562 kB / 1.077 GB, free: 0.6094 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00132/1.275, allocations: 473.4 kB / 1.077 GB, free: 296 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/1.275, allocations: 7.984 kB / 1.077 GB, free: 288 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/1.275, allocations: 4 kB / 1.077 GB, free: 284 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008583/1.276, allocations: 112 kB / 1.077 GB, free: 176 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.685e-05/1.276, allocations: 11.94 kB / 1.077 GB, free: 164 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007724/1.277, allocations: 55.58 kB / 1.077 GB, free: 108 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.399e-05/1.277, allocations: 19.5 kB / 1.077 GB, free: 92 kB / 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.000269/1.277, allocations: 128.7 kB / 1.077 GB, free: 15.96 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/1.277, allocations: 51.44 kB / 1.077 GB, free: 15.91 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00146/1.279, allocations: 0.5229 MB / 1.078 GB, free: 15.55 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/1.279, allocations: 8 kB / 1.078 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/1.279, allocations: 3.953 kB / 1.078 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/1.279, allocations: 3.984 kB / 1.078 GB, free: 15.53 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/1.28, allocations: 0.5287 MB / 1.078 GB, free: 15.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/1.28, allocations: 4 kB / 1.078 GB, free: 15.09 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009782/1.281, allocations: 94.98 kB / 1.078 GB, free: 15 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.216e-05/1.281, allocations: 8 kB / 1.078 GB, free: 15 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.425e-05/1.281, allocations: 7.734 kB / 1.079 GB, free: 14.99 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.865e-06/1.281, allocations: 4 kB / 1.079 GB, free: 14.99 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.281, allocations: 0 / 1.079 GB, free: 14.99 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/1.283, allocations: 0.8361 MB / 1.079 GB, free: 14.39 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003948/1.283, allocations: 179.9 kB / 1.079 GB, free: 14.22 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/1.283, allocations: 12 kB / 1.08 GB, free: 14.21 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006374/1.284, allocations: 31.45 kB / 1.08 GB, free: 14.18 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/1.284, allocations: 53.94 kB / 1.08 GB, free: 14.14 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.898e-05/1.284, allocations: 19.05 kB / 1.08 GB, free: 14.12 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003555/1.285, allocations: 219.8 kB / 1.08 GB, free: 13.96 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.21e-07/1.285, allocations: 0 / 1.08 GB, free: 13.96 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001141/1.286, allocations: 254.2 kB / 1.08 GB, free: 13.71 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.0003066/1.286, allocations: 141.5 kB / 1.08 GB, free: 13.57 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002022/1.288, allocations: 0.8901 MB / 1.081 GB, free: 12.93 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/1.288, allocations: 0 / 1.081 GB, free: 12.93 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006013/1.289, allocations: 259.9 kB / 1.081 GB, free: 12.76 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/1.29, allocations: 144.3 kB / 1.081 GB, free: 12.64 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002266/1.292, allocations: 0.7779 MB / 1.082 GB, free: 11.95 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006224/1.293, allocations: 0.9059 MB / 1.083 GB, free: 11.03 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001129/1.294, allocations: 156.3 kB / 1.083 GB, free: 10.88 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002637/1.295, allocations: 46.05 kB / 1.083 GB, free: 10.84 MB / 0.698 GB Notification: Performance of SimCode: time 1.132e-06/1.295, allocations: 0 / 1.083 GB, free: 10.84 MB / 0.698 GB Notification: Performance of Templates: time 0.02399/1.319, allocations: 7.877 MB / 1.091 GB, free: 3.051 MB / 0.698 GB