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.00163/0.00163, allocations: 107 kB / 16.45 MB, free: 6.5 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.00167/0.00167, allocations: 216.9 kB / 19.43 MB, free: 3.656 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.553/1.553, allocations: 207.6 MB / 229.8 MB, free: 11.41 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06123/0.06123, allocations: 7.13 MB / 288.8 MB, free: 15.89 MB / 238.1 MB " [Timeout remaining time 180] 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.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.002403/0.002403, allocations: 74.06 kB / 403.8 MB, free: 48.3 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07764/0.08005, allocations: 50.69 MB / 454.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.009941/0.08999, allocations: 6.839 MB / 461.3 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007954/0.09794, allocations: 4.537 MB / 465.9 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001327/0.09927, allocations: 35.81 kB / 465.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003051/0.1023, allocations: 1.011 MB / 466.9 MB, free: 3.418 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.001836/0.1042, allocations: 401 kB / 467.3 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001744/0.1059, allocations: 0.6752 MB / 468 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003481/0.1094, allocations: 2.225 MB / 470.2 MB, free: 120 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001557/0.1109, allocations: 0.7491 MB / 471 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.1121, allocations: 0.7397 MB / 471.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001213/0.1133, allocations: 0.7351 MB / 472.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005713/0.1139, allocations: 256 kB / 472.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007832/0.1147, allocations: 292 kB / 473 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005171/0.1152, allocations: 478.6 kB / 473.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001075/0.1162, allocations: 0.9256 MB / 474.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003843/0.1201, allocations: 3.056 MB / 477.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1201, allocations: 4 kB / 477.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1201, allocations: 0 / 477.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.043e-05/0.1201, allocations: 7.875 kB / 477.4 MB, free: 8.844 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.004429/0.1246, allocations: 1.989 MB / 479.4 MB, free: 6.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.1246, allocations: 12.03 kB / 479.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000321/0.1249, allocations: 178.8 kB / 479.6 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003472/0.1253, allocations: 175.8 kB / 479.8 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002119/0.1274, allocations: 1.397 MB / 481.2 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.719e-05/0.1275, allocations: 86.47 kB / 481.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001836/0.1277, allocations: 115.9 kB / 481.4 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002608/0.1303, allocations: 1.335 MB / 482.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.204e-05/0.1303, allocations: 7.938 kB / 482.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/0.1304, allocations: 44 kB / 482.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.774e-05/0.1305, allocations: 32 kB / 482.8 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002119/0.1326, allocations: 1.003 MB / 483.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008729/0.1413, allocations: 5.624 MB / 489.4 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00285/0.1442, allocations: 2.111 MB / 491.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/0.1453, allocations: 386.3 kB / 491.9 MB, free: 9.711 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.738e-05/0.1453, allocations: 12.55 kB / 491.9 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008963/0.1462, allocations: 446.6 kB / 492.3 MB, free: 9.238 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.044e-06/0.1462, allocations: 0 / 492.3 MB, free: 9.238 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.00232/0.1485, allocations: 0.9746 MB / 493.3 MB, free: 8.262 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/0.1487, allocations: 166.8 kB / 493.5 MB, free: 8.062 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002502/0.1512, allocations: 1.473 MB / 495 MB, free: 6.574 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001415/0.1513, allocations: 37.7 kB / 495 MB, free: 6.531 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007018/0.152, allocations: 0.6686 MB / 495.7 MB, free: 5.855 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002767/0.1523, allocations: 206.3 kB / 495.9 MB, free: 5.652 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002759/0.1526, allocations: 142.6 kB / 496 MB, free: 5.508 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.1528, allocations: 334 kB / 496.3 MB, free: 5.176 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00071/0.1535, allocations: 325.8 kB / 496.6 MB, free: 4.855 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008554/0.1543, allocations: 0.5193 MB / 497.2 MB, free: 4.262 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004555/0.1589, allocations: 1.666 MB / 498.8 MB, free: 2.512 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.1589, allocations: 8 kB / 498.8 MB, free: 2.504 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002126/0.161, allocations: 1.025 MB / 499.9 MB, free: 1.465 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.347e-05/0.1611, allocations: 33.7 kB / 499.9 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.1611, allocations: 4 kB / 499.9 MB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.935e-05/0.1611, allocations: 15.94 kB / 499.9 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007065/0.1618, allocations: 159.7 kB / 0.4884 GB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.913e-05/0.1618, allocations: 11.98 kB / 0.4884 GB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006876/0.1625, allocations: 91.67 kB / 0.4885 GB, free: 1.148 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-05/0.1626, allocations: 28 kB / 0.4885 GB, free: 1.121 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.0009358/0.1635, allocations: 0.5352 MB / 0.489 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002573/0.1638, allocations: 119.2 kB / 0.4891 GB, free: 468 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/0.1655, allocations: 0.772 MB / 0.4899 GB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.1655, allocations: 4 kB / 0.4899 GB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.1655, allocations: 4 kB / 0.4899 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.1655, allocations: 3.984 kB / 0.4899 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004019/0.1696, allocations: 2.436 MB / 0.4923 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1696, allocations: 3.938 kB / 0.4923 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006388/0.1702, allocations: 119.9 kB / 0.4924 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.1702, allocations: 0 / 0.4924 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.346e-05/0.1703, allocations: 16 kB / 0.4924 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.087e-06/0.1703, allocations: 7.984 kB / 0.4924 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1703, allocations: 0 / 0.4924 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00224/0.1725, allocations: 1.223 MB / 0.4936 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003634/0.1729, allocations: 248.2 kB / 0.4938 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001307/0.173, allocations: 16 kB / 0.4938 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004467/0.1735, allocations: 31.97 kB / 0.4939 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.1736, allocations: 44.44 kB / 0.4939 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.1e-05/0.1736, allocations: 16 kB / 0.4939 GB, free: 11.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001597/0.1752, allocations: 1.044 MB / 0.495 GB, free: 10.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1752, allocations: 0 / 0.495 GB, free: 10.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009692/0.1762, allocations: 275.2 kB / 0.4952 GB, free: 10.09 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.00371/0.1799, allocations: 2.031 MB / 0.4972 GB, free: 8.035 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.1815, allocations: 0.7649 MB / 0.4979 GB, free: 7.262 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1815, allocations: 0 / 0.4979 GB, free: 7.262 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006201/0.1821, allocations: 316.3 kB / 0.4982 GB, free: 6.949 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/0.1835, allocations: 275.8 kB / 0.4985 GB, free: 6.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02001/0.2035, allocations: 11.95 MB / 0.5102 GB, free: 10.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/0.2047, allocations: 1.375 MB / 0.5115 GB, free: 9.016 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006829/0.2054, allocations: 187.8 kB / 0.5117 GB, free: 8.828 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008061/0.2062, allocations: 499.3 kB / 0.5122 GB, free: 8.34 MB / 398.1 MB Notification: Performance of SimCode: time 1.202e-06/0.2062, allocations: 0 / 0.5122 GB, free: 8.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2615/0.4677, allocations: 28.09 MB / 0.5396 GB, free: 83.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.72, allocations: 16.23 kB / 0.5396 GB, free: 83.2 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.932232438586652] Failed to read output from testmodel.py, exit status != 0: 11.86109111411497 11.883815825 11.759765671 Calling exit ...