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.006733/0.006734, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001134/0.001134, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.614/1.614, allocations: 205.1 MB / 222.6 MB, free: 4.469 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06271/0.06271, allocations: 7.034 MB / 276.9 MB, free: 14.1 MB / 238.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.001394/0.001394, allocations: 67.91 kB / 385.3 MB, free: 9.656 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3073, allocations: 48.1 MB / 433.4 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008789/0.3161, allocations: 6.78 MB / 440.2 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007496/0.3236, allocations: 4.526 MB / 444.7 MB, free: 40 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001547/0.3253, allocations: 39.38 kB / 444.7 MB, free: 28 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003296/0.3286, allocations: 1.004 MB / 445.7 MB, free: 15.61 MB / 334.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.001826/0.3304, allocations: 367.8 kB / 446.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001502/0.3319, allocations: 0.6863 MB / 446.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003183/0.3351, allocations: 2.222 MB / 449 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001682/0.3368, allocations: 1.142 MB / 450.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.3381, allocations: 0.7184 MB / 450.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.3391, allocations: 0.7356 MB / 451.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000332/0.3395, allocations: 257.1 kB / 451.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004429/0.3399, allocations: 297 kB / 452.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004206/0.3404, allocations: 467.8 kB / 452.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009535/0.3413, allocations: 0.9325 MB / 453.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003491/0.3448, allocations: 3.064 MB / 456.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.605e-06/0.3449, allocations: 0 / 456.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3449, allocations: 0 / 456.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.544e-05/0.3449, allocations: 1.562 kB / 456.6 MB, free: 8.652 MB / 334.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.00436/0.3493, allocations: 1.993 MB / 458.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3494, allocations: 12.97 kB / 458.6 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003218/0.3497, allocations: 174.7 kB / 458.8 MB, free: 7.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001973/0.3517, allocations: 1.403 MB / 460.2 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.325e-05/0.3517, allocations: 84.28 kB / 460.3 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000167/0.3519, allocations: 110.6 kB / 460.4 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002276/0.3542, allocations: 1.326 MB / 461.7 MB, free: 4.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.086e-05/0.3542, allocations: 4.844 kB / 461.7 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/0.3544, allocations: 43.22 kB / 461.7 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.361e-05/0.3544, allocations: 29.53 kB / 461.8 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001843/0.3562, allocations: 1.004 MB / 462.8 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007244/0.3635, allocations: 5.618 MB / 468.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002013/0.3655, allocations: 2.149 MB / 470.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007301/0.3663, allocations: 414.3 kB / 470.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.262e-05/0.3663, allocations: 8.562 kB / 471 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000756/0.3671, allocations: 446.6 kB / 471.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.023e-06/0.3671, allocations: 0 / 471.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.001852/0.369, allocations: 0.9707 MB / 472.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.815e-05/0.3691, allocations: 166.7 kB / 472.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001919/0.371, allocations: 1.477 MB / 474 MB, free: 9.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.915e-05/0.3711, allocations: 33.7 kB / 474 MB, free: 9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005663/0.3716, allocations: 0.6692 MB / 474.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000188/0.3718, allocations: 206.2 kB / 474.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002337/0.3721, allocations: 138.7 kB / 475 MB, free: 7.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3722, allocations: 341.9 kB / 475.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005667/0.3728, allocations: 329.8 kB / 475.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006992/0.3735, allocations: 0.5193 MB / 476.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00409/0.3776, allocations: 1.666 MB / 477.9 MB, free: 4.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.443e-06/0.3776, allocations: 8 kB / 477.9 MB, free: 4.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002078/0.3797, allocations: 1.018 MB / 478.9 MB, free: 3.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.294e-05/0.3798, allocations: 37.69 kB / 478.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.3798, allocations: 4 kB / 478.9 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.14e-05/0.3799, allocations: 8 kB / 479 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006769/0.3805, allocations: 167.7 kB / 479.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.9e-05/0.3806, allocations: 11.94 kB / 479.1 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007993/0.3814, allocations: 91.64 kB / 479.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.126e-05/0.3815, allocations: 27.98 kB / 479.2 MB, free: 3.578 MB / 350.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.001201/0.3827, allocations: 0.5352 MB / 479.8 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/0.3829, allocations: 123.2 kB / 479.9 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001516/0.3844, allocations: 0.7642 MB / 480.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.3844, allocations: 11.94 kB / 480.7 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.3844, allocations: 0 / 480.7 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.3844, allocations: 7.922 kB / 480.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003616/0.3881, allocations: 2.428 MB / 483.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.3881, allocations: 0 / 483.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005892/0.3887, allocations: 115.9 kB / 483.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-05/0.3887, allocations: 4 kB / 483.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.844e-05/0.3888, allocations: 19.98 kB / 483.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.323e-06/0.3888, allocations: 4 kB / 483.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.3888, allocations: 4 kB / 483.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001967/0.3908, allocations: 1.223 MB / 484.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003254/0.3911, allocations: 248.2 kB / 484.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.3912, allocations: 16 kB / 484.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004171/0.3917, allocations: 31.97 kB / 484.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.3918, allocations: 44.44 kB / 484.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.19e-05/0.3919, allocations: 19.94 kB / 484.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001517/0.3934, allocations: 1.04 MB / 485.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3934, allocations: 0 / 485.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008841/0.3943, allocations: 271.2 kB / 486.1 MB, free: 12.55 MB / 366.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.0009305/0.3952, allocations: 379 kB / 486.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.3967, allocations: 0.7817 MB / 487.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3968, allocations: 0 / 487.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005644/0.3973, allocations: 339 kB / 487.6 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.3985, allocations: 275.8 kB / 487.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005883/0.4044, allocations: 2.676 MB / 490.6 MB, free: 8.078 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00099/0.4054, allocations: 1.375 MB / 491.9 MB, free: 6.672 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000594/0.406, allocations: 179.8 kB / 492.1 MB, free: 6.492 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002237/0.4063, allocations: 71.42 kB / 492.2 MB, free: 6.422 MB / 366.1 MB Notification: Performance of SimCode: time 1.934e-06/0.4063, allocations: 0 / 492.2 MB, free: 6.422 MB / 366.1 MB Notification: Performance of Templates: time 0.02627/0.4325, allocations: 14.68 MB / 0.495 GB, free: 7.707 MB / 382.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)