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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001001/0.001001, allocations: 181.8 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04891/0.04891, allocations: 7.03 MB / 20.29 MB, free: 96 kB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.164/1.164, allocations: 194.3 MB / 216.6 MB, free: 10.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001592/0.001592, allocations: 116.3 kB / 263.1 MB, free: 13.38 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.234e-05/4.237e-05, allocations: 4 kB / 317 MB, free: 7.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2443, allocations: 45.96 MB / 363 MB, free: 46.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09749/0.3418, allocations: 85.91 MB / 448.9 MB, free: 1.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001875/0.3421, allocations: 84.75 kB / 449 MB, free: 1.488 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06679/0.4089, allocations: 32.57 MB / 481.5 MB, free: 1 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.4089, allocations: 3.938 kB / 481.5 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.847e-05/0.409, allocations: 35.94 kB / 481.6 MB, free: 0.9609 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002187/0.4112, allocations: 1.4 MB / 483 MB, free: 15.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.4112, allocations: 11.97 kB / 483 MB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002307/0.4115, allocations: 162 kB / 483.1 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001601/0.4131, allocations: 1.172 MB / 484.3 MB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.115e-05/0.4132, allocations: 82 kB / 484.4 MB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.4133, allocations: 108 kB / 484.5 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/0.4151, allocations: 1.119 MB / 485.6 MB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.4152, allocations: 0 / 485.6 MB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.554e-05/0.4153, allocations: 40.34 kB / 485.7 MB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.05e-05/0.4153, allocations: 31.89 kB / 485.7 MB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.4167, allocations: 0.8787 MB / 486.6 MB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00602/0.4227, allocations: 4.447 MB / 491 MB, free: 7.309 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.4245, allocations: 2.113 MB / 493.1 MB, free: 4.875 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006044/0.4252, allocations: 390.5 kB / 493.5 MB, free: 4.492 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.779e-05/0.4252, allocations: 12.5 kB / 493.5 MB, free: 4.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005994/0.4258, allocations: 422.4 kB / 493.9 MB, free: 4.051 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 2.525e-06/0.4258, allocations: 0 / 493.9 MB, free: 4.051 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.001102/0.4269, allocations: 0.6621 MB / 494.6 MB, free: 3.379 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.064e-05/0.427, allocations: 162.8 kB / 494.8 MB, free: 3.184 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001593/0.4286, allocations: 1.225 MB / 496 MB, free: 1.938 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.493e-05/0.4287, allocations: 37.7 kB / 496 MB, free: 1.895 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004525/0.4292, allocations: 0.605 MB / 496.6 MB, free: 1.281 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.4293, allocations: 193.2 kB / 496.8 MB, free: 1.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.491e-05/0.4294, allocations: 8 kB / 496.8 MB, free: 1.082 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.4295, allocations: 346 kB / 497.2 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004138/0.4299, allocations: 281.5 kB / 497.4 MB, free: 476 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004847/0.4304, allocations: 385.1 kB / 497.8 MB, free: 60 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005292/0.4309, allocations: 394.2 kB / 498.2 MB, free: 15.66 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.431, allocations: 0 / 498.2 MB, free: 15.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001204/0.4322, allocations: 0.881 MB / 499.1 MB, free: 14.76 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.458e-05/0.4322, allocations: 63.41 kB / 499.1 MB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.4322, allocations: 4.156 kB / 499.1 MB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.4323, allocations: 8 kB / 499.1 MB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000607/0.4329, allocations: 143.8 kB / 499.3 MB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.4329, allocations: 4 kB / 499.3 MB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004724/0.4334, allocations: 75.41 kB / 499.4 MB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.255e-05/0.4334, allocations: 31.98 kB / 499.4 MB, free: 14.42 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001739/0.4336, allocations: 143.4 kB / 499.5 MB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.4338, allocations: 98.78 kB / 499.6 MB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001142/0.4349, allocations: 0.7283 MB / 0.4886 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.4349, allocations: 4 kB / 0.4886 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.4349, allocations: 0 / 0.4886 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4349, allocations: 4.031 kB / 0.4886 GB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002925/0.4379, allocations: 2.418 MB / 0.491 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4379, allocations: 0 / 0.491 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005693/0.4385, allocations: 119.9 kB / 0.4911 GB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.4385, allocations: 0 / 0.4911 GB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.301e-05/0.4385, allocations: 27.94 kB / 0.4911 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.4385, allocations: 0 / 0.4911 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.4386, allocations: 0 / 0.4911 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/0.44, allocations: 1.139 MB / 0.4923 GB, free: 9.668 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003005/0.4403, allocations: 255.6 kB / 0.4925 GB, free: 9.398 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.4404, allocations: 24 kB / 0.4925 GB, free: 9.375 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004162/0.4409, allocations: 39.92 kB / 0.4926 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.441, allocations: 44.5 kB / 0.4926 GB, free: 9.293 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/0.441, allocations: 16 kB / 0.4926 GB, free: 9.277 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001255/0.4423, allocations: 0.944 MB / 0.4935 GB, free: 8.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4423, allocations: 0 / 0.4935 GB, free: 8.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007651/0.4431, allocations: 283 kB / 0.4938 GB, free: 8.043 MB / 394.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000847/0.4439, allocations: 0.5099 MB / 0.4943 GB, free: 7.547 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.445, allocations: 0.7382 MB / 0.495 GB, free: 6.781 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.445, allocations: 4.062 kB / 0.495 GB, free: 6.777 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004171/0.4454, allocations: 311.1 kB / 0.4953 GB, free: 6.473 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009249/0.4464, allocations: 232.1 kB / 0.4955 GB, free: 6.246 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003315/0.4497, allocations: 2.036 MB / 0.4975 GB, free: 4.18 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009234/0.4506, allocations: 1.364 MB / 0.4989 GB, free: 2.789 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006004/0.4512, allocations: 171 kB / 0.499 GB, free: 2.617 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002179/0.4515, allocations: 67.42 kB / 0.4991 GB, free: 2.551 MB / 394.7 MB Notification: Performance of SimCode: time 8.71e-07/0.4515, allocations: 0 / 0.4991 GB, free: 2.551 MB / 394.7 MB Notification: Performance of Templates: time 0.2068/0.6583, allocations: 14.77 MB / 0.5135 GB, free: 103.3 MB / 394.7 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)