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.001132/0.001132, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001206/0.001206, allocations: 191.8 kB / 16.25 MB, free: 6.621 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.589/1.589, allocations: 205.1 MB / 222.1 MB, free: 4.691 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06264/0.06264, allocations: 7.03 MB / 276.5 MB, free: 14.4 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.001464/0.001464, allocations: 75.84 kB / 335.4 MB, free: 27.41 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1114, allocations: 48.09 MB / 383.5 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008784/0.1202, allocations: 6.747 MB / 390.2 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007044/0.1273, allocations: 4.389 MB / 394.6 MB, free: 48 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001588/0.129, allocations: 35.88 kB / 394.7 MB, free: 12 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002852/0.1319, allocations: 0.8634 MB / 395.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001517/0.1334, allocations: 290.1 kB / 395.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.1348, allocations: 0.6402 MB / 396.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002857/0.1377, allocations: 2.217 MB / 398.7 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001531/0.1392, allocations: 1.151 MB / 399.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009894/0.1402, allocations: 0.7241 MB / 400.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007867/0.141, allocations: 0.739 MB / 401.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002738/0.1413, allocations: 256 kB / 401.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004371/0.1417, allocations: 291.9 kB / 401.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004359/0.1422, allocations: 478.7 kB / 402.3 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007844/0.143, allocations: 0.9296 MB / 403.2 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002871/0.1459, allocations: 3 MB / 406.2 MB, free: 4.398 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1459, allocations: 0 / 406.2 MB, free: 4.398 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1459, allocations: 0 / 406.2 MB, free: 4.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.078e-05/0.1459, allocations: 0 / 406.2 MB, free: 4.398 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.003743/0.1497, allocations: 1.943 MB / 408.2 MB, free: 2.391 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.339e-05/0.1497, allocations: 16.03 kB / 408.2 MB, free: 2.375 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003824/0.1501, allocations: 170.9 kB / 408.3 MB, free: 2.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001921/0.1521, allocations: 1.361 MB / 409.7 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.557e-05/0.1521, allocations: 82.47 kB / 409.8 MB, free: 0.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001728/0.1523, allocations: 112.1 kB / 409.9 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002309/0.1546, allocations: 1.335 MB / 411.2 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/0.1547, allocations: 3.938 kB / 411.2 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.749e-05/0.1548, allocations: 48 kB / 411.3 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.315e-05/0.1548, allocations: 24 kB / 411.3 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.1566, allocations: 1.003 MB / 412.3 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007565/0.1642, allocations: 5.666 MB / 418 MB, free: 8.309 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002388/0.1666, allocations: 2.147 MB / 420.1 MB, free: 5.848 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007891/0.1674, allocations: 403.2 kB / 420.5 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.892e-05/0.1675, allocations: 12.55 kB / 420.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008172/0.1683, allocations: 442.7 kB / 421 MB, free: 4.988 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.916e-06/0.1683, allocations: 3.938 kB / 421 MB, free: 4.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.001979/0.1703, allocations: 0.9779 MB / 421.9 MB, free: 4 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.1705, allocations: 166.7 kB / 422.1 MB, free: 3.801 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002011/0.1725, allocations: 1.473 MB / 423.6 MB, free: 2.312 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.013e-05/0.1726, allocations: 37.7 kB / 423.6 MB, free: 2.27 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006202/0.1732, allocations: 0.6479 MB / 424.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.1734, allocations: 197.2 kB / 424.5 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002474/0.1737, allocations: 142.6 kB / 424.6 MB, free: 1.273 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1738, allocations: 334 kB / 424.9 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006064/0.1744, allocations: 325.8 kB / 425.2 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007077/0.1752, allocations: 0.5193 MB / 425.8 MB, free: 24 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2193/0.3945, allocations: 1.66 MB / 427.4 MB, free: 45.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.3946, allocations: 1.406 kB / 427.4 MB, free: 45.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00204/0.3966, allocations: 1.019 MB / 428.4 MB, free: 44.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.372e-05/0.3967, allocations: 34.19 kB / 428.5 MB, free: 44.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.3967, allocations: 5.719 kB / 428.5 MB, free: 44.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.914e-05/0.3967, allocations: 9.375 kB / 428.5 MB, free: 44.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007053/0.3974, allocations: 162.7 kB / 428.6 MB, free: 44.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.63e-05/0.3975, allocations: 13.83 kB / 428.7 MB, free: 44.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007533/0.3982, allocations: 91.73 kB / 428.7 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.21e-05/0.3983, allocations: 31.2 kB / 428.8 MB, free: 44.79 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.001073/0.3994, allocations: 0.5273 MB / 429.3 MB, free: 44.46 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002045/0.3996, allocations: 113.7 kB / 429.4 MB, free: 44.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001603/0.4012, allocations: 0.7746 MB / 430.2 MB, free: 44.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.4013, allocations: 11.12 kB / 430.2 MB, free: 44.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.4013, allocations: 3.797 kB / 430.2 MB, free: 44.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.4013, allocations: 2.812 kB / 430.2 MB, free: 44.12 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003783/0.4051, allocations: 2.438 MB / 432.6 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.4051, allocations: 0.5625 kB / 432.6 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006072/0.4057, allocations: 113.7 kB / 432.8 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/0.4057, allocations: 2.031 kB / 432.8 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.525e-05/0.4058, allocations: 19.02 kB / 432.8 MB, free: 42.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.266e-06/0.4058, allocations: 2.5 kB / 432.8 MB, free: 42.81 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.4058, allocations: 6.828 kB / 432.8 MB, free: 42.81 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002148/0.408, allocations: 1.215 MB / 434 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003669/0.4084, allocations: 244 kB / 434.2 MB, free: 42.05 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001366/0.4085, allocations: 19.7 kB / 434.3 MB, free: 42.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004511/0.409, allocations: 33.22 kB / 434.3 MB, free: 42.03 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.4091, allocations: 41.66 kB / 434.3 MB, free: 42.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.4091, allocations: 19.03 kB / 434.3 MB, free: 42.01 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001686/0.4108, allocations: 1.036 MB / 435.4 MB, free: 41.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4108, allocations: 1.312 kB / 435.4 MB, free: 41.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001336/0.4122, allocations: 266 kB / 435.6 MB, free: 41.52 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.0009246/0.4131, allocations: 377 kB / 436 MB, free: 41.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.4151, allocations: 0.8728 MB / 436.9 MB, free: 40.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.4151, allocations: 4 kB / 436.9 MB, free: 40.89 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005759/0.4157, allocations: 329.9 kB / 437.2 MB, free: 40.76 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.4171, allocations: 282.8 kB / 437.5 MB, free: 40.64 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004752/0.4219, allocations: 3.157 MB / 440.6 MB, free: 38.74 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.4232, allocations: 1.384 MB / 442 MB, free: 37.88 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009381/0.4241, allocations: 178.7 kB / 442.2 MB, free: 37.85 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000222/0.4243, allocations: 76.31 kB / 442.3 MB, free: 37.84 MB / 318.1 MB Notification: Performance of SimCode: time 2.484e-06/0.4244, allocations: 3.906 kB / 442.3 MB, free: 37.84 MB / 318.1 MB Notification: Performance of Templates: time 0.0222/0.4466, allocations: 14.32 MB / 456.6 MB, free: 26.11 MB / 318.1 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)