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.0009975/0.0009975, allocations: 173.2 kB / 7.649 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05399/0.05399, allocations: 7.033 MB / 15.11 MB, free: 192 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.538/1.538, allocations: 194.3 MB / 211.4 MB, free: 15.38 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.001572/0.001572, allocations: 109.8 kB / 257.8 MB, free: 1.488 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.56e-05/1.562e-05, allocations: 4 kB / 310.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2776, allocations: 45.98 MB / 356.1 MB, free: 45.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1257/0.4033, allocations: 85.24 MB / 441.4 MB, free: 6.262 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/0.4036, allocations: 87.52 kB / 441.4 MB, free: 6.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07358/0.4772, allocations: 32.01 MB / 473.4 MB, free: 6.355 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4773, allocations: 0 / 473.4 MB, free: 6.355 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.242e-05/0.4774, allocations: 28 kB / 473.5 MB, free: 6.328 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.002514/0.4799, allocations: 1.419 MB / 474.9 MB, free: 4.848 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.48, allocations: 8.031 kB / 474.9 MB, free: 4.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002859/0.4803, allocations: 166 kB / 475.1 MB, free: 4.676 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001931/0.4822, allocations: 1.172 MB / 476.2 MB, free: 3.445 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.907e-05/0.4823, allocations: 36 kB / 476.3 MB, free: 3.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.4824, allocations: 60 kB / 476.3 MB, free: 3.352 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001548/0.484, allocations: 0.8202 MB / 477.1 MB, free: 2.531 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001895/0.4859, allocations: 0.9864 MB / 478.1 MB, free: 1.527 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.702e-05/0.4859, allocations: 0 / 478.1 MB, free: 1.527 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.042e-05/0.486, allocations: 7.938 kB / 478.1 MB, free: 1.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/0.486, allocations: 28 kB / 478.2 MB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006953/0.493, allocations: 4.261 MB / 482.4 MB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001922/0.495, allocations: 2.086 MB / 484.5 MB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007273/0.4957, allocations: 411.7 kB / 484.9 MB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.02e-05/0.4958, allocations: 12.56 kB / 484.9 MB, free: 10.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006381/0.4964, allocations: 395.9 kB / 485.3 MB, free: 9.945 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 3.206e-06/0.4964, allocations: 0 / 485.3 MB, free: 9.945 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.001237/0.4977, allocations: 0.6349 MB / 486 MB, free: 9.305 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.4978, allocations: 188.5 kB / 486.1 MB, free: 9.074 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/0.4995, allocations: 1.126 MB / 487.3 MB, free: 7.926 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.024e-05/0.4995, allocations: 29.7 kB / 487.3 MB, free: 7.891 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005878/0.5001, allocations: 0.5968 MB / 487.9 MB, free: 7.285 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.5003, allocations: 189.1 kB / 488.1 MB, free: 7.098 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/0.5004, allocations: 0 / 488.1 MB, free: 7.098 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5005, allocations: 337.9 kB / 488.4 MB, free: 6.762 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003978/0.5009, allocations: 273.5 kB / 488.7 MB, free: 6.496 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004856/0.5014, allocations: 368.2 kB / 489 MB, free: 6.102 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004821/0.5019, allocations: 325 kB / 489.3 MB, free: 5.785 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.5019, allocations: 3.984 kB / 489.4 MB, free: 5.781 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001238/0.5032, allocations: 0.7724 MB / 490.1 MB, free: 5.004 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.041e-05/0.5032, allocations: 59.41 kB / 490.2 MB, free: 4.934 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.5032, allocations: 192 / 490.2 MB, free: 4.934 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.5033, allocations: 8 kB / 490.2 MB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006851/0.504, allocations: 147.8 kB / 490.3 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.504, allocations: 4 kB / 490.3 MB, free: 4.777 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004981/0.5045, allocations: 59.5 kB / 490.4 MB, free: 4.719 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.289e-05/0.5045, allocations: 28 kB / 490.4 MB, free: 4.691 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: 7 * 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.0002096/0.5048, allocations: 124.5 kB / 490.5 MB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009595/0.5057, allocations: 0.6309 MB / 491.2 MB, free: 3.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.5059, allocations: 102.7 kB / 491.3 MB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001202/0.5071, allocations: 0.6615 MB / 491.9 MB, free: 3.156 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.5071, allocations: 8 kB / 491.9 MB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.902e-06/0.5071, allocations: 0 / 491.9 MB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.5071, allocations: 11.95 kB / 492 MB, free: 3.137 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.5106, allocations: 2.332 MB / 494.3 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.5106, allocations: 0 / 494.3 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005984/0.5112, allocations: 123.9 kB / 494.4 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/0.5112, allocations: 4 kB / 494.4 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.841e-05/0.5112, allocations: 11.98 kB / 494.4 MB, free: 0.6172 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.5113, allocations: 3.953 kB / 494.4 MB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.5113, allocations: 3.938 kB / 494.4 MB, free: 0.6094 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.5128, allocations: 1.103 MB / 495.5 MB, free: 15.47 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003223/0.5131, allocations: 239.7 kB / 495.8 MB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.5133, allocations: 15.94 kB / 495.8 MB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004137/0.5137, allocations: 27.97 kB / 495.8 MB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.5138, allocations: 44.5 kB / 495.9 MB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.906e-05/0.5139, allocations: 16 kB / 495.9 MB, free: 15.12 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001262/0.5151, allocations: 0.8598 MB / 496.7 MB, free: 14.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5151, allocations: 0 / 496.7 MB, free: 14.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008172/0.516, allocations: 254.8 kB / 497 MB, free: 14 MB / 394.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.002818/0.5188, allocations: 2.14 MB / 499.1 MB, free: 11.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.52, allocations: 0.7161 MB / 499.8 MB, free: 11.11 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.52, allocations: 0 / 499.8 MB, free: 11.11 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004362/0.5204, allocations: 302 kB / 0.4884 GB, free: 10.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.5215, allocations: 199.4 kB / 0.4886 GB, free: 10.62 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00447/0.526, allocations: 2.332 MB / 0.4909 GB, free: 8.238 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001039/0.527, allocations: 1.379 MB / 0.4922 GB, free: 6.832 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006191/0.5277, allocations: 166.6 kB / 0.4924 GB, free: 6.664 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006847/0.5284, allocations: 479.2 kB / 0.4928 GB, free: 6.195 MB / 394.7 MB Notification: Performance of SimCode: time 1.442e-06/0.5284, allocations: 0 / 0.4928 GB, free: 6.195 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2563/0.7847, allocations: 21.85 MB / 0.5142 GB, free: 101.2 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001479/0.7849, allocations: 193 kB / 0.5144 GB, free: 101 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.545/3.329, allocations: 0 / 0.5144 GB, free: 101 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)