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.001421/0.001421, allocations: 179.6 kB / 16.12 MB, free: 5.688 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.09173/0.09173, allocations: 7.043 MB / 23.91 MB, free: 4.359 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.522/1.522, allocations: 194.5 MB / 220.6 MB, free: 15.47 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.001648/0.001648, allocations: 132 kB / 267.4 MB, free: 0.5547 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005369/0.0005372, allocations: 15.98 kB / 324 MB, free: 17.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1169, allocations: 45.98 MB / 370 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4098/0.5268, allocations: 86.12 MB / 456.1 MB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003668/0.5272, allocations: 81.97 kB / 456.2 MB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1094/0.6367, allocations: 32.64 MB / 488.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.479e-06/0.6368, allocations: 0 / 488.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000247/0.637, allocations: 28 kB / 488.9 MB, free: 13.34 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.006439/0.6435, allocations: 1.621 MB / 490.5 MB, free: 11.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.576e-05/0.6436, allocations: 8.031 kB / 490.5 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009808/0.6446, allocations: 163 kB / 490.7 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00402/0.6486, allocations: 1.224 MB / 491.9 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001448/0.6488, allocations: 86.36 kB / 492 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003945/0.6492, allocations: 108.3 kB / 492.1 MB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00419/0.6534, allocations: 1.17 MB / 493.3 MB, free: 8.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.735e-05/0.6535, allocations: 3.938 kB / 493.3 MB, free: 8.816 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002144/0.6537, allocations: 40 kB / 493.3 MB, free: 8.777 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.581e-05/0.6537, allocations: 24 kB / 493.3 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003326/0.6571, allocations: 0.941 MB / 494.3 MB, free: 7.812 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01084/0.6679, allocations: 4.439 MB / 498.7 MB, free: 3.301 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003015/0.671, allocations: 2.156 MB / 0.4891 GB, free: 0.8242 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001128/0.6721, allocations: 419.8 kB / 0.4895 GB, free: 424 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.7e-05/0.6722, allocations: 9.172 kB / 0.4895 GB, free: 416 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00114/0.6734, allocations: 454.6 kB / 0.49 GB, free: 15.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 4.007e-06/0.6734, allocations: 0 / 0.49 GB, free: 15.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.003044/0.6764, allocations: 0.9897 MB / 0.4909 GB, free: 14.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.6766, allocations: 170.7 kB / 0.4911 GB, free: 14.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003108/0.6797, allocations: 1.358 MB / 0.4924 GB, free: 13.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.6798, allocations: 37.7 kB / 0.4925 GB, free: 13.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008149/0.6806, allocations: 0.5897 MB / 0.493 GB, free: 12.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002776/0.6809, allocations: 201 kB / 0.4932 GB, free: 12.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.318e-05/0.681, allocations: 19.94 kB / 0.4932 GB, free: 12.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.6812, allocations: 330 kB / 0.4936 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000924/0.6821, allocations: 313.2 kB / 0.4939 GB, free: 11.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.6832, allocations: 415.6 kB / 0.4943 GB, free: 11.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006064/0.6893, allocations: 1.643 MB / 0.4959 GB, free: 9.738 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.6893, allocations: 0 / 0.4959 GB, free: 9.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002721/0.692, allocations: 0.9405 MB / 0.4968 GB, free: 8.777 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.651e-05/0.6921, allocations: 59.41 kB / 0.4968 GB, free: 8.707 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.6922, allocations: 8.156 kB / 0.4968 GB, free: 8.699 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.507e-05/0.6922, allocations: 7.938 kB / 0.4969 GB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009853/0.6932, allocations: 143.8 kB / 0.497 GB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.649e-05/0.6932, allocations: 4 kB / 0.497 GB, free: 8.547 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009356/0.6942, allocations: 79.41 kB / 0.4971 GB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.057e-05/0.6943, allocations: 31.98 kB / 0.4971 GB, free: 8.438 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 ($PRE.pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,$whenCondition1,pulseCurrent.signalSource.T_start,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.001451/0.6957, allocations: 0.4897 MB / 0.4976 GB, free: 7.938 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002698/0.696, allocations: 102.7 kB / 0.4977 GB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002329/0.6984, allocations: 0.7867 MB / 0.4984 GB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.6984, allocations: 4 kB / 0.4984 GB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.6984, allocations: 0 / 0.4984 GB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.6984, allocations: 3.984 kB / 0.4985 GB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005584/0.704, allocations: 2.472 MB / 0.5009 GB, free: 4.496 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.704, allocations: 4 kB / 0.5009 GB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009458/0.705, allocations: 119.8 kB / 0.501 GB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.137e-05/0.705, allocations: 7.984 kB / 0.501 GB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.158e-05/0.7051, allocations: 12 kB / 0.501 GB, free: 4.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.045e-06/0.7051, allocations: 4 kB / 0.501 GB, free: 4.352 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.7051, allocations: 0 / 0.501 GB, free: 4.352 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003036/0.7082, allocations: 1.228 MB / 0.5022 GB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000499/0.7087, allocations: 247.6 kB / 0.5024 GB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000187/0.7089, allocations: 23.98 kB / 0.5025 GB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005655/0.7095, allocations: 35.97 kB / 0.5025 GB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.7096, allocations: 48.44 kB / 0.5025 GB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.123e-05/0.7097, allocations: 8 kB / 0.5026 GB, free: 2.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002075/0.7118, allocations: 0.9706 MB / 0.5035 GB, free: 1.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7118, allocations: 0 / 0.5035 GB, free: 1.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001101/0.7129, allocations: 275 kB / 0.5038 GB, free: 1.48 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.00132/0.7142, allocations: 0.5361 MB / 0.5043 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.7162, allocations: 0.8036 MB / 0.5051 GB, free: 116 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.7162, allocations: 0 / 0.5051 GB, free: 116 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007815/0.717, allocations: 343.1 kB / 0.5054 GB, free: 15.77 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.7187, allocations: 244.1 kB / 0.5056 GB, free: 15.53 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006309/0.725, allocations: 2.964 MB / 0.5085 GB, free: 12.53 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001368/0.7264, allocations: 1.34 MB / 0.5098 GB, free: 11.16 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001069/0.7275, allocations: 175 kB / 0.51 GB, free: 10.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002921/0.7278, allocations: 67.44 kB / 0.5101 GB, free: 10.92 MB / 394.7 MB Notification: Performance of SimCode: time 1.392e-06/0.7278, allocations: 4 kB / 0.5101 GB, free: 10.91 MB / 394.7 MB Notification: Performance of Templates: time 0.02867/0.7565, allocations: 14.66 MB / 0.5244 GB, free: 12.23 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)