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.001086/0.001085, allocations: 177 kB / 15.8 MB, free: 6.34 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.442/1.442, allocations: 223.2 MB / 239.7 MB, free: 1.801 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.0009355/0.0009353, allocations: 100.7 kB / 290.9 MB, free: 13.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.0436/0.0436, allocations: 8.096 MB / 350.1 MB, free: 2.734 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003358/0.0003359, allocations: 9.438 kB / 413.1 MB, free: 89.64 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09484/0.09519, allocations: 52.53 MB / 465.6 MB, free: 42.1 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3123/0.4076, allocations: 85.21 MB / 0.5379 GB, free: 16.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.4079, allocations: 73.11 kB / 0.538 GB, free: 16.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05356/0.4614, allocations: 23.78 MB / 0.5612 GB, free: 30.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.669e-06/0.4615, allocations: 0 / 0.5612 GB, free: 30.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.53e-05/0.4615, allocations: 21.72 kB / 0.5612 GB, free: 30.14 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.003941/0.4655, allocations: 1.684 MB / 0.5629 GB, free: 29.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.4655, allocations: 9.125 kB / 0.5629 GB, free: 29.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003318/0.4659, allocations: 148.1 kB / 0.563 GB, free: 29.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/0.4675, allocations: 0.9841 MB / 0.564 GB, free: 28.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.4676, allocations: 190.8 kB / 0.5642 GB, free: 28.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.425e-05/0.4677, allocations: 59.17 kB / 0.5642 GB, free: 28.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.4692, allocations: 0.8562 MB / 0.5651 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.4692, allocations: 0 / 0.5651 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.127e-05/0.4693, allocations: 25.12 kB / 0.5651 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.4693, allocations: 13.06 kB / 0.5651 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/0.4706, allocations: 0.7341 MB / 0.5658 GB, free: 28.19 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006056/0.4767, allocations: 4.295 MB / 0.57 GB, free: 25.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002191/0.4789, allocations: 1.306 MB / 0.5713 GB, free: 25.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001158/0.479, allocations: 19.94 kB / 0.5713 GB, free: 25.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.594e-05/0.4791, allocations: 46.59 kB / 0.5714 GB, free: 25.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 5.23e-06/0.4791, allocations: 3.984 kB / 0.5714 GB, free: 25.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.01123/0.4904, allocations: 3.234 MB / 0.5745 GB, free: 24.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.4905, allocations: 248 kB / 0.5747 GB, free: 24.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002405/0.4929, allocations: 1.655 MB / 0.5764 GB, free: 23.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.4931, allocations: 39.67 kB / 0.5764 GB, free: 23.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003224/0.4934, allocations: 0.4901 MB / 0.5769 GB, free: 23.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.4936, allocations: 285.6 kB / 0.5772 GB, free: 23.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.158e-05/0.4936, allocations: 14.19 kB / 0.5772 GB, free: 23.33 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.4937, allocations: 335.7 kB / 0.5775 GB, free: 23.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005951/0.4943, allocations: 404.7 kB / 0.5779 GB, free: 22.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006196/0.495, allocations: 0.4977 MB / 0.5784 GB, free: 22.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006205/0.4956, allocations: 431.9 kB / 0.5788 GB, free: 22.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4956, allocations: 0 / 0.5788 GB, free: 22.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003285/0.4989, allocations: 1.565 MB / 0.5803 GB, free: 22.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.499, allocations: 3.938 kB / 0.5803 GB, free: 22.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.499, allocations: 0 / 0.5803 GB, free: 22.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002659/0.5016, allocations: 0.821 MB / 0.5811 GB, free: 22.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003975/0.502, allocations: 101 kB / 0.5812 GB, free: 22.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0022/0.5043, allocations: 1.497 MB / 0.5827 GB, free: 21.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.5053, allocations: 81.11 kB / 0.5827 GB, free: 21.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-05/0.5054, allocations: 30.3 kB / 0.5828 GB, free: 21.47 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: 2 * Number of states: 0 () * Number of discrete variables: 1 (brk1.BrkOpen) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 51 * 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 23} Notification: Performance of prepare postOptimizeDAE: time 0.001029/0.5064, allocations: 435.2 kB / 0.5832 GB, free: 21.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000278/0.5067, allocations: 124.8 kB / 0.5833 GB, free: 21.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003073/0.5098, allocations: 1.652 MB / 0.5849 GB, free: 20.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.5098, allocations: 11.62 kB / 0.5849 GB, free: 20.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.5098, allocations: 0 / 0.5849 GB, free: 20.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.5098, allocations: 7.969 kB / 0.5849 GB, free: 20.85 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004378/0.5142, allocations: 3.089 MB / 0.588 GB, free: 19.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.5142, allocations: 0 / 0.588 GB, free: 19.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004021/0.5147, allocations: 109.2 kB / 0.5881 GB, free: 19.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002577/0.5172, allocations: 0.7931 MB / 0.5888 GB, free: 19.69 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.288e-05/0.5173, allocations: 15.38 kB / 0.5888 GB, free: 19.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00246/0.5198, allocations: 1.481 MB / 0.5903 GB, free: 19.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5198, allocations: 0 / 0.5903 GB, free: 19.06 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003306/0.5231, allocations: 2.073 MB / 0.5923 GB, free: 18.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007267/0.5239, allocations: 308.8 kB / 0.5926 GB, free: 18.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/0.524, allocations: 27.7 kB / 0.5926 GB, free: 18.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006122/0.5247, allocations: 54.53 kB / 0.5927 GB, free: 18.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.5248, allocations: 67.64 kB / 0.5928 GB, free: 18.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.622e-05/0.5249, allocations: 26.98 kB / 0.5928 GB, free: 18.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00171/0.5266, allocations: 1.293 MB / 0.594 GB, free: 17.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5266, allocations: 0 / 0.594 GB, free: 17.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008507/0.5275, allocations: 265.1 kB / 0.5943 GB, free: 17.37 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 1 (brk1.BrkOpen) * Number of discrete states: 0 () * Number of clocked 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008914/0.5284, allocations: 314.5 kB / 0.5946 GB, free: 17.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003223/0.5316, allocations: 1.311 MB / 0.5959 GB, free: 16.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.5316, allocations: 0 / 0.5959 GB, free: 16.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002292/0.5339, allocations: 0.8596 MB / 0.5967 GB, free: 16.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009763/0.5349, allocations: 94.91 kB / 0.5968 GB, free: 16.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00504/0.54, allocations: 2.877 MB / 0.5996 GB, free: 14.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007807/0.5408, allocations: 1.201 MB / 0.6008 GB, free: 13.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006327/0.5414, allocations: 181.7 kB / 0.601 GB, free: 13.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002087/0.5416, allocations: 77.84 kB / 0.601 GB, free: 13.47 MB / 378.7 MB Notification: Performance of SimCode: time 1.893e-06/0.5417, allocations: 0 / 0.601 GB, free: 13.47 MB / 378.7 MB Notification: Performance of Templates: time 0.02795/0.5696, allocations: 15.81 MB / 0.6165 GB, free: 15.88 MB / 394.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)