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 2.694/2.694, allocations: 287.9 MB / 302.9 MB, free: 8.289 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0014/0.001399, allocations: 165.2 kB / 371.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.186/2.186, allocations: 205.4 MB / 0.6301 GB, free: 10.27 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 98.64 kB / 0.7434 GB, free: 6.293 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004623/0.0004625, allocations: 10.53 kB / 0.8662 GB, free: 141.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1582, allocations: 115.3 MB / 0.9788 GB, free: 28.17 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.006365/0.1646, allocations: 5.247 MB / 0.9839 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003652/0.1683, allocations: 2.091 MB / 0.9859 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004309/0.1688, allocations: 7.938 kB / 0.9859 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002279/0.1691, allocations: 59.55 kB / 0.986 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0008103/0.1699, allocations: 247.2 kB / 0.9862 GB, free: 20.49 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.1709, allocations: 297.5 kB / 0.9865 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0007982/0.1717, allocations: 471 kB / 0.987 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001409/0.1732, allocations: 0.7144 MB / 0.9876 GB, free: 18.99 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000353/0.1735, allocations: 219.1 kB / 0.9879 GB, free: 18.78 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003742/0.1739, allocations: 246.9 kB / 0.9881 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 7.15e-05/0.174, allocations: 20 kB / 0.9881 GB, free: 18.52 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004394/0.1745, allocations: 179.8 kB / 0.9883 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.1746, allocations: 135.5 kB / 0.9884 GB, free: 18.21 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.1748, allocations: 129.4 kB / 0.9885 GB, free: 18.07 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0007861/0.1756, allocations: 0.7327 MB / 0.9893 GB, free: 17.34 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.252e-06/0.1756, allocations: 0 / 0.9893 GB, free: 17.34 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.293e-06/0.1756, allocations: 0 / 0.9893 GB, free: 17.34 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.147e-05/0.1756, allocations: 0 / 0.9893 GB, free: 17.34 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.001558/0.1772, allocations: 0.8299 MB / 0.9901 GB, free: 16.45 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.1772, allocations: 12.03 kB / 0.9901 GB, free: 16.44 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008427/0.1781, allocations: 139.1 kB / 0.9902 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006283/0.1787, allocations: 425.9 kB / 0.9906 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.862e-05/0.1788, allocations: 37 kB / 0.9906 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.1789, allocations: 51.98 kB / 0.9907 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.1803, allocations: 0.6926 MB / 0.9914 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.1803, allocations: 0 / 0.9914 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.035e-05/0.1804, allocations: 23.97 kB / 0.9914 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.072e-05/0.1805, allocations: 48.98 kB / 0.9914 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.1818, allocations: 0.5776 MB / 0.992 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003639/0.1855, allocations: 2.904 MB / 0.9948 GB, free: 11.24 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.1868, allocations: 0.5584 MB / 0.9954 GB, free: 10.66 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004035/0.1872, allocations: 0.5669 MB / 0.9959 GB, free: 9.969 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007676/0.188, allocations: 398.6 kB / 0.9963 GB, free: 9.562 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 3.402e-06/0.188, allocations: 0 / 0.9963 GB, free: 9.562 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001756/0.1898, allocations: 0.7498 MB / 0.9971 GB, free: 8.805 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.1898, allocations: 85.11 kB / 0.9971 GB, free: 8.703 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003988/0.1902, allocations: 337.7 kB / 0.9975 GB, free: 8.371 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.938e-05/0.1903, allocations: 45.7 kB / 0.9975 GB, free: 8.32 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/0.1905, allocations: 280.3 kB / 0.9978 GB, free: 8.039 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.1907, allocations: 150.1 kB / 0.9979 GB, free: 7.891 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.95e-05/0.1907, allocations: 15.94 kB / 0.9979 GB, free: 7.875 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.99e-05/0.1908, allocations: 358.8 kB / 0.9983 GB, free: 7.516 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005714/0.1914, allocations: 237 kB / 0.9985 GB, free: 7.285 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006188/0.192, allocations: 362.6 kB / 0.9988 GB, free: 6.887 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005881/0.1926, allocations: 282.4 kB / 0.9991 GB, free: 6.605 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.741e-06/0.1927, allocations: 0 / 0.9991 GB, free: 6.605 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001481/0.1942, allocations: 0.6987 MB / 0.9998 GB, free: 5.895 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002431/0.1944, allocations: 1.071 MB / 1.001 GB, free: 4.738 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.404e-06/0.1944, allocations: 4 kB / 1.001 GB, free: 4.734 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.323e-05/0.1945, allocations: 12.05 kB / 1.001 GB, free: 4.723 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007139/0.1952, allocations: 111.8 kB / 1.001 GB, free: 4.613 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.1952, allocations: 4 kB / 1.001 GB, free: 4.609 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005828/0.1958, allocations: 83.42 kB / 1.001 GB, free: 4.527 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.847e-05/0.1959, allocations: 23.98 kB / 1.001 GB, free: 4.504 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.85e-06/0.1959, allocations: 4 kB / 1.001 GB, free: 4.5 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001277/0.1972, allocations: 0.5794 MB / 1.002 GB, free: 3.914 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.628e-06/0.1972, allocations: 4 kB / 1.002 GB, free: 3.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.1973, allocations: 4.25 kB / 1.002 GB, free: 3.906 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004968/0.1978, allocations: 107.8 kB / 1.002 GB, free: 3.801 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.1978, allocations: 7.984 kB / 1.002 GB, free: 3.793 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005104/0.1983, allocations: 67.64 kB / 1.002 GB, free: 3.727 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.868e-05/0.1984, allocations: 16 kB / 1.002 GB, free: 3.711 MB / 0.6198 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.0003799/0.1988, allocations: 295.2 kB / 1.002 GB, free: 3.414 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.123e-05/0.1989, allocations: 51.39 kB / 1.002 GB, free: 3.363 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001333/0.2002, allocations: 0.5817 MB / 1.003 GB, free: 2.773 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.2002, allocations: 8 kB / 1.003 GB, free: 2.766 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.926e-06/0.2003, allocations: 4 kB / 1.003 GB, free: 2.762 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.2003, allocations: 0 / 1.003 GB, free: 2.762 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007606/0.201, allocations: 0.6181 MB / 1.003 GB, free: 2.094 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.014e-06/0.2011, allocations: 3.984 kB / 1.003 GB, free: 2.09 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006361/0.2017, allocations: 107.7 kB / 1.003 GB, free: 1.984 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.024e-06/0.2017, allocations: 4 kB / 1.003 GB, free: 1.98 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.594e-05/0.2018, allocations: 8 kB / 1.003 GB, free: 1.973 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.589e-06/0.2018, allocations: 4 kB / 1.003 GB, free: 1.969 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.2018, allocations: 0 / 1.003 GB, free: 1.969 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001837/0.2037, allocations: 0.9038 MB / 1.004 GB, free: 1.035 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00025/0.2039, allocations: 184.4 kB / 1.005 GB, free: 0.8359 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.211e-05/0.204, allocations: 8 kB / 1.005 GB, free: 0.8281 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004077/0.2045, allocations: 39.94 kB / 1.005 GB, free: 0.7891 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.2046, allocations: 43.94 kB / 1.005 GB, free: 0.7461 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.671e-05/0.2047, allocations: 19.98 kB / 1.005 GB, free: 0.7266 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002895/0.205, allocations: 243.2 kB / 1.005 GB, free: 500 kB / 0.6198 GB Notification: Performance of sort global known variables: time 1.39e-06/0.205, allocations: 4 kB / 1.005 GB, free: 496 kB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0008669/0.2059, allocations: 263.1 kB / 1.005 GB, free: 232 kB / 0.6198 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.0001929/0.2061, allocations: 135.2 kB / 1.005 GB, free: 84 kB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002357/0.2085, allocations: 0.9664 MB / 1.006 GB, free: 15.09 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.875e-06/0.2085, allocations: 4 kB / 1.006 GB, free: 15.09 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0007013/0.2092, allocations: 276.4 kB / 1.006 GB, free: 14.82 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009603/0.2102, allocations: 154.6 kB / 1.007 GB, free: 14.67 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.2129, allocations: 1.248 MB / 1.008 GB, free: 13.39 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006856/0.2136, allocations: 0.9067 MB / 1.009 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0007776/0.2144, allocations: 144.2 kB / 1.009 GB, free: 12.32 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/0.2147, allocations: 43.44 kB / 1.009 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of SimCode: time 1.581e-06/0.2147, allocations: 0 / 1.009 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of Templates: time 0.01995/0.2346, allocations: 7.556 MB / 1.016 GB, free: 4.809 MB / 0.6355 GB