Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.719/4.719, allocations: 0.5623 GB / 0.5769 GB, free: 66.96 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00267/0.00267, allocations: 355.1 kB / 0.644 GB, free: 21.5 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.225/4.225, allocations: 410.8 MB / 1.112 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001773/0.001773, allocations: 179.6 kB / 1.225 GB, free: 11.66 MB / 0.7292 GB Notification: Performance of FrontEnd - loaded program: time 0.0005199/0.0005201, allocations: 15.33 kB / 1.348 GB, free: 320.5 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1638, allocations: 115.3 MB / 1.461 GB, free: 220.7 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.004661/0.1685, allocations: 3.869 MB / 1.465 GB, free: 216.8 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.00364/0.1722, allocations: 2.085 MB / 1.467 GB, free: 214.7 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003904/0.1726, allocations: 11.94 kB / 1.467 GB, free: 214.7 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.1728, allocations: 59.98 kB / 1.467 GB, free: 214.7 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0007614/0.1736, allocations: 252.5 kB / 1.467 GB, free: 214.4 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009362/0.1746, allocations: 297.6 kB / 1.467 GB, free: 214.1 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0008583/0.1755, allocations: 0.8293 MB / 1.468 GB, free: 213.3 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001375/0.1768, allocations: 0.7197 MB / 1.469 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003698/0.1772, allocations: 232 kB / 1.469 GB, free: 212.3 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004395/0.1777, allocations: 301.8 kB / 1.469 GB, free: 212 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 7.374e-05/0.1778, allocations: 24 kB / 1.469 GB, free: 212 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004402/0.1782, allocations: 179.7 kB / 1.469 GB, free: 211.8 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.1784, allocations: 147.5 kB / 1.469 GB, free: 211.7 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001368/0.1785, allocations: 129.4 kB / 1.47 GB, free: 211.6 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0007234/0.1793, allocations: 0.7327 MB / 1.47 GB, free: 210.8 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 4.881e-06/0.1793, allocations: 0 / 1.47 GB, free: 210.8 MB / 0.8073 GB Notification: Performance of FrontEnd: time 2.042e-06/0.1793, allocations: 0.7188 kB / 1.47 GB, free: 210.8 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.081e-05/0.1793, allocations: 0 / 1.47 GB, free: 210.8 MB / 0.8073 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.001568/0.1809, allocations: 0.8364 MB / 1.471 GB, free: 209.9 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.181, allocations: 8.75 kB / 1.471 GB, free: 209.9 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008106/0.1818, allocations: 147.4 kB / 1.471 GB, free: 209.8 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000649/0.1825, allocations: 427.8 kB / 1.472 GB, free: 209.3 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.997e-05/0.1825, allocations: 37 kB / 1.472 GB, free: 209.3 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.1826, allocations: 51.98 kB / 1.472 GB, free: 209.2 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.184, allocations: 0.6919 MB / 1.472 GB, free: 208.5 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.184, allocations: 1.062 kB / 1.472 GB, free: 208.5 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.168e-05/0.1841, allocations: 27.98 kB / 1.472 GB, free: 208.5 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-05/0.1842, allocations: 52.91 kB / 1.473 GB, free: 208.5 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.1855, allocations: 0.5683 MB / 1.473 GB, free: 207.9 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0037/0.1892, allocations: 2.903 MB / 1.476 GB, free: 204.8 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.1905, allocations: 0.5666 MB / 1.476 GB, free: 204.2 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005099/0.191, allocations: 258.9 kB / 1.477 GB, free: 203.9 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003788/0.1914, allocations: 0.5634 MB / 1.477 GB, free: 203.2 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007596/0.1922, allocations: 396.1 kB / 1.478 GB, free: 202.8 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=46): time 3.493e-06/0.1922, allocations: 0 / 1.478 GB, free: 202.8 MB / 0.8073 GB Notification: Performance of matching and sorting (n=46): time 0.001732/0.1939, allocations: 0.7534 MB / 1.478 GB, free: 202.1 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.194, allocations: 82.45 kB / 1.478 GB, free: 202 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003983/0.1944, allocations: 353.5 kB / 1.479 GB, free: 201.6 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 6.174e-05/0.1945, allocations: 37.7 kB / 1.479 GB, free: 201.6 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.1947, allocations: 288.9 kB / 1.479 GB, free: 201.3 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.1948, allocations: 148.3 kB / 1.479 GB, free: 201.1 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.1949, allocations: 12 kB / 1.479 GB, free: 201.1 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.63e-05/0.195, allocations: 350.8 kB / 1.48 GB, free: 200.8 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005515/0.1955, allocations: 238 kB / 1.48 GB, free: 200.5 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006031/0.1961, allocations: 360.1 kB / 1.48 GB, free: 200.2 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005802/0.1967, allocations: 278.5 kB / 1.48 GB, free: 199.9 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.607e-06/0.1968, allocations: 4 kB / 1.48 GB, free: 199.9 MB / 0.8073 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001448/0.1982, allocations: 0.6908 MB / 1.481 GB, free: 199.2 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.325e-05/0.1983, allocations: 194.5 kB / 1.481 GB, free: 198.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1983, allocations: 4 kB / 1.481 GB, free: 198.9 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.304e-05/0.1984, allocations: 4.625 kB / 1.481 GB, free: 198.9 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006266/0.199, allocations: 116.4 kB / 1.481 GB, free: 198.8 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.199, allocations: 5.219 kB / 1.481 GB, free: 198.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005767/0.1996, allocations: 80.08 kB / 1.482 GB, free: 198.7 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.554e-05/0.1997, allocations: 28.81 kB / 1.482 GB, free: 198.7 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 7.508e-06/0.1997, allocations: 0 / 1.482 GB, free: 198.7 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001241/0.201, allocations: 0.5831 MB / 1.482 GB, free: 198.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.959e-06/0.201, allocations: 0 / 1.482 GB, free: 198.1 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.201, allocations: 8.688 kB / 1.482 GB, free: 198.1 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005082/0.2015, allocations: 104.3 kB / 1.482 GB, free: 198 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.2016, allocations: 8.719 kB / 1.482 GB, free: 198 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005049/0.2021, allocations: 64.58 kB / 1.482 GB, free: 198 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.013e-05/0.2022, allocations: 26.09 kB / 1.482 GB, free: 197.9 MB / 0.8073 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 (66): * Single equations (assignments): 65 * 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.0003696/0.2025, allocations: 301 kB / 1.483 GB, free: 197.6 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.892e-05/0.2026, allocations: 43.53 kB / 1.483 GB, free: 197.6 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001306/0.204, allocations: 0.5841 MB / 1.483 GB, free: 197 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.359e-06/0.204, allocations: 8.688 kB / 1.483 GB, free: 197 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.813e-06/0.204, allocations: 4.312 kB / 1.483 GB, free: 197 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.204, allocations: 5.734 kB / 1.483 GB, free: 197 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007919/0.2048, allocations: 0.6181 MB / 1.484 GB, free: 196.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.485e-06/0.2048, allocations: 0 / 1.484 GB, free: 196.3 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007612/0.2056, allocations: 99.84 kB / 1.484 GB, free: 196.2 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.086e-05/0.2056, allocations: 7.391 kB / 1.484 GB, free: 196.2 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.767e-05/0.2057, allocations: 8 kB / 1.484 GB, free: 196.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-06/0.2057, allocations: 4 kB / 1.484 GB, free: 196.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.496e-06/0.2057, allocations: 0 / 1.484 GB, free: 196.2 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001969/0.2077, allocations: 0.8933 MB / 1.485 GB, free: 195.3 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002775/0.208, allocations: 180.4 kB / 1.485 GB, free: 195.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.2081, allocations: 13.31 kB / 1.485 GB, free: 195.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004581/0.2086, allocations: 46.67 kB / 1.485 GB, free: 195 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.2088, allocations: 47.92 kB / 1.485 GB, free: 195 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.847e-05/0.2088, allocations: 16 kB / 1.485 GB, free: 195 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0003017/0.2092, allocations: 243.2 kB / 1.485 GB, free: 194.7 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7.37e-07/0.2092, allocations: 0 / 1.485 GB, free: 194.7 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0009515/0.2101, allocations: 263.1 kB / 1.486 GB, free: 194.5 MB / 0.8073 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 (47): * Single equations (assignments): 45 * 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.0002141/0.2104, allocations: 129.1 kB / 1.486 GB, free: 194.4 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.001978/0.2124, allocations: 0.9731 MB / 1.487 GB, free: 193.4 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.321e-06/0.2124, allocations: 0 / 1.487 GB, free: 193.4 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0006074/0.213, allocations: 275.7 kB / 1.487 GB, free: 193.1 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009766/0.214, allocations: 170.8 kB / 1.487 GB, free: 192.9 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/0.2162, allocations: 1.253 MB / 1.488 GB, free: 191.7 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003667/0.2166, allocations: 0.9064 MB / 1.489 GB, free: 190.7 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.000704/0.2173, allocations: 145.5 kB / 1.489 GB, free: 190.6 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000192/0.2175, allocations: 43.44 kB / 1.489 GB, free: 190.6 MB / 0.8073 GB Notification: Performance of SimCode: time 1.878e-06/0.2175, allocations: 0 / 1.489 GB, free: 190.6 MB / 0.8073 GB Notification: Performance of Templates: time 0.01704/0.2346, allocations: 7.555 MB / 1.497 GB, free: 183.2 MB / 0.8073 GB