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.001785/0.001785, allocations: 95.06 kB / 19.44 MB, free: 464 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.002027/0.002027, allocations: 169.2 kB / 22.75 MB, free: 1.789 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.373/1.373, allocations: 158.6 MB / 184.6 MB, free: 2.898 MB / 170.7 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.05993/0.05993, allocations: 5.569 MB / 242.4 MB, free: 9.602 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.342e-06/1.342e-06, allocations: 0 / 309.1 MB, free: 53.3 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.176e-05/2.31e-05, allocations: 4.656 kB / 309.1 MB, free: 53.3 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.007285/0.007308, allocations: 6.01 MB / 315.1 MB, free: 49.34 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005645/0.01295, allocations: 4.244 MB / 319.3 MB, free: 45.36 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.01415, allocations: 39.81 kB / 319.4 MB, free: 45.32 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002327/0.01648, allocations: 1.022 MB / 320.4 MB, free: 44.3 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.00145/0.01793, allocations: 404.8 kB / 320.8 MB, free: 43.9 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001173/0.0191, allocations: 0.6982 MB / 321.5 MB, free: 43.2 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002162/0.02126, allocations: 2.266 MB / 323.8 MB, free: 40.94 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001047/0.02231, allocations: 0.6445 MB / 324.4 MB, free: 40.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0012/0.02351, allocations: 1.135 MB / 325.5 MB, free: 39.14 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007434/0.02425, allocations: 0.6078 MB / 326.1 MB, free: 38.53 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002962/0.02455, allocations: 256 kB / 326.4 MB, free: 38.28 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003878/0.02493, allocations: 292 kB / 326.7 MB, free: 37.99 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.02521, allocations: 486.5 kB / 327.2 MB, free: 37.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005524/0.02577, allocations: 0.5846 MB / 327.7 MB, free: 36.93 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002008/0.02777, allocations: 3.101 MB / 330.8 MB, free: 33.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.02778, allocations: 0 / 330.8 MB, free: 33.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.02778, allocations: 7.984 kB / 330.8 MB, free: 33.81 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.88e-05/0.02781, allocations: 0 / 330.8 MB, free: 33.81 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.002842/0.03065, allocations: 1.902 MB / 332.8 MB, free: 31.86 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.03069, allocations: 11.98 kB / 332.8 MB, free: 31.85 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003494/0.03104, allocations: 259.8 kB / 333 MB, free: 31.6 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.03255, allocations: 1.397 MB / 334.4 MB, free: 30.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.898e-05/0.03261, allocations: 86.47 kB / 334.5 MB, free: 30.07 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.03275, allocations: 108.4 kB / 334.6 MB, free: 29.96 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.03464, allocations: 1.465 MB / 336.1 MB, free: 28.39 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.902e-05/0.03466, allocations: 3.938 kB / 336.1 MB, free: 28.39 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-05/0.03476, allocations: 44 kB / 336.1 MB, free: 28.34 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.03478, allocations: 24 kB / 336.1 MB, free: 28.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.03637, allocations: 1.003 MB / 337.1 MB, free: 27.31 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005185/0.04156, allocations: 4.976 MB / 342.1 MB, free: 22.23 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.04292, allocations: 0.8301 MB / 342.9 MB, free: 21.4 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006547/0.04357, allocations: 386.2 kB / 343.3 MB, free: 21.02 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.294e-05/0.04362, allocations: 12.5 kB / 343.3 MB, free: 21.01 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006711/0.04429, allocations: 0.5027 MB / 343.8 MB, free: 20.47 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.214e-06/0.04429, allocations: 0 / 343.8 MB, free: 20.47 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.002666/0.04696, allocations: 0.9884 MB / 344.8 MB, free: 19.47 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.04701, allocations: 162.7 kB / 345 MB, free: 19.28 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00242/0.04943, allocations: 1.434 MB / 346.4 MB, free: 17.82 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.913e-05/0.04952, allocations: 37.7 kB / 346.5 MB, free: 17.78 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004385/0.04996, allocations: 0.6573 MB / 347.1 MB, free: 17.12 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.05009, allocations: 210.2 kB / 347.3 MB, free: 16.91 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000196/0.05029, allocations: 142.6 kB / 347.5 MB, free: 16.76 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.394e-05/0.05034, allocations: 337.9 kB / 347.8 MB, free: 16.43 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005415/0.05088, allocations: 359.5 kB / 348.1 MB, free: 16.07 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005961/0.05148, allocations: 0.6449 MB / 348.8 MB, free: 15.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003536/0.05502, allocations: 1.666 MB / 350.5 MB, free: 13.57 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.05502, allocations: 0 / 350.5 MB, free: 13.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001586/0.05661, allocations: 1.078 MB / 351.5 MB, free: 12.47 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.417e-05/0.05665, allocations: 33.7 kB / 351.6 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.05666, allocations: 4 kB / 351.6 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.616e-05/0.05669, allocations: 8 kB / 351.6 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006304/0.05732, allocations: 171.7 kB / 351.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.05733, allocations: 8.438 kB / 351.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005552/0.05789, allocations: 87.48 kB / 351.8 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.264e-05/0.05794, allocations: 28 kB / 351.9 MB, free: 12.13 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.0006694/0.05861, allocations: 0.5337 MB / 352.4 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.05876, allocations: 127.3 kB / 352.5 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.06001, allocations: 0.77 MB / 353.3 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.06002, allocations: 4 kB / 353.3 MB, free: 10.69 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.06002, allocations: 4.109 kB / 353.3 MB, free: 10.69 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.06003, allocations: 3.938 kB / 353.3 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002555/0.06258, allocations: 2.055 MB / 355.4 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.06259, allocations: 0 / 355.4 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000558/0.06314, allocations: 123.8 kB / 355.5 MB, free: 8.465 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.06315, allocations: 3.984 kB / 355.5 MB, free: 8.461 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.504e-05/0.06319, allocations: 16 kB / 355.5 MB, free: 8.445 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.0632, allocations: 7.984 kB / 355.5 MB, free: 8.438 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.0632, allocations: 0 / 355.5 MB, free: 8.438 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/0.06481, allocations: 1.229 MB / 356.7 MB, free: 7.191 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002153/0.06503, allocations: 175.1 kB / 356.9 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.06515, allocations: 12 kB / 356.9 MB, free: 7.008 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004754/0.06562, allocations: 35.95 kB / 357 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.06573, allocations: 44.42 kB / 357 MB, free: 6.93 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-05/0.06576, allocations: 12 kB / 357 MB, free: 6.918 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001032/0.0668, allocations: 1.003 MB / 358 MB, free: 5.906 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.0668, allocations: 0 / 358 MB, free: 5.906 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007153/0.06751, allocations: 279.1 kB / 358.3 MB, free: 5.633 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.001627/0.06914, allocations: 416 kB / 358.7 MB, free: 5.297 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001167/0.07031, allocations: 0.7814 MB / 359.5 MB, free: 4.496 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.07031, allocations: 4 kB / 359.5 MB, free: 4.492 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004781/0.07079, allocations: 310.7 kB / 359.8 MB, free: 4.188 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009922/0.07178, allocations: 258.9 kB / 360 MB, free: 3.938 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003203/0.07498, allocations: 2.622 MB / 362.7 MB, free: 1.277 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006099/0.07559, allocations: 0.7818 MB / 363.4 MB, free: 468 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005046/0.0761, allocations: 183.3 kB / 363.6 MB, free: 280 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002022/0.0763, allocations: 68.48 kB / 363.7 MB, free: 212 kB / 282.7 MB Notification: Performance of SimCode: time 3.51e-07/0.0763, allocations: 0 / 363.7 MB, free: 212 kB / 282.7 MB Notification: Performance of Templates: time 0.02795/0.1042, allocations: 14.05 MB / 377.7 MB, free: 2.141 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=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.814176923944615]