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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009794/0.0009793, allocations: 177.8 kB / 8.044 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.354/1.354, allocations: 221.5 MB / 230 MB, free: 3.137 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.000908/0.000908, allocations: 96.39 kB / 280.9 MB, free: 1.156 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04649/0.04649, allocations: 8.092 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.798e-05/1.8e-05, allocations: 4 kB / 398.5 MB, free: 67.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09299/0.09302, allocations: 52.52 MB / 451 MB, free: 15.15 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3831/0.4761, allocations: 82.92 MB / 0.5214 GB, free: 11.13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/0.4764, allocations: 65.47 kB / 0.5215 GB, free: 11.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06962/0.546, allocations: 30.21 MB / 0.551 GB, free: 1.875 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.5461, allocations: 0 / 0.551 GB, free: 1.875 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001666/0.5462, allocations: 36 kB / 0.551 GB, free: 1.84 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.005751/0.552, allocations: 2.212 MB / 0.5532 GB, free: 15.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.5521, allocations: 11.98 kB / 0.5532 GB, free: 15.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009055/0.553, allocations: 300.3 kB / 0.5535 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004113/0.5571, allocations: 2.135 MB / 0.5555 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/0.5573, allocations: 206.5 kB / 0.5557 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.845e-05/0.5574, allocations: 32 kB / 0.5558 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001047/0.5585, allocations: 0.5594 MB / 0.5563 GB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.5598, allocations: 0.8098 MB / 0.5571 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.5598, allocations: 0 / 0.5571 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.039e-05/0.5599, allocations: 0 / 0.5571 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/0.5599, allocations: 19.95 kB / 0.5571 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009029/0.569, allocations: 4.924 MB / 0.5619 GB, free: 8.508 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.5706, allocations: 1.149 MB / 0.5631 GB, free: 7.242 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006973/0.5713, allocations: 441.9 kB / 0.5635 GB, free: 6.809 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.73e-05/0.5714, allocations: 16.53 kB / 0.5635 GB, free: 6.793 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.393e-05/0.5715, allocations: 51.25 kB / 0.5635 GB, free: 6.734 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.936e-06/0.5715, allocations: 7.938 kB / 0.5636 GB, free: 6.727 MB / 378.7 MB Notification: Performance of matching and sorting (n=63): time 0.002859/0.5744, allocations: 0.9493 MB / 0.5645 GB, free: 5.762 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003468/0.5747, allocations: 0.591 MB / 0.5651 GB, free: 5.031 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008149/0.5829, allocations: 4.261 MB / 0.5692 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002239/0.5832, allocations: 29.7 kB / 0.5692 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.5843, allocations: 1.132 MB / 0.5704 GB, free: 15.58 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002332/0.5846, allocations: 204.9 kB / 0.5705 GB, free: 15.38 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.409e-05/0.5846, allocations: 0 / 0.5705 GB, free: 15.38 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.5848, allocations: 338 kB / 0.5709 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.5851, allocations: 217.5 kB / 0.5711 GB, free: 14.83 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005101/0.5856, allocations: 452.5 kB / 0.5715 GB, free: 14.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005872/0.5862, allocations: 271.8 kB / 0.5718 GB, free: 14.04 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.5863, allocations: 0 / 0.5718 GB, free: 14.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002801/0.5891, allocations: 1.043 MB / 0.5728 GB, free: 12.98 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.5891, allocations: 9.719 kB / 0.5728 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.5891, allocations: 0 / 0.5728 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001148/0.5903, allocations: 260.5 kB / 0.573 GB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007188/0.591, allocations: 171.8 kB / 0.5732 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003163/0.5942, allocations: 2.378 MB / 0.5755 GB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.5956, allocations: 111.6 kB / 0.5756 GB, free: 9.949 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.381e-05/0.5956, allocations: 24.05 kB / 0.5757 GB, free: 9.926 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.0002711/0.5959, allocations: 132 kB / 0.5758 GB, free: 9.793 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004462/0.5964, allocations: 272.6 kB / 0.576 GB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002962/0.5993, allocations: 1.077 MB / 0.5771 GB, free: 8.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.5994, allocations: 8 kB / 0.5771 GB, free: 8.422 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.5994, allocations: 0 / 0.5771 GB, free: 8.422 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.5994, allocations: 3.984 kB / 0.5771 GB, free: 8.418 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00606/0.6055, allocations: 3.444 MB / 0.5805 GB, free: 4.914 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.6055, allocations: 0 / 0.5805 GB, free: 4.914 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006649/0.6062, allocations: 155.9 kB / 0.5806 GB, free: 4.762 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.6073, allocations: 261.6 kB / 0.5809 GB, free: 4.504 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.031e-05/0.6073, allocations: 4 kB / 0.5809 GB, free: 4.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002896/0.6102, allocations: 2.371 MB / 0.5832 GB, free: 2.012 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.6102, allocations: 4.234 kB / 0.5832 GB, free: 2.008 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003298/0.6135, allocations: 1.513 MB / 0.5847 GB, free: 452 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00128/0.6148, allocations: 0.6225 MB / 0.5853 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003328/0.6152, allocations: 19.94 kB / 0.5853 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008818/0.6161, allocations: 91.92 kB / 0.5854 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/0.6163, allocations: 76.44 kB / 0.5855 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.753e-05/0.6164, allocations: 16 kB / 0.5855 GB, free: 15.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005998/0.6224, allocations: 3.265 MB / 0.5887 GB, free: 12.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.6224, allocations: 4 kB / 0.5887 GB, free: 12.33 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002208/0.6246, allocations: 375.5 kB / 0.589 GB, free: 11.96 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.0009578/0.6256, allocations: 251.8 kB / 0.5893 GB, free: 11.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.6272, allocations: 0.7605 MB / 0.59 GB, free: 10.98 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.417e-06/0.6273, allocations: 4.234 kB / 0.59 GB, free: 10.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009564/0.6282, allocations: 0.5189 MB / 0.5905 GB, free: 10.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001916/0.6301, allocations: 194.9 kB / 0.5907 GB, free: 10.26 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009103/0.6393, allocations: 4.286 MB / 0.5949 GB, free: 5.918 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001681/0.641, allocations: 1.863 MB / 0.5967 GB, free: 4.027 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001317/0.6423, allocations: 408 kB / 0.5971 GB, free: 3.621 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004299/0.6428, allocations: 139.4 kB / 0.5972 GB, free: 3.484 MB / 410.7 MB Notification: Performance of SimCode: time 8.81e-07/0.6428, allocations: 4 kB / 0.5972 GB, free: 3.48 MB / 410.7 MB Notification: Performance of Templates: time 0.04236/0.6851, allocations: 21.19 MB / 0.6179 GB, free: 14.28 MB / 442.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)