Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling.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.AdvancedCellCycling,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellCycling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellCycling,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellCycling",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.009592/0.009592, allocations: 174.6 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07418/0.07418, allocations: 7.036 MB / 22.89 MB, free: 4.465 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.516/1.516, 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.001907/0.001907, allocations: 120.6 kB / 266.4 MB, free: 0.6875 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003822/0.0003823, allocations: 15.98 kB / 322.9 MB, free: 17.33 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08241/0.08282, allocations: 45.98 MB / 368.9 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2719/0.3548, allocations: 92.3 MB / 461.2 MB, free: 5.539 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.3551, allocations: 94.78 kB / 461.3 MB, free: 5.492 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.128/0.483, allocations: 48.73 MB / 0.4981 GB, free: 7.309 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4831, allocations: 0 / 0.4981 GB, free: 7.309 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000221/0.4833, allocations: 43.98 kB / 0.4981 GB, free: 7.266 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 445 * Number of variables: 445 Notification: Performance of Generate backend data structure: time 0.006295/0.4896, allocations: 2.315 MB / 0.5004 GB, free: 4.875 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.4897, allocations: 12.02 kB / 0.5004 GB, free: 4.863 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009396/0.4906, allocations: 268.8 kB / 0.5006 GB, free: 4.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008947/0.4915, allocations: 252.9 kB / 0.5009 GB, free: 4.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004119/0.4957, allocations: 1.729 MB / 0.5026 GB, free: 2.559 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001827/0.4959, allocations: 143.5 kB / 0.5027 GB, free: 2.418 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004841/0.4964, allocations: 179.9 kB / 0.5029 GB, free: 2.242 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004878/0.5013, allocations: 1.926 MB / 0.5048 GB, free: 296 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.863e-05/0.5013, allocations: 11.89 kB / 0.5048 GB, free: 284 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002335/0.5016, allocations: 68 kB / 0.5048 GB, free: 216 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.2e-05/0.5016, allocations: 47.94 kB / 0.5049 GB, free: 168 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003333/0.505, allocations: 1.49 MB / 0.5063 GB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01399/0.519, allocations: 7.545 MB / 0.5137 GB, free: 7 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002957/0.522, allocations: 2.533 MB / 0.5162 GB, free: 4.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.065e-05/0.5221, allocations: 16.94 kB / 0.5162 GB, free: 4.145 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001183/0.5233, allocations: 0.6109 MB / 0.5168 GB, free: 3.512 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 4.378e-06/0.5233, allocations: 3.984 kB / 0.5168 GB, free: 3.508 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.003672/0.527, allocations: 1.685 MB / 0.5184 GB, free: 1.801 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.907e-05/0.5271, allocations: 163.2 kB / 0.5186 GB, free: 1.602 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Math.mo:595:5-596:48:writable] Warning: Parameter cycler.iOut[1].gain.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Math.mo:595:5-596:48:writable] Warning: Parameter cycler.vOut[1].gain.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003544/0.5307, allocations: 1.815 MB / 0.5204 GB, free: 15.78 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001309/0.5308, allocations: 57.64 kB / 0.5204 GB, free: 15.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009961/0.5318, allocations: 0.9116 MB / 0.5213 GB, free: 14.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002966/0.5321, allocations: 287.9 kB / 0.5216 GB, free: 14.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.743e-05/0.5322, allocations: 20 kB / 0.5216 GB, free: 14.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.5324, allocations: 341.9 kB / 0.5219 GB, free: 14.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008849/0.5333, allocations: 461.8 kB / 0.5224 GB, free: 13.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009752/0.5342, allocations: 0.6012 MB / 0.523 GB, free: 13.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.5353, allocations: 0.5251 MB / 0.5235 GB, free: 12.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.5353, allocations: 7.938 kB / 0.5235 GB, free: 12.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002883/0.5382, allocations: 1.357 MB / 0.5248 GB, free: 11.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.487e-05/0.5382, allocations: 29.7 kB / 0.5248 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.5383, allocations: 4 kB / 0.5248 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003343/0.5386, allocations: 88.81 kB / 0.5249 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008477/0.5395, allocations: 191.9 kB / 0.5251 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002097/0.5416, allocations: 1.981 MB / 0.527 GB, free: 8.691 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000934/0.5425, allocations: 123.1 kB / 0.5272 GB, free: 8.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.719e-05/0.5426, allocations: 32 kB / 0.5272 GB, free: 8.539 MB / 410.7 MB Warning: Assuming fixed start value for the following 1 variables: batteryCell.linearDynamicImpedance.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: 11 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition2,$whenCondition1,charger.on,cycler.Discharging,$PRE.cycler.cycling.rSFlipFlop.pre.u,cycler.cycling.rSFlipFlop.pre.u,cycler.cycling.lessVinMin.y,cycler.cycling.AfterChargingDelay.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.QI,$PRE.cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.greaterThreshold.y,cycler.cycling.BeforeChargingDelay.u,cycler.cycling.BeforeChargingDelay.rSFlipFlop.QI,$PRE.cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.BeforeChargingDelay.timer.entryTime,cycler.cycling.BeforeChargingDelay.timer.entryTime,cycler.cycling.BeforeChargingDelay.greaterThreshold.y,$PRE.cycler.cycling.edge1.u,cycler.cycling.edge1.u,cycler.cycling.edge1.y,cycler.cycling.greaterThreshold.y,cycler.cycling.or1.y,cycler.chargingFinished.GraterEqualVmax.y,$PRE.cycler.chargingFinished.fallingEdge.not_u,cycler.chargingFinished.fallingEdge.not_u,cycler.chargingFinished.and1.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 11} Notification: Performance of prepare postOptimizeDAE: time 0.001399/0.544, allocations: 0.7254 MB / 0.5279 GB, free: 7.801 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003826/0.5444, allocations: 154.1 kB / 0.528 GB, free: 7.648 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002854/0.5473, allocations: 1.171 MB / 0.5292 GB, free: 6.465 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/0.5473, allocations: 11.98 kB / 0.5292 GB, free: 6.453 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.5473, allocations: 0 / 0.5292 GB, free: 6.453 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.5473, allocations: 7.984 kB / 0.5292 GB, free: 6.445 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007302/0.5547, allocations: 3.768 MB / 0.5329 GB, free: 2.605 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.5547, allocations: 0 / 0.5329 GB, free: 2.605 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007515/0.5554, allocations: 139.8 kB / 0.533 GB, free: 2.469 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002222/0.5557, allocations: 76.81 kB / 0.5331 GB, free: 2.391 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.382e-05/0.5558, allocations: 27.98 kB / 0.5331 GB, free: 2.363 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002178/0.558, allocations: 1.896 MB / 0.535 GB, free: 336 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.558, allocations: 0 / 0.535 GB, free: 336 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1594/0.7174, allocations: 1.81 MB / 0.5367 GB, free: 103 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008001/0.7182, allocations: 443.4 kB / 0.5372 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002056/0.7184, allocations: 26.55 kB / 0.5372 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006201/0.7191, allocations: 63.69 kB / 0.5373 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002235/0.7193, allocations: 82.33 kB / 0.5373 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.916e-05/0.7194, allocations: 22.72 kB / 0.5374 GB, free: 102.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00223/0.7216, allocations: 1.36 MB / 0.5387 GB, free: 102.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7216, allocations: 3.875 kB / 0.5387 GB, free: 102.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00141/0.723, allocations: 413.1 kB / 0.5391 GB, free: 102.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (charger.controlledCurrent.limitedController.limIntegrator.y,batteryCell.linearDynamicImpedance.calculator.sOC.integrator.y,batteryCell.linearDynamicImpedance.calculator.q.absInt.y,batteryCell.linearDynamicImpedance.calculator.EquivalentCycles.integrator.y,batteryCell.linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,batteryCell.linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,batteryCell.linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,batteryCell.linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.y,batteryCell.linearDynamicImpedance.selfDischarge.qabs.absInt.y) * Number of discrete variables: 23 (cycler.cycling.AfterChargingDelay.u,cycler.cycling.BeforeChargingDelay.u,$whenCondition2,$whenCondition1,charger.on,cycler.Discharging,cycler.cycling.rSFlipFlop.pre.u,cycler.cycling.lessVinMin.y,cycler.cycling.AfterChargingDelay.rSFlipFlop.QI,cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.greaterThreshold.y,cycler.cycling.BeforeChargingDelay.rSFlipFlop.QI,cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,cycler.cycling.BeforeChargingDelay.timer.entryTime,cycler.cycling.BeforeChargingDelay.greaterThreshold.y,cycler.cycling.edge1.u,cycler.cycling.edge1.y,cycler.cycling.greaterThreshold.y,cycler.cycling.or1.y,cycler.chargingFinished.GraterEqualVmax.y,cycler.chargingFinished.fallingEdge.not_u,cycler.chargingFinished.and1.u1) * Number of discrete states: 5 (cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,cycler.cycling.rSFlipFlop.pre.u,cycler.chargingFinished.fallingEdge.not_u,cycler.cycling.edge1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 80 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.003764/0.7268, allocations: 2.832 MB / 0.5418 GB, free: 101.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.7289, allocations: 1.245 MB / 0.5431 GB, free: 101.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.7289, allocations: 0 / 0.5431 GB, free: 101.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009952/0.7299, allocations: 0.6663 MB / 0.5437 GB, free: 101.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.7311, allocations: 318.5 kB / 0.544 GB, free: 101.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008334/0.7394, allocations: 7.055 MB / 0.5509 GB, free: 97.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001513/0.7409, allocations: 1.707 MB / 0.5526 GB, free: 97 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008427/0.7418, allocations: 235.1 kB / 0.5528 GB, free: 96.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009153/0.7427, allocations: 0.7535 MB / 0.5535 GB, free: 96.98 MB / 410.7 MB Notification: Performance of SimCode: time 5.21e-07/0.7427, allocations: 4.703 kB / 0.5535 GB, free: 96.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05023/0.7929, allocations: 37.8 MB / 0.5905 GB, free: 92.05 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001315/0.7931, allocations: 264.7 kB / 0.5907 GB, free: 91.69 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3/3.793, allocations: 0 / 0.5907 GB, free: 91.69 MB / 410.7 MB (rm -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling.pipe ; mkfifo ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling.pipe ; head -c 1048576 < ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling.pipe >> ../files/ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellCycling_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellCycling.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling.pipe 2>&1)