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.005053/0.005053, allocations: 97.11 kB / 15.73 MB, free: 5.988 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.001182/0.001182, allocations: 185.1 kB / 16.67 MB, free: 5.918 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.357/1.357, allocations: 205.1 MB / 222.5 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.04935/0.04935, allocations: 7.027 MB / 276.9 MB, free: 4.969 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.001421/0.001421, allocations: 73.78 kB / 384.8 MB, free: 48.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07679/0.07822, allocations: 48.11 MB / 432.9 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.00596/0.08422, allocations: 6.804 MB / 439.7 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005471/0.08972, allocations: 4.514 MB / 444.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009226/0.09071, allocations: 35.88 kB / 444.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002243/0.09297, allocations: 1.007 MB / 445.2 MB, free: 13.52 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.001029/0.09401, allocations: 401 kB / 445.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.09519, allocations: 0.679 MB / 446.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002401/0.0976, allocations: 2.233 MB / 448.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001474/0.09909, allocations: 1.143 MB / 449.7 MB, free: 9.031 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008278/0.09993, allocations: 0.7202 MB / 450.4 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006965/0.1006, allocations: 0.7428 MB / 451.2 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002679/0.1009, allocations: 256 kB / 451.4 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003454/0.1013, allocations: 288 kB / 451.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003833/0.1017, allocations: 474.7 kB / 452.2 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007662/0.1024, allocations: 0.9296 MB / 453.1 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003014/0.1055, allocations: 3.06 MB / 456.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1055, allocations: 0 / 456.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1055, allocations: 3.938 kB / 456.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.127e-05/0.1055, allocations: 4 kB / 456.1 MB, free: 2.555 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.003475/0.109, allocations: 1.989 MB / 458.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.1091, allocations: 12.03 kB / 458.1 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002696/0.1094, allocations: 170.9 kB / 458.3 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002708/0.1096, allocations: 175.8 kB / 458.5 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001958/0.1116, allocations: 1.397 MB / 459.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.1117, allocations: 90.42 kB / 460 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/0.1119, allocations: 111.9 kB / 460.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002222/0.1141, allocations: 1.339 MB / 461.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.868e-05/0.1142, allocations: 4 kB / 461.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/0.1143, allocations: 44 kB / 461.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/0.1143, allocations: 24 kB / 461.5 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00187/0.1162, allocations: 1.015 MB / 462.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007212/0.1234, allocations: 5.624 MB / 468.1 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002035/0.1255, allocations: 2.147 MB / 470.3 MB, free: 3.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007538/0.1263, allocations: 410.3 kB / 470.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.26e-05/0.1263, allocations: 8.547 kB / 470.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007659/0.1271, allocations: 446.6 kB / 471.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.234e-06/0.1271, allocations: 0 / 471.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.001915/0.129, allocations: 0.9785 MB / 472.1 MB, free: 1.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.052e-05/0.1291, allocations: 170.8 kB / 472.3 MB, free: 1.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001941/0.1311, allocations: 1.473 MB / 473.7 MB, free: 228 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.895e-05/0.1312, allocations: 45.64 kB / 473.8 MB, free: 176 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005788/0.1317, allocations: 0.6653 MB / 474.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001903/0.1319, allocations: 206.2 kB / 474.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002392/0.1322, allocations: 138.6 kB / 474.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.1323, allocations: 337.9 kB / 475.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006261/0.1329, allocations: 321.9 kB / 475.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007436/0.1337, allocations: 0.5232 MB / 476 MB, free: 13.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003975/0.1377, allocations: 1.67 MB / 477.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-06/0.1377, allocations: 0 / 477.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001761/0.1395, allocations: 1.025 MB / 478.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.318e-05/0.1395, allocations: 33.7 kB / 478.7 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.1395, allocations: 7.984 kB / 478.7 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.1396, allocations: 12.05 kB / 478.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006729/0.1403, allocations: 163.7 kB / 478.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.533e-05/0.1403, allocations: 12.34 kB / 478.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005903/0.1409, allocations: 91.48 kB / 479 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.628e-05/0.1409, allocations: 31.98 kB / 479 MB, free: 10.75 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.000746/0.1417, allocations: 0.5274 MB / 479.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/0.1419, allocations: 123.2 kB / 479.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/0.1433, allocations: 0.7758 MB / 480.4 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.1433, allocations: 4 kB / 480.4 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.1434, allocations: 0 / 480.4 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.1434, allocations: 3.984 kB / 480.4 MB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003478/0.1468, allocations: 2.44 MB / 482.9 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1469, allocations: 0 / 482.9 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006215/0.1475, allocations: 111.9 kB / 483 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.1475, allocations: 4 kB / 483 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.061e-05/0.1476, allocations: 19.98 kB / 483 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.1476, allocations: 4 kB / 483 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1476, allocations: 4 kB / 483 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.1495, allocations: 1.219 MB / 484.2 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003202/0.1499, allocations: 248.2 kB / 484.5 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001479/0.15, allocations: 20 kB / 484.5 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004528/0.1505, allocations: 31.97 kB / 484.5 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.1506, allocations: 40.44 kB / 484.6 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.858e-05/0.1506, allocations: 23.94 kB / 484.6 MB, free: 5.047 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001391/0.152, allocations: 1.04 MB / 485.6 MB, free: 4 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1521, allocations: 0 / 485.6 MB, free: 4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007406/0.1528, allocations: 279.2 kB / 485.9 MB, free: 3.727 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.002927/0.1557, allocations: 2.023 MB / 487.9 MB, free: 1.676 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.1572, allocations: 0.7883 MB / 488.7 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1572, allocations: 1.25 kB / 488.7 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005848/0.1578, allocations: 335.1 kB / 489 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.159, allocations: 283.9 kB / 489.3 MB, free: 276 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01719/0.1762, allocations: 11.94 MB / 0.4895 GB, free: 4.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001076/0.1773, allocations: 1.375 MB / 0.4908 GB, free: 2.617 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006872/0.178, allocations: 175.8 kB / 0.491 GB, free: 2.441 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007722/0.1788, allocations: 0.4915 MB / 0.4915 GB, free: 1.949 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.1788, allocations: 0 / 0.4915 GB, free: 1.949 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07638/0.2552, allocations: 27.98 MB / 0.5188 GB, free: 5.887 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.03, allocations: 11.83 kB / 0.5188 GB, free: 5.875 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)