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.0009745/0.0009746, 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.05455/0.05455, allocations: 7.034 MB / 20.3 MB, free: 4.398 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.254/1.254, allocations: 194.3 MB / 216.6 MB, free: 10.87 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.00168/0.00168, allocations: 104.1 kB / 263.1 MB, free: 13.39 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.508e-05/2.509e-05, allocations: 4 kB / 317.1 MB, free: 7.387 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2514, allocations: 45.97 MB / 363.1 MB, free: 46.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09576/0.3472, allocations: 85.91 MB / 449 MB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001821/0.3474, allocations: 85.17 kB / 449.1 MB, free: 1.457 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06755/0.415, allocations: 32.56 MB / 481.6 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.415, allocations: 7.938 kB / 481.6 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.312e-05/0.4151, allocations: 28 kB / 481.7 MB, free: 0.9453 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.002149/0.4172, allocations: 1.415 MB / 483.1 MB, free: 15.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.4173, allocations: 8.031 kB / 483.1 MB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002467/0.4175, allocations: 162.2 kB / 483.2 MB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002276/0.4178, allocations: 162 kB / 483.4 MB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001657/0.4194, allocations: 1.176 MB / 484.6 MB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.785e-05/0.4195, allocations: 81.98 kB / 484.7 MB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001411/0.4197, allocations: 108 kB / 484.8 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/0.4215, allocations: 1.131 MB / 485.9 MB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.4215, allocations: 352 / 485.9 MB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-05/0.4216, allocations: 47.89 kB / 485.9 MB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.072e-05/0.4217, allocations: 24 kB / 486 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.423, allocations: 0.8749 MB / 486.8 MB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005697/0.4288, allocations: 4.455 MB / 491.3 MB, free: 7.098 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/0.4304, allocations: 2.105 MB / 493.4 MB, free: 4.668 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005863/0.431, allocations: 391 kB / 493.8 MB, free: 4.285 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.246e-05/0.431, allocations: 12.55 kB / 493.8 MB, free: 4.273 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005823/0.4316, allocations: 418.7 kB / 494.2 MB, free: 3.844 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 2.424e-06/0.4316, allocations: 0 / 494.2 MB, free: 3.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.001022/0.4327, allocations: 0.6583 MB / 494.9 MB, free: 3.176 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.786e-05/0.4328, allocations: 174.7 kB / 495 MB, free: 2.969 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001551/0.4343, allocations: 1.225 MB / 496.3 MB, free: 1.723 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.824e-05/0.4344, allocations: 41.7 kB / 496.3 MB, free: 1.676 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004548/0.4349, allocations: 0.5934 MB / 496.9 MB, free: 1.074 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.435, allocations: 193.2 kB / 497.1 MB, free: 0.8828 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.619e-05/0.4351, allocations: 12.11 kB / 497.1 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.4352, allocations: 341.9 kB / 497.4 MB, free: 0.5312 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000418/0.4356, allocations: 281.5 kB / 497.7 MB, free: 264 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004866/0.4361, allocations: 389.1 kB / 498.1 MB, free: 15.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005059/0.4366, allocations: 390.2 kB / 498.5 MB, free: 15.45 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4366, allocations: 4 kB / 498.5 MB, free: 15.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001208/0.4378, allocations: 0.881 MB / 499.3 MB, free: 14.55 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.241e-05/0.4379, allocations: 59.39 kB / 499.4 MB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.4379, allocations: 8.156 kB / 499.4 MB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.4379, allocations: 7.938 kB / 499.4 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000611/0.4385, allocations: 139.8 kB / 499.6 MB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/0.4386, allocations: 11.92 kB / 499.6 MB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004696/0.439, allocations: 87.36 kB / 499.7 MB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.719e-05/0.4391, allocations: 20 kB / 499.7 MB, free: 14.21 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.0001735/0.4393, allocations: 155.9 kB / 499.8 MB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.4394, allocations: 102.8 kB / 499.9 MB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001122/0.4405, allocations: 0.7205 MB / 0.4889 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.8e-06/0.4406, allocations: 4 kB / 0.4889 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.4406, allocations: 0 / 0.4889 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.4406, allocations: 7.984 kB / 0.4889 GB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002914/0.4435, allocations: 2.41 MB / 0.4913 GB, free: 10.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.4435, allocations: 0 / 0.4913 GB, free: 10.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005732/0.4441, allocations: 123.9 kB / 0.4914 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-06/0.4441, allocations: 7.953 kB / 0.4914 GB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.605e-05/0.4442, allocations: 12 kB / 0.4914 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.4442, allocations: 7.984 kB / 0.4914 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.4442, allocations: 0 / 0.4914 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.4456, allocations: 1.139 MB / 0.4925 GB, free: 9.453 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002689/0.4459, allocations: 251.6 kB / 0.4928 GB, free: 9.188 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.446, allocations: 23.94 kB / 0.4928 GB, free: 9.164 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004181/0.4465, allocations: 43.97 kB / 0.4928 GB, free: 9.121 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.4466, allocations: 36.5 kB / 0.4929 GB, free: 9.086 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.4466, allocations: 16 kB / 0.4929 GB, free: 9.07 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001271/0.4479, allocations: 0.9518 MB / 0.4938 GB, free: 8.105 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4479, allocations: 0 / 0.4938 GB, free: 8.105 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007307/0.4487, allocations: 275 kB / 0.4941 GB, free: 7.836 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.002435/0.4511, allocations: 2.097 MB / 0.4961 GB, free: 5.73 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.4521, allocations: 0.7458 MB / 0.4969 GB, free: 4.961 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4522, allocations: 0 / 0.4969 GB, free: 4.961 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004573/0.4526, allocations: 307.2 kB / 0.4972 GB, free: 4.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.4536, allocations: 232.4 kB / 0.4974 GB, free: 4.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004379/0.458, allocations: 2.412 MB / 0.4997 GB, free: 1.969 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001009/0.4591, allocations: 1.371 MB / 0.5011 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000694/0.4598, allocations: 171 kB / 0.5012 GB, free: 408 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1813/0.6411, allocations: 473.9 kB / 0.5017 GB, free: 104.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.453e-06/0.6411, allocations: 0 / 0.5017 GB, free: 104.3 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04558/0.6867, allocations: 26.32 MB / 0.5274 GB, free: 102.5 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001501/0.6869, allocations: 209.2 kB / 0.5276 GB, free: 102.3 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.525/3.212, allocations: 0 / 0.5276 GB, free: 102.3 MB / 394.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)