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.0009365/0.0009365, allocations: 177.2 kB / 8.043 MB, free: 1.016 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 221.5 MB / 230 MB, free: 3.188 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.001079/0.001078, allocations: 92.58 kB / 280.9 MB, free: 1.152 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05276/0.05276, allocations: 8.099 MB / 339.8 MB, free: 6.238 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.215e-05/1.217e-05, allocations: 3.984 kB / 398.5 MB, free: 67.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1048, allocations: 52.51 MB / 451 MB, free: 15.14 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3757/0.4805, allocations: 80.72 MB / 0.5192 GB, free: 13.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001656/0.4808, allocations: 64.22 kB / 0.5193 GB, free: 13.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01819/0.499, allocations: 5.914 MB / 0.5251 GB, free: 8.191 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.499, allocations: 4 kB / 0.5251 GB, free: 8.188 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.962e-05/0.4991, allocations: 7.938 kB / 0.5251 GB, free: 8.18 MB / 346.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.002005/0.5011, allocations: 0.702 MB / 0.5258 GB, free: 7.449 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.5011, allocations: 11.98 kB / 0.5258 GB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001493/0.5013, allocations: 31.62 kB / 0.5258 GB, free: 7.406 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008434/0.5021, allocations: 375.5 kB / 0.5262 GB, free: 7.055 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.5022, allocations: 15.89 kB / 0.5262 GB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.874e-05/0.5023, allocations: 8 kB / 0.5262 GB, free: 7.031 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004186/0.5027, allocations: 164.8 kB / 0.5264 GB, free: 6.926 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005219/0.5032, allocations: 241.9 kB / 0.5266 GB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.5032, allocations: 0 / 0.5266 GB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.5033, allocations: 0.6562 kB / 0.5266 GB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.5033, allocations: 4 kB / 0.5266 GB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.5051, allocations: 0.8161 MB / 0.5274 GB, free: 6.008 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004387/0.5056, allocations: 248.2 kB / 0.5276 GB, free: 5.789 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003236/0.5059, allocations: 126.8 kB / 0.5277 GB, free: 5.695 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.557e-05/0.506, allocations: 3.562 kB / 0.5278 GB, free: 5.695 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.034e-05/0.506, allocations: 42.55 kB / 0.5278 GB, free: 5.645 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.434e-06/0.5061, allocations: 0 / 0.5278 GB, free: 5.645 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.00428/0.5104, allocations: 0.9102 MB / 0.5287 GB, free: 4.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.5105, allocations: 205.6 kB / 0.5289 GB, free: 4.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005485/0.5111, allocations: 330.5 kB / 0.5292 GB, free: 4.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.5111, allocations: 25.7 kB / 0.5292 GB, free: 4.238 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.5113, allocations: 171 kB / 0.5294 GB, free: 4.105 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.748e-05/0.5113, allocations: 39.02 kB / 0.5294 GB, free: 4.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.363e-05/0.5114, allocations: 4 kB / 0.5294 GB, free: 4.066 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.5116, allocations: 337.4 kB / 0.5297 GB, free: 3.738 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.5117, allocations: 65.78 kB / 0.5298 GB, free: 3.695 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.512, allocations: 132.4 kB / 0.5299 GB, free: 3.562 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00389/0.5159, allocations: 0.7919 MB / 0.5307 GB, free: 2.793 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.5159, allocations: 4 kB / 0.5307 GB, free: 2.789 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.004279/0.5202, allocations: 0.9135 MB / 0.5316 GB, free: 1.914 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.5202, allocations: 12.06 kB / 0.5316 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.5202, allocations: 0 / 0.5316 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.5203, allocations: 0 / 0.5316 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002293/0.5205, allocations: 35.73 kB / 0.5316 GB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.5205, allocations: 0 / 0.5316 GB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007796/0.5213, allocations: 123.8 kB / 0.5318 GB, free: 1.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.616e-05/0.5214, allocations: 4 kB / 0.5318 GB, free: 1.746 MB / 346.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.0002054/0.5216, allocations: 118.1 kB / 0.5319 GB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.5217, allocations: 23.72 kB / 0.5319 GB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004338/0.5261, allocations: 0.958 MB / 0.5328 GB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/0.5261, allocations: 4 kB / 0.5328 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.5261, allocations: 0 / 0.5328 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.5261, allocations: 0 / 0.5328 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00502/0.5312, allocations: 1.346 MB / 0.5342 GB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.177e-06/0.5312, allocations: 0 / 0.5342 GB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002471/0.5314, allocations: 35.05 kB / 0.5342 GB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.5315, allocations: 4.031 kB / 0.5342 GB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.5315, allocations: 0 / 0.5342 GB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.5315, allocations: 4 kB / 0.5342 GB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.5315, allocations: 0 / 0.5342 GB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004538/0.5361, allocations: 1.134 MB / 0.5353 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001796/0.5363, allocations: 111.1 kB / 0.5354 GB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.745e-05/0.5364, allocations: 4 kB / 0.5354 GB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008115/0.5372, allocations: 115.9 kB / 0.5355 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004191/0.5376, allocations: 125.3 kB / 0.5356 GB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-05/0.5377, allocations: 11.25 kB / 0.5357 GB, free: 13.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004576/0.5382, allocations: 263.3 kB / 0.5359 GB, free: 13.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5382, allocations: 4 kB / 0.5359 GB, free: 13.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006254/0.5388, allocations: 67.3 kB / 0.536 GB, free: 13.7 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.0008039/0.5396, allocations: 246.3 kB / 0.5362 GB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004383/0.5401, allocations: 159.7 kB / 0.5364 GB, free: 13.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.5401, allocations: 4 kB / 0.5364 GB, free: 13.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002826/0.5404, allocations: 115.7 kB / 0.5365 GB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.5408, allocations: 20.59 kB / 0.5365 GB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002204/0.543, allocations: 0.5125 MB / 0.537 GB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004579/0.5435, allocations: 0.7727 MB / 0.5378 GB, free: 12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002474/0.5437, allocations: 41.84 kB / 0.5378 GB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.5439, allocations: 23.42 kB / 0.5378 GB, free: 11.94 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5439, allocations: 3.938 kB / 0.5378 GB, free: 11.93 MB / 362.7 MB Notification: Performance of Templates: time 0.008804/0.5527, allocations: 3.68 MB / 0.5414 GB, free: 8.27 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)