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.001196/0.001196, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001329/0.001329, allocations: 220.2 kB / 23.01 MB, free: 4.609 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.275/1.275, allocations: 207.6 MB / 233.8 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 179] 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.05042/0.05042, allocations: 7.14 MB / 293.2 MB, free: 14.68 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.002083/0.002083, allocations: 68.12 kB / 410.3 MB, free: 47.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06775/0.06983, allocations: 50.75 MB / 461 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008651/0.07848, allocations: 6.867 MB / 467.9 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006555/0.08504, allocations: 4.549 MB / 472.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006452/0.08568, allocations: 39.81 kB / 472.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002158/0.08784, allocations: 1.053 MB / 473.6 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.0008454/0.08868, allocations: 401 kB / 473.9 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.08975, allocations: 0.6868 MB / 474.6 MB, free: 200 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002447/0.0922, allocations: 2.233 MB / 476.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009855/0.09319, allocations: 0.648 MB / 477.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008216/0.09401, allocations: 0.7436 MB / 478.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008028/0.09481, allocations: 0.7351 MB / 479 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002802/0.09509, allocations: 260 kB / 479.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003646/0.09545, allocations: 299.9 kB / 479.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000414/0.09587, allocations: 470.7 kB / 480 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008389/0.09671, allocations: 0.9334 MB / 480.9 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002966/0.09967, allocations: 3.056 MB / 484 MB, free: 6.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.09968, allocations: 3.938 kB / 484 MB, free: 6.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09968, allocations: 0 / 484 MB, free: 6.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.983e-05/0.09971, allocations: 0 / 484 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.003392/0.1031, allocations: 1.925 MB / 485.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.1031, allocations: 11.98 kB / 485.9 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002557/0.1034, allocations: 175.9 kB / 486.1 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001921/0.1053, allocations: 1.339 MB / 487.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-05/0.1054, allocations: 86.47 kB / 487.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.1055, allocations: 108.1 kB / 487.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002231/0.1078, allocations: 1.335 MB / 489 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.776e-05/0.1078, allocations: 4 kB / 489 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.509e-05/0.1079, allocations: 40 kB / 489 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/0.1079, allocations: 28 kB / 489 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001826/0.1098, allocations: 1.003 MB / 490 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007097/0.1169, allocations: 5.566 MB / 495.6 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.1184, allocations: 0.8139 MB / 496.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007391/0.1191, allocations: 383.9 kB / 496.8 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.663e-05/0.1192, allocations: 16.44 kB / 496.8 MB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000764/0.1199, allocations: 433.7 kB / 497.2 MB, free: 9.215 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.174e-06/0.1199, allocations: 3.938 kB / 497.2 MB, free: 9.211 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.001844/0.1218, allocations: 0.9727 MB / 498.2 MB, free: 8.234 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.1219, allocations: 174.6 kB / 498.4 MB, free: 8.023 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001936/0.1238, allocations: 1.477 MB / 499.9 MB, free: 6.531 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.817e-05/0.1239, allocations: 41.7 kB / 499.9 MB, free: 6.484 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006007/0.1245, allocations: 0.6576 MB / 0.4888 GB, free: 5.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/0.1247, allocations: 214.2 kB / 0.489 GB, free: 5.609 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002359/0.1249, allocations: 138.6 kB / 0.4892 GB, free: 5.465 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1251, allocations: 334 kB / 0.4895 GB, free: 5.133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006099/0.1257, allocations: 325.8 kB / 0.4898 GB, free: 4.816 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007567/0.1264, allocations: 0.5194 MB / 0.4903 GB, free: 4.223 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003885/0.1303, allocations: 1.662 MB / 0.4919 GB, free: 2.477 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.1303, allocations: 4 kB / 0.4919 GB, free: 2.473 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001774/0.1321, allocations: 1.025 MB / 0.4929 GB, free: 1.434 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.9e-05/0.1322, allocations: 33.7 kB / 0.493 GB, free: 1.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.1322, allocations: 4 kB / 0.493 GB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.1322, allocations: 8 kB / 0.493 GB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006502/0.1328, allocations: 164.2 kB / 0.4931 GB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.689e-05/0.1329, allocations: 23.92 kB / 0.4931 GB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/0.1334, allocations: 87.48 kB / 0.4932 GB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-05/0.1334, allocations: 31.94 kB / 0.4933 GB, free: 1.082 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.0007655/0.1342, allocations: 0.5236 MB / 0.4938 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.1344, allocations: 119.2 kB / 0.4939 GB, free: 444 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001417/0.1358, allocations: 0.7743 MB / 0.4946 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.1358, allocations: 11.94 kB / 0.4947 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.1358, allocations: 112 / 0.4947 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.1358, allocations: 3.938 kB / 0.4947 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003416/0.1392, allocations: 2.406 MB / 0.497 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1392, allocations: 0 / 0.497 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005828/0.1398, allocations: 115.8 kB / 0.4971 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.1398, allocations: 4 kB / 0.4971 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.914e-05/0.1398, allocations: 19.98 kB / 0.4971 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.1398, allocations: 0 / 0.4971 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.1399, allocations: 4 kB / 0.4971 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/0.1418, allocations: 1.213 MB / 0.4983 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002985/0.1421, allocations: 179 kB / 0.4985 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.1422, allocations: 19.98 kB / 0.4985 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000404/0.1426, allocations: 31.97 kB / 0.4986 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.1427, allocations: 52.41 kB / 0.4986 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.833e-05/0.1427, allocations: 15.94 kB / 0.4986 GB, free: 11.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001426/0.1442, allocations: 1.04 MB / 0.4996 GB, free: 10.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1442, allocations: 0 / 0.4996 GB, free: 10.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007058/0.1449, allocations: 271.2 kB / 0.4999 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.001288/0.1461, allocations: 382.8 kB / 0.5003 GB, free: 9.805 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.1475, allocations: 0.7573 MB / 0.501 GB, free: 9.039 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1475, allocations: 0 / 0.501 GB, free: 9.039 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005523/0.1481, allocations: 310.7 kB / 0.5013 GB, free: 8.738 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.1491, allocations: 275.9 kB / 0.5016 GB, free: 8.473 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00409/0.1532, allocations: 2.61 MB / 0.5041 GB, free: 5.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/0.1542, allocations: 1.33 MB / 0.5054 GB, free: 4.465 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.1545, allocations: 75.42 kB / 0.5055 GB, free: 4.391 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1545, allocations: 3.938 kB / 0.5055 GB, free: 4.387 MB / 382.1 MB Notification: Performance of Templates: time 0.02519/0.1797, allocations: 18.58 MB / 0.5236 GB, free: 1.77 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: 7.897988825105131] Failed to read output from testmodel.py, exit status != 0: 0.18746285792440176 0.33474934 0.23275859200000001 Calling exit ...