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: 81.14 kB / 19.87 MB, free: 4.621 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.001374/0.001374, allocations: 173 kB / 23.28 MB, free: 1.223 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.09/1.09, allocations: 158.6 MB / 185.2 MB, free: 2.77 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.04942/0.04942, allocations: 5.565 MB / 243.1 MB, free: 9.359 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.743e-06/1.743e-06, allocations: 0 / 310.3 MB, free: 52.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.753e-05/1.928e-05, allocations: 6.797 kB / 310.3 MB, free: 52.94 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006131/0.006151, allocations: 6.397 MB / 316.7 MB, free: 48.48 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004532/0.01068, allocations: 4.455 MB / 321.1 MB, free: 44 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006015/0.01128, allocations: 35.81 kB / 321.1 MB, free: 43.96 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001832/0.01312, allocations: 1.014 MB / 322.2 MB, free: 42.95 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.000638/0.01375, allocations: 412.7 kB / 322.6 MB, free: 42.54 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.01477, allocations: 0.6982 MB / 323.3 MB, free: 41.84 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001586/0.01636, allocations: 2.264 MB / 325.5 MB, free: 39.59 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006923/0.01705, allocations: 0.6411 MB / 326.2 MB, free: 38.92 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007489/0.0178, allocations: 1.15 MB / 327.3 MB, free: 37.77 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004911/0.01829, allocations: 0.643 MB / 328 MB, free: 37.12 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001934/0.01848, allocations: 256 kB / 328.2 MB, free: 36.88 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000242/0.01873, allocations: 287.9 kB / 328.5 MB, free: 36.59 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002098/0.01894, allocations: 482.6 kB / 329 MB, free: 36.12 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000352/0.01929, allocations: 0.6002 MB / 329.6 MB, free: 35.52 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009434/0.02023, allocations: 1.437 MB / 331 MB, free: 34.08 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.02024, allocations: 0 / 331 MB, free: 34.08 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.02024, allocations: 0 / 331 MB, free: 34.08 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.02025, allocations: 4 kB / 331 MB, free: 34.07 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.001632/0.02188, allocations: 2.041 MB / 333 MB, free: 31.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.02192, allocations: 11.98 kB / 333.1 MB, free: 31.97 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001984/0.02212, allocations: 259.8 kB / 333.3 MB, free: 31.71 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007957/0.02291, allocations: 1.167 MB / 334.5 MB, free: 30.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.668e-05/0.02296, allocations: 86.47 kB / 334.6 MB, free: 30.42 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.225e-05/0.02305, allocations: 108.4 kB / 334.7 MB, free: 30.31 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007322/0.02378, allocations: 0.9575 MB / 335.6 MB, free: 29.22 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.02381, allocations: 7.875 kB / 335.6 MB, free: 29.21 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.11e-05/0.02386, allocations: 52 kB / 335.7 MB, free: 29.16 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.02387, allocations: 28 kB / 335.7 MB, free: 29.14 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003553/0.02422, allocations: 285.5 kB / 336 MB, free: 28.86 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002811/0.02704, allocations: 5.016 MB / 341 MB, free: 23.72 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005066/0.02754, allocations: 472.7 kB / 341.5 MB, free: 23.26 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/0.02775, allocations: 171.5 kB / 341.6 MB, free: 23.09 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.02778, allocations: 8.5 kB / 341.6 MB, free: 23.08 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.02804, allocations: 328.9 kB / 342 MB, free: 22.71 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 1.583e-06/0.02804, allocations: 0 / 342 MB, free: 22.71 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.0005329/0.02857, allocations: 448.4 kB / 342.4 MB, free: 22.27 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.02861, allocations: 162.7 kB / 342.6 MB, free: 22.07 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007807/0.02939, allocations: 1.101 MB / 343.7 MB, free: 20.95 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.02943, allocations: 41.7 kB / 343.7 MB, free: 20.91 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000351/0.02978, allocations: 0.7882 MB / 344.5 MB, free: 20.11 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.428e-05/0.02987, allocations: 210.2 kB / 344.7 MB, free: 19.9 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.03002, allocations: 148.2 kB / 344.8 MB, free: 19.75 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.75e-05/0.03009, allocations: 0.5159 MB / 345.4 MB, free: 19.22 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.03024, allocations: 115.6 kB / 345.5 MB, free: 19.11 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.03048, allocations: 487.2 kB / 345.9 MB, free: 18.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000532/0.03101, allocations: 0.5873 MB / 346.5 MB, free: 17.8 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.03102, allocations: 0 / 346.5 MB, free: 17.8 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0005908/0.03161, allocations: 0.6127 MB / 347.1 MB, free: 17.17 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.03163, allocations: 37.7 kB / 347.2 MB, free: 17.13 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.03164, allocations: 4 kB / 347.2 MB, free: 17.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.03166, allocations: 8.625 kB / 347.2 MB, free: 17.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003345/0.03199, allocations: 159.8 kB / 347.4 MB, free: 16.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.032, allocations: 11.94 kB / 347.4 MB, free: 16.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002048/0.0322, allocations: 83.5 kB / 347.4 MB, free: 16.87 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.03224, allocations: 20 kB / 347.5 MB, free: 16.85 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 (batteryCell.calculator.sOC.integrator.local_reset,batteryCell.calculator.q.absInt.local_reset,batteryCell.calculator.EquivalentCycles.integrator.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryCell.selfDischarge.qabs.absInt.local_reset,$PRE.pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$whenCondition1) * 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.000248/0.03248, allocations: 232 kB / 347.7 MB, free: 16.61 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.489e-05/0.03258, allocations: 131.2 kB / 347.8 MB, free: 16.48 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004414/0.03302, allocations: 392.6 kB / 348.2 MB, free: 16.1 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.03302, allocations: 4 kB / 348.2 MB, free: 16.09 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.03303, allocations: 0 / 348.2 MB, free: 16.09 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.03303, allocations: 7.984 kB / 348.2 MB, free: 16.09 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001282/0.03431, allocations: 1.531 MB / 349.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.03432, allocations: 0 / 349.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002719/0.03459, allocations: 115.8 kB / 349.9 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.279e-06/0.03459, allocations: 4 kB / 349.9 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.03462, allocations: 19.92 kB / 349.9 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.03463, allocations: 7.938 kB / 349.9 MB, free: 14.37 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.03463, allocations: 0 / 349.9 MB, free: 14.37 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005569/0.03518, allocations: 0.6283 MB / 350.5 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/0.0353, allocations: 155.1 kB / 350.7 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.096e-05/0.03538, allocations: 19.94 kB / 350.7 MB, free: 13.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.03555, allocations: 31.92 kB / 350.7 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.461e-05/0.03562, allocations: 44.42 kB / 350.8 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.978e-05/0.03564, allocations: 7.984 kB / 350.8 MB, free: 13.47 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003971/0.03604, allocations: 0.6085 MB / 351.4 MB, free: 12.85 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03604, allocations: 0 / 351.4 MB, free: 12.85 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003783/0.03642, allocations: 275.2 kB / 351.6 MB, free: 12.58 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.0007174/0.03714, allocations: 362 kB / 352 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004007/0.03754, allocations: 413.7 kB / 352.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.03754, allocations: 5.25 kB / 352.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.03768, allocations: 147.4 kB / 352.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/0.03825, allocations: 261 kB / 352.8 MB, free: 11.46 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002345/0.04059, allocations: 2.182 MB / 355 MB, free: 9.238 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.04085, allocations: 366.9 kB / 355.3 MB, free: 8.855 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003308/0.04119, allocations: 123.4 kB / 355.5 MB, free: 8.73 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004327/0.04162, allocations: 282.1 kB / 355.7 MB, free: 8.453 MB / 282.7 MB Notification: Performance of SimCode: time 5.51e-07/0.04162, allocations: 0 / 355.7 MB, free: 8.453 MB / 282.7 MB Notification: Performance of Templates: time 0.02119/0.06281, allocations: 15.1 MB / 370.8 MB, free: 9.324 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.65507426019758]