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.0008936/0.0008936, allocations: 92.22 kB / 19.65 MB, free: 276 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.001053/0.001053, allocations: 173 kB / 23.03 MB, free: 1.543 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.8411/0.8411, allocations: 158.6 MB / 184.9 MB, free: 2.91 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.02917/0.02917, allocations: 5.565 MB / 242.8 MB, free: 9.531 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.413e-06/1.413e-06, allocations: 0 / 309.8 MB, free: 53.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.504e-05/2.645e-05, allocations: 3.297 kB / 309.8 MB, free: 53.39 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006416/0.006443, allocations: 6.569 MB / 316.4 MB, free: 48.85 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005132/0.01157, allocations: 4.498 MB / 320.9 MB, free: 44.33 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.01263, allocations: 43.75 kB / 320.9 MB, free: 44.29 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001871/0.0145, allocations: 1.018 MB / 321.9 MB, free: 43.27 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.001039/0.01554, allocations: 408.7 kB / 322.3 MB, free: 42.86 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009296/0.01647, allocations: 0.7059 MB / 323 MB, free: 42.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001851/0.01832, allocations: 2.267 MB / 325.3 MB, free: 39.9 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000781/0.0191, allocations: 0.6372 MB / 325.9 MB, free: 39.24 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000995/0.0201, allocations: 1.142 MB / 327.1 MB, free: 38.09 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006206/0.02072, allocations: 0.6468 MB / 327.7 MB, free: 37.45 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002652/0.02098, allocations: 256 kB / 328 MB, free: 37.2 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002519/0.02123, allocations: 284 kB / 328.3 MB, free: 36.92 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002028/0.02144, allocations: 482.6 kB / 328.7 MB, free: 36.45 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005793/0.02201, allocations: 0.5885 MB / 329.3 MB, free: 35.86 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001275/0.02329, allocations: 1.449 MB / 330.8 MB, free: 34.4 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.0233, allocations: 4 kB / 330.8 MB, free: 34.4 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.0233, allocations: 3.938 kB / 330.8 MB, free: 34.39 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.434e-05/0.02333, 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.002162/0.02549, allocations: 2.053 MB / 332.8 MB, free: 32.29 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.02554, allocations: 15.98 kB / 332.8 MB, free: 32.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002991/0.02584, allocations: 263.8 kB / 333.1 MB, free: 32.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.02698, allocations: 1.206 MB / 334.3 MB, free: 30.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.477e-05/0.02703, allocations: 86.47 kB / 334.4 MB, free: 30.68 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.667e-05/0.02713, allocations: 108.4 kB / 334.5 MB, free: 30.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.02819, allocations: 1.024 MB / 335.5 MB, free: 29.42 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.02821, allocations: 3.938 kB / 335.5 MB, free: 29.41 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.771e-05/0.02827, allocations: 44 kB / 335.6 MB, free: 29.37 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.02828, allocations: 24 kB / 335.6 MB, free: 29.35 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006563/0.02894, allocations: 379.5 kB / 336 MB, free: 28.97 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003686/0.03262, allocations: 5.295 MB / 341.3 MB, free: 23.55 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007091/0.03333, allocations: 0.4954 MB / 341.8 MB, free: 23.05 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.03362, allocations: 184.9 kB / 341.9 MB, free: 22.88 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.797e-05/0.03366, allocations: 12.5 kB / 341.9 MB, free: 22.86 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003279/0.03399, allocations: 341 kB / 342.3 MB, free: 22.48 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.785e-06/0.03399, allocations: 0 / 342.3 MB, free: 22.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.0007398/0.03473, allocations: 496.3 kB / 342.8 MB, free: 21.99 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.03478, allocations: 166.7 kB / 342.9 MB, free: 21.79 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009576/0.03573, allocations: 1.133 MB / 344.1 MB, free: 20.64 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.03577, allocations: 37.7 kB / 344.1 MB, free: 20.6 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003769/0.03615, allocations: 0.7728 MB / 344.9 MB, free: 19.82 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.03626, allocations: 210.2 kB / 345.1 MB, free: 19.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.03641, allocations: 148.3 kB / 345.2 MB, free: 19.45 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.23e-05/0.0365, allocations: 0.512 MB / 345.7 MB, free: 18.93 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.03669, allocations: 123.6 kB / 345.9 MB, free: 18.81 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002724/0.03697, allocations: 0.4914 MB / 346.3 MB, free: 18.18 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006287/0.0376, allocations: 0.6147 MB / 347 MB, free: 17.46 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.0376, allocations: 0 / 347 MB, free: 17.46 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0007062/0.03831, allocations: 0.6402 MB / 347.6 MB, free: 16.8 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.479e-05/0.03834, allocations: 34.33 kB / 347.6 MB, free: 16.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.03835, allocations: 8 kB / 347.6 MB, free: 16.76 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.03837, allocations: 8 kB / 347.6 MB, free: 16.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003648/0.03874, allocations: 167.7 kB / 347.8 MB, free: 16.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.03875, allocations: 12.05 kB / 347.8 MB, free: 16.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000263/0.03901, allocations: 87.42 kB / 347.9 MB, free: 16.49 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.675e-05/0.03905, allocations: 24 kB / 347.9 MB, free: 16.46 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.0002684/0.03932, allocations: 223 kB / 348.2 MB, free: 16.24 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.779e-05/0.03942, allocations: 127.2 kB / 348.3 MB, free: 16.11 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005253/0.03994, allocations: 436.6 kB / 348.7 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.03995, allocations: 4 kB / 348.7 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.03995, allocations: 0 / 348.7 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.03996, allocations: 0 / 348.7 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.04154, allocations: 1.817 MB / 350.5 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.04155, allocations: 4 kB / 350.5 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002932/0.04184, allocations: 123.7 kB / 350.6 MB, free: 13.69 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.04185, allocations: 4 kB / 350.7 MB, free: 13.69 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.518e-05/0.04188, allocations: 16 kB / 350.7 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.04188, allocations: 0 / 350.7 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.04189, allocations: 0 / 350.7 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006988/0.04259, allocations: 0.683 MB / 351.3 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.04272, allocations: 167.1 kB / 351.5 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.657e-05/0.04279, allocations: 19.98 kB / 351.5 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.04297, allocations: 27.98 kB / 351.6 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.354e-05/0.04305, allocations: 40.42 kB / 351.6 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.04307, allocations: 12 kB / 351.6 MB, free: 12.71 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005633/0.04364, allocations: 0.6595 MB / 352.3 MB, free: 12.04 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04364, allocations: 0 / 352.3 MB, free: 12.04 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005005/0.04414, allocations: 275.2 kB / 352.5 MB, free: 11.77 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.0007887/0.04493, allocations: 360.7 kB / 352.9 MB, free: 11.48 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005816/0.04551, allocations: 454.7 kB / 353.3 MB, free: 11.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.04551, allocations: 256 / 353.3 MB, free: 11.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.04571, allocations: 171.4 kB / 353.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006649/0.04638, allocations: 259.2 kB / 353.8 MB, free: 10.6 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.0492, allocations: 2.209 MB / 356 MB, free: 8.348 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00021/0.04941, allocations: 362.9 kB / 356.3 MB, free: 7.969 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003394/0.04975, allocations: 151.3 kB / 356.5 MB, free: 7.816 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.04989, allocations: 64.5 kB / 356.5 MB, free: 7.754 MB / 282.7 MB Notification: Performance of SimCode: time 1.222e-06/0.04989, allocations: 0 / 356.5 MB, free: 7.754 MB / 282.7 MB Notification: Performance of Templates: time 0.01949/0.06938, allocations: 14.61 MB / 371.1 MB, free: 9.117 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: 2.9979608450084925]