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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=28200,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") translateModel(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=28200,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 106.9 kB / 16.27 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 190.2 kB / 17.2 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.133/1.133, allocations: 205.1 MB / 223.1 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04029/0.04029, allocations: 7.032 MB / 277.5 MB, free: 5.059 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ElectricalEnergyStorage requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 68.28 kB / 336.6 MB, free: 9.883 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.1731, allocations: 48.09 MB / 384.6 MB, free: 52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.005997/0.1791, allocations: 6.787 MB / 391.4 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004214/0.1834, allocations: 4.533 MB / 396 MB, free: 43.94 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004038/0.1838, allocations: 31.44 kB / 396 MB, free: 43.94 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001634/0.1854, allocations: 1.011 MB / 397 MB, free: 43.52 MB / 318.1 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.0006139/0.1861, allocations: 364.3 kB / 397.4 MB, free: 43.24 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007587/0.1868, allocations: 0.679 MB / 398 MB, free: 42.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001511/0.1883, allocations: 2.21 MB / 400.2 MB, free: 41.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.1894, allocations: 1.152 MB / 401.4 MB, free: 41.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004921/0.1899, allocations: 0.7218 MB / 402.1 MB, free: 40.62 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005258/0.1904, allocations: 0.7327 MB / 402.9 MB, free: 40.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002448/0.1907, allocations: 258.1 kB / 403.1 MB, free: 40.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003186/0.191, allocations: 286.9 kB / 403.4 MB, free: 40.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002662/0.1913, allocations: 484.1 kB / 403.9 MB, free: 39.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005131/0.1918, allocations: 0.9278 MB / 404.8 MB, free: 39.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001506/0.1933, allocations: 2.998 MB / 407.8 MB, free: 36.7 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1933, allocations: 4 kB / 407.8 MB, free: 36.7 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1933, allocations: 4 kB / 407.8 MB, free: 36.7 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.1934, allocations: 0 / 407.8 MB, free: 36.7 MB / 318.1 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.002346/0.1957, allocations: 1.945 MB / 409.7 MB, free: 35.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.896e-05/0.1957, allocations: 8.812 kB / 409.7 MB, free: 35.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002133/0.196, allocations: 165.7 kB / 409.9 MB, free: 35.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.1972, allocations: 1.367 MB / 411.3 MB, free: 34.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.826e-05/0.1973, allocations: 87.91 kB / 411.4 MB, free: 33.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.1975, allocations: 111.8 kB / 411.5 MB, free: 33.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.1991, allocations: 1.334 MB / 412.8 MB, free: 33.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.1992, allocations: 1.344 kB / 412.8 MB, free: 33.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.4e-05/0.1992, allocations: 43.22 kB / 412.8 MB, free: 33 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.1993, allocations: 26.16 kB / 412.9 MB, free: 33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.2007, allocations: 1.009 MB / 413.9 MB, free: 31.99 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004449/0.2051, allocations: 5.665 MB / 419.5 MB, free: 26.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.2064, allocations: 2.16 MB / 421.7 MB, free: 23.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005485/0.207, allocations: 403 kB / 422.1 MB, free: 23.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.642e-05/0.207, allocations: 8.5 kB / 422.1 MB, free: 23.33 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005355/0.2076, allocations: 438.7 kB / 422.5 MB, free: 22.88 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.613e-06/0.2076, allocations: 0 / 422.5 MB, free: 22.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.001383/0.209, allocations: 0.9818 MB / 423.5 MB, free: 21.9 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.209, allocations: 170.6 kB / 423.7 MB, free: 21.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/0.2103, allocations: 1.469 MB / 425.2 MB, free: 20.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.2103, allocations: 41.81 kB / 425.2 MB, free: 20.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003185/0.2106, allocations: 0.6523 MB / 425.9 MB, free: 19.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.2108, allocations: 197.2 kB / 426 MB, free: 19.31 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.2109, allocations: 138.6 kB / 426.2 MB, free: 19.17 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.554e-05/0.211, allocations: 337.9 kB / 426.5 MB, free: 18.83 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004662/0.2115, allocations: 321.9 kB / 426.8 MB, free: 18.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005204/0.212, allocations: 0.5173 MB / 427.3 MB, free: 17.92 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003046/0.215, allocations: 1.674 MB / 429 MB, free: 16.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2151, allocations: 0 / 429 MB, free: 16.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001248/0.2163, allocations: 1.017 MB / 430 MB, free: 15.13 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.2163, allocations: 33.7 kB / 430.1 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.2164, allocations: 8 kB / 430.1 MB, free: 15.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.2164, allocations: 12.61 kB / 430.1 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005431/0.2169, allocations: 163.7 kB / 430.2 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.2169, allocations: 11.94 kB / 430.3 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004311/0.2174, allocations: 91.19 kB / 430.3 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-05/0.2174, allocations: 35.94 kB / 430.4 MB, free: 14.77 MB / 318.1 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.0004607/0.2179, allocations: 0.5235 MB / 430.9 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.218, allocations: 118.6 kB / 431 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00108/0.2191, allocations: 0.768 MB / 431.8 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.2191, allocations: 15.97 kB / 431.8 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2191, allocations: 0 / 431.8 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-06/0.2191, allocations: 3.984 kB / 431.8 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002298/0.2214, allocations: 2.431 MB / 434.2 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2215, allocations: 0 / 434.2 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004909/0.2219, allocations: 115.8 kB / 434.3 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.222, allocations: 4 kB / 434.4 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.881e-05/0.222, allocations: 23.98 kB / 434.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.222, allocations: 0 / 434.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.222, allocations: 4 kB / 434.4 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.2234, allocations: 1.205 MB / 435.6 MB, free: 9.469 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001807/0.2236, allocations: 247.5 kB / 435.8 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.2237, allocations: 27.98 kB / 435.9 MB, free: 9.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003852/0.2241, allocations: 31.97 kB / 435.9 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.196e-05/0.2242, allocations: 32.52 kB / 435.9 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.207e-05/0.2242, allocations: 23.92 kB / 435.9 MB, free: 9.094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009135/0.2252, allocations: 1.04 MB / 437 MB, free: 8.047 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2252, allocations: 0 / 437 MB, free: 8.047 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005256/0.2257, allocations: 263 kB / 437.2 MB, free: 7.789 MB / 318.1 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.0006684/0.2264, allocations: 378.1 kB / 437.6 MB, free: 7.441 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.2277, allocations: 0.8585 MB / 438.5 MB, free: 6.574 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2277, allocations: 4 kB / 438.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00042/0.2282, allocations: 336.3 kB / 438.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000924/0.2291, allocations: 283.7 kB / 439.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002937/0.232, allocations: 2.61 MB / 441.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000539/0.2326, allocations: 1.326 MB / 443 MB, free: 1.973 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.2328, allocations: 79.42 kB / 443.1 MB, free: 1.895 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2328, allocations: 0 / 443.1 MB, free: 1.895 MB / 318.1 MB Notification: Performance of Templates: time 0.0188/0.2516, allocations: 18.36 MB / 461.5 MB, free: 15.5 MB / 350.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.makefile (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)