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: translateModel(ElectricalEnergyStorage.Examples.AdvancedCellCycling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling") translateModel(ElectricalEnergyStorage.Examples.AdvancedCellCycling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001538/0.001538, allocations: 182.2 kB / 16.12 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.08326/0.08326, allocations: 7.044 MB / 23.91 MB, free: 4.336 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.439/1.439, allocations: 194.5 MB / 220.6 MB, free: 15.49 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.001636/0.001636, allocations: 116.1 kB / 267.4 MB, free: 0.5742 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003712/0.0003712, allocations: 12 kB / 324 MB, free: 17.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08504/0.08543, allocations: 45.99 MB / 370 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3019/0.3874, allocations: 92.47 MB / 462.5 MB, free: 5.426 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.3877, allocations: 95.78 kB / 462.6 MB, free: 5.379 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1059/0.4936, allocations: 48.83 MB / 0.4994 GB, free: 6.773 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.559e-06/0.4937, allocations: 0 / 0.4994 GB, free: 6.773 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001373/0.4938, allocations: 43.94 kB / 0.4995 GB, free: 6.73 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.004345/0.4982, allocations: 2.288 MB / 0.5017 GB, free: 4.363 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.4982, allocations: 12.02 kB / 0.5017 GB, free: 4.352 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005633/0.4988, allocations: 257.8 kB / 0.502 GB, free: 4.098 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003081/0.5019, allocations: 1.78 MB / 0.5037 GB, free: 2.266 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.5021, allocations: 143.9 kB / 0.5038 GB, free: 2.125 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003064/0.5024, allocations: 184.4 kB / 0.504 GB, free: 1.945 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003942/0.5063, allocations: 1.93 MB / 0.5059 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.88e-05/0.5064, allocations: 7.938 kB / 0.5059 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001702/0.5066, allocations: 68 kB / 0.506 GB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.679e-05/0.5066, allocations: 48 kB / 0.506 GB, free: 15.87 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003095/0.5097, allocations: 1.486 MB / 0.5075 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01216/0.5219, allocations: 7.544 MB / 0.5148 GB, free: 6.707 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002789/0.5247, allocations: 2.537 MB / 0.5173 GB, free: 3.863 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001147/0.5259, allocations: 0.6207 MB / 0.5179 GB, free: 3.242 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.929e-05/0.526, allocations: 16.92 kB / 0.5179 GB, free: 3.227 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001044/0.527, allocations: 0.6187 MB / 0.5185 GB, free: 2.586 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 3.767e-06/0.5271, allocations: 0 / 0.5185 GB, free: 2.586 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.003668/0.5307, allocations: 1.687 MB / 0.5202 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.5309, allocations: 167.2 kB / 0.5203 GB, free: 0.6719 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.003381/0.5343, allocations: 1.979 MB / 0.5223 GB, free: 14.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001427/0.5344, allocations: 53.69 kB / 0.5223 GB, free: 14.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009778/0.5354, allocations: 0.9077 MB / 0.5232 GB, free: 13.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002992/0.5357, allocations: 295.9 kB / 0.5235 GB, free: 13.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.107e-05/0.5358, allocations: 16 kB / 0.5235 GB, free: 13.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5359, allocations: 345.9 kB / 0.5238 GB, free: 13.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008861/0.5368, allocations: 457.8 kB / 0.5243 GB, free: 12.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009669/0.5378, allocations: 0.6095 MB / 0.5249 GB, free: 11.94 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005231/0.5431, allocations: 2.117 MB / 0.5269 GB, free: 9.777 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.5431, allocations: 0 / 0.5269 GB, free: 9.777 MB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002651/0.5458, allocations: 1.357 MB / 0.5283 GB, free: 8.402 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.76e-05/0.5458, allocations: 33.7 kB / 0.5283 GB, free: 8.363 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.5458, allocations: 4 kB / 0.5283 GB, free: 8.359 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002649/0.5461, allocations: 92.75 kB / 0.5284 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000762/0.5469, allocations: 188 kB / 0.5286 GB, free: 8.082 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002049/0.5489, allocations: 1.924 MB / 0.5304 GB, free: 6.016 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009363/0.5499, allocations: 119.1 kB / 0.5306 GB, free: 5.898 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.301e-05/0.55, allocations: 36 kB / 0.5306 GB, free: 5.863 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 ($PRE.cycler.cycling.rSFlipFlop.pre.u,$PRE.cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.AfterChargingDelay.timer.entryTime,$PRE.cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.BeforeChargingDelay.timer.entryTime,$PRE.cycler.cycling.edge1.u,$PRE.cycler.chargingFinished.fallingEdge.not_u,$whenCondition2,$whenCondition1,charger.on,cycler.Discharging,cycler.cycling.rSFlipFlop.pre.u,cycler.cycling.lessVinMin.y,cycler.cycling.AfterChargingDelay.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.QI,cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.greaterThreshold.y,cycler.cycling.BeforeChargingDelay.u,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: 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.001596/0.5516, allocations: 0.7182 MB / 0.5313 GB, free: 5.137 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002878/0.5519, allocations: 150.1 kB / 0.5314 GB, free: 4.988 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00222/0.5541, allocations: 1.178 MB / 0.5326 GB, free: 3.789 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.916e-06/0.5541, allocations: 8 kB / 0.5326 GB, free: 3.781 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/0.5541, allocations: 4 kB / 0.5326 GB, free: 3.777 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.5542, allocations: 3.984 kB / 0.5326 GB, free: 3.773 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1919/0.7461, allocations: 3.754 MB / 0.5363 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/0.7461, allocations: 0 / 0.5363 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009771/0.7471, allocations: 143.1 kB / 0.5364 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002508/0.7474, allocations: 85.34 kB / 0.5365 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.7475, allocations: 28.08 kB / 0.5365 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001841/0.7494, allocations: 1.913 MB / 0.5384 GB, free: 101.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.7494, allocations: 1.688 kB / 0.5384 GB, free: 101.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003584/0.753, allocations: 1.805 MB / 0.5402 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001005/0.754, allocations: 447.2 kB / 0.5406 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/0.7542, allocations: 29 kB / 0.5406 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006201/0.7548, allocations: 61.48 kB / 0.5407 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002832/0.7551, allocations: 86.77 kB / 0.5407 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.246e-05/0.7552, allocations: 24.77 kB / 0.5408 GB, free: 101.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002763/0.758, allocations: 1.36 MB / 0.5421 GB, free: 101.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.758, allocations: 4.531 kB / 0.5421 GB, free: 101.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001458/0.7594, allocations: 407.5 kB / 0.5425 GB, free: 101.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.00109/0.7605, allocations: 0.5744 MB / 0.5431 GB, free: 101 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002398/0.763, allocations: 1.246 MB / 0.5443 GB, free: 100.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.763, allocations: 0 / 0.5443 GB, free: 100.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.7641, allocations: 0.6746 MB / 0.5449 GB, free: 100.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001913/0.7661, allocations: 325.6 kB / 0.5452 GB, free: 100.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008076/0.7742, allocations: 4.497 MB / 0.5496 GB, free: 98.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00159/0.7758, allocations: 1.667 MB / 0.5513 GB, free: 98.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001224/0.777, allocations: 238.5 kB / 0.5515 GB, free: 98.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003391/0.7774, allocations: 94.62 kB / 0.5516 GB, free: 98.05 MB / 410.7 MB Notification: Performance of SimCode: time 8.91e-07/0.7774, allocations: 0 / 0.5516 GB, free: 98.05 MB / 410.7 MB Notification: Performance of Templates: time 0.03709/0.8145, allocations: 21.07 MB / 0.5721 GB, free: 96.38 MB / 410.7 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling.makefile (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 & ./ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling -abortSlowSimulation -alarm=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling.pipe 2>&1)