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.001829/0.001829, allocations: 171.9 kB / 16.8 MB, free: 5.027 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.505/1.505, allocations: 223.3 MB / 240.8 MB, free: 11.7 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.0007531/0.0007534, allocations: 92.61 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.04649/0.04649, allocations: 8.098 MB / 351.2 MB, free: 15.56 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003647/0.0003647, allocations: 15.98 kB / 414.4 MB, free: 57.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09054/0.09091, allocations: 52.51 MB / 466.9 MB, free: 4.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3328/0.4237, allocations: 83.97 MB / 0.538 GB, free: 1.566 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.424, allocations: 73.08 kB / 0.538 GB, free: 1.527 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0373/0.4613, allocations: 14.84 MB / 0.5525 GB, free: 4.988 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4614, allocations: 0 / 0.5525 GB, free: 4.988 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.399e-05/0.4614, allocations: 16 kB / 0.5525 GB, free: 4.973 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00314/0.4646, allocations: 1.319 MB / 0.5538 GB, free: 3.688 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.4646, allocations: 8.031 kB / 0.5538 GB, free: 3.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003305/0.465, allocations: 107.6 kB / 0.5539 GB, free: 3.574 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001582/0.4666, allocations: 0.9149 MB / 0.5548 GB, free: 2.777 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.91e-05/0.4667, allocations: 75.03 kB / 0.5549 GB, free: 2.703 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.649e-05/0.4668, allocations: 27.38 kB / 0.5549 GB, free: 2.684 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008021/0.4676, allocations: 460.2 kB / 0.5554 GB, free: 2.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.4676, allocations: 7.922 kB / 0.5554 GB, free: 2.332 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.048e-05/0.4676, allocations: 18.38 kB / 0.5554 GB, free: 2.324 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.4677, allocations: 8 kB / 0.5554 GB, free: 2.316 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000636/0.4683, allocations: 319 kB / 0.5557 GB, free: 2.039 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003815/0.4721, allocations: 2.241 MB / 0.5579 GB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.4732, allocations: 496.9 kB / 0.5584 GB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004366/0.4736, allocations: 225.2 kB / 0.5586 GB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.307e-05/0.4737, allocations: 4.234 kB / 0.5586 GB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.4737, allocations: 42.73 kB / 0.5586 GB, free: 14.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 2.434e-06/0.4737, allocations: 0 / 0.5586 GB, free: 14.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.002344/0.4761, allocations: 0.8365 MB / 0.5594 GB, free: 14.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.4762, allocations: 251.2 kB / 0.5597 GB, free: 13.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002591/0.4788, allocations: 1.713 MB / 0.5613 GB, free: 11.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.426e-05/0.4789, allocations: 29.7 kB / 0.5614 GB, free: 11.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003992/0.4793, allocations: 448.8 kB / 0.5618 GB, free: 11.51 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.906e-05/0.4794, allocations: 86.66 kB / 0.5619 GB, free: 11.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.859e-05/0.4794, allocations: 8 kB / 0.5619 GB, free: 11.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.4795, allocations: 314 kB / 0.5622 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003084/0.4798, allocations: 148.5 kB / 0.5623 GB, free: 10.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003762/0.4802, allocations: 247.8 kB / 0.5626 GB, free: 10.69 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00295/0.4832, allocations: 0.8357 MB / 0.5634 GB, free: 9.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.4832, allocations: 3.938 kB / 0.5634 GB, free: 9.836 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001355/0.4846, allocations: 0.5868 MB / 0.564 GB, free: 9.238 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.4846, allocations: 8 kB / 0.564 GB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.4846, allocations: 80 / 0.564 GB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006054/0.4852, allocations: 144.7 kB / 0.5641 GB, free: 9.086 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002967/0.4855, allocations: 67.89 kB / 0.5642 GB, free: 9.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002455/0.488, allocations: 1.906 MB / 0.566 GB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004662/0.4885, allocations: 51.88 kB / 0.5661 GB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.623e-05/0.4885, allocations: 8 kB / 0.5661 GB, free: 6.934 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(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 (29): * Single equations (assignments): 28 * 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 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006545/0.4892, allocations: 402.1 kB / 0.5665 GB, free: 6.531 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001937/0.4894, allocations: 94.78 kB / 0.5666 GB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.4909, allocations: 0.6063 MB / 0.5672 GB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.4909, allocations: 8 kB / 0.5672 GB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.4909, allocations: 4 kB / 0.5672 GB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.4909, allocations: 3.984 kB / 0.5672 GB, free: 5.805 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002915/0.4938, allocations: 1.637 MB / 0.5688 GB, free: 4.105 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.4938, allocations: 0 / 0.5688 GB, free: 4.105 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002909/0.4941, allocations: 59.91 kB / 0.5688 GB, free: 4.047 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005961/0.4948, allocations: 140.8 kB / 0.569 GB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.883e-05/0.4948, allocations: 11.92 kB / 0.569 GB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002385/0.4972, allocations: 1.875 MB / 0.5708 GB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4972, allocations: 4.125 kB / 0.5708 GB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001861/0.4991, allocations: 0.844 MB / 0.5716 GB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004946/0.4996, allocations: 275.8 kB / 0.5719 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.4998, allocations: 12 kB / 0.5719 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004271/0.5002, allocations: 52.02 kB / 0.572 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.954e-05/0.5003, allocations: 27.95 kB / 0.572 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.5003, allocations: 8 kB / 0.572 GB, free: 0.625 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002142/0.5025, allocations: 1.244 MB / 0.5732 GB, free: 15.37 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5025, allocations: 0 / 0.5732 GB, free: 15.37 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000705/0.5032, allocations: 171.8 kB / 0.5734 GB, free: 15.2 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: 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 (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 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007134/0.5039, allocations: 293.8 kB / 0.5737 GB, free: 14.99 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.5051, allocations: 0.5265 MB / 0.5742 GB, free: 14.45 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.5052, allocations: 0 / 0.5742 GB, free: 14.45 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007044/0.5059, allocations: 350.6 kB / 0.5745 GB, free: 14.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007406/0.5066, allocations: 92.28 kB / 0.5746 GB, free: 14.01 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0037/0.5103, allocations: 2.117 MB / 0.5767 GB, free: 11.86 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007707/0.5111, allocations: 1.076 MB / 0.5777 GB, free: 10.75 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004135/0.5116, allocations: 145.1 kB / 0.5778 GB, free: 10.61 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002009/0.5118, allocations: 63.42 kB / 0.5779 GB, free: 10.54 MB / 394.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5118, allocations: 4 kB / 0.5779 GB, free: 10.54 MB / 394.7 MB Notification: Performance of Templates: time 0.01971/0.5315, allocations: 10.9 MB / 0.5886 GB, free: 15.65 MB / 410.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)