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.0009448/0.0009448, allocations: 92.22 kB / 19.65 MB, free: 280 kB / 13.93 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.0009796/0.0009796, allocations: 165 kB / 23.02 MB, free: 1.551 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 0.9496/0.9496, allocations: 158.6 MB / 184.9 MB, free: 2.496 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.03401/0.03401, allocations: 5.572 MB / 242.8 MB, free: 9.504 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.382e-06/1.382e-06, allocations: 0 / 309.8 MB, free: 53.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.875e-05/2.013e-05, allocations: 5.531 kB / 309.8 MB, free: 53.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.005962/0.005982, allocations: 6.572 MB / 316.4 MB, free: 48.84 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005073/0.01106, allocations: 4.502 MB / 320.9 MB, free: 44.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007548/0.01181, allocations: 35.81 kB / 320.9 MB, free: 44.28 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001675/0.01349, allocations: 1.014 MB / 321.9 MB, free: 43.26 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.0007399/0.01422, allocations: 412.7 kB / 322.3 MB, free: 42.86 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007973/0.01502, allocations: 0.6945 MB / 323 MB, free: 42.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001627/0.01665, allocations: 2.267 MB / 325.3 MB, free: 39.91 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006831/0.01733, allocations: 0.6411 MB / 325.9 MB, free: 39.24 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008158/0.01815, allocations: 1.139 MB / 327.1 MB, free: 38.1 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000486/0.01863, allocations: 0.6391 MB / 327.7 MB, free: 37.46 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000189/0.01882, allocations: 260 kB / 328 MB, free: 37.2 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002353/0.01906, allocations: 295.8 kB / 328.3 MB, free: 36.91 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000188/0.01925, allocations: 482.7 kB / 328.7 MB, free: 36.44 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000367/0.01961, allocations: 0.5924 MB / 329.3 MB, free: 35.85 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009666/0.02058, allocations: 1.449 MB / 330.8 MB, free: 34.39 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.02058, allocations: 4 kB / 330.8 MB, free: 34.39 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.021e-06/0.02058, allocations: 0 / 330.8 MB, free: 34.39 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.007e-05/0.0206, allocations: 0 / 330.8 MB, free: 34.39 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.001917/0.02252, allocations: 2.057 MB / 332.8 MB, free: 32.28 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.02256, allocations: 11.98 kB / 332.8 MB, free: 32.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002191/0.02278, allocations: 267.8 kB / 333.1 MB, free: 32.01 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009717/0.02375, allocations: 1.216 MB / 334.3 MB, free: 30.75 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.016e-05/0.0238, allocations: 90.45 kB / 334.4 MB, free: 30.66 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.967e-05/0.0239, allocations: 108.4 kB / 334.5 MB, free: 30.55 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.02493, allocations: 1.016 MB / 335.5 MB, free: 29.4 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.02495, allocations: 3.938 kB / 335.5 MB, free: 29.4 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.713e-05/0.02501, allocations: 48 kB / 335.6 MB, free: 29.35 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.02503, allocations: 24 kB / 335.6 MB, free: 29.33 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006336/0.02566, allocations: 375.5 kB / 336 MB, free: 28.96 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003353/0.02901, allocations: 5.29 MB / 341.3 MB, free: 23.54 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006867/0.0297, allocations: 0.5014 MB / 341.8 MB, free: 23.04 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000293/0.02999, allocations: 187.6 kB / 341.9 MB, free: 22.85 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.793e-05/0.03003, allocations: 8.5 kB / 342 MB, free: 22.84 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003155/0.03035, allocations: 337.7 kB / 342.3 MB, free: 22.47 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.134e-06/0.03035, allocations: 4 kB / 342.3 MB, free: 22.46 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.0007157/0.03106, allocations: 0.4885 MB / 342.8 MB, free: 21.97 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.0311, allocations: 166.7 kB / 342.9 MB, free: 21.77 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009132/0.03202, allocations: 1.133 MB / 344.1 MB, free: 20.62 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.03205, allocations: 37.7 kB / 344.1 MB, free: 20.57 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003288/0.03238, allocations: 0.7728 MB / 344.9 MB, free: 19.79 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.017e-05/0.03247, allocations: 210.2 kB / 345.1 MB, free: 19.59 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001401/0.03261, allocations: 156.3 kB / 345.2 MB, free: 19.42 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.832e-05/0.03267, allocations: 0.5042 MB / 345.7 MB, free: 18.91 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.03287, allocations: 135.6 kB / 345.9 MB, free: 18.77 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003084/0.03318, allocations: 499.2 kB / 346.4 MB, free: 18.15 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000623/0.03381, allocations: 0.6147 MB / 347 MB, free: 17.43 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.03381, allocations: 4 kB / 347 MB, free: 17.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.000723/0.03453, allocations: 0.6368 MB / 347.6 MB, free: 16.77 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.03456, allocations: 37.7 kB / 347.7 MB, free: 16.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.03457, allocations: 4 kB / 347.7 MB, free: 16.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.03459, allocations: 8 kB / 347.7 MB, free: 16.72 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004325/0.03502, allocations: 163.7 kB / 347.8 MB, free: 16.56 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.03503, allocations: 11.98 kB / 347.8 MB, free: 16.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.03526, allocations: 79.5 kB / 347.9 MB, free: 16.47 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.58e-05/0.0353, allocations: 28.2 kB / 347.9 MB, free: 16.44 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.0002434/0.03554, allocations: 229.8 kB / 348.2 MB, free: 16.21 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.411e-05/0.03563, allocations: 131.2 kB / 348.3 MB, free: 16.08 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005413/0.03618, allocations: 428.6 kB / 348.7 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.03618, allocations: 4 kB / 348.7 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.03618, allocations: 0 / 348.7 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.03619, allocations: 3.984 kB / 348.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.03771, allocations: 1.817 MB / 350.5 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.03771, allocations: 4 kB / 350.5 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000281/0.038, allocations: 115.8 kB / 350.7 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.038, allocations: 0 / 350.7 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.242e-05/0.03803, allocations: 20 kB / 350.7 MB, free: 13.65 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.03803, allocations: 3.984 kB / 350.7 MB, free: 13.65 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.03804, allocations: 0 / 350.7 MB, free: 13.65 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006606/0.0387, allocations: 0.6869 MB / 351.4 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.03882, allocations: 167.1 kB / 351.5 MB, free: 12.78 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.48e-05/0.0389, allocations: 20 kB / 351.5 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.03908, allocations: 23.98 kB / 351.6 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.336e-05/0.03915, allocations: 40.47 kB / 351.6 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.03917, allocations: 19.97 kB / 351.6 MB, free: 12.68 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005443/0.03972, allocations: 0.6556 MB / 352.3 MB, free: 12.01 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03972, allocations: 0 / 352.3 MB, free: 12.01 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000393/0.04011, allocations: 279.2 kB / 352.6 MB, free: 11.74 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.0006473/0.04076, allocations: 365.9 kB / 352.9 MB, free: 11.45 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004998/0.04126, allocations: 442.7 kB / 353.3 MB, free: 10.99 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.04126, allocations: 0 / 353.3 MB, free: 10.99 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.04145, allocations: 179.3 kB / 353.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005826/0.04204, allocations: 247.6 kB / 353.8 MB, free: 10.58 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002187/0.04422, allocations: 2.202 MB / 356 MB, free: 8.332 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.04442, allocations: 366.9 kB / 356.3 MB, free: 7.949 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002985/0.04472, allocations: 143.3 kB / 356.5 MB, free: 7.805 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.04486, allocations: 76.48 kB / 356.5 MB, free: 7.73 MB / 282.7 MB Notification: Performance of SimCode: time 7.91e-07/0.04486, allocations: 0 / 356.5 MB, free: 7.73 MB / 282.7 MB Notification: Performance of Templates: time 0.01596/0.06082, allocations: 14.04 MB / 370.6 MB, free: 9.66 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.3505435958504677]