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.001571/0.001571, allocations: 110.2 kB / 16.41 MB, free: 6.477 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.001801/0.001801, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.316/1.316, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04443/0.04443, allocations: 7.049 MB / 277.6 MB, free: 4.973 MB / 222.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.001678/0.001678, allocations: 73.94 kB / 385.9 MB, free: 48.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07106/0.07275, allocations: 48.11 MB / 434.1 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006239/0.07903, allocations: 6.794 MB / 440.9 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005447/0.08452, allocations: 4.517 MB / 445.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00083/0.08541, allocations: 35.88 kB / 445.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002177/0.0876, allocations: 1.011 MB / 446.4 MB, free: 13.02 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0009487/0.08857, allocations: 365 kB / 446.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.08963, allocations: 0.6868 MB / 447.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002213/0.09185, allocations: 2.231 MB / 449.7 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001405/0.09327, allocations: 1.131 MB / 450.8 MB, free: 8.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000759/0.09404, allocations: 0.7241 MB / 451.5 MB, free: 7.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006999/0.09475, allocations: 0.739 MB / 452.3 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002687/0.09503, allocations: 260 kB / 452.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003567/0.09539, allocations: 288 kB / 452.8 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003385/0.09574, allocations: 474.7 kB / 453.3 MB, free: 6.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007299/0.09648, allocations: 0.9295 MB / 454.2 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002512/0.099, allocations: 3.054 MB / 457.3 MB, free: 2.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.09902, allocations: 4 kB / 457.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.09902, allocations: 0 / 457.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.988e-05/0.09906, allocations: 0 / 457.3 MB, free: 2.109 MB / 334.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.003152/0.1022, allocations: 1.935 MB / 459.2 MB, free: 112 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.1023, allocations: 11.97 kB / 459.2 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002638/0.1025, allocations: 170.9 kB / 459.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001702/0.1043, allocations: 1.392 MB / 460.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.801e-05/0.1043, allocations: 90.41 kB / 460.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001621/0.1045, allocations: 112.1 kB / 461 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002186/0.1067, allocations: 1.331 MB / 462.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.1067, allocations: 3.938 kB / 462.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.1068, allocations: 44 kB / 462.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.099e-05/0.1069, allocations: 24 kB / 462.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001797/0.1087, allocations: 1.007 MB / 463.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006385/0.1151, allocations: 5.603 MB / 469 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001946/0.117, allocations: 2.151 MB / 471.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007365/0.1178, allocations: 414.3 kB / 471.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.26e-05/0.1178, allocations: 9.188 kB / 471.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007738/0.1186, allocations: 442.6 kB / 472 MB, free: 2.723 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.365e-06/0.1186, allocations: 4 kB / 472 MB, free: 2.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.001829/0.1205, allocations: 0.9701 MB / 473 MB, free: 1.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.572e-05/0.1206, allocations: 170.7 kB / 473.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001822/0.1224, allocations: 1.473 MB / 474.6 MB, free: 56 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.93e-05/0.1225, allocations: 41.7 kB / 474.6 MB, free: 8 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005318/0.123, allocations: 0.644 MB / 475.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/0.1232, allocations: 205.2 kB / 475.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002269/0.1234, allocations: 138.6 kB / 475.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1236, allocations: 337.9 kB / 475.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005949/0.1242, allocations: 325.8 kB / 476.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000709/0.1249, allocations: 0.5154 MB / 476.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003917/0.1288, allocations: 1.67 MB / 478.4 MB, free: 12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1288, allocations: 0 / 478.4 MB, free: 12 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001693/0.1305, allocations: 1.021 MB / 479.5 MB, free: 10.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.526e-05/0.1306, allocations: 37.73 kB / 479.5 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.1306, allocations: 4 kB / 479.5 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.1306, allocations: 8.109 kB / 479.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006605/0.1313, allocations: 167.6 kB / 479.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.675e-05/0.1313, allocations: 15.94 kB / 479.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005367/0.1318, allocations: 91.19 kB / 479.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-05/0.1319, allocations: 36 kB / 479.8 MB, free: 10.61 MB / 366.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.0006741/0.1326, allocations: 0.5236 MB / 480.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.1328, allocations: 110.6 kB / 480.5 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001425/0.1342, allocations: 0.7642 MB / 481.2 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.1342, allocations: 15.92 kB / 481.2 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1342, allocations: 4 kB / 481.2 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.1342, allocations: 0 / 481.2 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003138/0.1374, allocations: 2.436 MB / 483.7 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1374, allocations: 0 / 483.7 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005995/0.138, allocations: 119.9 kB / 483.8 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.138, allocations: 3.984 kB / 483.8 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.993e-05/0.1381, allocations: 20 kB / 483.8 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.247e-06/0.1381, allocations: 0 / 483.8 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1381, allocations: 0 / 483.8 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001846/0.1399, allocations: 1.218 MB / 485 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002599/0.1402, allocations: 243.5 kB / 485.3 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001345/0.1403, allocations: 16 kB / 485.3 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004401/0.1408, allocations: 35.95 kB / 485.3 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.1409, allocations: 36.52 kB / 485.4 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.153e-05/0.141, allocations: 27.92 kB / 485.4 MB, free: 4.926 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001302/0.1423, allocations: 1.036 MB / 486.4 MB, free: 3.883 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1423, allocations: 0 / 486.4 MB, free: 3.883 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006903/0.143, allocations: 275 kB / 486.7 MB, free: 3.613 MB / 366.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.0008153/0.1438, allocations: 371.1 kB / 487 MB, free: 3.238 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.1452, allocations: 0.7843 MB / 487.8 MB, free: 2.445 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1452, allocations: 1.25 kB / 487.8 MB, free: 2.445 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005539/0.1457, allocations: 331 kB / 488.2 MB, free: 2.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.1469, allocations: 275.9 kB / 488.4 MB, free: 1.855 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003992/0.1509, allocations: 2.569 MB / 491 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009417/0.1518, allocations: 1.326 MB / 492.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000276/0.1521, allocations: 71.42 kB / 492.4 MB, free: 13.82 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1521, allocations: 0 / 492.4 MB, free: 13.82 MB / 382.1 MB Notification: Performance of Templates: time 0.02335/0.1755, allocations: 18.54 MB / 0.499 GB, free: 11.25 MB / 398.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)