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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000861/0.0008612, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009742/0.009743, allocations: 169.9 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.789/1.789, allocations: 205.4 MB / 222.5 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.0748/0.0748, allocations: 7.035 MB / 277.8 MB, free: 14.18 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ElectricalEnergyStorage requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008106/0.0008105, allocations: 12 kB / 337.6 MB, free: 27.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1406, allocations: 49.07 MB / 386.6 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.01011/0.1508, allocations: 6.253 MB / 392.9 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00852/0.1594, allocations: 3.957 MB / 396.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001679/0.1611, allocations: 31.94 kB / 396.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002472/0.1636, allocations: 0.8673 MB / 397.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001442/0.1651, allocations: 282.1 kB / 398 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001386/0.1665, allocations: 0.6401 MB / 398.7 MB, free: 14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002235/0.1687, allocations: 1.998 MB / 400.7 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001367/0.1701, allocations: 1.053 MB / 401.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000696/0.1708, allocations: 469.6 kB / 402.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006168/0.1714, allocations: 0.5359 MB / 402.7 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001317/0.1716, allocations: 68 kB / 402.8 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/0.1718, allocations: 95.98 kB / 402.9 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002478/0.1721, allocations: 266.7 kB / 403.1 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006439/0.1727, allocations: 0.7203 MB / 403.9 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002246/0.175, allocations: 2.776 MB / 406.6 MB, free: 5.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.175, allocations: 0 / 406.6 MB, free: 5.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.175, allocations: 0 / 406.6 MB, free: 5.973 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.241e-05/0.175, allocations: 0 / 406.6 MB, free: 5.973 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.002903/0.1779, allocations: 1.636 MB / 408.3 MB, free: 4.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.178, allocations: 12.03 kB / 408.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002599/0.1782, allocations: 163 kB / 408.4 MB, free: 4.102 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001786/0.18, allocations: 1.372 MB / 409.8 MB, free: 2.672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.71e-05/0.1801, allocations: 82.47 kB / 409.9 MB, free: 2.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001856/0.1803, allocations: 112.1 kB / 410 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00234/0.1827, allocations: 1.335 MB / 411.3 MB, free: 1.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/0.1827, allocations: 7.938 kB / 411.3 MB, free: 1.055 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.1828, allocations: 51.94 kB / 411.4 MB, free: 1.004 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.212e-05/0.1829, allocations: 24 kB / 411.4 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.1849, allocations: 1.027 MB / 412.4 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007883/0.1928, allocations: 5.689 MB / 418.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002179/0.195, allocations: 2.166 MB / 420.3 MB, free: 7.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007373/0.1958, allocations: 411.9 kB / 420.7 MB, free: 7.258 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.226e-05/0.1958, allocations: 12.53 kB / 420.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008298/0.1967, allocations: 450.6 kB / 421.1 MB, free: 6.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.715e-06/0.1967, allocations: 4 kB / 421.2 MB, free: 6.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.001995/0.1987, allocations: 0.9935 MB / 422.1 MB, free: 5.781 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.08e-05/0.1988, allocations: 170.7 kB / 422.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002274/0.2011, allocations: 1.469 MB / 423.8 MB, free: 4.094 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.206e-05/0.2012, allocations: 37.7 kB / 423.8 MB, free: 4.051 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005702/0.2017, allocations: 0.6479 MB / 424.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001996/0.2019, allocations: 201.2 kB / 424.7 MB, free: 3.195 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.2021, allocations: 73.61 kB / 424.7 MB, free: 3.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.2022, allocations: 341.9 kB / 425.1 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006176/0.2028, allocations: 329.8 kB / 425.4 MB, free: 2.453 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007447/0.2035, allocations: 0.5233 MB / 425.9 MB, free: 1.852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004168/0.2077, allocations: 1.705 MB / 427.6 MB, free: 60 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.2078, allocations: 0 / 427.6 MB, free: 60 kB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.2183/0.426, allocations: 1.023 MB / 428.6 MB, free: 44.31 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.822e-05/0.4262, allocations: 36.64 kB / 428.7 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.4262, allocations: 5.625 kB / 428.7 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.651e-05/0.4262, allocations: 9.188 kB / 428.7 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007192/0.427, allocations: 170.6 kB / 428.9 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.253e-05/0.427, allocations: 16.22 kB / 428.9 MB, free: 44.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007835/0.4278, allocations: 90.02 kB / 429 MB, free: 44.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-05/0.4279, allocations: 31.86 kB / 429 MB, free: 44.27 MB / 318.1 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: 21 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$whenCondition1,batteryCell.selfDischarge.qabs.absInt.local_reset,batteryCell.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryCell.calculator.EquivalentCycles.integrator.local_reset,batteryCell.calculator.q.absInt.local_reset,batteryCell.calculator.sOC.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001528/0.4294, allocations: 0.5278 MB / 429.5 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/0.4296, allocations: 112 kB / 429.6 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001974/0.4316, allocations: 0.7901 MB / 430.4 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/0.4316, allocations: 6.75 kB / 430.4 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.4317, allocations: 7.797 kB / 430.4 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.4317, allocations: 2.766 kB / 430.4 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004245/0.4359, allocations: 2.456 MB / 432.9 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.436, allocations: 1 kB / 432.9 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006512/0.4366, allocations: 120.8 kB / 433 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.007e-06/0.4366, allocations: 6.031 kB / 433 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.982e-05/0.4367, allocations: 13.91 kB / 433 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.4367, allocations: 5.188 kB / 433 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4367, allocations: 0 / 433 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002133/0.4388, allocations: 1.235 MB / 434.3 MB, free: 42.45 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003743/0.4392, allocations: 246.2 kB / 434.5 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.4394, allocations: 22.28 kB / 434.5 MB, free: 42.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004405/0.4398, allocations: 40.69 kB / 434.6 MB, free: 42.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.44, allocations: 41.36 kB / 434.6 MB, free: 42.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.464e-05/0.44, allocations: 17.12 kB / 434.6 MB, free: 42.22 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00179/0.4418, allocations: 1.041 MB / 435.7 MB, free: 41.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4418, allocations: 0 / 435.7 MB, free: 41.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001144/0.443, allocations: 261.5 kB / 435.9 MB, free: 41.73 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008845/0.4439, allocations: 395.2 kB / 436.3 MB, free: 41.46 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001797/0.4457, allocations: 0.7966 MB / 437.1 MB, free: 41.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.4457, allocations: 0 / 437.1 MB, free: 41.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008402/0.4465, allocations: 341.9 kB / 437.4 MB, free: 40.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/0.4481, allocations: 257.5 kB / 437.7 MB, free: 40.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00676/0.4549, allocations: 3.228 MB / 440.9 MB, free: 38.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001682/0.4566, allocations: 1.373 MB / 442.3 MB, free: 38.1 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001199/0.4578, allocations: 187 kB / 442.5 MB, free: 38.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004263/0.4583, allocations: 74 kB / 442.6 MB, free: 38.05 MB / 318.1 MB Notification: Performance of SimCode: time 2.064e-06/0.4583, allocations: 0 / 442.6 MB, free: 38.05 MB / 318.1 MB Notification: Performance of Templates: time 0.02709/0.4854, allocations: 13.57 MB / 456.1 MB, free: 27.87 MB / 318.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: