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: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.006011/0.006011, allocations: 173.8 kB / 15.12 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06201/0.06201, allocations: 7.034 MB / 22.89 MB, free: 4.484 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.491/1.491, allocations: 194.5 MB / 219.6 MB, free: 15.59 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.001679/0.001679, allocations: 120.6 kB / 266.4 MB, free: 0.6836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003624, allocations: 8 kB / 322.9 MB, free: 17.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08689/0.08727, allocations: 45.98 MB / 368.9 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2654/0.3527, allocations: 86 MB / 454.9 MB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.353, allocations: 83.03 kB / 455 MB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07613/0.4292, allocations: 32.54 MB / 487.5 MB, free: 13.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4292, allocations: 4 kB / 487.5 MB, free: 13.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.689e-05/0.4293, allocations: 31.94 kB / 487.6 MB, free: 13.82 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.003279/0.4326, allocations: 1.637 MB / 489.2 MB, free: 12.11 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.4327, allocations: 8.031 kB / 489.2 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003776/0.4331, allocations: 170.1 kB / 489.4 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003169/0.4334, allocations: 166 kB / 489.5 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002093/0.4355, allocations: 1.184 MB / 490.7 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.669e-05/0.4356, allocations: 82 kB / 490.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/0.4358, allocations: 103.9 kB / 490.9 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00222/0.438, allocations: 1.177 MB / 492.1 MB, free: 9.148 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.438, allocations: 352 / 492.1 MB, free: 9.148 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.4382, allocations: 43.95 kB / 492.1 MB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.25e-05/0.4382, allocations: 24 kB / 492.2 MB, free: 9.082 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001959/0.4402, allocations: 0.941 MB / 493.1 MB, free: 8.145 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007514/0.4477, allocations: 4.459 MB / 497.6 MB, free: 3.613 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002186/0.4499, allocations: 2.168 MB / 499.7 MB, free: 1.121 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.294e-05/0.45, allocations: 5.188 kB / 499.7 MB, free: 1.117 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008346/0.4508, allocations: 442.7 kB / 0.4884 GB, free: 0.668 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 2.875e-06/0.4509, allocations: 0 / 0.4884 GB, free: 0.668 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.002096/0.453, allocations: 0.9864 MB / 0.4894 GB, free: 15.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.702e-05/0.4531, allocations: 170.5 kB / 0.4896 GB, free: 15.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001842/0.4549, allocations: 1.243 MB / 0.4908 GB, free: 14.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.029e-05/0.455, allocations: 41.64 kB / 0.4908 GB, free: 14.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005926/0.4556, allocations: 0.5973 MB / 0.4914 GB, free: 13.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002029/0.4558, allocations: 193.2 kB / 0.4916 GB, free: 13.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.76e-05/0.4559, allocations: 12 kB / 0.4916 GB, free: 13.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.456, allocations: 334 kB / 0.4919 GB, free: 13.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005985/0.4566, allocations: 305.2 kB / 0.4922 GB, free: 12.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006578/0.4573, allocations: 427.6 kB / 0.4926 GB, free: 12.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006644/0.4579, allocations: 415.2 kB / 0.493 GB, free: 11.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.458, allocations: 0 / 0.493 GB, free: 11.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001838/0.4598, allocations: 0.9366 MB / 0.4939 GB, free: 10.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.08e-05/0.4599, allocations: 59.41 kB / 0.494 GB, free: 10.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.4599, allocations: 4 kB / 0.494 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.4599, allocations: 4 kB / 0.494 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006829/0.4606, allocations: 147.9 kB / 0.4941 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.4607, allocations: 4 kB / 0.4941 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007245/0.4614, allocations: 87.3 kB / 0.4942 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.639e-05/0.4615, allocations: 20 kB / 0.4942 GB, free: 10.57 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" fixed = true ) 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 () * Number of clocked 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.001136/0.4626, allocations: 0.4904 MB / 0.4947 GB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000244/0.4629, allocations: 102.8 kB / 0.4948 GB, free: 9.965 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/0.4646, allocations: 0.7792 MB / 0.4956 GB, free: 9.176 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.4646, allocations: 12 kB / 0.4956 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.4646, allocations: 0 / 0.4956 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.4647, allocations: 7.922 kB / 0.4956 GB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004055/0.4687, allocations: 2.445 MB / 0.498 GB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.4688, allocations: 0 / 0.498 GB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000627/0.4694, allocations: 119.8 kB / 0.4981 GB, free: 6.531 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.096e-05/0.4694, allocations: 11.95 kB / 0.4981 GB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.889e-05/0.4695, allocations: 23.94 kB / 0.4981 GB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.4695, allocations: 0 / 0.4981 GB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.4695, allocations: 4 kB / 0.4981 GB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002139/0.4717, allocations: 1.225 MB / 0.4993 GB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004581/0.4721, allocations: 247.7 kB / 0.4996 GB, free: 4.984 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.4723, allocations: 23.95 kB / 0.4996 GB, free: 4.961 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000477/0.4728, allocations: 39.97 kB / 0.4996 GB, free: 4.922 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.823e-05/0.4729, allocations: 40.5 kB / 0.4997 GB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.312e-05/0.4729, allocations: 16 kB / 0.4997 GB, free: 4.867 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001573/0.4745, allocations: 0.9628 MB / 0.5006 GB, free: 3.895 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4745, allocations: 0 / 0.5006 GB, free: 3.895 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009759/0.4755, allocations: 278.8 kB / 0.5009 GB, free: 3.621 MB / 378.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) * 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 (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.003461/0.479, allocations: 2.211 MB / 0.503 GB, free: 1.395 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.4806, allocations: 0.8113 MB / 0.5038 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4807, allocations: 0 / 0.5038 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006109/0.4813, allocations: 343.4 kB / 0.5042 GB, free: 232 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.4827, allocations: 244 kB / 0.5044 GB, free: 15.98 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006187/0.4889, allocations: 4.448 MB / 0.5087 GB, free: 11.45 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009849/0.4899, allocations: 1.367 MB / 0.5101 GB, free: 10.05 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006704/0.4906, allocations: 167 kB / 0.5102 GB, free: 9.887 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007229/0.4913, allocations: 487.3 kB / 0.5107 GB, free: 9.41 MB / 394.7 MB Notification: Performance of SimCode: time 1.203e-06/0.4913, allocations: 0 / 0.5107 GB, free: 9.41 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2105/0.7018, allocations: 25.74 MB / 0.5358 GB, free: 111.5 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001393/0.702, allocations: 240.4 kB / 0.5361 GB, free: 111.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.645/3.347, allocations: 0 / 0.5361 GB, free: 111.3 MB / 410.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent_fmu --startTime=0 --stopTime=14100 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1)