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.0009419/0.000942, allocations: 171.9 kB / 16.8 MB, free: 4.902 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.304/1.304, allocations: 223.3 MB / 240.8 MB, free: 11.73 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.0007302/0.0007303, allocations: 89.39 kB / 292 MB, free: 10.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04052/0.04052, allocations: 8.1 MB / 351.2 MB, free: 15.57 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00035/0.0003499, allocations: 12.5 kB / 414.4 MB, free: 57.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08364/0.084, allocations: 52.53 MB / 466.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3023/0.3864, allocations: 83.37 MB / 0.5374 GB, free: 2.199 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/0.3866, allocations: 71.34 kB / 0.5374 GB, free: 2.164 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07169/0.4583, allocations: 30.72 MB / 0.5675 GB, free: 6.105 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4584, allocations: 4 kB / 0.5675 GB, free: 6.102 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001582/0.4585, allocations: 36 kB / 0.5675 GB, free: 6.066 MB / 378.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.007408/0.4659, allocations: 2.917 MB / 0.5703 GB, free: 3.078 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.466, allocations: 8.031 kB / 0.5703 GB, free: 3.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00105/0.4671, allocations: 301.3 kB / 0.5706 GB, free: 2.773 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004754/0.4718, allocations: 2.269 MB / 0.5729 GB, free: 456 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002245/0.4721, allocations: 224.1 kB / 0.5731 GB, free: 196 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001739/0.4723, allocations: 60.38 kB / 0.5731 GB, free: 136 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002064/0.4743, allocations: 1.02 MB / 0.5741 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.4744, allocations: 0 / 0.5741 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001038/0.4745, allocations: 36 kB / 0.5742 GB, free: 15 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.4745, allocations: 16 kB / 0.5742 GB, free: 14.99 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.4761, allocations: 0.7079 MB / 0.5749 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009402/0.4855, allocations: 5.057 MB / 0.5798 GB, free: 9.074 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002342/0.4879, allocations: 1.424 MB / 0.5812 GB, free: 7.531 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001028/0.4889, allocations: 0.5411 MB / 0.5817 GB, free: 6.988 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.547e-05/0.489, allocations: 16.55 kB / 0.5817 GB, free: 6.973 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.042e-05/0.4891, allocations: 51.06 kB / 0.5818 GB, free: 6.914 MB / 394.7 MB Notification: Performance of pre-optimization done (n=64): time 4.298e-06/0.4891, allocations: 4 kB / 0.5818 GB, free: 6.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=64): time 0.004974/0.4941, allocations: 1.719 MB / 0.5835 GB, free: 5.16 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002488/0.4943, allocations: 0.5896 MB / 0.584 GB, free: 4.43 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008933/0.5033, allocations: 4.803 MB / 0.5887 GB, free: 15.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001902/0.5035, allocations: 37.7 kB / 0.5888 GB, free: 15.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.5048, allocations: 1.135 MB / 0.5899 GB, free: 14.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003045/0.5051, allocations: 216.8 kB / 0.5901 GB, free: 14.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.888e-05/0.5052, allocations: 15.94 kB / 0.5901 GB, free: 14.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.5053, allocations: 333.9 kB / 0.5904 GB, free: 13.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007842/0.5061, allocations: 325.2 kB / 0.5907 GB, free: 13.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009484/0.5071, allocations: 0.5584 MB / 0.5913 GB, free: 12.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00525/0.5123, allocations: 1.624 MB / 0.5929 GB, free: 11.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.5123, allocations: 4 kB / 0.5929 GB, free: 11.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003572/0.5159, allocations: 1.262 MB / 0.5941 GB, free: 9.965 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.516, allocations: 8 kB / 0.5941 GB, free: 9.957 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.516, allocations: 4 kB / 0.5941 GB, free: 9.953 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/0.5171, allocations: 260.5 kB / 0.5944 GB, free: 9.695 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006718/0.5178, allocations: 175.8 kB / 0.5945 GB, free: 9.523 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00331/0.5211, allocations: 2.49 MB / 0.597 GB, free: 6.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001451/0.5226, allocations: 135.4 kB / 0.5971 GB, free: 6.777 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.357e-05/0.5227, allocations: 20 kB / 0.5971 GB, free: 6.758 MB / 410.7 MB Warning: Assuming fixed start value for the following 3 variables: bat3.battery.integrator.q:VARIABLE(start = bat3.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(start = bat2.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat1.battery.integrator.q:VARIABLE(start = bat1.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: 8 * 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 (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.001861/0.5245, allocations: 0.9325 MB / 0.598 GB, free: 5.816 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009471/0.5255, allocations: 276.5 kB / 0.5983 GB, free: 5.543 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00356/0.5291, allocations: 1.311 MB / 0.5996 GB, free: 4.219 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.5291, allocations: 8 kB / 0.5996 GB, free: 4.211 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.5291, allocations: 0 / 0.5996 GB, free: 4.211 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.5291, allocations: 3.984 kB / 0.5996 GB, free: 4.207 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008353/0.5375, allocations: 3.778 MB / 0.6033 GB, free: 360 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.5375, allocations: 4 kB / 0.6033 GB, free: 356 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006646/0.5382, allocations: 159.9 kB / 0.6034 GB, free: 196 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001112/0.5393, allocations: 264.5 kB / 0.6037 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.773e-05/0.5394, allocations: 12 kB / 0.6037 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003219/0.5426, allocations: 2.465 MB / 0.6061 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5426, allocations: 4 kB / 0.6061 GB, free: 13.31 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004061/0.5467, allocations: 1.768 MB / 0.6078 GB, free: 11.51 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001513/0.5482, allocations: 0.6149 MB / 0.6084 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007028/0.5489, allocations: 27.94 kB / 0.6084 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/0.5502, allocations: 111.9 kB / 0.6085 GB, free: 10.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002473/0.5505, allocations: 76.44 kB / 0.6086 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.057e-05/0.5505, allocations: 20 kB / 0.6086 GB, free: 10.64 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006921/0.5574, allocations: 3.444 MB / 0.612 GB, free: 7.203 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5575, allocations: 0 / 0.612 GB, free: 7.203 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002314/0.5598, allocations: 411.5 kB / 0.6124 GB, free: 6.801 MB / 426.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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.0009595/0.5608, allocations: 302.9 kB / 0.6127 GB, free: 6.578 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002446/0.5632, allocations: 0.9783 MB / 0.6136 GB, free: 5.586 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/0.5633, allocations: 4.234 kB / 0.6136 GB, free: 5.582 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.5646, allocations: 0.6427 MB / 0.6143 GB, free: 4.926 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002974/0.5676, allocations: 214.3 kB / 0.6145 GB, free: 4.715 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/0.5791, allocations: 5.76 MB / 0.6201 GB, free: 14.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0022/0.5813, allocations: 1.817 MB / 0.6219 GB, free: 13.06 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001432/0.5828, allocations: 412.1 kB / 0.6223 GB, free: 12.65 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008564/0.5836, allocations: 139.4 kB / 0.6224 GB, free: 12.52 MB / 442.7 MB Notification: Performance of SimCode: time 3.466e-06/0.5837, allocations: 0 / 0.6224 GB, free: 12.52 MB / 442.7 MB Notification: Performance of Templates: time 0.04896/0.6326, allocations: 25.89 MB / 0.6477 GB, free: 2.633 MB / 458.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)