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.001858/0.001858, allocations: 99.64 kB / 18.95 MB, free: 2.836 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.002272/0.002272, allocations: 216.2 kB / 22.24 MB, free: 5.094 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.499/1.499, allocations: 207.7 MB / 233.1 MB, free: 9.801 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.05359/0.05359, allocations: 7.148 MB / 292.5 MB, free: 14.59 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.002427/0.002427, allocations: 73.09 kB / 409 MB, free: 47.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07278/0.0752, allocations: 50.74 MB / 459.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.009961/0.08516, allocations: 6.019 MB / 465.8 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007989/0.09315, allocations: 4.214 MB / 470 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001233/0.09439, allocations: 43.75 kB / 470.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002934/0.09732, allocations: 1.011 MB / 471.1 MB, free: 2.836 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.001556/0.09888, allocations: 393 kB / 471.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001498/0.1004, allocations: 0.6907 MB / 472.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003029/0.1034, allocations: 2.221 MB / 474.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001234/0.1046, allocations: 0.6401 MB / 475 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009673/0.1056, allocations: 0.7436 MB / 475.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001039/0.1066, allocations: 0.7039 MB / 476.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000405/0.107, allocations: 260 kB / 476.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005038/0.1076, allocations: 292 kB / 477 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004745/0.108, allocations: 478.6 kB / 477.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009048/0.1089, allocations: 0.6962 MB / 478.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003128/0.1121, allocations: 3.076 MB / 481.2 MB, free: 8.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1121, allocations: 4 kB / 481.2 MB, free: 8.605 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1121, allocations: 3.938 kB / 481.2 MB, free: 8.602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.165e-05/0.1121, allocations: 0 / 481.2 MB, free: 8.602 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.004081/0.1162, allocations: 1.921 MB / 483.2 MB, free: 6.633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1163, allocations: 11.98 kB / 483.2 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002825/0.1165, allocations: 170.9 kB / 483.3 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002928/0.1168, allocations: 187.8 kB / 483.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/0.119, allocations: 1.339 MB / 484.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.964e-05/0.1191, allocations: 86.48 kB / 484.9 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001813/0.1193, allocations: 115.9 kB / 485.1 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002388/0.1217, allocations: 1.464 MB / 486.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/0.1217, allocations: 0 / 486.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.1218, allocations: 44 kB / 486.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.306e-05/0.1218, allocations: 24 kB / 486.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001982/0.1238, allocations: 1.015 MB / 487.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007242/0.131, allocations: 5.055 MB / 492.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001673/0.1327, allocations: 0.8249 MB / 493.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007579/0.1335, allocations: 384 kB / 493.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.32e-05/0.1335, allocations: 8.438 kB / 493.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008344/0.1343, allocations: 0.5106 MB / 494.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.284e-06/0.1343, allocations: 0 / 494.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.001943/0.1363, allocations: 0.9765 MB / 495.4 MB, free: 10.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.1364, allocations: 166.7 kB / 495.5 MB, free: 9.898 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002131/0.1385, allocations: 1.481 MB / 497 MB, free: 8.402 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.592e-05/0.1386, allocations: 41.64 kB / 497 MB, free: 8.355 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006941/0.1393, allocations: 0.6576 MB / 497.7 MB, free: 7.691 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002254/0.1395, allocations: 214.2 kB / 497.9 MB, free: 7.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002472/0.1398, allocations: 150.6 kB / 498.1 MB, free: 7.324 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.14, allocations: 334 kB / 498.4 MB, free: 6.992 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006433/0.1406, allocations: 351.5 kB / 498.7 MB, free: 6.645 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008709/0.1415, allocations: 0.6449 MB / 499.4 MB, free: 5.891 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004288/0.1458, allocations: 1.663 MB / 0.4893 GB, free: 4.145 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.1458, allocations: 0 / 0.4893 GB, free: 4.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002006/0.1478, allocations: 1.054 MB / 0.4903 GB, free: 3.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.99e-05/0.1478, allocations: 41.64 kB / 0.4904 GB, free: 3.023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.1478, allocations: 4 kB / 0.4904 GB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.787e-05/0.1479, allocations: 12.56 kB / 0.4904 GB, free: 3.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006702/0.1485, allocations: 167.8 kB / 0.4905 GB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/0.1485, allocations: 11.94 kB / 0.4905 GB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005773/0.1491, allocations: 87.48 kB / 0.4906 GB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.213e-05/0.1492, allocations: 28 kB / 0.4907 GB, free: 2.719 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.000873/0.1501, allocations: 0.5275 MB / 0.4912 GB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001777/0.1502, allocations: 123.1 kB / 0.4913 GB, free: 2.062 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001571/0.1518, allocations: 0.7743 MB / 0.492 GB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.1518, allocations: 4 kB / 0.492 GB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1518, allocations: 0 / 0.492 GB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.1518, allocations: 0 / 0.492 GB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003588/0.1554, allocations: 2.177 MB / 0.4942 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1554, allocations: 3.938 kB / 0.4942 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005853/0.156, allocations: 115.8 kB / 0.4943 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.12e-05/0.156, allocations: 4 kB / 0.4943 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.186e-05/0.1561, allocations: 19.98 kB / 0.4943 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.235e-06/0.1561, allocations: 4 kB / 0.4943 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1561, allocations: 0 / 0.4943 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/0.1582, allocations: 1.213 MB / 0.4955 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000339/0.1586, allocations: 175.1 kB / 0.4957 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.1587, allocations: 19.98 kB / 0.4957 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004232/0.1591, allocations: 31.97 kB / 0.4957 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.1593, allocations: 52.3 kB / 0.4958 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.776e-05/0.1593, allocations: 15.94 kB / 0.4958 GB, free: 13.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00152/0.1608, allocations: 1.04 MB / 0.4968 GB, free: 12.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1608, allocations: 4 kB / 0.4968 GB, free: 12.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007743/0.1616, allocations: 271.2 kB / 0.4971 GB, free: 12.06 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.003623/0.1652, allocations: 2.057 MB / 0.4991 GB, free: 9.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.1667, allocations: 0.7865 MB / 0.4998 GB, free: 9.176 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1667, allocations: 3.938 kB / 0.4998 GB, free: 9.172 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005697/0.1673, allocations: 314.7 kB / 0.5001 GB, free: 8.867 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.1684, allocations: 279.7 kB / 0.5004 GB, free: 8.594 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0189/0.1873, allocations: 12.07 MB / 0.5122 GB, free: 12.19 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00092/0.1882, allocations: 0.7859 MB / 0.513 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006276/0.1888, allocations: 179.8 kB / 0.5131 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007468/0.1896, allocations: 499.3 kB / 0.5136 GB, free: 10.71 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1896, allocations: 4 kB / 0.5136 GB, free: 10.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2367/0.4263, allocations: 29.76 MB / 0.5427 GB, free: 62.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.49, allocations: 15.8 kB / 0.5427 GB, free: 62.04 MB / 398.1 MB " [Timeout remaining time 647] (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: 15.583384091965854] Failed to read output from testmodel.py, exit status != 0: 12.669012772850692 12.687383397 12.57178298 Calling exit ...