Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001964/0.001964, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.572/1.572, allocations: 222.9 MB / 240.3 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009854/0.0009853, allocations: 105.3 kB / 290.6 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04913/0.04913, allocations: 8.092 MB / 348.8 MB, free: 0.7031 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 50.52 kB / 411.1 MB, free: 57.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1314, allocations: 51.52 MB / 462.6 MB, free: 6.062 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.007334/0.1388, allocations: 3.16 MB / 465.8 MB, free: 2.887 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003018/0.1419, allocations: 1.164 MB / 466.9 MB, free: 1.719 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004286/0.1423, allocations: 4 kB / 467 MB, free: 1.715 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001463/0.1439, allocations: 415.1 kB / 467.4 MB, free: 1.309 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008444/0.1448, allocations: 251.1 kB / 467.6 MB, free: 1.062 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002299/0.1471, allocations: 0.9604 MB / 468.6 MB, free: 104 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001107/0.1482, allocations: 0.4944 MB / 469.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004051/0.1486, allocations: 144.5 kB / 469.2 MB, free: 15.46 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004719/0.1491, allocations: 203.3 kB / 469.4 MB, free: 15.26 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000808/0.15, allocations: 358.9 kB / 469.7 MB, free: 14.91 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.1501, allocations: 28 kB / 469.8 MB, free: 14.88 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008777/0.151, allocations: 251.8 kB / 470 MB, free: 14.63 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004832/0.1515, allocations: 331 kB / 470.3 MB, free: 14.31 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007335/0.1523, allocations: 409.4 kB / 470.7 MB, free: 13.91 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002168/0.1545, allocations: 1.289 MB / 472 MB, free: 12.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.1545, allocations: 0 / 472 MB, free: 12.61 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1545, allocations: 0 / 472 MB, free: 12.61 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.817e-05/0.1546, allocations: 0 / 472 MB, free: 12.61 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.006754/0.1613, allocations: 1.552 MB / 473.6 MB, free: 11.01 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.233e-05/0.1614, allocations: 12.03 kB / 473.6 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006115/0.162, allocations: 103.6 kB / 473.7 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002231/0.1643, allocations: 0.8757 MB / 474.6 MB, free: 9.965 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.1644, allocations: 80.53 kB / 474.7 MB, free: 9.875 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.903e-05/0.1646, allocations: 28.38 kB / 474.7 MB, free: 9.848 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.1659, allocations: 457 kB / 475.1 MB, free: 9.371 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.1659, allocations: 0 / 475.1 MB, free: 9.371 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.547e-05/0.166, allocations: 12 kB / 475.1 MB, free: 9.359 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.1661, allocations: 12 kB / 475.2 MB, free: 9.348 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009939/0.1671, allocations: 314.1 kB / 475.5 MB, free: 9.043 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005661/0.1727, allocations: 2.139 MB / 477.6 MB, free: 6.781 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001664/0.1744, allocations: 469.1 kB / 478.1 MB, free: 6.297 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000729/0.1752, allocations: 217.2 kB / 478.3 MB, free: 6.082 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001919/0.1754, allocations: 89.27 kB / 478.4 MB, free: 5.977 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.1755, allocations: 38.8 kB / 478.4 MB, free: 5.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=28): time 3.105e-06/0.1755, allocations: 0 / 478.4 MB, free: 5.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.003997/0.1795, allocations: 0.8246 MB / 479.2 MB, free: 5.078 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000156/0.1797, allocations: 235.3 kB / 479.4 MB, free: 4.793 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00407/0.1837, allocations: 1.737 MB / 481.2 MB, free: 3.035 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.508e-05/0.1839, allocations: 37.64 kB / 481.2 MB, free: 2.992 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006422/0.1845, allocations: 444.7 kB / 481.7 MB, free: 2.555 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.1847, allocations: 110.4 kB / 481.8 MB, free: 2.445 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002381/0.185, allocations: 65.69 kB / 481.8 MB, free: 2.375 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.1852, allocations: 314 kB / 482.1 MB, free: 2.062 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005992/0.1858, allocations: 151.9 kB / 482.3 MB, free: 1.914 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006847/0.1865, allocations: 246.3 kB / 482.5 MB, free: 1.641 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006354/0.1929, allocations: 0.9475 MB / 483.5 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.1929, allocations: 0 / 483.5 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.002642/0.1956, allocations: 0.6022 MB / 484.1 MB, free: 72 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.052e-05/0.1956, allocations: 4 kB / 484.1 MB, free: 68 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.1956, allocations: 7.969 kB / 484.1 MB, free: 60 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2279/0.4236, allocations: 146.6 kB / 484.2 MB, free: 28.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004609/0.4241, allocations: 72.94 kB / 484.3 MB, free: 28.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002447/0.4266, allocations: 1.878 MB / 486.2 MB, free: 26.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005932/0.4272, allocations: 49.12 kB / 486.2 MB, free: 26.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.658e-05/0.4273, allocations: 10.31 kB / 486.2 MB, free: 26.74 MB / 314.7 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: 4 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006232/0.4279, allocations: 407.7 kB / 486.6 MB, free: 26.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002248/0.4281, allocations: 94.39 kB / 486.7 MB, free: 26.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00154/0.4297, allocations: 0.5869 MB / 487.3 MB, free: 26.29 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.4297, allocations: 3.906 kB / 487.3 MB, free: 26.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.4297, allocations: 1.031 kB / 487.3 MB, free: 26.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.4297, allocations: 0.7969 kB / 487.3 MB, free: 26.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.4324, allocations: 1.48 MB / 488.8 MB, free: 25.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.4324, allocations: 5.484 kB / 488.8 MB, free: 25.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.4327, allocations: 51 kB / 488.9 MB, free: 25.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006441/0.4333, allocations: 150.6 kB / 489 MB, free: 25.51 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.4334, allocations: 11.19 kB / 489 MB, free: 25.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001845/0.4352, allocations: 1.865 MB / 490.9 MB, free: 23.9 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4353, allocations: 5.062 kB / 490.9 MB, free: 23.9 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009932/0.4452, allocations: 5.894 MB / 496.8 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004078/0.4456, allocations: 243 kB / 497 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.4458, allocations: 8.734 kB / 497 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004126/0.4462, allocations: 32.62 kB / 497.1 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.4464, allocations: 33.92 kB / 497.1 MB, free: 19.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-05/0.4464, allocations: 11.67 kB / 497.1 MB, free: 19.88 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001892/0.4483, allocations: 1.262 MB / 498.4 MB, free: 19.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4483, allocations: 0 / 498.4 MB, free: 19.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009699/0.4493, allocations: 230.6 kB / 498.6 MB, free: 19.39 MB / 314.7 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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 {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006753/0.45, allocations: 284.2 kB / 498.9 MB, free: 19.26 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.4513, allocations: 0.5087 MB / 499.4 MB, free: 19 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.4513, allocations: 4.281 kB / 499.4 MB, free: 19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000725/0.452, allocations: 342.6 kB / 499.7 MB, free: 18.8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005927/0.4526, allocations: 89.84 kB / 499.8 MB, free: 18.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0037/0.4564, allocations: 2.513 MB / 0.4905 GB, free: 17.35 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007932/0.4572, allocations: 1.084 MB / 0.4916 GB, free: 16.57 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000368/0.4575, allocations: 139 kB / 0.4917 GB, free: 16.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001748/0.4577, allocations: 54.28 kB / 0.4918 GB, free: 16.54 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4577, allocations: 0.625 kB / 0.4918 GB, free: 16.54 MB / 314.7 MB Notification: Performance of Templates: time 0.01773/0.4755, allocations: 11.96 MB / 0.5035 GB, free: 8.812 MB / 314.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)