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.001478/0.001478, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 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.001341/0.001341, allocations: 173 kB / 23.49 MB, free: 1.059 MB / 18.57 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.043/1.043, allocations: 158.6 MB / 185.3 MB, free: 2.93 MB / 170.7 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.03436/0.03436, allocations: 5.581 MB / 243.1 MB, free: 9.582 MB / 234.7 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: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 309.8 MB, free: 53.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.365e-05/2.513e-05, allocations: 4.547 kB / 309.8 MB, free: 53.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006412/0.006437, allocations: 6.532 MB / 316.4 MB, free: 49.2 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005056/0.01149, allocations: 4.48 MB / 320.8 MB, free: 44.71 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001078/0.01257, allocations: 43.81 kB / 320.9 MB, free: 44.67 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001843/0.01441, allocations: 1.006 MB / 321.9 MB, free: 43.66 MB / 282.7 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.0008754/0.01529, allocations: 424.6 kB / 322.3 MB, free: 43.24 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008819/0.01617, allocations: 0.6903 MB / 323 MB, free: 42.55 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001633/0.0178, allocations: 2.263 MB / 325.3 MB, free: 40.3 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007089/0.01851, allocations: 0.6411 MB / 325.9 MB, free: 39.63 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008558/0.01937, allocations: 1.142 MB / 327 MB, free: 38.48 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005308/0.0199, allocations: 0.6391 MB / 327.7 MB, free: 37.84 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001779/0.02008, allocations: 259.9 kB / 327.9 MB, free: 37.59 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002176/0.02029, allocations: 288 kB / 328.2 MB, free: 37.31 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002001/0.0205, allocations: 478.6 kB / 328.7 MB, free: 36.84 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003726/0.02087, allocations: 0.5963 MB / 329.3 MB, free: 36.24 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.02199, allocations: 1.456 MB / 330.7 MB, free: 34.78 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.022, allocations: 0 / 330.7 MB, free: 34.78 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.022, allocations: 0 / 330.7 MB, free: 34.78 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.113e-05/0.02203, allocations: 0 / 330.7 MB, free: 34.78 MB / 282.7 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.002015/0.02405, allocations: 2.057 MB / 332.8 MB, free: 32.67 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.02409, allocations: 15.97 kB / 332.8 MB, free: 32.66 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002471/0.02433, allocations: 259.8 kB / 333.1 MB, free: 32.4 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.02534, allocations: 1.216 MB / 334.3 MB, free: 31.14 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.559e-05/0.0254, allocations: 90.47 kB / 334.4 MB, free: 31.05 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.809e-05/0.0255, allocations: 112.4 kB / 334.5 MB, free: 30.94 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.02655, allocations: 1.012 MB / 335.5 MB, free: 29.8 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.02657, allocations: 11.88 kB / 335.5 MB, free: 29.79 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.886e-05/0.02663, allocations: 44 kB / 335.5 MB, free: 29.74 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.02665, allocations: 28 kB / 335.6 MB, free: 29.71 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006744/0.02732, allocations: 371.5 kB / 335.9 MB, free: 29.35 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003722/0.03104, allocations: 5.292 MB / 341.2 MB, free: 23.93 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007179/0.03176, allocations: 0.4936 MB / 341.7 MB, free: 23.43 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002929/0.03205, allocations: 189 kB / 341.9 MB, free: 23.25 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.03209, allocations: 8.5 kB / 341.9 MB, free: 23.24 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003461/0.03243, allocations: 340.8 kB / 342.2 MB, free: 22.86 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.325e-06/0.03243, allocations: 3.984 kB / 342.2 MB, free: 22.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.0007201/0.03315, allocations: 0.4885 MB / 342.7 MB, free: 22.36 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.0332, allocations: 162.7 kB / 342.9 MB, free: 22.17 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009112/0.03412, allocations: 1.137 MB / 344 MB, free: 21.01 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.705e-05/0.03415, allocations: 41.7 kB / 344.1 MB, free: 20.96 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.0345, allocations: 0.7695 MB / 344.8 MB, free: 20.19 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.03461, allocations: 214.2 kB / 345 MB, free: 19.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.03475, allocations: 148.3 kB / 345.2 MB, free: 19.82 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.458e-05/0.03481, allocations: 0.5159 MB / 345.7 MB, free: 19.3 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.03501, allocations: 127.6 kB / 345.8 MB, free: 19.17 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000276/0.03528, allocations: 0.4914 MB / 346.3 MB, free: 18.54 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006315/0.03591, allocations: 0.6109 MB / 346.9 MB, free: 17.83 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.03592, allocations: 8 kB / 346.9 MB, free: 17.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0007053/0.03662, allocations: 0.6406 MB / 347.6 MB, free: 17.16 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.047e-05/0.03665, allocations: 33.7 kB / 347.6 MB, free: 17.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.03666, allocations: 8 kB / 347.6 MB, free: 17.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.03668, allocations: 8 kB / 347.6 MB, free: 17.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003584/0.03704, allocations: 159.7 kB / 347.8 MB, free: 16.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.03705, allocations: 8 kB / 347.8 MB, free: 16.94 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.0373, allocations: 83.59 kB / 347.9 MB, free: 16.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.406e-05/0.03734, allocations: 35.94 kB / 347.9 MB, free: 16.82 MB / 282.7 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.0002563/0.03759, allocations: 224.7 kB / 348.1 MB, free: 16.6 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.419e-05/0.03769, allocations: 131.2 kB / 348.3 MB, free: 16.47 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005385/0.03823, allocations: 424.6 kB / 348.7 MB, free: 16.05 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.03823, allocations: 8 kB / 348.7 MB, free: 16.04 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.03824, allocations: 0 / 348.7 MB, free: 16.04 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.03824, allocations: 3.984 kB / 348.7 MB, free: 16.04 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001638/0.03988, allocations: 1.817 MB / 350.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.03988, allocations: 4 kB / 350.5 MB, free: 14.17 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003078/0.04019, allocations: 115.8 kB / 350.6 MB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.0402, allocations: 4 kB / 350.6 MB, free: 14.05 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.512e-05/0.04023, allocations: 12 kB / 350.6 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.04024, allocations: 4 kB / 350.6 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.04024, allocations: 0 / 350.6 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000708/0.04094, allocations: 0.6947 MB / 351.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.04108, allocations: 159.1 kB / 351.5 MB, free: 13.17 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.77e-05/0.04117, allocations: 19.98 kB / 351.5 MB, free: 13.15 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001911/0.04136, allocations: 27.98 kB / 351.5 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.911e-05/0.04145, allocations: 36.42 kB / 351.6 MB, free: 13.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.351e-05/0.04147, allocations: 19.98 kB / 351.6 MB, free: 13.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006209/0.04209, allocations: 0.6556 MB / 352.2 MB, free: 12.4 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04209, allocations: 0 / 352.2 MB, free: 12.4 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005264/0.04262, allocations: 279.2 kB / 352.5 MB, free: 12.13 MB / 282.7 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.0007686/0.04339, allocations: 359.2 kB / 352.9 MB, free: 11.85 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005836/0.04397, allocations: 442.8 kB / 353.3 MB, free: 11.39 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.04397, allocations: 7.938 kB / 353.3 MB, free: 11.39 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002188/0.04419, allocations: 167.4 kB / 353.5 MB, free: 11.22 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006916/0.04489, allocations: 259.4 kB / 353.7 MB, free: 10.97 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002727/0.04761, allocations: 2.205 MB / 355.9 MB, free: 8.723 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.04783, allocations: 366.9 kB / 356.3 MB, free: 8.34 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003582/0.04819, allocations: 143.3 kB / 356.4 MB, free: 8.195 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.04833, allocations: 68.5 kB / 356.5 MB, free: 8.129 MB / 282.7 MB Notification: Performance of SimCode: time 1.423e-06/0.04834, allocations: 0 / 356.5 MB, free: 8.129 MB / 282.7 MB Notification: Performance of Templates: time 0.0175/0.06583, allocations: 14.04 MB / 370.5 MB, free: 10.05 MB / 298.7 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=240 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.3401707131415606]