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.001362/0.001362, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001532/0.001532, allocations: 214.4 kB / 22.24 MB, free: 5.262 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.406/1.406, allocations: 207.7 MB / 233.1 MB, free: 9.777 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.08928/0.08928, allocations: 7.141 MB / 292.5 MB, free: 14.48 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.002212/0.002212, allocations: 74.66 kB / 409.5 MB, free: 47.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07181/0.07402, allocations: 50.75 MB / 460.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008886/0.08291, allocations: 6.007 MB / 466.3 MB, free: 7.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007625/0.09053, allocations: 4.218 MB / 470.5 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.09163, allocations: 39.81 kB / 470.6 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002928/0.09456, allocations: 1.003 MB / 471.6 MB, free: 2.332 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.001434/0.09599, allocations: 405 kB / 471.9 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001421/0.09741, allocations: 0.6869 MB / 472.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003113/0.1005, allocations: 2.217 MB / 474.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.1017, allocations: 0.6401 MB / 475.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001019/0.1027, allocations: 0.7359 MB / 476.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001047/0.1038, allocations: 0.7155 MB / 476.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003651/0.1041, allocations: 260 kB / 477.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004451/0.1046, allocations: 288 kB / 477.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004737/0.1051, allocations: 474.7 kB / 477.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008824/0.106, allocations: 0.7039 MB / 478.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003866/0.1098, allocations: 3.072 MB / 481.7 MB, free: 8.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.1098, allocations: 3.984 kB / 481.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1098, allocations: 0 / 481.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.153e-05/0.1099, allocations: 4 kB / 481.7 MB, free: 8.09 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.004247/0.1141, allocations: 1.917 MB / 483.6 MB, free: 6.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.1142, allocations: 11.98 kB / 483.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003975/0.1146, allocations: 175.9 kB / 483.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002513/0.1171, allocations: 1.339 MB / 485.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.163e-05/0.1172, allocations: 82.47 kB / 485.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001979/0.1174, allocations: 112.1 kB / 485.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002585/0.12, allocations: 1.468 MB / 486.8 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.243e-05/0.12, allocations: 7.875 kB / 486.8 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.1201, allocations: 48 kB / 486.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.348e-05/0.1202, allocations: 24 kB / 486.9 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002075/0.1222, allocations: 1.003 MB / 487.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007786/0.13, allocations: 4.915 MB / 492.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00173/0.1318, allocations: 0.8174 MB / 493.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000846/0.1326, allocations: 383.9 kB / 494 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.466e-05/0.1327, allocations: 16.48 kB / 494 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009177/0.1336, allocations: 0.4988 MB / 494.5 MB, free: 10.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.465e-06/0.1336, allocations: 0 / 494.5 MB, free: 10.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.00221/0.1358, allocations: 0.9766 MB / 495.5 MB, free: 9.957 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.1359, allocations: 162.7 kB / 495.7 MB, free: 9.758 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002325/0.1382, allocations: 1.434 MB / 497.1 MB, free: 8.305 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001103/0.1383, allocations: 37.7 kB / 497.1 MB, free: 8.262 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007383/0.1391, allocations: 0.665 MB / 497.8 MB, free: 7.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002519/0.1393, allocations: 210.2 kB / 498 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002683/0.1396, allocations: 142.6 kB / 498.1 MB, free: 7.234 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.1398, allocations: 333.9 kB / 498.5 MB, free: 6.902 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007064/0.1405, allocations: 355.6 kB / 498.8 MB, free: 6.551 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009391/0.1414, allocations: 0.6449 MB / 499.5 MB, free: 5.797 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004352/0.1458, allocations: 1.666 MB / 0.4894 GB, free: 4.047 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.1458, allocations: 4 kB / 0.4894 GB, free: 4.043 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002128/0.1479, allocations: 1.047 MB / 0.4904 GB, free: 2.977 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.178e-05/0.1479, allocations: 41.58 kB / 0.4904 GB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.148, allocations: 4 kB / 0.4905 GB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.611e-05/0.148, allocations: 8 kB / 0.4905 GB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006972/0.1487, allocations: 163.8 kB / 0.4906 GB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.297e-05/0.1487, allocations: 16.33 kB / 0.4906 GB, free: 2.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006275/0.1493, allocations: 91.42 kB / 0.4907 GB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.257e-05/0.1494, allocations: 32 kB / 0.4908 GB, free: 2.621 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.0008961/0.1503, allocations: 0.5312 MB / 0.4913 GB, free: 2.082 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.1505, allocations: 115.3 kB / 0.4914 GB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.1522, allocations: 0.7661 MB / 0.4921 GB, free: 1.195 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.1522, allocations: 8 kB / 0.4921 GB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1522, allocations: 3.938 kB / 0.4921 GB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.1522, allocations: 3.984 kB / 0.4921 GB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00365/0.1558, allocations: 2.047 MB / 0.4941 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.1558, allocations: 0 / 0.4941 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006174/0.1565, allocations: 111.9 kB / 0.4942 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.797e-06/0.1565, allocations: 4 kB / 0.4943 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.443e-05/0.1565, allocations: 19.98 kB / 0.4943 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.1565, allocations: 4 kB / 0.4943 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1565, allocations: 0 / 0.4943 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/0.1587, allocations: 1.213 MB / 0.4955 GB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003422/0.1591, allocations: 167.1 kB / 0.4956 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001319/0.1592, allocations: 20 kB / 0.4956 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004408/0.1596, allocations: 31.97 kB / 0.4957 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.1598, allocations: 44.42 kB / 0.4957 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.1598, allocations: 11.98 kB / 0.4957 GB, free: 13.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001512/0.1613, allocations: 0.9954 MB / 0.4967 GB, free: 12.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1613, allocations: 0 / 0.4967 GB, free: 12.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009278/0.1622, allocations: 283.1 kB / 0.497 GB, free: 12.17 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.00154/0.1638, allocations: 398.8 kB / 0.4973 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.1654, allocations: 0.7931 MB / 0.4981 GB, free: 10.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.1654, allocations: 0 / 0.4981 GB, free: 10.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006154/0.166, allocations: 318.7 kB / 0.4984 GB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.1672, allocations: 252.7 kB / 0.4987 GB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004589/0.1718, allocations: 2.674 MB / 0.5013 GB, free: 7.695 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009347/0.1728, allocations: 0.7818 MB / 0.502 GB, free: 6.883 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006566/0.1734, allocations: 179.3 kB / 0.5022 GB, free: 6.703 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000231/0.1737, allocations: 71.42 kB / 0.5023 GB, free: 6.633 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1737, allocations: 0 / 0.5023 GB, free: 6.633 MB / 382.1 MB Notification: Performance of Templates: time 0.02822/0.2019, allocations: 15.42 MB / 0.5173 GB, free: 7.172 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.195109222084284] Failed to read output from testmodel.py, exit status != 0: 0.2106776311993599 0.39351152699999997 0.28068950299999995 Calling exit ...