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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002284/0.002284, allocations: 181 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04325/0.04325, allocations: 7.038 MB / 14.91 MB, free: 248 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9409/0.9409, allocations: 194.2 MB / 211 MB, free: 15.53 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.001585/0.001585, allocations: 116.7 kB / 257.5 MB, free: 324 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.171e-06/6.272e-06, allocations: 0 / 309.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1737/0.1738, allocations: 45.96 MB / 355.5 MB, free: 47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08442/0.2582, allocations: 85.18 MB / 440.6 MB, free: 6.434 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.2584, allocations: 79.97 kB / 440.7 MB, free: 6.355 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.06577/0.3242, allocations: 31.76 MB / 472.5 MB, free: 6.777 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.222e-05/0.3244, allocations: 35.88 kB / 472.5 MB, free: 6.742 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.002429/0.3268, allocations: 1.416 MB / 473.9 MB, free: 5.266 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.3268, allocations: 11.97 kB / 473.9 MB, free: 5.254 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002981/0.3271, allocations: 158 kB / 474.1 MB, free: 5.098 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.3289, allocations: 1.188 MB / 475.3 MB, free: 3.852 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.595e-05/0.3289, allocations: 40 kB / 475.3 MB, free: 3.812 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.3291, allocations: 63.91 kB / 475.4 MB, free: 3.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001439/0.3305, allocations: 0.8318 MB / 476.2 MB, free: 2.918 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.3321, allocations: 0.9939 MB / 477.2 MB, free: 1.906 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.3322, allocations: 0 / 477.2 MB, free: 1.906 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.305e-05/0.3322, allocations: 0 / 477.2 MB, free: 1.906 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.3323, allocations: 24 kB / 477.2 MB, free: 1.883 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005679/0.3379, allocations: 4.249 MB / 481.5 MB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007186/0.3387, allocations: 491.1 kB / 482 MB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007059/0.3394, allocations: 468.2 kB / 482.4 MB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.945e-05/0.3394, allocations: 4.5 kB / 482.4 MB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005299/0.34, allocations: 402.2 kB / 482.8 MB, free: 12.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 1.513e-06/0.34, allocations: 0 / 482.8 MB, free: 12.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.000987/0.341, allocations: 0.6324 MB / 483.4 MB, free: 11.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.265e-05/0.3411, allocations: 166.7 kB / 483.6 MB, free: 11.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001518/0.3426, allocations: 1.146 MB / 484.8 MB, free: 10.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.862e-05/0.3426, allocations: 25.7 kB / 484.8 MB, free: 10.17 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002919/0.3429, allocations: 431.2 kB / 485.2 MB, free: 9.742 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.3431, allocations: 189.2 kB / 485.4 MB, free: 9.555 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.074e-05/0.3432, allocations: 0 / 485.4 MB, free: 9.555 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.3433, allocations: 341.9 kB / 485.7 MB, free: 9.215 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004081/0.3437, allocations: 269.3 kB / 486 MB, free: 8.949 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004633/0.3442, allocations: 370.4 kB / 486.3 MB, free: 8.562 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004715/0.3446, allocations: 331.7 kB / 486.7 MB, free: 8.238 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3447, allocations: 112 / 486.7 MB, free: 8.238 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001134/0.3458, allocations: 0.776 MB / 487.4 MB, free: 7.453 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.3458, allocations: 9.719 kB / 487.5 MB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3458, allocations: 0 / 487.5 MB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.3458, allocations: 8.156 kB / 487.5 MB, free: 7.438 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000636/0.3465, allocations: 143.8 kB / 487.6 MB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.3465, allocations: 7.906 kB / 487.6 MB, free: 7.289 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004445/0.347, allocations: 67.5 kB / 487.7 MB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.645e-05/0.347, allocations: 16 kB / 487.7 MB, free: 7.207 MB / 378.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.0001618/0.3472, allocations: 124.6 kB / 487.8 MB, free: 7.078 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.3473, allocations: 98.69 kB / 487.9 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001061/0.3484, allocations: 0.6862 MB / 488.6 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.3484, allocations: 4 kB / 488.6 MB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3484, allocations: 0 / 488.6 MB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.3484, allocations: 7.984 kB / 488.6 MB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002588/0.351, allocations: 2.145 MB / 490.8 MB, free: 4.086 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.351, allocations: 0 / 490.8 MB, free: 4.086 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006088/0.3516, allocations: 115.9 kB / 490.9 MB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.171e-06/0.3517, allocations: 4 kB / 490.9 MB, free: 3.969 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.927e-05/0.3517, allocations: 12 kB / 490.9 MB, free: 3.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.3517, allocations: 0 / 490.9 MB, free: 3.957 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.3517, allocations: 11.97 kB / 490.9 MB, free: 3.945 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001398/0.3531, allocations: 1.144 MB / 492 MB, free: 2.777 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002665/0.3534, allocations: 243.6 kB / 492.3 MB, free: 2.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.3536, allocations: 16 kB / 492.3 MB, free: 2.504 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004372/0.354, allocations: 31.97 kB / 492.3 MB, free: 2.473 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.882e-05/0.3541, allocations: 32.44 kB / 492.4 MB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.636e-05/0.3542, allocations: 19.94 kB / 492.4 MB, free: 2.422 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001084/0.3552, allocations: 0.8716 MB / 493.2 MB, free: 1.539 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005834/0.3558, allocations: 254.8 kB / 493.5 MB, free: 1.289 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.0007015/0.3565, allocations: 498 kB / 494 MB, free: 0.8164 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008938/0.3575, allocations: 0.6761 MB / 494.7 MB, free: 132 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3575, allocations: 0 / 494.7 MB, free: 132 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004372/0.3579, allocations: 317.8 kB / 495 MB, free: 15.81 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007997/0.3587, allocations: 212.2 kB / 495.2 MB, free: 15.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00341/0.3621, allocations: 1.99 MB / 497.2 MB, free: 13.57 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00127/0.3634, allocations: 1.433 MB / 498.6 MB, free: 12.11 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3634, allocations: 0 / 498.6 MB, free: 12.11 MB / 394.7 MB Notification: Performance of Templates: time 0.01965/0.3831, allocations: 11.5 MB / 0.4981 GB, free: 0.5898 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)