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: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 107.3 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.001799/0.001799, allocations: 190.7 kB / 16.25 MB, free: 6.145 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.732/1.732, allocations: 205.1 MB / 222.1 MB, free: 4.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06507/0.06507, allocations: 7.03 MB / 276.5 MB, free: 14.36 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.001772/0.001772, allocations: 75.12 kB / 335.5 MB, free: 27.3 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1088, allocations: 48.1 MB / 383.6 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.01064/0.1195, allocations: 6.751 MB / 390.3 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008296/0.1279, allocations: 4.381 MB / 394.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001737/0.1297, allocations: 31.88 kB / 394.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003277/0.133, allocations: 0.8715 MB / 395.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002066/0.1351, allocations: 298 kB / 395.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001882/0.137, allocations: 0.6285 MB / 396.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003778/0.1408, allocations: 2.217 MB / 398.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002172/0.143, allocations: 1.151 MB / 399.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001433/0.1445, allocations: 0.7241 MB / 400.6 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001308/0.1458, allocations: 0.7429 MB / 401.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006497/0.1464, allocations: 260 kB / 401.6 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007812/0.1472, allocations: 287.9 kB / 401.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000636/0.1479, allocations: 478.7 kB / 402.4 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001305/0.1492, allocations: 0.9257 MB / 403.3 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002968/0.1522, allocations: 3 MB / 406.3 MB, free: 4.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.1522, allocations: 0 / 406.3 MB, free: 4.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1522, allocations: 0 / 406.3 MB, free: 4.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.293e-05/0.1523, allocations: 0 / 406.3 MB, free: 4.285 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.003859/0.1561, allocations: 1.951 MB / 408.3 MB, free: 2.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.343e-05/0.1562, allocations: 12.03 kB / 408.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002955/0.1565, allocations: 170.9 kB / 408.4 MB, free: 2.078 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002828/0.1568, allocations: 170.9 kB / 408.6 MB, free: 1.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001898/0.1587, allocations: 1.365 MB / 410 MB, free: 500 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.1588, allocations: 86.48 kB / 410.1 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/0.159, allocations: 111.9 kB / 410.2 MB, free: 300 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002506/0.1615, allocations: 1.335 MB / 411.5 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.378e-05/0.1616, allocations: 7.938 kB / 411.5 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/0.1617, allocations: 44 kB / 411.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.497e-05/0.1617, allocations: 28 kB / 411.6 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001971/0.1637, allocations: 1.011 MB / 412.6 MB, free: 13.78 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007999/0.1717, allocations: 5.67 MB / 418.3 MB, free: 7.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002407/0.1742, allocations: 2.142 MB / 420.4 MB, free: 5.531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007611/0.1749, allocations: 403.2 kB / 420.8 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.862e-05/0.175, allocations: 8.562 kB / 420.8 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008673/0.1759, allocations: 450.5 kB / 421.2 MB, free: 4.668 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.805e-06/0.1759, allocations: 0 / 421.2 MB, free: 4.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.00199/0.1779, allocations: 0.9702 MB / 422.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.178, allocations: 162.8 kB / 422.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002257/0.1803, allocations: 1.484 MB / 423.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.737e-05/0.1804, allocations: 37.7 kB / 423.9 MB, free: 1.953 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005981/0.181, allocations: 0.6524 MB / 424.6 MB, free: 1.293 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002532/0.1813, allocations: 197.2 kB / 424.7 MB, free: 1.098 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002669/0.1815, allocations: 142.6 kB / 424.9 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.1818, allocations: 337.9 kB / 425.2 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006869/0.1825, allocations: 321.9 kB / 425.5 MB, free: 308 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1902/0.3727, allocations: 0.5138 MB / 426 MB, free: 45.36 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004935/0.3777, allocations: 1.661 MB / 427.7 MB, free: 45.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/0.3777, allocations: 4.562 kB / 427.7 MB, free: 45.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002302/0.38, allocations: 1.019 MB / 428.7 MB, free: 44.83 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.248e-05/0.3801, allocations: 35.03 kB / 428.8 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.3801, allocations: 4.844 kB / 428.8 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.333e-05/0.3802, allocations: 12.48 kB / 428.8 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007166/0.3809, allocations: 164.5 kB / 428.9 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.752e-05/0.3809, allocations: 13.39 kB / 428.9 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006618/0.3816, allocations: 89.39 kB / 429 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.268e-05/0.3817, allocations: 30.64 kB / 429.1 MB, free: 44.77 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.00103/0.3827, allocations: 0.53 MB / 429.6 MB, free: 44.44 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.3829, allocations: 114.6 kB / 429.7 MB, free: 44.44 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00157/0.3845, allocations: 0.7711 MB / 430.5 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.3845, allocations: 6.25 kB / 430.5 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.3845, allocations: 3.938 kB / 430.5 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.3845, allocations: 7.938 kB / 430.5 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003933/0.3885, allocations: 2.44 MB / 432.9 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.3885, allocations: 1.031 kB / 432.9 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006059/0.3891, allocations: 113.4 kB / 433 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.575e-06/0.3891, allocations: 5.75 kB / 433.1 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.064e-05/0.3892, allocations: 17.47 kB / 433.1 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3892, allocations: 10.88 kB / 433.1 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3892, allocations: 0 / 433.1 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001957/0.3912, allocations: 1.205 MB / 434.3 MB, free: 42.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003433/0.3915, allocations: 246.9 kB / 434.5 MB, free: 42.01 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.3917, allocations: 22.23 kB / 434.5 MB, free: 42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004381/0.3921, allocations: 33.58 kB / 434.6 MB, free: 41.99 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.3922, allocations: 41.19 kB / 434.6 MB, free: 41.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.254e-05/0.3923, allocations: 16.73 kB / 434.6 MB, free: 41.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001664/0.394, allocations: 1.035 MB / 435.7 MB, free: 41.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.394, allocations: 0.7188 kB / 435.7 MB, free: 41.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00112/0.3951, allocations: 266.2 kB / 435.9 MB, free: 41.48 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.003149/0.3983, allocations: 2.04 MB / 438 MB, free: 40.15 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002036/0.4003, allocations: 0.8652 MB / 438.8 MB, free: 39.79 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.4003, allocations: 0 / 438.8 MB, free: 39.79 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006246/0.401, allocations: 334.6 kB / 439.2 MB, free: 39.66 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/0.4022, allocations: 282.6 kB / 439.4 MB, free: 39.54 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02018/0.4224, allocations: 13.39 MB / 452.8 MB, free: 29.62 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007823/0.4232, allocations: 1.371 MB / 454.2 MB, free: 28.22 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000648/0.4239, allocations: 179.8 kB / 454.4 MB, free: 28.04 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006007/0.4245, allocations: 0.4954 MB / 454.9 MB, free: 27.55 MB / 318.1 MB Notification: Performance of SimCode: time 1.463e-06/0.4245, allocations: 0 / 454.9 MB, free: 27.55 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04723/0.4717, allocations: 27.1 MB / 482 MB, free: 380 kB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.472, allocations: 268.7 kB / 482.2 MB, free: 8 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.846/3.318, allocations: 4 kB / 482.2 MB, free: 4 kB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent_fmu --startTime=0 --stopTime=14100 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1)