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.001223/0.001223, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.298/1.298, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05503/0.05503, allocations: 7.038 MB / 276.8 MB, free: 14.22 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.001492/0.001492, allocations: 79.53 kB / 336 MB, free: 26.99 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08215/0.08366, allocations: 48.09 MB / 384.1 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008422/0.09212, allocations: 6.798 MB / 390.9 MB, free: 3.973 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006531/0.09869, allocations: 4.514 MB / 395.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00129/0.1001, allocations: 35.88 kB / 395.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002752/0.1028, allocations: 1.011 MB / 396.5 MB, free: 14.39 MB / 302.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.00153/0.1044, allocations: 361 kB / 396.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001321/0.1057, allocations: 0.6829 MB / 397.5 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002452/0.1082, allocations: 2.217 MB / 399.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001353/0.1095, allocations: 1.151 MB / 400.9 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007512/0.1103, allocations: 0.7202 MB / 401.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006609/0.111, allocations: 0.7351 MB / 402.3 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002705/0.1113, allocations: 260 kB / 402.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003552/0.1116, allocations: 287.9 kB / 402.8 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000342/0.112, allocations: 478.7 kB / 403.3 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007492/0.1127, allocations: 0.9256 MB / 404.2 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002418/0.1152, allocations: 3 MB / 407.2 MB, free: 3.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.1152, allocations: 4 kB / 407.2 MB, free: 3.535 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1152, allocations: 0 / 407.2 MB, free: 3.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.76e-05/0.1152, allocations: 0 / 407.2 MB, free: 3.535 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.00355/0.1188, allocations: 1.955 MB / 409.2 MB, free: 1.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.1188, allocations: 8.031 kB / 409.2 MB, free: 1.508 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002648/0.1191, allocations: 170.9 kB / 409.4 MB, free: 1.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002761/0.1194, allocations: 170.9 kB / 409.5 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.1212, allocations: 1.365 MB / 410.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.251e-05/0.1213, allocations: 86.47 kB / 411 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.1215, allocations: 111.9 kB / 411.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002217/0.1237, allocations: 1.339 MB / 412.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.1237, allocations: 0 / 412.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.1238, allocations: 48 kB / 412.5 MB, free: 14.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.645e-05/0.1239, allocations: 31.98 kB / 412.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001921/0.1258, allocations: 1.011 MB / 413.5 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00726/0.1331, allocations: 5.658 MB / 419.2 MB, free: 7.246 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002476/0.1356, allocations: 2.143 MB / 421.3 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008092/0.1364, allocations: 419.2 kB / 421.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.785e-05/0.1365, allocations: 8.5 kB / 421.7 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008427/0.1374, allocations: 442.6 kB / 422.2 MB, free: 3.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 4.789e-06/0.1374, allocations: 0 / 422.2 MB, free: 3.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.002113/0.1395, allocations: 0.978 MB / 423.2 MB, free: 2.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.1396, allocations: 166.7 kB / 423.3 MB, free: 2.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00274/0.1424, allocations: 1.481 MB / 424.8 MB, free: 1.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.526e-05/0.1425, allocations: 37.7 kB / 424.8 MB, free: 1.191 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000646/0.1431, allocations: 0.6518 MB / 425.5 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/0.1434, allocations: 197.2 kB / 425.7 MB, free: 344 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002671/0.1437, allocations: 138.6 kB / 425.8 MB, free: 200 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.1878/0.3314, allocations: 334 kB / 426.1 MB, free: 45.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009486/0.3324, allocations: 322.9 kB / 426.5 MB, free: 45.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007959/0.3332, allocations: 0.5184 MB / 427 MB, free: 45.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004107/0.3374, allocations: 1.659 MB / 428.6 MB, free: 44.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3374, allocations: 1.188 kB / 428.6 MB, free: 44.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001897/0.3393, allocations: 1.018 MB / 429.7 MB, free: 44.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.251e-05/0.3393, allocations: 41.98 kB / 429.7 MB, free: 44.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.3394, allocations: 4.438 kB / 429.7 MB, free: 44.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.362e-05/0.3394, allocations: 13.11 kB / 429.7 MB, free: 44.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006952/0.3401, allocations: 163.5 kB / 429.9 MB, free: 44.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.255e-05/0.3401, allocations: 9.891 kB / 429.9 MB, free: 44.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007195/0.3409, allocations: 87.78 kB / 430 MB, free: 44.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.448e-05/0.341, allocations: 33.66 kB / 430 MB, free: 44.43 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.000931/0.3419, allocations: 0.5323 MB / 430.5 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002687/0.3422, allocations: 111.3 kB / 430.6 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.3437, allocations: 0.772 MB / 431.4 MB, free: 43.74 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.3437, allocations: 9.938 kB / 431.4 MB, free: 43.74 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3438, allocations: 0 / 431.4 MB, free: 43.74 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.3438, allocations: 4.641 kB / 431.4 MB, free: 43.74 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003975/0.3477, allocations: 2.439 MB / 433.9 MB, free: 42.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.3478, allocations: 1.172 kB / 433.9 MB, free: 42.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00059/0.3484, allocations: 112 kB / 434 MB, free: 42.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/0.3484, allocations: 2.219 kB / 434 MB, free: 42.45 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.919e-05/0.3485, allocations: 20.69 kB / 434 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.3485, allocations: 2.609 kB / 434 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3485, allocations: 4.703 kB / 434 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002014/0.3505, allocations: 1.209 MB / 435.2 MB, free: 41.87 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003642/0.3509, allocations: 247.4 kB / 435.5 MB, free: 41.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002084/0.3511, allocations: 17.89 kB / 435.5 MB, free: 41.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000511/0.3516, allocations: 40.64 kB / 435.5 MB, free: 41.64 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.3517, allocations: 37.38 kB / 435.5 MB, free: 41.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.115e-05/0.3518, allocations: 19.31 kB / 435.6 MB, free: 41.63 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002057/0.3538, allocations: 1.04 MB / 436.6 MB, free: 41.19 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3539, allocations: 0 / 436.6 MB, free: 41.19 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001009/0.3549, allocations: 270.9 kB / 436.9 MB, free: 41.14 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.002894/0.3578, allocations: 2.027 MB / 438.9 MB, free: 39.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002013/0.3598, allocations: 0.868 MB / 439.8 MB, free: 39.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3598, allocations: 4 kB / 439.8 MB, free: 39.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005907/0.3604, allocations: 334 kB / 440.1 MB, free: 39.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.3618, allocations: 275.3 kB / 440.4 MB, free: 39.19 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01642/0.3782, allocations: 12.93 MB / 453.3 MB, free: 29.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008976/0.3792, allocations: 1.371 MB / 454.7 MB, free: 27.9 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000626/0.3798, allocations: 175.8 kB / 454.8 MB, free: 27.72 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005968/0.3804, allocations: 499.3 kB / 455.3 MB, free: 27.24 MB / 318.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3804, allocations: 4 kB / 455.3 MB, free: 27.23 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05059/0.431, allocations: 27.29 MB / 482.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.448/8.879, allocations: 12 kB / 482.6 MB, free: 15.82 MB / 334.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)