Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=28200,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") translateModel(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=28200,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.006028/0.006028, allocations: 175.2 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06512/0.06512, allocations: 7.035 MB / 22.89 MB, free: 4.465 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.421/1.421, allocations: 194.5 MB / 219.6 MB, free: 15.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001668/0.001668, allocations: 112.7 kB / 266.3 MB, free: 0.6914 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003815, allocations: 15.98 kB / 322.8 MB, free: 17.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1144, allocations: 45.98 MB / 368.8 MB, free: 3.355 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3213/0.4358, allocations: 86 MB / 454.8 MB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.436, allocations: 84.22 kB / 454.9 MB, free: 11.65 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07651/0.5126, allocations: 32.54 MB / 487.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.5126, allocations: 7.938 kB / 487.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001161/0.5127, allocations: 31.94 kB / 487.5 MB, free: 13.91 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.003516/0.5163, allocations: 1.629 MB / 489.1 MB, free: 12.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.5163, allocations: 12.03 kB / 489.1 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003217/0.5167, allocations: 158 kB / 489.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001904/0.5186, allocations: 1.184 MB / 490.4 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.89e-05/0.5187, allocations: 85.98 kB / 490.5 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/0.5188, allocations: 100 kB / 490.6 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002078/0.5209, allocations: 1.166 MB / 491.8 MB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.5209, allocations: 0 / 491.8 MB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.379e-05/0.521, allocations: 44.34 kB / 491.8 MB, free: 9.402 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.5211, allocations: 27.95 kB / 491.9 MB, free: 9.375 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/0.5228, allocations: 0.9449 MB / 492.8 MB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00694/0.5297, allocations: 4.447 MB / 497.3 MB, free: 3.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/0.5322, allocations: 2.157 MB / 499.4 MB, free: 1.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.705e-05/0.5323, allocations: 20.55 kB / 499.4 MB, free: 1.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007612/0.5331, allocations: 442.6 kB / 499.9 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 2.705e-06/0.5331, allocations: 0 / 499.9 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.001955/0.5351, allocations: 0.9862 MB / 0.4891 GB, free: 15.97 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.5352, allocations: 166.7 kB / 0.4893 GB, free: 15.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002954/0.5382, allocations: 1.236 MB / 0.4905 GB, free: 14.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000149/0.5383, allocations: 45.69 kB / 0.4905 GB, free: 14.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009167/0.5393, allocations: 0.5934 MB / 0.4911 GB, free: 13.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002824/0.5396, allocations: 197.9 kB / 0.4913 GB, free: 13.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.432e-05/0.5396, allocations: 12 kB / 0.4913 GB, free: 13.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.5398, allocations: 333.9 kB / 0.4916 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009407/0.5408, allocations: 313.2 kB / 0.4919 GB, free: 13.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/0.5419, allocations: 415.6 kB / 0.4923 GB, free: 12.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.5432, allocations: 423.1 kB / 0.4927 GB, free: 12.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.5432, allocations: 0 / 0.4927 GB, free: 12.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003202/0.5464, allocations: 0.9406 MB / 0.4936 GB, free: 11.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.978e-05/0.5465, allocations: 55.41 kB / 0.4937 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.5465, allocations: 4 kB / 0.4937 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.295e-05/0.5466, allocations: 4 kB / 0.4937 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.5479, allocations: 143.8 kB / 0.4938 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.82e-05/0.5479, allocations: 4 kB / 0.4938 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.5491, allocations: 83.41 kB / 0.4939 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-05/0.5492, allocations: 20 kB / 0.4939 GB, free: 10.87 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 2 * 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.001852/0.551, allocations: 0.4942 MB / 0.4944 GB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003069/0.5514, allocations: 98.78 kB / 0.4945 GB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002799/0.5542, allocations: 0.7831 MB / 0.4953 GB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.631e-05/0.5542, allocations: 8 kB / 0.4953 GB, free: 9.469 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.5542, allocations: 3.938 kB / 0.4953 GB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/0.5543, allocations: 3.984 kB / 0.4953 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006426/0.5607, allocations: 2.457 MB / 0.4977 GB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/0.5607, allocations: 0 / 0.4977 GB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.5619, allocations: 111.9 kB / 0.4978 GB, free: 6.832 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.466e-05/0.5619, allocations: 4 kB / 0.4978 GB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.559e-05/0.562, allocations: 23.98 kB / 0.4978 GB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.997e-06/0.562, allocations: 3.953 kB / 0.4978 GB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/0.5621, allocations: 8 kB / 0.4978 GB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003548/0.5656, allocations: 1.229 MB / 0.499 GB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006549/0.5663, allocations: 247.6 kB / 0.4993 GB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002189/0.5665, allocations: 23.98 kB / 0.4993 GB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007264/0.5673, allocations: 31.97 kB / 0.4993 GB, free: 5.227 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.5674, allocations: 52.45 kB / 0.4994 GB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.479e-05/0.5675, allocations: 12 kB / 0.4994 GB, free: 5.164 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001885/0.5694, allocations: 0.9628 MB / 0.5003 GB, free: 4.191 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5694, allocations: 0 / 0.5003 GB, free: 4.191 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001086/0.5705, allocations: 279 kB / 0.5006 GB, free: 3.918 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (batteryCell.calculator.sOC.integrator.y,batteryCell.calculator.q.absInt.y,batteryCell.calculator.EquivalentCycles.integrator.y,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,batteryCell.cellImpedance.rs.impedanceValue.qabs.absInt.y,batteryCell.selfDischarge.qabs.absInt.y) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001228/0.5717, allocations: 0.549 MB / 0.5011 GB, free: 3.367 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.5735, allocations: 0.7957 MB / 0.5019 GB, free: 2.555 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.5735, allocations: 3.938 kB / 0.5019 GB, free: 2.551 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007149/0.5742, allocations: 343 kB / 0.5022 GB, free: 2.211 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.5754, allocations: 240.3 kB / 0.5025 GB, free: 1.977 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005123/0.5806, allocations: 2.968 MB / 0.5054 GB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001194/0.5818, allocations: 1.363 MB / 0.5067 GB, free: 13.58 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006755/0.5825, allocations: 175 kB / 0.5069 GB, free: 13.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.5827, allocations: 67.42 kB / 0.5069 GB, free: 13.34 MB / 394.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5827, allocations: 0 / 0.5069 GB, free: 13.34 MB / 394.7 MB Notification: Performance of Templates: time 0.0275/0.6102, allocations: 14.51 MB / 0.5211 GB, free: 14.79 MB / 410.7 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.makefile (rm -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe ; mkfifo ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe ; head -c 1048576 < ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe >> ../files/ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.sim & ./ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent -abortSlowSimulation -alarm=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1)