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.01044/0.01044, allocations: 105.9 kB / 15.73 MB, free: 6 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.001737/0.001737, allocations: 189 kB / 16.67 MB, free: 5.926 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.858/1.858, allocations: 205.1 MB / 222.6 MB, free: 4.48 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06299/0.06299, allocations: 7.038 MB / 276.9 MB, free: 14.11 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.001692/0.001693, allocations: 63.89 kB / 385.3 MB, free: 9.656 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4413/0.443, allocations: 48.1 MB / 433.4 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.009225/0.4523, allocations: 6.786 MB / 440.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.4627, allocations: 4.526 MB / 444.7 MB, free: 52 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002874/0.4657, allocations: 38.91 kB / 444.7 MB, free: 40 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003879/0.4696, allocations: 1.008 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.002293/0.472, allocations: 396.2 kB / 446.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001821/0.4738, allocations: 0.6906 MB / 446.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003911/0.4777, allocations: 2.224 MB / 449 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001797/0.4795, allocations: 1.142 MB / 450.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001246/0.4808, allocations: 0.7273 MB / 450.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008959/0.4817, allocations: 0.7335 MB / 451.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003704/0.4821, allocations: 256.7 kB / 451.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000476/0.4825, allocations: 293.1 kB / 452.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004663/0.483, allocations: 476.2 kB / 452.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001052/0.4841, allocations: 0.924 MB / 453.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003997/0.4881, allocations: 3.051 MB / 456.6 MB, free: 8.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4881, allocations: 1.5 kB / 456.6 MB, free: 8.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4881, allocations: 0 / 456.6 MB, free: 8.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.772e-05/0.4882, allocations: 0 / 456.6 MB, free: 8.66 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.005173/0.4934, allocations: 1.944 MB / 458.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.187e-05/0.4934, allocations: 12.62 kB / 458.6 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004547/0.4939, allocations: 169.8 kB / 458.7 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002439/0.4964, allocations: 1.389 MB / 460.1 MB, free: 5.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001543/0.4965, allocations: 84.56 kB / 460.2 MB, free: 5.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002003/0.4967, allocations: 115.6 kB / 460.3 MB, free: 5.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002612/0.4994, allocations: 1.328 MB / 461.7 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/0.4994, allocations: 1.125 kB / 461.7 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/0.4995, allocations: 47.28 kB / 461.7 MB, free: 4.941 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.06e-05/0.4996, allocations: 29.69 kB / 461.7 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002277/0.5018, allocations: 1.007 MB / 462.7 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01001/0.5119, allocations: 5.597 MB / 468.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002318/0.5142, allocations: 2.161 MB / 470.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007617/0.515, allocations: 414.3 kB / 470.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.872e-05/0.5151, allocations: 4.562 kB / 470.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000856/0.516, allocations: 442.7 kB / 471.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.284e-06/0.516, allocations: 0 / 471.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002147/0.5181, allocations: 0.9739 MB / 472.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.5182, allocations: 166.7 kB / 472.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002371/0.5206, allocations: 1.477 MB / 474 MB, free: 9.082 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.181e-05/0.5207, allocations: 37.7 kB / 474 MB, free: 9.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007338/0.5215, allocations: 0.6485 MB / 474.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002175/0.5217, allocations: 197.2 kB / 474.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000262/0.5219, allocations: 142.6 kB / 475 MB, free: 8.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002236/0.5222, allocations: 330 kB / 475.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006163/0.5228, allocations: 326 kB / 475.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008488/0.5237, allocations: 0.5309 MB / 476.1 MB, free: 6.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004661/0.5283, allocations: 1.663 MB / 477.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.5284, allocations: 8 kB / 477.8 MB, free: 5.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002007/0.5304, allocations: 1.009 MB / 478.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.105e-05/0.5304, allocations: 33.7 kB / 478.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.5305, allocations: 7.938 kB / 478.9 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/0.5305, allocations: 12 kB / 478.9 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006601/0.5312, allocations: 167.7 kB / 479 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.931e-05/0.5312, allocations: 15.88 kB / 479.1 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007961/0.532, allocations: 95.41 kB / 479.2 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.943e-05/0.5321, allocations: 24 kB / 479.2 MB, free: 3.648 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.0009253/0.533, allocations: 0.5275 MB / 479.7 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002218/0.5332, allocations: 110.6 kB / 479.8 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001705/0.5349, allocations: 0.7758 MB / 480.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.535, allocations: 7.938 kB / 480.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.535, allocations: 4 kB / 480.6 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.535, allocations: 0 / 480.6 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004537/0.5395, allocations: 2.424 MB / 483 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.5396, allocations: 0 / 483 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006293/0.5402, allocations: 123.8 kB / 483.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.744e-06/0.5402, allocations: 4 kB / 483.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.635e-05/0.5403, allocations: 12 kB / 483.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.178e-06/0.5403, allocations: 8 kB / 483.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/0.5403, allocations: 3.984 kB / 483.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002137/0.5425, allocations: 1.218 MB / 484.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000435/0.5429, allocations: 239.5 kB / 484.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.543, allocations: 19.98 kB / 484.6 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004788/0.5435, allocations: 31.97 kB / 484.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.5437, allocations: 40.52 kB / 484.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.48e-05/0.5437, allocations: 19.92 kB / 484.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001489/0.5452, allocations: 1.047 MB / 485.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5452, allocations: 0 / 485.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008961/0.5461, allocations: 271 kB / 486 MB, free: 12.65 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.0009337/0.5471, allocations: 371.2 kB / 486.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.5487, allocations: 0.7855 MB / 487.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.5487, allocations: 0 / 487.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005625/0.5493, allocations: 339.1 kB / 487.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.5504, allocations: 279.8 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.004515/0.5549, allocations: 2.641 MB / 490.4 MB, free: 8.207 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001069/0.556, allocations: 1.371 MB / 491.8 MB, free: 6.805 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000569/0.5566, allocations: 175.8 kB / 492 MB, free: 6.629 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.5568, allocations: 71.42 kB / 492.1 MB, free: 6.559 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5568, allocations: 4 kB / 492.1 MB, free: 6.555 MB / 366.1 MB Notification: Performance of Templates: time 0.02879/0.5856, allocations: 14.67 MB / 0.4948 GB, free: 7.855 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)