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.267/2.267, allocations: 251.1 MB / 266.1 MB, free: 11.63 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.001541/0.001541, allocations: 190.3 kB / 325.6 MB, free: 2.848 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.577/2.577, allocations: 205.4 MB / 0.5766 GB, free: 21.16 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.001096/0.001096, allocations: 104.5 kB / 0.6811 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006251/0.0006252, allocations: 11.78 kB / 0.7951 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2283, allocations: 106.3 MB / 0.8989 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2658/0.4942, allocations: 150.4 MB / 1.046 GB, free: 11.37 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003853/0.4947, allocations: 95.94 kB / 1.046 GB, free: 11.28 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.7696/1.264, allocations: 27.33 MB / 1.073 GB, free: 150.2 MB / 0.698 GB Notification: Performance of FrontEnd: time 4.148e-06/1.264, allocations: 1.438 kB / 1.073 GB, free: 150.2 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.683e-05/1.264, allocations: 14.66 kB / 1.073 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.002531/1.267, allocations: 0.8795 MB / 1.073 GB, free: 149.6 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/1.267, allocations: 13.09 kB / 1.073 GB, free: 149.6 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001511/1.268, allocations: 146.8 kB / 1.074 GB, free: 149.6 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009651/1.269, allocations: 449.2 kB / 1.074 GB, free: 149.3 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.403e-05/1.27, allocations: 39.7 kB / 1.074 GB, free: 149.3 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/1.27, allocations: 48.91 kB / 1.074 GB, free: 149.3 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001894/1.272, allocations: 0.6851 MB / 1.075 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.681e-05/1.272, allocations: 1.469 kB / 1.075 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.789e-05/1.272, allocations: 31.61 kB / 1.075 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-05/1.272, allocations: 38.81 kB / 1.075 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/1.274, allocations: 0.5747 MB / 1.075 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005726/1.279, allocations: 2.84 MB / 1.078 GB, free: 147.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001956/1.281, allocations: 0.5844 MB / 1.079 GB, free: 147.4 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004944/1.282, allocations: 0.5634 MB / 1.079 GB, free: 146.7 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001067/1.283, allocations: 409 kB / 1.08 GB, free: 146.6 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 3.557e-06/1.283, allocations: 0 / 1.08 GB, free: 146.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.002538/1.286, allocations: 0.776 MB / 1.08 GB, free: 146.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.729e-05/1.286, allocations: 82.98 kB / 1.08 GB, free: 146.5 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005148/1.286, allocations: 309.7 kB / 1.081 GB, free: 146.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.703e-05/1.286, allocations: 40.2 kB / 1.081 GB, free: 146.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002454/1.287, allocations: 284 kB / 1.081 GB, free: 146.1 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/1.287, allocations: 156 kB / 1.081 GB, free: 146 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.455e-05/1.287, allocations: 16.69 kB / 1.081 GB, free: 146 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001082/1.287, allocations: 351 kB / 1.082 GB, free: 145.7 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000751/1.288, allocations: 251.2 kB / 1.082 GB, free: 145.6 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008508/1.289, allocations: 361.6 kB / 1.082 GB, free: 145.5 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008337/1.289, allocations: 297.9 kB / 1.082 GB, free: 145.4 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/1.289, allocations: 5.078 kB / 1.082 GB, free: 145.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002145/1.292, allocations: 0.7057 MB / 1.083 GB, free: 145.2 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002558/1.292, allocations: 1.073 MB / 1.084 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/1.292, allocations: 3.094 kB / 1.084 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.72e-05/1.292, allocations: 5.844 kB / 1.084 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009918/1.293, allocations: 119.5 kB / 1.084 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/1.293, allocations: 8.656 kB / 1.084 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008897/1.294, allocations: 77.67 kB / 1.084 GB, free: 144 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.018e-05/1.294, allocations: 20 kB / 1.084 GB, free: 144 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/1.294, allocations: 3.875 kB / 1.084 GB, free: 144 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001858/1.296, allocations: 0.5959 MB / 1.085 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/1.296, allocations: 3.219 kB / 1.085 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/1.296, allocations: 9.609 kB / 1.085 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008627/1.297, allocations: 109.7 kB / 1.085 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.712e-05/1.297, allocations: 9.75 kB / 1.085 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007797/1.298, allocations: 65.05 kB / 1.085 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.3e-05/1.298, allocations: 20.12 kB / 1.085 GB, free: 143.8 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.0005887/1.298, allocations: 294.5 kB / 1.086 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/1.298, allocations: 54.89 kB / 1.086 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002102/1.301, allocations: 0.6062 MB / 1.086 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/1.301, allocations: 9.516 kB / 1.086 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/1.301, allocations: 0.5312 kB / 1.086 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/1.301, allocations: 4.984 kB / 1.086 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001241/1.302, allocations: 0.6258 MB / 1.087 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/1.302, allocations: 4 kB / 1.087 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009671/1.303, allocations: 94.73 kB / 1.087 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.698e-06/1.303, allocations: 6.375 kB / 1.087 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.389e-05/1.303, allocations: 12.81 kB / 1.087 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/1.303, allocations: 0 / 1.087 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/1.303, allocations: 10.36 kB / 1.087 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/1.306, allocations: 0.9335 MB / 1.088 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003731/1.306, allocations: 181 kB / 1.088 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/1.306, allocations: 19.94 kB / 1.088 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006148/1.307, allocations: 39.5 kB / 1.088 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/1.307, allocations: 52.08 kB / 1.088 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.206e-05/1.307, allocations: 15.69 kB / 1.088 GB, free: 141.8 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003622/1.308, allocations: 245.8 kB / 1.088 GB, free: 141.7 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.41e-07/1.308, allocations: 0 / 1.088 GB, free: 141.7 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001102/1.309, allocations: 269.9 kB / 1.089 GB, free: 141.6 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.0002829/1.309, allocations: 156.4 kB / 1.089 GB, free: 141.5 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002558/1.312, allocations: 0.9971 MB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/1.312, allocations: 0 / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007793/1.312, allocations: 290.6 kB / 1.09 GB, free: 140.8 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/1.314, allocations: 156.4 kB / 1.09 GB, free: 140.7 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003032/1.317, allocations: 1.286 MB / 1.091 GB, free: 139.8 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/1.317, allocations: 0.9069 MB / 1.092 GB, free: 139 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009371/1.318, allocations: 147.7 kB / 1.092 GB, free: 139 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000274/1.318, allocations: 48.2 kB / 1.092 GB, free: 138.9 MB / 0.698 GB Notification: Performance of SimCode: time 9.82e-07/1.318, allocations: 0 / 1.092 GB, free: 138.9 MB / 0.698 GB Notification: Performance of Templates: time 0.01983/1.338, allocations: 7.657 MB / 1.1 GB, free: 133.2 MB / 0.698 GB