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.001219/0.001219, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001857/0.001857, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.632/1.632, allocations: 207.6 MB / 233 MB, free: 10.01 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.061/0.061, allocations: 7.141 MB / 292.4 MB, free: 14.77 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: translateModel(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14100,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") translateModel(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14100,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") [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.002405/0.002405, allocations: 72.08 kB / 409.5 MB, free: 47.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0819/0.08431, allocations: 50.75 MB / 460.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.009824/0.09413, allocations: 6.863 MB / 467.2 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007922/0.1021, allocations: 4.553 MB / 471.7 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001946/0.104, allocations: 39.81 kB / 471.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003571/0.1076, allocations: 1.054 MB / 472.8 MB, free: 1.277 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.001827/0.1094, allocations: 397 kB / 473.2 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00204/0.1114, allocations: 0.6946 MB / 473.9 MB, free: 196 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003575/0.115, allocations: 2.229 MB / 476.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001452/0.1165, allocations: 0.648 MB / 476.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001207/0.1177, allocations: 0.7475 MB / 477.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001242/0.1189, allocations: 0.7351 MB / 478.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005294/0.1194, allocations: 256 kB / 478.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006741/0.1201, allocations: 292 kB / 478.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005709/0.1207, allocations: 474.6 kB / 479.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001164/0.1219, allocations: 0.9258 MB / 480.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003405/0.1253, allocations: 3.064 MB / 483.2 MB, free: 6.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1253, allocations: 7.938 kB / 483.2 MB, free: 6.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1253, allocations: 0 / 483.2 MB, free: 6.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.941e-05/0.1253, allocations: 0 / 483.2 MB, free: 6.773 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.003802/0.1291, allocations: 1.921 MB / 485.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.1291, allocations: 11.98 kB / 485.2 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000326/0.1295, allocations: 175.9 kB / 485.3 MB, free: 4.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002315/0.1318, allocations: 1.335 MB / 486.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.1319, allocations: 94.47 kB / 486.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001914/0.1321, allocations: 108.1 kB / 486.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.1346, allocations: 1.331 MB / 488.2 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.067e-05/0.1346, allocations: 0 / 488.2 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.1347, allocations: 44 kB / 488.3 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.873e-05/0.1348, allocations: 28 kB / 488.3 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00205/0.1368, allocations: 1.007 MB / 489.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008996/0.1458, allocations: 5.562 MB / 494.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001692/0.1475, allocations: 0.8178 MB / 495.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008008/0.1483, allocations: 383.9 kB / 496 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.01e-05/0.1483, allocations: 9.125 kB / 496.1 MB, free: 9.668 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008582/0.1492, allocations: 437.8 kB / 496.5 MB, free: 9.219 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.285e-06/0.1492, allocations: 3.938 kB / 496.5 MB, free: 9.215 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.002098/0.1513, allocations: 0.9805 MB / 497.5 MB, free: 8.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.1514, allocations: 166.7 kB / 497.6 MB, free: 8.027 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002191/0.1536, allocations: 1.477 MB / 499.1 MB, free: 6.535 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.451e-05/0.1537, allocations: 45.64 kB / 499.1 MB, free: 6.484 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006539/0.1543, allocations: 0.6492 MB / 499.8 MB, free: 5.828 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002173/0.1546, allocations: 218.2 kB / 0.4883 GB, free: 5.613 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000257/0.1548, allocations: 142.6 kB / 0.4884 GB, free: 5.465 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.155, allocations: 334 kB / 0.4887 GB, free: 5.133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006637/0.1557, allocations: 321.8 kB / 0.4891 GB, free: 4.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008469/0.1565, allocations: 0.5155 MB / 0.4896 GB, free: 4.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004397/0.1609, allocations: 1.663 MB / 0.4912 GB, free: 2.484 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.1609, allocations: 0 / 0.4912 GB, free: 2.484 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001992/0.1629, allocations: 1.026 MB / 0.4922 GB, free: 1.445 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.417e-05/0.1629, allocations: 37.8 kB / 0.4922 GB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.1629, allocations: 12 kB / 0.4922 GB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.867e-05/0.163, allocations: 8 kB / 0.4922 GB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007067/0.1637, allocations: 159.7 kB / 0.4924 GB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.477e-05/0.1637, allocations: 19.86 kB / 0.4924 GB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005869/0.1643, allocations: 87.48 kB / 0.4925 GB, free: 1.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.38e-05/0.1644, allocations: 32 kB / 0.4925 GB, free: 1.09 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.0008786/0.1652, allocations: 0.5274 MB / 0.493 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.1654, allocations: 123.2 kB / 0.4932 GB, free: 444 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001611/0.167, allocations: 0.7665 MB / 0.4939 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.167, allocations: 11.94 kB / 0.4939 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.167, allocations: 0 / 0.4939 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.167, allocations: 7.984 kB / 0.4939 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003811/0.1709, allocations: 2.399 MB / 0.4963 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.1709, allocations: 0 / 0.4963 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006055/0.1715, allocations: 119.8 kB / 0.4964 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.1715, allocations: 7.938 kB / 0.4964 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.484e-05/0.1715, allocations: 23.98 kB / 0.4964 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.1715, allocations: 0 / 0.4964 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1715, allocations: 0 / 0.4964 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002117/0.1736, allocations: 1.213 MB / 0.4976 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003175/0.174, allocations: 175.1 kB / 0.4978 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001406/0.1741, allocations: 27.98 kB / 0.4978 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004384/0.1745, allocations: 31.97 kB / 0.4978 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.1747, allocations: 44.42 kB / 0.4979 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.136e-05/0.1747, allocations: 19.88 kB / 0.4979 GB, free: 11.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001495/0.1762, allocations: 1.036 MB / 0.4989 GB, free: 10.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1762, allocations: 0 / 0.4989 GB, free: 10.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008342/0.177, allocations: 283.2 kB / 0.4992 GB, free: 10.19 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.001485/0.1785, allocations: 363 kB / 0.4995 GB, free: 9.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.1801, allocations: 0.7561 MB / 0.5002 GB, free: 9.055 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.1801, allocations: 5.25 kB / 0.5002 GB, free: 9.051 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006054/0.1807, allocations: 314.7 kB / 0.5005 GB, free: 8.746 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.1819, allocations: 279.9 kB / 0.5008 GB, free: 8.477 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004727/0.1866, allocations: 2.674 MB / 0.5034 GB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001236/0.1879, allocations: 1.379 MB / 0.5048 GB, free: 4.359 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005878/0.1884, allocations: 179.8 kB / 0.5049 GB, free: 4.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.1887, allocations: 67.44 kB / 0.505 GB, free: 4.113 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.1887, allocations: 0 / 0.505 GB, free: 4.113 MB / 382.1 MB Notification: Performance of Templates: time 0.02991/0.2186, allocations: 15.18 MB / 0.5198 GB, free: 4.906 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.makefile [Timeout 660] (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 & ./ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent -abortSlowSimulation -alarm=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.637213130947202] Failed to read output from testmodel.py, exit status != 0: 0.22766554704867303 0.468327806 0.34009717100000003 Calling exit ...