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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00224/0.00224, allocations: 114.6 kB / 18.94 MB, free: 2.789 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002176/0.002176, allocations: 217 kB / 22.25 MB, free: 5.215 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.531/1.531, allocations: 207.6 MB / 233 MB, free: 9.988 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo): time 0.05571/0.05571, allocations: 7.149 MB / 292.4 MB, free: 14.67 MB / 238.1 MB " [Timeout remaining time 180] Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.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.002285/0.002285, allocations: 73.08 kB / 409.1 MB, free: 47.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08312/0.0854, allocations: 50.74 MB / 459.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.01126/0.09666, allocations: 6.871 MB / 466.7 MB, free: 7.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00745/0.1041, allocations: 4.549 MB / 471.2 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.1052, allocations: 39.81 kB / 471.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002864/0.1081, allocations: 1.065 MB / 472.3 MB, free: 1.758 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.001952/0.1101, allocations: 389 kB / 472.7 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001642/0.1117, allocations: 0.6946 MB / 473.4 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003304/0.115, allocations: 2.225 MB / 475.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001205/0.1162, allocations: 0.6558 MB / 476.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001061/0.1173, allocations: 0.7397 MB / 477 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008899/0.1182, allocations: 0.739 MB / 477.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003/0.1185, allocations: 256 kB / 478 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004033/0.1189, allocations: 288 kB / 478.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004339/0.1193, allocations: 482.6 kB / 478.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009787/0.1203, allocations: 0.9296 MB / 479.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003506/0.1238, allocations: 3.053 MB / 482.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1238, allocations: 7.938 kB / 482.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.1238, allocations: 0 / 482.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.051e-05/0.1239, allocations: 0 / 482.7 MB, free: 7.266 MB / 350.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.0039/0.1278, allocations: 1.921 MB / 484.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.1278, allocations: 15.98 kB / 484.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002772/0.1281, allocations: 170.9 kB / 484.8 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002812/0.1284, allocations: 183.8 kB / 485 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002099/0.1305, allocations: 1.339 MB / 486.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.981e-05/0.1305, allocations: 82.48 kB / 486.4 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/0.1307, allocations: 115.9 kB / 486.6 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/0.1331, allocations: 1.335 MB / 487.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/0.1331, allocations: 4 kB / 487.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.1332, allocations: 40 kB / 487.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.745e-05/0.1333, allocations: 32 kB / 488 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002052/0.1353, allocations: 1.011 MB / 489 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008399/0.1437, allocations: 5.566 MB / 494.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.1454, allocations: 0.8245 MB / 495.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008015/0.1462, allocations: 387.9 kB / 495.7 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.107e-05/0.1463, allocations: 8.5 kB / 495.8 MB, free: 9.945 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008181/0.1471, allocations: 441.7 kB / 496.2 MB, free: 9.492 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.234e-06/0.1471, allocations: 3.938 kB / 496.2 MB, free: 9.488 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.00218/0.1493, allocations: 0.9765 MB / 497.2 MB, free: 8.508 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.1494, allocations: 162.7 kB / 497.3 MB, free: 8.309 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002277/0.1517, allocations: 1.473 MB / 498.8 MB, free: 6.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.924e-05/0.1518, allocations: 37.7 kB / 498.8 MB, free: 6.777 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006608/0.1524, allocations: 0.6692 MB / 499.5 MB, free: 6.102 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002135/0.1526, allocations: 206.2 kB / 499.7 MB, free: 5.898 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002569/0.1529, allocations: 142.6 kB / 499.8 MB, free: 5.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1531, allocations: 334 kB / 0.4884 GB, free: 5.418 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000646/0.1537, allocations: 325.8 kB / 0.4888 GB, free: 5.102 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000957/0.1547, allocations: 0.5194 MB / 0.4893 GB, free: 4.508 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004304/0.159, allocations: 1.662 MB / 0.4909 GB, free: 2.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.159, allocations: 4 kB / 0.4909 GB, free: 2.758 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001986/0.161, allocations: 1.025 MB / 0.4919 GB, free: 1.719 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.398e-05/0.161, allocations: 33.7 kB / 0.4919 GB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.161, allocations: 4 kB / 0.4919 GB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.593e-05/0.161, allocations: 11.94 kB / 0.4919 GB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007121/0.1618, allocations: 163.8 kB / 0.4921 GB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.07e-05/0.1618, allocations: 15.92 kB / 0.4921 GB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006324/0.1624, allocations: 91.64 kB / 0.4922 GB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.11e-05/0.1625, allocations: 24 kB / 0.4922 GB, free: 1.375 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.0009456/0.1634, allocations: 0.5352 MB / 0.4927 GB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001947/0.1636, allocations: 119.2 kB / 0.4929 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001626/0.1652, allocations: 0.7665 MB / 0.4936 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.1652, allocations: 8.109 kB / 0.4936 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1652, allocations: 3.938 kB / 0.4936 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.1653, allocations: 3.984 kB / 0.4936 GB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003938/0.1692, allocations: 2.41 MB / 0.496 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1692, allocations: 3.938 kB / 0.496 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006112/0.1698, allocations: 119.9 kB / 0.4961 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.1698, allocations: 0 / 0.4961 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.384e-05/0.1699, allocations: 16 kB / 0.4961 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1699, allocations: 4 kB / 0.4961 GB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1699, allocations: 4 kB / 0.4961 GB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002163/0.172, allocations: 1.217 MB / 0.4973 GB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000382/0.1724, allocations: 175 kB / 0.4975 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.1726, allocations: 27.92 kB / 0.4975 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004501/0.173, allocations: 31.97 kB / 0.4975 GB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.1731, allocations: 44.36 kB / 0.4976 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.1732, allocations: 12 kB / 0.4976 GB, free: 11.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001668/0.1748, allocations: 1.044 MB / 0.4986 GB, free: 10.74 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1748, allocations: 0 / 0.4986 GB, free: 10.74 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008821/0.1757, allocations: 271.2 kB / 0.4989 GB, free: 10.47 MB / 382.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.003838/0.1796, allocations: 2.03 MB / 0.5008 GB, free: 8.418 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.1812, allocations: 0.7562 MB / 0.5016 GB, free: 7.648 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.1812, allocations: 3.938 kB / 0.5016 GB, free: 7.645 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000596/0.1818, allocations: 312 kB / 0.5019 GB, free: 7.344 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/0.1831, allocations: 291.7 kB / 0.5022 GB, free: 7.059 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02014/0.2033, allocations: 11.95 MB / 0.5138 GB, free: 10.8 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001229/0.2045, allocations: 1.371 MB / 0.5152 GB, free: 9.402 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006744/0.2052, allocations: 175.8 kB / 0.5153 GB, free: 9.227 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007619/0.206, allocations: 0.4915 MB / 0.5158 GB, free: 8.734 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.206, allocations: 0 / 0.5158 GB, free: 8.734 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2425/0.4484, allocations: 28.69 MB / 0.5438 GB, free: 61.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.48, allocations: 10.33 kB / 0.5438 GB, free: 61.26 MB / 398.1 MB " [Timeout remaining time 645] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.63192599699687] Failed to read output from testmodel.py, exit status != 0: 14.663294188998407 14.683584812 14.555786891 Calling exit ...