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.006353/0.006353, allocations: 103.3 kB / 15.73 MB, free: 6.035 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.001407/0.001408, allocations: 198.9 kB / 16.67 MB, free: 5.969 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.561/1.561, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05729/0.05729, allocations: 7.034 MB / 276.9 MB, free: 14.15 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.001579/0.00158, allocations: 67.91 kB / 385.3 MB, free: 9.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3391, allocations: 48.1 MB / 433.4 MB, free: 8.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008362/0.3476, allocations: 6.791 MB / 440.2 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007784/0.3554, allocations: 4.529 MB / 444.7 MB, free: 56 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001846/0.3573, allocations: 31.44 kB / 444.7 MB, free: 52 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003299/0.3606, allocations: 1.012 MB / 445.7 MB, free: 15.62 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.002134/0.3628, allocations: 400.2 kB / 446.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001726/0.3645, allocations: 0.6756 MB / 446.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00361/0.3681, allocations: 2.228 MB / 449 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001704/0.3699, allocations: 1.148 MB / 450.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00137/0.3712, allocations: 0.7245 MB / 450.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008954/0.3721, allocations: 0.7376 MB / 451.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003195/0.3725, allocations: 261.4 kB / 451.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004765/0.373, allocations: 294 kB / 452.2 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004042/0.3734, allocations: 466.6 kB / 452.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009732/0.3744, allocations: 0.936 MB / 453.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003524/0.3779, allocations: 3.052 MB / 456.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.3779, allocations: 1.281 kB / 456.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3779, allocations: 0 / 456.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.639e-05/0.378, allocations: 0 / 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.004182/0.3822, allocations: 1.944 MB / 458.6 MB, free: 7.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.3822, allocations: 9.406 kB / 458.6 MB, free: 7.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004075/0.3826, allocations: 168.1 kB / 458.8 MB, free: 7.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002116/0.3848, allocations: 1.383 MB / 460.1 MB, free: 5.957 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.519e-05/0.3849, allocations: 83.75 kB / 460.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001905/0.3851, allocations: 115 kB / 460.3 MB, free: 5.875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002639/0.3877, allocations: 1.334 MB / 461.7 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.45e-05/0.3878, allocations: 5.188 kB / 461.7 MB, free: 4.973 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/0.3879, allocations: 42.59 kB / 461.7 MB, free: 4.941 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.343e-05/0.3879, allocations: 25.28 kB / 461.7 MB, free: 4.941 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002163/0.3901, allocations: 1.004 MB / 462.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008468/0.3986, allocations: 5.611 MB / 468.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002165/0.4008, allocations: 2.145 MB / 470.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007856/0.4016, allocations: 414.3 kB / 470.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.611e-05/0.4016, allocations: 8.562 kB / 470.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008114/0.4025, allocations: 438.7 kB / 471.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 4.157e-06/0.4025, allocations: 0 / 471.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002132/0.4046, allocations: 0.9739 MB / 472.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.4047, allocations: 170.7 kB / 472.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002054/0.4068, allocations: 1.477 MB / 474 MB, free: 9.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.079e-05/0.4069, allocations: 41.7 kB / 474 MB, free: 9.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005947/0.4075, allocations: 0.6446 MB / 474.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001909/0.4077, allocations: 193.2 kB / 474.8 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002497/0.4079, allocations: 146.6 kB / 475 MB, free: 8.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.4081, allocations: 330.1 kB / 475.3 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006567/0.4087, allocations: 333.8 kB / 475.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007594/0.4095, allocations: 0.5154 MB / 476.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004158/0.4137, allocations: 1.678 MB / 477.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.4137, allocations: 0 / 477.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002098/0.4158, allocations: 1.017 MB / 478.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.37e-05/0.4159, allocations: 33.7 kB / 478.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.4159, allocations: 8 kB / 478.9 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.439e-05/0.4159, allocations: 8 kB / 478.9 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006832/0.4166, allocations: 156.3 kB / 479 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.998e-05/0.4167, allocations: 23.86 kB / 479.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007118/0.4174, allocations: 87.25 kB / 479.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.194e-05/0.4175, allocations: 32 kB / 479.2 MB, free: 3.656 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.000911/0.4184, allocations: 0.5273 MB / 479.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.4186, allocations: 114.6 kB / 479.8 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.42, allocations: 0.7681 MB / 480.6 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.4201, allocations: 11.94 kB / 480.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.4201, allocations: 0 / 480.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.4201, allocations: 3.984 kB / 480.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003807/0.4239, allocations: 2.432 MB / 483 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.4239, allocations: 3.984 kB / 483 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006066/0.4245, allocations: 111.9 kB / 483.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.4246, allocations: 0 / 483.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.517e-05/0.4246, allocations: 19.98 kB / 483.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.4246, allocations: 4 kB / 483.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.4246, allocations: 4 kB / 483.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002055/0.4267, allocations: 1.218 MB / 484.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003621/0.4271, allocations: 243.5 kB / 484.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001478/0.4272, allocations: 16 kB / 484.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004636/0.4277, allocations: 31.97 kB / 484.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.4278, allocations: 44.5 kB / 484.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.11e-05/0.4279, allocations: 19.88 kB / 484.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001571/0.4295, allocations: 1.044 MB / 485.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4295, allocations: 0 / 485.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008939/0.4304, allocations: 271 kB / 486 MB, free: 12.66 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.0008845/0.4313, allocations: 375.2 kB / 486.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001541/0.4328, allocations: 0.7856 MB / 487.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.4328, allocations: 0 / 487.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005917/0.4334, allocations: 331 kB / 487.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.4346, allocations: 287.7 kB / 487.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004518/0.4392, allocations: 2.633 MB / 490.4 MB, free: 8.219 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.4402, allocations: 1.367 MB / 491.8 MB, free: 6.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006368/0.4409, allocations: 183.8 kB / 492 MB, free: 6.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002311/0.4411, allocations: 71.44 kB / 492.1 MB, free: 6.566 MB / 366.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4411, allocations: 0 / 492.1 MB, free: 6.566 MB / 366.1 MB Notification: Performance of Templates: time 0.02557/0.4667, allocations: 14.67 MB / 0.4948 GB, free: 7.863 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)