Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.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.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") translateModel(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 187.2 kB / 7.841 MB, free: 2.473 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.317/1.317, allocations: 221.4 MB / 229.7 MB, free: 3.309 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.001163/0.001163, allocations: 90.95 kB / 280.5 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03797/0.03797, allocations: 8.105 MB / 339.4 MB, free: 6.359 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.014e-05/1.018e-05, allocations: 4 kB / 397.9 MB, free: 68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 52.51 MB / 450.4 MB, free: 15.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3381/0.4497, allocations: 82.85 MB / 0.5208 GB, free: 11.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/0.4499, allocations: 65.47 kB / 0.5208 GB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.07195/0.5219, allocations: 29.86 MB / 0.55 GB, free: 2.703 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.913e-05/0.522, allocations: 36 kB / 0.55 GB, free: 2.668 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.004094/0.5261, allocations: 2.243 MB / 0.5522 GB, free: 0.5273 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.5262, allocations: 11.97 kB / 0.5522 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004357/0.5266, allocations: 296.2 kB / 0.5525 GB, free: 228 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003205/0.5298, allocations: 2.142 MB / 0.5546 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/0.53, allocations: 206 kB / 0.5548 GB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.2e-05/0.5301, allocations: 32 kB / 0.5548 GB, free: 14.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009497/0.5311, allocations: 0.5537 MB / 0.5554 GB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.5323, allocations: 0.8114 MB / 0.5562 GB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.5323, allocations: 3.938 kB / 0.5562 GB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.324e-05/0.5324, allocations: 0 / 0.5562 GB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.5324, allocations: 16 kB / 0.5562 GB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007604/0.54, allocations: 4.946 MB / 0.561 GB, free: 9.297 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.5412, allocations: 0.8654 MB / 0.5619 GB, free: 8.367 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000708/0.5419, allocations: 442.5 kB / 0.5623 GB, free: 7.934 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.093e-05/0.542, allocations: 16.64 kB / 0.5623 GB, free: 7.918 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.5421, allocations: 43.41 kB / 0.5623 GB, free: 7.867 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 3.396e-06/0.5421, allocations: 5.312 kB / 0.5624 GB, free: 7.863 MB / 378.7 MB Notification: Performance of matching and sorting (n=63): time 0.002734/0.5448, allocations: 0.9697 MB / 0.5633 GB, free: 6.879 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004545/0.5453, allocations: 0.5938 MB / 0.5639 GB, free: 6.145 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008243/0.5535, allocations: 4.261 MB / 0.568 GB, free: 1.875 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002311/0.5538, allocations: 25.7 kB / 0.5681 GB, free: 1.844 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004497/0.5543, allocations: 0.5183 MB / 0.5686 GB, free: 1.316 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002515/0.5545, allocations: 200.9 kB / 0.5688 GB, free: 1.117 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.5546, allocations: 0 / 0.5688 GB, free: 1.117 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.5547, allocations: 330 kB / 0.5691 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000375/0.5551, allocations: 225.3 kB / 0.5693 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005781/0.5557, allocations: 462.2 kB / 0.5697 GB, free: 32 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006647/0.5564, allocations: 282.9 kB / 0.57 GB, free: 15.76 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.5564, allocations: 0 / 0.57 GB, free: 15.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002826/0.5592, allocations: 1.06 MB / 0.571 GB, free: 14.69 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.5593, allocations: 7.938 kB / 0.571 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.5593, allocations: 4 kB / 0.571 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001238/0.5605, allocations: 252.6 kB / 0.5713 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007624/0.5613, allocations: 187.8 kB / 0.5715 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003082/0.5644, allocations: 2.25 MB / 0.5737 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001324/0.5657, allocations: 119.6 kB / 0.5738 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.379e-05/0.5658, allocations: 23.98 kB / 0.5738 GB, free: 11.74 MB / 394.7 MB Warning: Assuming fixed start value for the following 3 variables: bat3.battery.integrator.q:VARIABLE(start = bat3.battery.SOC_start ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(start = bat2.battery.SOC_start ) "Charge as current integration" type: Real bat1.battery.integrator.q:VARIABLE(start = bat1.battery.SOC_start ) "Charge as current integration" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bat3.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real bat1.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real bat3.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real bat2.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: 8 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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 {6 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002727/0.5661, allocations: 144.4 kB / 0.5739 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004386/0.5665, allocations: 264.6 kB / 0.5742 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003071/0.5696, allocations: 1.078 MB / 0.5752 GB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.5696, allocations: 12 kB / 0.5753 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-06/0.5696, allocations: 0 / 0.5753 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.5697, allocations: 3.984 kB / 0.5753 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005947/0.5756, allocations: 3.433 MB / 0.5786 GB, free: 6.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.5756, allocations: 4 kB / 0.5786 GB, free: 6.727 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007165/0.5764, allocations: 167.9 kB / 0.5788 GB, free: 6.562 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001173/0.5775, allocations: 264.4 kB / 0.579 GB, free: 6.301 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.898e-05/0.5776, allocations: 4 kB / 0.579 GB, free: 6.297 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003047/0.5807, allocations: 2.26 MB / 0.5812 GB, free: 3.918 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.5807, allocations: 0 / 0.5812 GB, free: 3.918 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003075/0.5838, allocations: 1.519 MB / 0.5827 GB, free: 2.344 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/0.5849, allocations: 0.6186 MB / 0.5833 GB, free: 1.703 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003225/0.5853, allocations: 4 kB / 0.5833 GB, free: 1.699 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009106/0.5862, allocations: 103.9 kB / 0.5834 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.5864, allocations: 68.39 kB / 0.5835 GB, free: 1.531 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.925e-05/0.5864, allocations: 23.89 kB / 0.5835 GB, free: 1.508 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.004749/0.5912, allocations: 3.258 MB / 0.5867 GB, free: 14.25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001247/0.5924, allocations: 363.5 kB / 0.587 GB, free: 13.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (bat1.battery.integrator.q,bat2.battery.integrator.q,bat3.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 {6 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006508/0.5931, allocations: 243.2 kB / 0.5873 GB, free: 13.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.5946, allocations: 0.7377 MB / 0.588 GB, free: 12.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5946, allocations: 240 / 0.588 GB, free: 12.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009636/0.5956, allocations: 0.4953 MB / 0.5885 GB, free: 12.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.5966, allocations: 187.3 kB / 0.5887 GB, free: 12.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01088/0.6075, allocations: 4.318 MB / 0.5929 GB, free: 7.867 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002452/0.61, allocations: 1.994 MB / 0.5948 GB, free: 5.836 MB / 410.7 MB Notification: Performance of SimCode: time 1.182e-06/0.61, allocations: 0 / 0.5948 GB, free: 5.836 MB / 410.7 MB Notification: Performance of Templates: time 0.03971/0.6497, allocations: 18.76 MB / 0.6131 GB, free: 3.074 MB / 426.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1)