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.001423/0.001423, allocations: 100.4 kB / 19.7 MB, free: 2.125 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.001569/0.001569, allocations: 213.7 kB / 22.99 MB, free: 4.949 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.502/1.502, allocations: 207.7 MB / 233.8 MB, free: 9.797 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.06072/0.06072, allocations: 7.141 MB / 293.2 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.002359/0.002359, allocations: 72.73 kB / 410.3 MB, free: 47.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09909/0.1014, allocations: 50.74 MB / 461 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.01016/0.1116, allocations: 6.019 MB / 467 MB, free: 7.609 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008273/0.1199, allocations: 4.214 MB / 471.3 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001179/0.1211, allocations: 35.81 kB / 471.3 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002629/0.1237, allocations: 1.007 MB / 472.3 MB, free: 2.328 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.001411/0.1251, allocations: 397 kB / 472.7 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001444/0.1265, allocations: 0.6946 MB / 473.4 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00296/0.1295, allocations: 2.225 MB / 475.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001146/0.1307, allocations: 0.6362 MB / 476.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009179/0.1316, allocations: 0.7437 MB / 477 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009667/0.1325, allocations: 0.7077 MB / 477.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000313/0.1328, allocations: 264 kB / 478 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004275/0.1333, allocations: 292 kB / 478.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004325/0.1337, allocations: 470.7 kB / 478.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007476/0.1345, allocations: 0.7039 MB / 479.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003497/0.138, allocations: 3.076 MB / 482.5 MB, free: 8.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.138, allocations: 3.938 kB / 482.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.138, allocations: 0 / 482.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.321e-05/0.138, allocations: 0 / 482.5 MB, free: 8.082 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.003811/0.1418, allocations: 1.913 MB / 484.4 MB, free: 6.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.1418, allocations: 19.92 kB / 484.4 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003597/0.1422, allocations: 171.9 kB / 484.6 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002293/0.1445, allocations: 1.339 MB / 485.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.391e-05/0.1446, allocations: 90.41 kB / 486 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001827/0.1448, allocations: 108.1 kB / 486.1 MB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002639/0.1474, allocations: 1.456 MB / 487.6 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.893e-05/0.1474, allocations: 0 / 487.6 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.1476, allocations: 48 kB / 487.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.931e-05/0.1476, allocations: 28 kB / 487.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.1495, allocations: 1.007 MB / 488.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007659/0.1572, allocations: 4.919 MB / 493.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.1589, allocations: 0.8213 MB / 494.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008125/0.1597, allocations: 379.9 kB / 494.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.433e-05/0.1598, allocations: 8.5 kB / 494.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001039/0.1608, allocations: 0.5034 MB / 495.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.525e-06/0.1608, allocations: 0 / 495.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.002156/0.163, allocations: 0.9688 MB / 496.2 MB, free: 9.961 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.1631, allocations: 166.7 kB / 496.4 MB, free: 9.758 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002213/0.1653, allocations: 1.438 MB / 497.8 MB, free: 8.301 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.302e-05/0.1654, allocations: 41.7 kB / 497.9 MB, free: 8.254 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007337/0.1661, allocations: 0.6644 MB / 498.6 MB, free: 7.582 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000247/0.1664, allocations: 210.2 kB / 498.8 MB, free: 7.375 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/0.1666, allocations: 138.6 kB / 498.9 MB, free: 7.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.1668, allocations: 337.9 kB / 499.2 MB, free: 6.895 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006523/0.1675, allocations: 351.5 kB / 499.6 MB, free: 6.547 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008964/0.1684, allocations: 0.641 MB / 0.4885 GB, free: 5.797 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00451/0.1729, allocations: 1.674 MB / 0.4901 GB, free: 4.039 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.1729, allocations: 3.938 kB / 0.4901 GB, free: 4.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0022/0.1751, allocations: 1.047 MB / 0.4911 GB, free: 2.969 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.996e-05/0.1751, allocations: 37.8 kB / 0.4912 GB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.1752, allocations: 4 kB / 0.4912 GB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.697e-05/0.1752, allocations: 12 kB / 0.4912 GB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006959/0.1759, allocations: 155.8 kB / 0.4913 GB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.149e-05/0.1759, allocations: 15.92 kB / 0.4914 GB, free: 2.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007351/0.1766, allocations: 91.42 kB / 0.4914 GB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.289e-05/0.1767, allocations: 28 kB / 0.4915 GB, free: 2.625 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.001096/0.1778, allocations: 0.5391 MB / 0.492 GB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002089/0.178, allocations: 111.2 kB / 0.4921 GB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.1796, allocations: 0.7622 MB / 0.4929 GB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.1796, allocations: 4 kB / 0.4929 GB, free: 1.195 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.1796, allocations: 3.938 kB / 0.4929 GB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.1796, allocations: 3.984 kB / 0.4929 GB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00369/0.1833, allocations: 2.054 MB / 0.4949 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.1833, allocations: 3.938 kB / 0.4949 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005893/0.1839, allocations: 115.9 kB / 0.495 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.568e-06/0.1839, allocations: 4 kB / 0.495 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.487e-05/0.184, allocations: 16 kB / 0.495 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.295e-06/0.184, allocations: 11.98 kB / 0.495 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.184, allocations: 0 / 0.495 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002146/0.1861, allocations: 1.205 MB / 0.4962 GB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003649/0.1865, allocations: 171.1 kB / 0.4964 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001303/0.1866, allocations: 19.94 kB / 0.4964 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004206/0.1871, allocations: 35.97 kB / 0.4964 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.1872, allocations: 40.42 kB / 0.4964 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.503e-05/0.1872, allocations: 15.98 kB / 0.4965 GB, free: 13.44 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00159/0.1888, allocations: 0.9993 MB / 0.4974 GB, free: 12.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1888, allocations: 0 / 0.4974 GB, free: 12.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009031/0.1897, allocations: 283.1 kB / 0.4977 GB, free: 12.16 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.001518/0.1912, allocations: 394.8 kB / 0.4981 GB, free: 11.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001568/0.1928, allocations: 0.7823 MB / 0.4988 GB, free: 10.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.1928, allocations: 8 kB / 0.4989 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005941/0.1934, allocations: 314.7 kB / 0.4992 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.001113/0.1945, allocations: 243.8 kB / 0.4994 GB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005161/0.1997, allocations: 2.595 MB / 0.5019 GB, free: 7.773 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.2008, allocations: 0.744 MB / 0.5026 GB, free: 7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003641/0.2011, allocations: 75.42 kB / 0.5027 GB, free: 6.926 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.2011, allocations: 0 / 0.5027 GB, free: 6.926 MB / 382.1 MB Notification: Performance of Templates: time 0.03848/0.2396, allocations: 18.59 MB / 0.5209 GB, free: 4.297 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: 9.207268483936787] Failed to read output from testmodel.py, exit status != 0: 0.25121323810890317 0.482102828 0.341336557 Calling exit ...