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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 181 kB / 8.045 MB, free: 1.016 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 221.5 MB / 230 MB, free: 3.191 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000873/0.0008727, allocations: 94.12 kB / 280.9 MB, free: 1.148 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.0484/0.0484, allocations: 8.098 MB / 339.8 MB, free: 6.242 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.555e-05/1.557e-05, allocations: 4 kB / 398.5 MB, free: 67.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.09192, allocations: 52.52 MB / 451 MB, free: 15.13 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3666/0.4586, allocations: 84.8 MB / 0.5232 GB, free: 9.254 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002182/0.4588, allocations: 71.27 kB / 0.5233 GB, free: 9.219 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05937/0.5182, allocations: 23.37 MB / 0.5461 GB, free: 6.531 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5183, allocations: 8 kB / 0.5461 GB, free: 6.523 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.132e-05/0.5183, allocations: 16.22 kB / 0.5462 GB, free: 6.508 MB / 362.7 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.004027/0.5224, allocations: 1.399 MB / 0.5475 GB, free: 5.172 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.5224, allocations: 11.98 kB / 0.5475 GB, free: 5.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005074/0.5229, allocations: 142.3 kB / 0.5477 GB, free: 5.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001849/0.5248, allocations: 0.986 MB / 0.5486 GB, free: 4.199 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001528/0.525, allocations: 161.8 kB / 0.5488 GB, free: 4.012 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.5251, allocations: 42.83 kB / 0.5488 GB, free: 3.973 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00109/0.5262, allocations: 0.639 MB / 0.5494 GB, free: 3.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.5274, allocations: 0.7423 MB / 0.5502 GB, free: 3.086 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.5274, allocations: 0 / 0.5502 GB, free: 3.086 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.384e-05/0.5275, allocations: 0 / 0.5502 GB, free: 3.086 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.5275, allocations: 16 kB / 0.5502 GB, free: 3.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006069/0.5336, allocations: 4.195 MB / 0.5543 GB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.5352, allocations: 1.166 MB / 0.5554 GB, free: 14.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007191/0.5359, allocations: 489.2 kB / 0.5559 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001032/0.5361, allocations: 24.77 kB / 0.5559 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.5361, allocations: 52.58 kB / 0.556 GB, free: 14.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.555e-06/0.5361, allocations: 0 / 0.556 GB, free: 14.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.003716/0.5398, allocations: 1.389 MB / 0.5573 GB, free: 13.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.54, allocations: 244.1 kB / 0.5576 GB, free: 12.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00245/0.5424, allocations: 1.593 MB / 0.5591 GB, free: 11.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.993e-05/0.5425, allocations: 29.7 kB / 0.5591 GB, free: 11.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004116/0.5429, allocations: 497.9 kB / 0.5596 GB, free: 10.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002169/0.5432, allocations: 271.9 kB / 0.5599 GB, free: 10.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.124e-05/0.5432, allocations: 3.938 kB / 0.5599 GB, free: 10.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.5433, allocations: 337.9 kB / 0.5602 GB, free: 9.984 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004713/0.5438, allocations: 337.5 kB / 0.5605 GB, free: 9.656 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000577/0.5444, allocations: 447.5 kB / 0.5609 GB, free: 9.188 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009927/0.5454, allocations: 405.1 kB / 0.5613 GB, free: 8.797 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.5454, allocations: 3.938 kB / 0.5613 GB, free: 8.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003603/0.549, allocations: 1.416 MB / 0.5627 GB, free: 7.359 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.5491, allocations: 4 kB / 0.5627 GB, free: 7.355 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.5491, allocations: 4 kB / 0.5627 GB, free: 7.352 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/0.552, allocations: 0.7458 MB / 0.5635 GB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004317/0.5524, allocations: 99.88 kB / 0.5635 GB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002516/0.5549, allocations: 1.487 MB / 0.565 GB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008616/0.5558, allocations: 71.5 kB / 0.5651 GB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-05/0.5559, allocations: 27.98 kB / 0.5651 GB, free: 4.891 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(start = bat.battery.SOC_start ) "Charge as current integration" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bat.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real bat.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real load.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real load.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" 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 (brk1.BrkOpen) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {16 22} Notification: Performance of prepare postOptimizeDAE: time 0.000269/0.5562, allocations: 126.6 kB / 0.5652 GB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003503/0.5565, allocations: 122.5 kB / 0.5653 GB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002713/0.5593, allocations: 1.295 MB / 0.5666 GB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/0.5593, allocations: 8 kB / 0.5666 GB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5593, allocations: 0 / 0.5666 GB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/0.5593, allocations: 11.97 kB / 0.5666 GB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007337/0.5667, allocations: 3.087 MB / 0.5696 GB, free: 180 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.5667, allocations: 0 / 0.5696 GB, free: 180 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005763/0.5673, allocations: 103.9 kB / 0.5697 GB, free: 76 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003543/0.5709, allocations: 0.7381 MB / 0.5705 GB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.099e-05/0.571, allocations: 0 / 0.5705 GB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003154/0.5741, allocations: 1.487 MB / 0.5719 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.5742, allocations: 0 / 0.5719 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004806/0.579, allocations: 1.859 MB / 0.5737 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007531/0.5797, allocations: 307.5 kB / 0.574 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003393/0.5801, allocations: 0 / 0.574 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.5812, allocations: 48.02 kB / 0.5741 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.5814, allocations: 68.67 kB / 0.5741 GB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.945e-05/0.5815, allocations: 20 kB / 0.5741 GB, free: 11.47 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002959/0.5845, allocations: 1.232 MB / 0.5753 GB, free: 10.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5845, allocations: 0 / 0.5753 GB, free: 10.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001286/0.5858, allocations: 231.7 kB / 0.5756 GB, free: 10.01 MB / 394.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: 1 (brk1.BrkOpen) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {16 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008202/0.5867, allocations: 267.4 kB / 0.5758 GB, free: 9.789 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003637/0.5903, allocations: 1.16 MB / 0.577 GB, free: 8.629 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.5903, allocations: 4 kB / 0.577 GB, free: 8.625 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002963/0.5933, allocations: 0.7713 MB / 0.5777 GB, free: 7.855 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.5944, allocations: 80.53 kB / 0.5778 GB, free: 7.773 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005987/0.6004, allocations: 1.952 MB / 0.5797 GB, free: 5.789 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001326/0.6018, allocations: 1.201 MB / 0.5809 GB, free: 4.559 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008267/0.6026, allocations: 179.2 kB / 0.581 GB, free: 4.379 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004067/0.603, allocations: 83.34 kB / 0.5811 GB, free: 4.297 MB / 394.7 MB Notification: Performance of SimCode: time 7.02e-07/0.6031, allocations: 0 / 0.5811 GB, free: 4.297 MB / 394.7 MB Notification: Performance of Templates: time 0.02784/0.6309, allocations: 13.65 MB / 0.5944 GB, free: 6.648 MB / 410.7 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)