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.001455/0.001455, allocations: 181.7 kB / 7.651 MB, free: 1.402 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.08919/0.08919, allocations: 7.038 MB / 15.11 MB, free: 192 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.494/1.494, allocations: 194.3 MB / 211.4 MB, free: 15.37 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.001619/0.001619, allocations: 123.1 kB / 257.8 MB, free: 1.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.401e-05/1.415e-05, allocations: 0 / 310 MB, free: 13.27 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3427, allocations: 45.98 MB / 356 MB, free: 46.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1169/0.4597, allocations: 85.25 MB / 441.2 MB, free: 6.379 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/0.46, allocations: 87.56 kB / 441.3 MB, free: 6.297 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0714/0.5314, allocations: 32.01 MB / 473.3 MB, free: 6.465 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5315, allocations: 0 / 473.3 MB, free: 6.465 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.914e-05/0.5316, allocations: 31.94 kB / 473.4 MB, free: 6.434 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.00262/0.5342, allocations: 1.412 MB / 474.8 MB, free: 4.961 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.5343, allocations: 12.03 kB / 474.8 MB, free: 4.949 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002915/0.5346, allocations: 158 kB / 475 MB, free: 4.793 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001708/0.5363, allocations: 1.176 MB / 476.1 MB, free: 3.559 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.996e-05/0.5363, allocations: 39.98 kB / 476.2 MB, free: 3.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.5365, allocations: 60 kB / 476.2 MB, free: 3.461 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001404/0.5379, allocations: 0.8163 MB / 477 MB, free: 2.645 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.5396, allocations: 0.9903 MB / 478 MB, free: 1.637 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.5396, allocations: 4 kB / 478 MB, free: 1.633 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.477e-05/0.5397, allocations: 3.953 kB / 478 MB, free: 1.629 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.508e-05/0.5397, allocations: 24 kB / 478.1 MB, free: 1.605 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006645/0.5464, allocations: 4.257 MB / 482.3 MB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001813/0.5482, allocations: 2.089 MB / 484.4 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007033/0.5489, allocations: 407.7 kB / 484.8 MB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.679e-05/0.549, allocations: 5.188 kB / 484.8 MB, free: 10.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006059/0.5496, allocations: 407.8 kB / 485.2 MB, free: 10.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 2.295e-06/0.5496, allocations: 0 / 485.2 MB, free: 10.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.001106/0.5507, allocations: 0.6232 MB / 485.8 MB, free: 9.422 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.5509, allocations: 192.5 kB / 486 MB, free: 9.188 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001577/0.5524, allocations: 1.13 MB / 487.2 MB, free: 8.035 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.722e-05/0.5525, allocations: 25.7 kB / 487.2 MB, free: 8.004 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005615/0.5531, allocations: 0.6046 MB / 487.8 MB, free: 7.391 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001866/0.5533, allocations: 189.2 kB / 488 MB, free: 7.203 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.5533, allocations: 0 / 488 MB, free: 7.203 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.5535, allocations: 337.9 kB / 488.3 MB, free: 6.867 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003989/0.5539, allocations: 261.5 kB / 488.6 MB, free: 6.613 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004607/0.5544, allocations: 372.2 kB / 488.9 MB, free: 6.215 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004694/0.5548, allocations: 325 kB / 489.2 MB, free: 5.898 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.5549, allocations: 0 / 489.2 MB, free: 5.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001152/0.556, allocations: 0.7724 MB / 490 MB, free: 5.121 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.414e-05/0.5561, allocations: 69.27 kB / 490.1 MB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.5561, allocations: 4 kB / 490.1 MB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.5561, allocations: 4 kB / 490.1 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006322/0.5568, allocations: 147.8 kB / 490.2 MB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.5568, allocations: 7.938 kB / 490.2 MB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004804/0.5573, allocations: 63.61 kB / 490.3 MB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.014e-05/0.5573, allocations: 20 kB / 490.3 MB, free: 4.801 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" ) type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 () * 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.000192/0.5575, allocations: 132.8 kB / 490.5 MB, free: 4.668 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.5577, allocations: 102.8 kB / 490.6 MB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/0.5588, allocations: 0.6691 MB / 491.2 MB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.5588, allocations: 8 kB / 491.2 MB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.5588, allocations: 4 kB / 491.2 MB, free: 3.875 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.5588, allocations: 0 / 491.2 MB, free: 3.875 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003072/0.5619, allocations: 2.323 MB / 493.6 MB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.5619, allocations: 4.031 kB / 493.6 MB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005677/0.5625, allocations: 111.9 kB / 493.7 MB, free: 1.383 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.5625, allocations: 4 kB / 493.7 MB, free: 1.379 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.722e-05/0.5626, allocations: 11.98 kB / 493.7 MB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.5626, allocations: 0 / 493.7 MB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.5626, allocations: 4 kB / 493.7 MB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.5641, allocations: 1.111 MB / 494.8 MB, free: 236 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002875/0.5644, allocations: 247.7 kB / 495 MB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.5645, allocations: 8 kB / 495 MB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004044/0.5649, allocations: 27.97 kB / 495.1 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.5651, allocations: 48.45 kB / 495.1 MB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.022e-05/0.5651, allocations: 16 kB / 495.1 MB, free: 15.87 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001186/0.5663, allocations: 0.8598 MB / 496 MB, free: 15 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5663, allocations: 0 / 496 MB, free: 15 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007302/0.5671, allocations: 262.8 kB / 496.3 MB, free: 14.74 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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) * 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.0009088/0.568, allocations: 0.5144 MB / 496.8 MB, free: 14.24 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009916/0.569, allocations: 0.7079 MB / 497.5 MB, free: 13.51 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.569, allocations: 0 / 497.5 MB, free: 13.51 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004194/0.5694, allocations: 302 kB / 497.8 MB, free: 13.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008565/0.5703, allocations: 199.6 kB / 498 MB, free: 13.01 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003581/0.5739, allocations: 2.002 MB / 500 MB, free: 10.98 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.5749, allocations: 1.375 MB / 0.4896 GB, free: 9.574 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005739/0.5755, allocations: 174.6 kB / 0.4898 GB, free: 9.398 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.5757, allocations: 59.44 kB / 0.4898 GB, free: 9.34 MB / 394.7 MB Notification: Performance of SimCode: time 4.5e-07/0.5757, allocations: 0 / 0.4898 GB, free: 9.34 MB / 394.7 MB Notification: Performance of Templates: time 0.2151/0.7908, allocations: 11.04 MB / 0.5006 GB, free: 103.3 MB / 394.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)