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.001209/0.001209, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.208/1.208, allocations: 221.4 MB / 235.1 MB, free: 14.45 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.000895/0.0008951, allocations: 100.3 kB / 286.1 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03853/0.03853, allocations: 8.094 MB / 345.1 MB, free: 1.938 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 2.585e-05/2.587e-05, allocations: 0 / 405.5 MB, free: 61.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08063/0.08067, allocations: 52.52 MB / 458 MB, free: 9.469 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3114/0.3922, allocations: 81.32 MB / 0.5267 GB, free: 4.676 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001613/0.3924, allocations: 68.19 kB / 0.5267 GB, free: 4.645 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01693/0.4093, allocations: 5.984 MB / 0.5326 GB, free: 15.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4093, allocations: 0 / 0.5326 GB, free: 15.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.4094, allocations: 8 kB / 0.5326 GB, free: 15.45 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.001355/0.4107, allocations: 0.6987 MB / 0.5333 GB, free: 14.72 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.4108, allocations: 8.031 kB / 0.5333 GB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.503e-05/0.4109, allocations: 35.62 kB / 0.5333 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005862/0.4114, allocations: 374.6 kB / 0.5337 GB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.4115, allocations: 15.34 kB / 0.5337 GB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.895e-05/0.4115, allocations: 14.31 kB / 0.5337 GB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003955/0.4119, allocations: 266 kB / 0.5339 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.4119, allocations: 0 / 0.5339 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.412, allocations: 9.75 kB / 0.534 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.412, allocations: 4 kB / 0.534 GB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002932/0.4123, allocations: 176.5 kB / 0.5341 GB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.4136, allocations: 0.8627 MB / 0.535 GB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003774/0.414, allocations: 247.7 kB / 0.5352 GB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002667/0.4142, allocations: 132 kB / 0.5353 GB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.041e-05/0.4143, allocations: 4 kB / 0.5353 GB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.4143, allocations: 32.44 kB / 0.5354 GB, free: 12.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 3.296e-06/0.4143, allocations: 4 kB / 0.5354 GB, free: 12.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003906/0.4147, allocations: 165.3 kB / 0.5355 GB, free: 12.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.823e-05/0.4148, allocations: 215 kB / 0.5357 GB, free: 12.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.4152, allocations: 330.3 kB / 0.536 GB, free: 12.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.4153, allocations: 32.7 kB / 0.5361 GB, free: 12.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.471e-05/0.4154, allocations: 170.2 kB / 0.5362 GB, free: 12.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.4154, allocations: 41.64 kB / 0.5363 GB, free: 12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/0.4154, allocations: 0 / 0.5363 GB, free: 12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.4156, allocations: 342.8 kB / 0.5366 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.4157, allocations: 64.53 kB / 0.5367 GB, free: 11.63 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.4158, allocations: 141.4 kB / 0.5368 GB, free: 11.49 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.695e-05/0.4159, allocations: 36.61 kB / 0.5368 GB, free: 11.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4159, allocations: 4 kB / 0.5368 GB, free: 11.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000295/0.4162, allocations: 185.2 kB / 0.537 GB, free: 11.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.4163, allocations: 4 kB / 0.537 GB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.4163, allocations: 0 / 0.537 GB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.4163, allocations: 4 kB / 0.537 GB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.4165, allocations: 31.92 kB / 0.5371 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.4165, allocations: 4 kB / 0.5371 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000541/0.417, allocations: 126.9 kB / 0.5372 GB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.4171, allocations: 8 kB / 0.5372 GB, free: 11.14 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(start = battery.SOC_start ) "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 () * 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.0001299/0.4172, allocations: 112.2 kB / 0.5373 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.984e-05/0.4173, allocations: 23.72 kB / 0.5373 GB, free: 11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004267/0.4177, allocations: 214.4 kB / 0.5375 GB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.4177, allocations: 0 / 0.5375 GB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4177, allocations: 0 / 0.5375 GB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.4177, allocations: 0 / 0.5375 GB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007888/0.4185, allocations: 0.6298 MB / 0.5381 GB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.4185, allocations: 7.953 kB / 0.5381 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/0.4187, allocations: 35.36 kB / 0.5382 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.4187, allocations: 0 / 0.5382 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.4188, allocations: 7.938 kB / 0.5382 GB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4188, allocations: 0 / 0.5382 GB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.4188, allocations: 0 / 0.5382 GB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004791/0.4192, allocations: 403.5 kB / 0.5386 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.113e-05/0.4193, allocations: 108.1 kB / 0.5387 GB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.787e-05/0.4194, allocations: 10.98 kB / 0.5387 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005649/0.42, allocations: 115.3 kB / 0.5388 GB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002582/0.4202, allocations: 130 kB / 0.5389 GB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.4203, allocations: 4 kB / 0.5389 GB, free: 9.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002614/0.4205, allocations: 275.5 kB / 0.5392 GB, free: 9.316 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4205, allocations: 0 / 0.5392 GB, free: 9.316 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000327/0.4209, allocations: 75.34 kB / 0.5393 GB, free: 9.246 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 () * 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.0005376/0.4214, allocations: 256.8 kB / 0.5395 GB, free: 9.059 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003093/0.4217, allocations: 165.8 kB / 0.5397 GB, free: 8.941 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4218, allocations: 0 / 0.5397 GB, free: 8.941 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001944/0.422, allocations: 119.5 kB / 0.5398 GB, free: 8.855 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002338/0.4222, allocations: 34.22 kB / 0.5398 GB, free: 8.832 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.4237, allocations: 0.5136 MB / 0.5403 GB, free: 8.344 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.424, allocations: 0.7707 MB / 0.5411 GB, free: 7.551 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001546/0.4242, allocations: 37.55 kB / 0.5411 GB, free: 7.516 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.4243, allocations: 23.42 kB / 0.5411 GB, free: 7.492 MB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4243, allocations: 0 / 0.5411 GB, free: 7.492 MB / 362.7 MB Notification: Performance of Templates: time 0.007432/0.4318, allocations: 4.356 MB / 0.5454 GB, free: 3.152 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)