Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.367/1.367, allocations: 252 MB / 268 MB, free: 10.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 175.1 kB / 327.6 MB, free: 2.094 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.4 MB / 0.5786 GB, free: 20.13 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007479/0.0007478, allocations: 95.52 kB / 0.6832 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003043/0.0003044, allocations: 9.5 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1689, allocations: 106.3 MB / 0.9015 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.003921/0.1729, allocations: 4.048 MB / 0.9054 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002906/0.1758, allocations: 2.191 MB / 0.9076 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000322/0.1761, allocations: 11.94 kB / 0.9076 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002575/0.1764, allocations: 67.42 kB / 0.9076 GB, free: 57.13 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0007543/0.1772, allocations: 306.5 kB / 0.9079 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007765/0.178, allocations: 367.5 kB / 0.9083 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0007989/0.1788, allocations: 0.9659 MB / 0.9092 GB, free: 55.5 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001091/0.1799, allocations: 0.8097 MB / 0.91 GB, free: 54.66 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003297/0.1802, allocations: 238.9 kB / 0.9102 GB, free: 54.42 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003665/0.1806, allocations: 314.6 kB / 0.9105 GB, free: 54.11 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.433e-05/0.1807, allocations: 24 kB / 0.9106 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004555/0.1811, allocations: 327.4 kB / 0.9109 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.1813, allocations: 143.5 kB / 0.911 GB, free: 53.63 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.000195/0.1815, allocations: 300.1 kB / 0.9113 GB, free: 53.33 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004983/0.182, allocations: 0.7405 MB / 0.912 GB, free: 52.59 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.182, allocations: 3.938 kB / 0.912 GB, free: 52.58 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.292e-06/0.182, allocations: 0 / 0.912 GB, free: 52.58 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.795e-06/0.182, allocations: 0 / 0.912 GB, free: 52.58 MB / 0.6042 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.001261/0.1833, allocations: 0.8287 MB / 0.9128 GB, free: 51.7 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.1833, allocations: 12.03 kB / 0.9128 GB, free: 51.68 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00057/0.1839, allocations: 132.1 kB / 0.913 GB, free: 51.55 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004263/0.1843, allocations: 430.9 kB / 0.9134 GB, free: 51.09 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.411e-05/0.1844, allocations: 41.38 kB / 0.9134 GB, free: 51.05 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.316e-05/0.1844, allocations: 48.38 kB / 0.9135 GB, free: 51.01 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009113/0.1854, allocations: 0.7007 MB / 0.9141 GB, free: 50.27 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.1854, allocations: 0 / 0.9141 GB, free: 50.27 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.01e-05/0.1854, allocations: 27.97 kB / 0.9142 GB, free: 50.25 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.479e-05/0.1855, allocations: 56.97 kB / 0.9142 GB, free: 50.19 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008676/0.1864, allocations: 0.5699 MB / 0.9148 GB, free: 49.62 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002459/0.1888, allocations: 2.904 MB / 0.9176 GB, free: 46.47 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008414/0.1897, allocations: 0.5697 MB / 0.9182 GB, free: 45.89 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000348/0.1901, allocations: 257.6 kB / 0.9184 GB, free: 45.63 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003623/0.1904, allocations: 0.5662 MB / 0.919 GB, free: 44.93 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005432/0.191, allocations: 408.2 kB / 0.9194 GB, free: 44.52 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 1.823e-06/0.191, allocations: 0 / 0.9194 GB, free: 44.52 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001181/0.1922, allocations: 0.7472 MB / 0.9201 GB, free: 43.76 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.1922, allocations: 85.11 kB / 0.9202 GB, free: 43.66 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002582/0.1925, allocations: 345.7 kB / 0.9205 GB, free: 43.32 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.1926, allocations: 49.64 kB / 0.9206 GB, free: 43.26 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.1927, allocations: 276.4 kB / 0.9208 GB, free: 42.98 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.922e-05/0.1928, allocations: 149.9 kB / 0.921 GB, free: 42.84 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.1928, allocations: 12 kB / 0.921 GB, free: 42.82 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.812e-05/0.1929, allocations: 354.7 kB / 0.9213 GB, free: 42.47 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/0.1932, allocations: 241 kB / 0.9215 GB, free: 42.23 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004057/0.1937, allocations: 370.6 kB / 0.9219 GB, free: 41.82 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007755/0.1944, allocations: 0.575 MB / 0.9225 GB, free: 41.2 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1945, allocations: 0 / 0.9225 GB, free: 41.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009514/0.1954, allocations: 0.7026 MB / 0.9231 GB, free: 40.49 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.081e-05/0.1955, allocations: 196.8 kB / 0.9233 GB, free: 40.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1955, allocations: 4 kB / 0.9233 GB, free: 40.25 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.1955, allocations: 4 kB / 0.9233 GB, free: 40.24 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004713/0.196, allocations: 111.8 kB / 0.9234 GB, free: 40.13 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.196, allocations: 8 kB / 0.9234 GB, free: 40.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004323/0.1965, allocations: 79.47 kB / 0.9235 GB, free: 40.05 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.786e-05/0.1965, allocations: 19.94 kB / 0.9235 GB, free: 40.03 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.831e-06/0.1965, allocations: 4 kB / 0.9235 GB, free: 40.02 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008209/0.1974, allocations: 0.5797 MB / 0.9241 GB, free: 39.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1974, allocations: 3.984 kB / 0.9241 GB, free: 39.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.15e-06/0.1974, allocations: 8 kB / 0.9241 GB, free: 39.43 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003657/0.1977, allocations: 99.81 kB / 0.9242 GB, free: 39.33 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1978, allocations: 11.94 kB / 0.9242 GB, free: 39.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003546/0.1981, allocations: 68.2 kB / 0.9243 GB, free: 39.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.329e-05/0.1982, allocations: 23.98 kB / 0.9243 GB, free: 39.23 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002283/0.1984, allocations: 307.2 kB / 0.9246 GB, free: 38.91 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.222e-05/0.1985, allocations: 47.44 kB / 0.9247 GB, free: 38.87 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009042/0.1994, allocations: 0.584 MB / 0.9252 GB, free: 38.28 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1994, allocations: 7.984 kB / 0.9252 GB, free: 38.27 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.1994, allocations: 0 / 0.9252 GB, free: 38.27 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1994, allocations: 0 / 0.9252 GB, free: 38.27 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004921/0.1999, allocations: 0.6218 MB / 0.9258 GB, free: 37.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1999, allocations: 0 / 0.9258 GB, free: 37.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004872/0.2004, allocations: 107.8 kB / 0.9259 GB, free: 37.49 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.2004, allocations: 4 kB / 0.9259 GB, free: 37.49 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.239e-05/0.2005, allocations: 8 kB / 0.926 GB, free: 37.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.2005, allocations: 3.938 kB / 0.926 GB, free: 37.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2005, allocations: 0 / 0.926 GB, free: 37.48 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.2017, allocations: 0.9056 MB / 0.9268 GB, free: 36.55 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.2018, allocations: 168.6 kB / 0.927 GB, free: 36.37 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.214e-05/0.2019, allocations: 12 kB / 0.927 GB, free: 36.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003552/0.2023, allocations: 43.95 kB / 0.9271 GB, free: 36.31 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.2024, allocations: 39.94 kB / 0.9271 GB, free: 36.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.2024, allocations: 19.98 kB / 0.9271 GB, free: 36.25 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001819/0.2026, allocations: 247.2 kB / 0.9274 GB, free: 36.01 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2026, allocations: 0 / 0.9274 GB, free: 36.01 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000562/0.2032, allocations: 259.1 kB / 0.9276 GB, free: 35.76 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001573/0.2034, allocations: 135.2 kB / 0.9277 GB, free: 35.62 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001284/0.2046, allocations: 0.9801 MB / 0.9287 GB, free: 34.61 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2047, allocations: 0 / 0.9287 GB, free: 34.61 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003805/0.205, allocations: 271.7 kB / 0.9289 GB, free: 34.34 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000733/0.2058, allocations: 174.5 kB / 0.9291 GB, free: 34.18 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.2074, allocations: 1.348 MB / 0.9304 GB, free: 32.8 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.2077, allocations: 0.8911 MB / 0.9313 GB, free: 31.88 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.2078, allocations: 47.44 kB / 0.9313 GB, free: 31.83 MB / 0.6042 GB Notification: Performance of SimCode: time 2.5e-07/0.2079, allocations: 0 / 0.9313 GB, free: 31.83 MB / 0.6042 GB Notification: Performance of Templates: time 0.008329/0.2162, allocations: 7.779 MB / 0.9389 GB, free: 24.11 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)