Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 171.8 kB / 16.8 MB, free: 5 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.52/1.52, allocations: 223.3 MB / 240.8 MB, free: 11.72 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.0007726/0.0007726, allocations: 96.52 kB / 292 MB, free: 10.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04/0.04, allocations: 8.101 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.0003356/0.0003357, allocations: 8 kB / 414.4 MB, free: 57.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06965/0.07, allocations: 52.52 MB / 466.9 MB, free: 4.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2777/0.3478, allocations: 81.16 MB / 0.5352 GB, free: 4.309 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/0.348, allocations: 66.34 kB / 0.5353 GB, free: 4.277 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01724/0.3653, allocations: 5.992 MB / 0.5411 GB, free: 15.08 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3653, allocations: 0 / 0.5411 GB, free: 15.08 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.3653, allocations: 4 kB / 0.5411 GB, free: 15.08 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001737/0.3671, allocations: 0.7956 MB / 0.5419 GB, free: 14.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.3671, allocations: 8.031 kB / 0.5419 GB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.3673, allocations: 36.55 kB / 0.542 GB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000659/0.3679, allocations: 389.4 kB / 0.5423 GB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.368, allocations: 7.953 kB / 0.5423 GB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.12e-05/0.368, allocations: 19.88 kB / 0.5424 GB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005134/0.3686, allocations: 290.2 kB / 0.5426 GB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.3686, allocations: 4.125 kB / 0.5426 GB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.901e-05/0.3686, allocations: 9.125 kB / 0.5426 GB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.3686, allocations: 4 kB / 0.5426 GB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004045/0.369, allocations: 197.5 kB / 0.5428 GB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001432/0.3705, allocations: 0.8576 MB / 0.5437 GB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005915/0.3711, allocations: 312.8 kB / 0.544 GB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003251/0.3714, allocations: 157.1 kB / 0.5441 GB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.777e-05/0.3715, allocations: 3 kB / 0.5441 GB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.3715, allocations: 34.56 kB / 0.5442 GB, free: 12.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.713e-06/0.3715, allocations: 0 / 0.5442 GB, free: 12.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007264/0.3723, allocations: 293.2 kB / 0.5444 GB, free: 12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.3724, allocations: 221.2 kB / 0.5446 GB, free: 11.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004466/0.3728, allocations: 359.8 kB / 0.545 GB, free: 11.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.3729, allocations: 25.7 kB / 0.545 GB, free: 11.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.373, allocations: 175.2 kB / 0.5452 GB, free: 11.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.315e-05/0.3731, allocations: 45.98 kB / 0.5452 GB, free: 11.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.072e-05/0.3731, allocations: 0 / 0.5452 GB, free: 11.26 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3732, allocations: 337.8 kB / 0.5455 GB, free: 10.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.3734, allocations: 89.75 kB / 0.5456 GB, free: 10.87 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002563/0.3737, allocations: 153.9 kB / 0.5458 GB, free: 10.71 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007665/0.3745, allocations: 259.8 kB / 0.546 GB, free: 10.51 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.3745, allocations: 3.938 kB / 0.546 GB, free: 10.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004643/0.3749, allocations: 221.5 kB / 0.5462 GB, free: 10.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.375, allocations: 4 kB / 0.5462 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.375, allocations: 4 kB / 0.5462 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.375, allocations: 0 / 0.5462 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.3752, allocations: 43.97 kB / 0.5463 GB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3752, allocations: 0 / 0.5463 GB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005/0.3757, allocations: 123.3 kB / 0.5464 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.3757, allocations: 4 kB / 0.5464 GB, free: 10.16 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(start = 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: 3 * Number of states: 0 () * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002512/0.376, allocations: 164.1 kB / 0.5466 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.721e-05/0.3761, allocations: 27.7 kB / 0.5466 GB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000586/0.3766, allocations: 251.4 kB / 0.5468 GB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3767, allocations: 4 kB / 0.5468 GB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3767, allocations: 0 / 0.5468 GB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.3767, allocations: 0 / 0.5468 GB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.3778, allocations: 0.672 MB / 0.5475 GB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3778, allocations: 4 kB / 0.5475 GB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.3779, allocations: 27.98 kB / 0.5475 GB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.378, allocations: 0 / 0.5475 GB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.378, allocations: 3.562 kB / 0.5475 GB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.378, allocations: 11.97 kB / 0.5475 GB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.378, allocations: 0 / 0.5475 GB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000715/0.3787, allocations: 437.2 kB / 0.548 GB, free: 8.758 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.3788, allocations: 111.7 kB / 0.5481 GB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.854e-05/0.3789, allocations: 7.875 kB / 0.5481 GB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005191/0.3794, allocations: 119.3 kB / 0.5482 GB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/0.3797, allocations: 126.5 kB / 0.5483 GB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.3797, allocations: 11.98 kB / 0.5483 GB, free: 8.395 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003323/0.3801, allocations: 273 kB / 0.5486 GB, free: 8.191 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3801, allocations: 3.938 kB / 0.5486 GB, free: 8.188 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004122/0.3805, allocations: 74.97 kB / 0.5487 GB, free: 8.117 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007689/0.3813, allocations: 279.6 kB / 0.5489 GB, free: 7.918 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005261/0.3818, allocations: 208.6 kB / 0.5491 GB, free: 7.758 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3818, allocations: 0 / 0.5491 GB, free: 7.758 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002761/0.3821, allocations: 149.5 kB / 0.5493 GB, free: 7.645 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004097/0.3825, allocations: 26.3 kB / 0.5493 GB, free: 7.629 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001968/0.3845, allocations: 0.7704 MB / 0.55 GB, free: 6.879 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.3849, allocations: 0.7552 MB / 0.5508 GB, free: 6.102 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002051/0.3851, allocations: 41.53 kB / 0.5508 GB, free: 6.062 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.3852, allocations: 23.38 kB / 0.5508 GB, free: 6.039 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3853, allocations: 0 / 0.5508 GB, free: 6.039 MB / 362.7 MB Notification: Performance of Templates: time 0.008301/0.3936, allocations: 4.374 MB / 0.5551 GB, free: 1.688 MB / 362.7 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)