Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.994/4.994, allocations: 0.5623 GB / 0.5769 GB, free: 3.34 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00239/0.00239, allocations: 356.9 kB / 0.644 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.05/4.05, allocations: 410.7 MB / 1.112 GB, free: 147.8 MB / 0.5886 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001757/0.001757, allocations: 182.8 kB / 1.225 GB, free: 35.93 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.000513/0.0005134, allocations: 12 kB / 1.348 GB, free: 121.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1574, allocations: 115.3 MB / 1.461 GB, free: 6.641 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.006174/0.1637, allocations: 5.352 MB / 1.466 GB, free: 1.262 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.004573/0.1683, allocations: 2.087 MB / 1.468 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004832/0.1688, allocations: 11.94 kB / 1.468 GB, free: 15.15 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002384/0.1691, allocations: 55.48 kB / 1.468 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0009571/0.17, allocations: 250.5 kB / 1.468 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.1712, allocations: 299.2 kB / 1.469 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001321/0.1726, allocations: 0.8255 MB / 1.469 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001704/0.1743, allocations: 0.7144 MB / 1.47 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004959/0.1748, allocations: 227 kB / 1.47 GB, free: 12.76 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005875/0.1754, allocations: 302.7 kB / 1.471 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 8.42e-05/0.1755, allocations: 24 kB / 1.471 GB, free: 12.44 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005325/0.1761, allocations: 191.7 kB / 1.471 GB, free: 12.25 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001924/0.1763, allocations: 139.5 kB / 1.471 GB, free: 12.12 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.1765, allocations: 133.4 kB / 1.471 GB, free: 11.98 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.001057/0.1775, allocations: 0.7366 MB / 1.472 GB, free: 11.24 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.1776, allocations: 0 / 1.472 GB, free: 11.24 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.553e-06/0.1776, allocations: 3.938 kB / 1.472 GB, free: 11.24 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.07e-05/0.1776, allocations: 0 / 1.472 GB, free: 11.24 MB / 0.6198 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.002091/0.1797, allocations: 0.8287 MB / 1.473 GB, free: 10.35 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1798, allocations: 11.97 kB / 1.473 GB, free: 10.34 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009404/0.1807, allocations: 139.1 kB / 1.473 GB, free: 10.2 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009381/0.1817, allocations: 421.9 kB / 1.473 GB, free: 9.75 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.519e-05/0.1818, allocations: 40.98 kB / 1.473 GB, free: 9.711 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.1819, allocations: 52 kB / 1.473 GB, free: 9.66 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001701/0.1836, allocations: 0.6964 MB / 1.474 GB, free: 8.934 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.1837, allocations: 0 / 1.474 GB, free: 8.934 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.481e-05/0.1838, allocations: 23.98 kB / 1.474 GB, free: 8.91 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001068/0.1839, allocations: 48.97 kB / 1.474 GB, free: 8.859 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001614/0.1855, allocations: 0.5737 MB / 1.475 GB, free: 8.289 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004953/0.1905, allocations: 2.908 MB / 1.477 GB, free: 5.133 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.192, allocations: 0.5638 MB / 1.478 GB, free: 4.551 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006226/0.1927, allocations: 265.4 kB / 1.478 GB, free: 4.285 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006449/0.1934, allocations: 0.5623 MB / 1.479 GB, free: 3.594 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009305/0.1943, allocations: 400.5 kB / 1.479 GB, free: 3.184 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 3.52e-06/0.1943, allocations: 0 / 1.479 GB, free: 3.184 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.002048/0.1964, allocations: 0.7458 MB / 1.48 GB, free: 2.43 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.34e-05/0.1965, allocations: 89.11 kB / 1.48 GB, free: 2.324 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005477/0.1971, allocations: 341.6 kB / 1.48 GB, free: 1.988 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.862e-05/0.1972, allocations: 41.7 kB / 1.48 GB, free: 1.941 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003166/0.1975, allocations: 288.3 kB / 1.481 GB, free: 1.652 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/0.1977, allocations: 150.1 kB / 1.481 GB, free: 1.504 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.466e-05/0.1978, allocations: 8 kB / 1.481 GB, free: 1.496 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0002084/0.198, allocations: 354.8 kB / 1.481 GB, free: 1.141 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006474/0.1986, allocations: 233 kB / 1.481 GB, free: 0.9141 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000765/0.1994, allocations: 362.6 kB / 1.482 GB, free: 0.5156 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000696/0.2001, allocations: 281.7 kB / 1.482 GB, free: 240 kB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.2001, allocations: 3.938 kB / 1.482 GB, free: 236 kB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001781/0.2019, allocations: 0.6834 MB / 1.483 GB, free: 15.53 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001771/0.2021, allocations: 197.2 kB / 1.483 GB, free: 15.29 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.2022, allocations: 4 kB / 1.483 GB, free: 15.29 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.879e-05/0.2022, allocations: 11.98 kB / 1.483 GB, free: 15.28 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006964/0.2029, allocations: 111.8 kB / 1.483 GB, free: 15.17 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.2029, allocations: 8 kB / 1.483 GB, free: 15.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000636/0.2036, allocations: 79.47 kB / 1.483 GB, free: 15.08 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.029e-05/0.2037, allocations: 20 kB / 1.483 GB, free: 15.06 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.2037, allocations: 7.938 kB / 1.483 GB, free: 15.05 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00157/0.2053, allocations: 0.5755 MB / 1.484 GB, free: 14.47 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.2053, allocations: 4 kB / 1.484 GB, free: 14.47 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.2054, allocations: 4 kB / 1.484 GB, free: 14.46 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005855/0.2059, allocations: 107.8 kB / 1.484 GB, free: 14.36 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/0.206, allocations: 7.938 kB / 1.484 GB, free: 14.35 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005856/0.2066, allocations: 63.64 kB / 1.484 GB, free: 14.29 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.745e-05/0.2067, allocations: 28.11 kB / 1.484 GB, free: 14.26 MB / 0.6355 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.0005395/0.2072, allocations: 303.8 kB / 1.484 GB, free: 13.96 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.2074, allocations: 47.38 kB / 1.484 GB, free: 13.91 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001593/0.209, allocations: 0.5853 MB / 1.485 GB, free: 13.32 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.209, allocations: 4 kB / 1.485 GB, free: 13.31 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.389e-06/0.209, allocations: 0 / 1.485 GB, free: 13.31 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.209, allocations: 3.984 kB / 1.485 GB, free: 13.31 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.2101, allocations: 0.6179 MB / 1.485 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.2102, allocations: 48 / 1.485 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007185/0.2109, allocations: 103.8 kB / 1.485 GB, free: 12.54 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.2109, allocations: 4 kB / 1.485 GB, free: 12.54 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.364e-05/0.211, allocations: 11.98 kB / 1.485 GB, free: 12.53 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.922e-06/0.211, allocations: 4.188 kB / 1.485 GB, free: 12.52 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.491e-06/0.211, allocations: 11.94 kB / 1.485 GB, free: 12.51 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.2132, allocations: 0.8902 MB / 1.486 GB, free: 11.6 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003547/0.2136, allocations: 180.4 kB / 1.486 GB, free: 11.4 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.2137, allocations: 12 kB / 1.486 GB, free: 11.39 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004334/0.2142, allocations: 39.95 kB / 1.487 GB, free: 11.35 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.2144, allocations: 47.92 kB / 1.487 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.055e-05/0.2144, allocations: 16 kB / 1.487 GB, free: 11.29 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0003969/0.2148, allocations: 243.2 kB / 1.487 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.12e-07/0.2149, allocations: 0 / 1.487 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001006/0.2159, allocations: 259.1 kB / 1.487 GB, free: 10.8 MB / 0.6355 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.0002573/0.2161, allocations: 135.1 kB / 1.487 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.002361/0.2185, allocations: 0.9717 MB / 1.488 GB, free: 9.656 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.976e-06/0.2186, allocations: 0 / 1.488 GB, free: 9.656 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0007075/0.2193, allocations: 275.9 kB / 1.488 GB, free: 9.387 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.2204, allocations: 154.9 kB / 1.489 GB, free: 9.238 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.2232, allocations: 1.264 MB / 1.49 GB, free: 7.949 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007073/0.224, allocations: 0.9106 MB / 1.491 GB, free: 7.012 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0007941/0.2248, allocations: 140.3 kB / 1.491 GB, free: 6.871 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.225, allocations: 43.42 kB / 1.491 GB, free: 6.828 MB / 0.6355 GB Notification: Performance of SimCode: time 1.874e-06/0.225, allocations: 4 kB / 1.491 GB, free: 6.824 MB / 0.6355 GB Notification: Performance of Templates: time 0.01992/0.245, allocations: 7.571 MB / 1.498 GB, free: 15.36 MB / 0.6511 GB