Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001782/0.001783, allocations: 103 kB / 16.45 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001957/0.001957, allocations: 189 kB / 17.39 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04879/0.04879, allocations: 8.1 MB / 299.3 MB, free: 6.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001182, allocations: 63.91 kB / 414.5 MB, free: 21.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1417, allocations: 51.52 MB / 466 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.008451/0.1501, allocations: 4.692 MB / 470.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003609/0.1538, allocations: 1.432 MB / 472.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003864/0.1542, allocations: 16 kB / 472.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001368/0.1556, allocations: 0.5019 MB / 472.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001112/0.1568, allocations: 417.8 kB / 473.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002589/0.1594, allocations: 1.082 MB / 474.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001554/0.1609, allocations: 0.8521 MB / 475 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006746/0.1616, allocations: 322.7 kB / 475.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006243/0.1623, allocations: 382.7 kB / 475.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009927/0.1633, allocations: 0.5647 MB / 476.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.1634, allocations: 80 kB / 476.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.1645, allocations: 311.8 kB / 476.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005158/0.165, allocations: 418.8 kB / 477 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007723/0.1658, allocations: 0.6216 MB / 477.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002445/0.1682, allocations: 1.663 MB / 479.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.1683, allocations: 0 / 479.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1683, allocations: 0 / 479.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.678e-05/0.1683, allocations: 0 / 479.3 MB, free: 4.762 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.008409/0.1767, allocations: 2.111 MB / 481.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.311e-05/0.1768, allocations: 12.03 kB / 481.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004182/0.1773, allocations: 147.2 kB / 481.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.1795, allocations: 0.9861 MB / 482.6 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002202/0.1797, allocations: 186.4 kB / 482.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001517/0.1799, allocations: 64.38 kB / 482.8 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002184/0.1821, allocations: 0.8518 MB / 483.7 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.1821, allocations: 11.94 kB / 483.7 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.948e-05/0.1822, allocations: 24 kB / 483.7 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.552e-05/0.1823, allocations: 16 kB / 483.7 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001951/0.1842, allocations: 0.7119 MB / 484.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00581/0.1901, allocations: 4.061 MB / 488.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003093/0.1932, allocations: 1.29 MB / 489.8 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.1946, allocations: 0.5465 MB / 490.3 MB, free: 9.227 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001361/0.1948, allocations: 24.97 kB / 490.3 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/0.1948, allocations: 47.5 kB / 490.4 MB, free: 9.148 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 4.428e-06/0.1948, allocations: 4 kB / 490.4 MB, free: 9.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01605/0.2109, allocations: 3.138 MB / 493.5 MB, free: 5.977 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001636/0.2111, allocations: 240.3 kB / 493.8 MB, free: 5.688 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003597/0.2147, allocations: 1.805 MB / 495.6 MB, free: 3.867 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001627/0.2149, allocations: 45.7 kB / 495.6 MB, free: 3.816 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005859/0.2155, allocations: 497.8 kB / 496.1 MB, free: 3.328 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003705/0.2159, allocations: 295.6 kB / 496.4 MB, free: 3.035 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003777/0.2163, allocations: 142.7 kB / 496.5 MB, free: 2.891 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.2165, allocations: 341.9 kB / 496.9 MB, free: 2.551 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.2175, allocations: 421.8 kB / 497.3 MB, free: 2.137 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/0.2187, allocations: 0.5346 MB / 497.8 MB, free: 1.574 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.013/0.2317, allocations: 2.592 MB / 0.4887 GB, free: 14.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.2317, allocations: 3.938 kB / 0.4887 GB, free: 14.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.006176/0.2379, allocations: 1.71 MB / 0.4904 GB, free: 13.24 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.238, allocations: 4 kB / 0.4904 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.238, allocations: 0 / 0.4904 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004124/0.2422, allocations: 0.8242 MB / 0.4912 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000678/0.2429, allocations: 115.9 kB / 0.4913 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003386/0.2463, allocations: 1.479 MB / 0.4927 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.2475, allocations: 79.39 kB / 0.4928 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.431e-05/0.2476, allocations: 36 kB / 0.4928 GB, free: 10.67 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.battery.SOC_start fixed = true ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,22)} Notification: Performance of prepare postOptimizeDAE: time 0.001078/0.2487, allocations: 441.6 kB / 0.4932 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003329/0.249, allocations: 122.5 kB / 0.4934 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00508/0.2541, allocations: 1.764 MB / 0.4951 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.2542, allocations: 8 kB / 0.4951 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.2542, allocations: 0 / 0.4951 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.2542, allocations: 3.984 kB / 0.4951 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006362/0.2606, allocations: 3.392 MB / 0.4984 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.2606, allocations: 0 / 0.4984 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003849/0.261, allocations: 103.9 kB / 0.4985 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002719/0.2637, allocations: 0.781 MB / 0.4993 GB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.146e-05/0.2638, allocations: 19.98 kB / 0.4993 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002404/0.2662, allocations: 1.463 MB / 0.5007 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2662, allocations: 0 / 0.5007 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005061/0.2713, allocations: 2.329 MB / 0.503 GB, free: 124 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.287/0.5583, allocations: 271.9 kB / 0.5033 GB, free: 46.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004327/0.5588, allocations: 21.77 kB / 0.5033 GB, free: 46.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009719/0.5598, allocations: 46.77 kB / 0.5033 GB, free: 46.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003033/0.5601, allocations: 66.27 kB / 0.5034 GB, free: 46.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001229/0.5602, allocations: 30.61 kB / 0.5034 GB, free: 46.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004131/0.5644, allocations: 1.302 MB / 0.5047 GB, free: 46.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5644, allocations: 0 / 0.5047 GB, free: 46.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001581/0.566, allocations: 246.5 kB / 0.5049 GB, free: 46.58 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009767/0.567, allocations: 298.7 kB / 0.5052 GB, free: 46.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00631/0.5733, allocations: 1.362 MB / 0.5065 GB, free: 46.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/0.5734, allocations: 5.062 kB / 0.5065 GB, free: 46.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003818/0.5772, allocations: 0.8543 MB / 0.5074 GB, free: 46.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.5782, allocations: 109.8 kB / 0.5075 GB, free: 46.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004654/0.5829, allocations: 2.566 MB / 0.51 GB, free: 45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000825/0.5837, allocations: 1.174 MB / 0.5111 GB, free: 44.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000595/0.5844, allocations: 168.2 kB / 0.5113 GB, free: 44.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002642/0.5846, allocations: 71.75 kB / 0.5114 GB, free: 44.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5846, allocations: 0.5625 kB / 0.5114 GB, free: 44.2 MB / 382.1 MB Notification: Performance of Templates: time 0.02731/0.6119, allocations: 16.82 MB / 0.5278 GB, free: 35.54 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)