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.001025/0.001025, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001084/0.001084, allocations: 194.5 kB / 16.14 MB, free: 6.652 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 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05455/0.05455, allocations: 7.034 MB / 276.4 MB, free: 14.43 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.001286/0.001286, allocations: 56.77 kB / 335.2 MB, free: 27.55 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1097, allocations: 48.1 MB / 383.3 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008112/0.1178, allocations: 6.762 MB / 390.1 MB, free: 4.566 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006884/0.1248, allocations: 4.389 MB / 394.5 MB, free: 160 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001415/0.1262, allocations: 35.88 kB / 394.5 MB, free: 124 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002798/0.1291, allocations: 0.8636 MB / 395.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001575/0.1307, allocations: 286.1 kB / 395.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.132, allocations: 0.6363 MB / 396.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002671/0.1347, allocations: 1.99 MB / 398.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/0.1361, allocations: 1.068 MB / 399.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008265/0.137, allocations: 0.5444 MB / 399.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006093/0.1376, allocations: 0.6296 MB / 400.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001648/0.1378, allocations: 104 kB / 400.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002697/0.138, allocations: 132 kB / 400.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002478/0.1383, allocations: 318.6 kB / 401 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006391/0.1389, allocations: 0.7655 MB / 401.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00206/0.141, allocations: 2.89 MB / 404.7 MB, free: 5.852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.141, allocations: 0 / 404.7 MB, free: 5.852 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.141, allocations: 0 / 404.7 MB, free: 5.852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.34e-05/0.1411, allocations: 0 / 404.7 MB, free: 5.852 MB / 302.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.003273/0.1444, allocations: 1.947 MB / 406.6 MB, free: 3.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.1444, allocations: 12.03 kB / 406.7 MB, free: 3.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002583/0.1447, allocations: 170.9 kB / 406.8 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001653/0.1463, allocations: 1.361 MB / 408.2 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.301e-05/0.1464, allocations: 86.45 kB / 408.3 MB, free: 2.156 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/0.1466, allocations: 116.1 kB / 408.4 MB, free: 2.043 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002133/0.1487, allocations: 1.331 MB / 409.7 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.65e-05/0.1488, allocations: 0 / 409.7 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.1489, allocations: 48 kB / 409.8 MB, free: 0.582 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/0.1489, allocations: 28 kB / 409.8 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001805/0.1507, allocations: 1.007 MB / 410.8 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007302/0.158, allocations: 5.662 MB / 416.5 MB, free: 9.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002197/0.1603, allocations: 2.161 MB / 418.6 MB, free: 7.281 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007217/0.161, allocations: 407.3 kB / 419 MB, free: 6.883 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.367e-05/0.1611, allocations: 16.5 kB / 419 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007836/0.1619, allocations: 442.6 kB / 419.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.334e-06/0.1619, allocations: 0 / 419.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.002043/0.164, allocations: 0.9739 MB / 420.4 MB, free: 5.434 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.1641, allocations: 166.7 kB / 420.6 MB, free: 5.234 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002453/0.1665, allocations: 1.473 MB / 422.1 MB, free: 3.746 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.65e-05/0.1666, allocations: 37.7 kB / 422.1 MB, free: 3.703 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006204/0.1673, allocations: 0.6518 MB / 422.8 MB, free: 3.043 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.1675, allocations: 201.2 kB / 423 MB, free: 2.844 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002466/0.1677, allocations: 134.6 kB / 423.1 MB, free: 2.707 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1679, allocations: 338 kB / 423.4 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000616/0.1685, allocations: 325.8 kB / 423.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007435/0.1693, allocations: 0.5232 MB / 424.3 MB, free: 1.449 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1794/0.3487, allocations: 1.65 MB / 425.9 MB, free: 44.92 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/0.3487, allocations: 4.219 kB / 425.9 MB, free: 44.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00258/0.3513, allocations: 1.01 MB / 426.9 MB, free: 44.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.933e-05/0.3514, allocations: 38.19 kB / 427 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.3514, allocations: 5.062 kB / 427 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.64e-05/0.3515, allocations: 10.94 kB / 427 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007615/0.3522, allocations: 162.9 kB / 427.1 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.828e-05/0.3523, allocations: 16.56 kB / 427.1 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007749/0.3531, allocations: 90.31 kB / 427.2 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.497e-05/0.3532, allocations: 27.36 kB / 427.3 MB, free: 44.78 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.001006/0.3542, allocations: 0.5314 MB / 427.8 MB, free: 44.65 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003523/0.3545, allocations: 114.7 kB / 427.9 MB, free: 44.65 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001688/0.3562, allocations: 0.7786 MB / 428.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.3563, allocations: 6.391 kB / 428.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.3563, allocations: 0 / 428.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.3563, allocations: 3.484 kB / 428.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004074/0.3604, allocations: 2.43 MB / 431.1 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3604, allocations: 4.469 kB / 431.1 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006046/0.361, allocations: 117.4 kB / 431.2 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-05/0.361, allocations: 1.812 kB / 431.2 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.057e-05/0.3611, allocations: 23.41 kB / 431.3 MB, free: 43.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.426e-06/0.3611, allocations: 2.484 kB / 431.3 MB, free: 43.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3611, allocations: 0 / 431.3 MB, free: 43.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.3632, allocations: 1.207 MB / 432.5 MB, free: 42.62 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003847/0.3636, allocations: 247.2 kB / 432.7 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002287/0.3638, allocations: 20.5 kB / 432.7 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005233/0.3643, allocations: 35.05 kB / 432.8 MB, free: 42.4 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.3645, allocations: 41.94 kB / 432.8 MB, free: 42.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-05/0.3645, allocations: 15.8 kB / 432.8 MB, free: 42.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001829/0.3664, allocations: 1.037 MB / 433.9 MB, free: 41.95 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3664, allocations: 0 / 433.9 MB, free: 41.95 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001167/0.3675, allocations: 267 kB / 434.1 MB, free: 41.9 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.0008392/0.3684, allocations: 384.5 kB / 434.5 MB, free: 41.64 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.3701, allocations: 0.7834 MB / 435.3 MB, free: 41.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3701, allocations: 0.6562 kB / 435.3 MB, free: 41.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007519/0.3708, allocations: 333.8 kB / 435.6 MB, free: 41.17 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001694/0.3726, allocations: 262.4 kB / 435.9 MB, free: 41.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005292/0.3779, allocations: 3.171 MB / 439 MB, free: 39.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001684/0.3796, allocations: 1.371 MB / 440.4 MB, free: 38.3 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001006/0.3806, allocations: 188.9 kB / 440.6 MB, free: 38.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003351/0.3809, allocations: 68.55 kB / 440.7 MB, free: 38.27 MB / 318.1 MB Notification: Performance of SimCode: time 1.373e-06/0.3809, allocations: 1.156 kB / 440.7 MB, free: 38.27 MB / 318.1 MB Notification: Performance of Templates: time 0.02052/0.4015, allocations: 13.79 MB / 454.5 MB, free: 28.15 MB / 318.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)