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.005475/0.005475, allocations: 99.72 kB / 15.73 MB, free: 6.48 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.001351/0.001351, allocations: 193.5 kB / 16.68 MB, free: 6.363 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.521/1.521, allocations: 205.1 MB / 222.5 MB, free: 4.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.05523/0.05523, allocations: 7.042 MB / 276.9 MB, free: 14.14 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.002128/0.002128, allocations: 71.91 kB / 384.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2759, allocations: 48.11 MB / 432.9 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006636/0.2826, allocations: 6.776 MB / 439.7 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005969/0.2886, allocations: 4.526 MB / 444.2 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.2899, allocations: 35.34 kB / 444.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002749/0.2927, allocations: 1.012 MB / 445.2 MB, free: 15.29 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.001528/0.2942, allocations: 363.7 kB / 445.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001469/0.2957, allocations: 0.6906 MB / 446.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004004/0.2997, allocations: 2.217 MB / 448.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002436/0.3022, allocations: 1.15 MB / 449.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00151/0.3037, allocations: 0.7181 MB / 450.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.3048, allocations: 0.7379 MB / 451.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004219/0.3053, allocations: 256.7 kB / 451.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005597/0.3058, allocations: 291.9 kB / 451.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005304/0.3064, allocations: 471.5 kB / 452.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001191/0.3076, allocations: 0.9306 MB / 453 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004354/0.3119, allocations: 3.064 MB / 456.1 MB, free: 8.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.312, allocations: 0 / 456.1 MB, free: 8.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.312, allocations: 5.5 kB / 456.1 MB, free: 8.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.146e-05/0.3121, allocations: 0 / 456.1 MB, free: 8.426 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.004901/0.317, allocations: 1.993 MB / 458.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.3171, allocations: 8.688 kB / 458.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003313/0.3174, allocations: 170.2 kB / 458.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003713/0.3178, allocations: 178.7 kB / 458.5 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002203/0.32, allocations: 1.399 MB / 459.9 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.39e-05/0.3201, allocations: 83.8 kB / 459.9 MB, free: 5.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001721/0.3203, allocations: 115.4 kB / 460 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002669/0.3229, allocations: 1.34 MB / 461.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.585e-05/0.323, allocations: 5.062 kB / 461.4 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.3231, allocations: 42.81 kB / 461.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.792e-05/0.3231, allocations: 26.47 kB / 461.5 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002196/0.3254, allocations: 1.02 MB / 462.5 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008516/0.3339, allocations: 5.604 MB / 468.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002379/0.3363, allocations: 2.146 MB / 470.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008377/0.3372, allocations: 422.2 kB / 470.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.594e-05/0.3372, allocations: 8.547 kB / 470.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008428/0.3381, allocations: 438.7 kB / 471.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 1.974e-06/0.3381, allocations: 4 kB / 471.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.00217/0.3403, allocations: 0.9823 MB / 472.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.3404, allocations: 170.8 kB / 472.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002253/0.3426, allocations: 1.469 MB / 473.7 MB, free: 8.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.302e-05/0.3428, allocations: 41.7 kB / 473.7 MB, free: 8.855 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007232/0.3435, allocations: 0.657 MB / 474.4 MB, free: 8.191 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002402/0.3437, allocations: 218.2 kB / 474.6 MB, free: 7.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002781/0.344, allocations: 138.6 kB / 474.7 MB, free: 7.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.3442, allocations: 337.9 kB / 475.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006943/0.3449, allocations: 321.9 kB / 475.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008618/0.3458, allocations: 0.5193 MB / 475.9 MB, free: 6.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004405/0.3502, allocations: 1.666 MB / 477.6 MB, free: 4.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.3502, allocations: 0 / 477.6 MB, free: 4.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002067/0.3523, allocations: 1.026 MB / 478.6 MB, free: 3.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.4e-05/0.3524, allocations: 41.72 kB / 478.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.3524, allocations: 4 kB / 478.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.3524, allocations: 11.94 kB / 478.7 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006961/0.3531, allocations: 163.7 kB / 478.8 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.785e-05/0.3531, allocations: 8 kB / 478.8 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006611/0.3538, allocations: 95.36 kB / 478.9 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.539e-05/0.3539, allocations: 39.98 kB / 479 MB, free: 3.43 MB / 350.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.000915/0.3548, allocations: 0.5275 MB / 479.5 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000194/0.355, allocations: 119.2 kB / 479.6 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001608/0.3566, allocations: 0.7758 MB / 480.4 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3567, allocations: 8 kB / 480.4 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3567, allocations: 4 kB / 480.4 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.3567, allocations: 3.984 kB / 480.4 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003904/0.3606, allocations: 2.425 MB / 482.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.3606, allocations: 0 / 482.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000638/0.3613, allocations: 119.8 kB / 482.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.3613, allocations: 4 kB / 482.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.833e-05/0.3613, allocations: 19.98 kB / 483 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/0.3614, allocations: 0 / 483 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3614, allocations: 4 kB / 483 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002296/0.3637, allocations: 1.211 MB / 484.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004055/0.3641, allocations: 252.2 kB / 484.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001478/0.3642, allocations: 23.94 kB / 484.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004648/0.3647, allocations: 31.97 kB / 484.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.3648, allocations: 44.44 kB / 484.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.06e-05/0.3649, allocations: 12 kB / 484.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001622/0.3665, allocations: 1.04 MB / 485.6 MB, free: 12.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3665, allocations: 4 kB / 485.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008906/0.3674, allocations: 275.2 kB / 485.8 MB, free: 12.41 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.003791/0.3712, allocations: 2.031 MB / 487.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.3728, allocations: 0.7848 MB / 488.7 MB, free: 9.566 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3728, allocations: 0 / 488.7 MB, free: 9.566 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006301/0.3735, allocations: 339 kB / 489 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.3749, allocations: 276.7 kB / 489.3 MB, free: 8.961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02043/0.3953, allocations: 11.96 MB / 0.4895 GB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001311/0.3967, allocations: 1.375 MB / 0.4908 GB, free: 11.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008404/0.3975, allocations: 175.8 kB / 0.491 GB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008243/0.3984, allocations: 0.4915 MB / 0.4915 GB, free: 10.61 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3984, allocations: 0 / 0.4915 GB, free: 10.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06671/0.4651, allocations: 27.98 MB / 0.5188 GB, free: 14.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.75, allocations: 11.8 kB / 0.5188 GB, free: 14.53 MB / 414.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 & python3 -m fmpy simulate --output-file ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent_res.csv --start-time 0 --stop-time 14100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1)