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.005626/0.005626, allocations: 174.6 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.0528/0.0528, allocations: 7.041 MB / 22.9 MB, free: 4.48 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.374/1.374, 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.001712/0.001712, allocations: 120.6 kB / 266.4 MB, free: 0.7031 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003348/0.0003348, allocations: 12 kB / 322.8 MB, free: 17.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07887/0.07922, allocations: 45.98 MB / 368.8 MB, free: 3.344 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2956/0.3748, allocations: 92.31 MB / 461.1 MB, free: 5.508 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.3751, allocations: 95.33 kB / 461.2 MB, free: 5.461 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.104/0.4791, allocations: 48.71 MB / 0.498 GB, free: 7.383 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4792, allocations: 0 / 0.498 GB, free: 7.383 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001354/0.4793, allocations: 48 kB / 0.498 GB, free: 7.336 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.004407/0.4838, allocations: 2.311 MB / 0.5003 GB, free: 4.949 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.4838, allocations: 8.031 kB / 0.5003 GB, free: 4.941 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004779/0.4843, allocations: 256.9 kB / 0.5005 GB, free: 4.688 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002863/0.4872, allocations: 1.725 MB / 0.5022 GB, free: 2.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/0.4873, allocations: 147.5 kB / 0.5024 GB, free: 2.766 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002522/0.4876, allocations: 176 kB / 0.5025 GB, free: 2.594 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00359/0.4912, allocations: 1.918 MB / 0.5044 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.4912, allocations: 4 kB / 0.5044 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001539/0.4914, allocations: 71.95 kB / 0.5045 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.117e-05/0.4914, allocations: 44 kB / 0.5045 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002858/0.4943, allocations: 1.49 MB / 0.506 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0117/0.506, allocations: 7.544 MB / 0.5133 GB, free: 7.367 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002535/0.5086, allocations: 2.537 MB / 0.5158 GB, free: 4.523 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.348e-05/0.5087, allocations: 9 kB / 0.5158 GB, free: 4.516 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001024/0.5097, allocations: 0.6225 MB / 0.5164 GB, free: 3.871 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 3.165e-06/0.5098, allocations: 0 / 0.5164 GB, free: 3.871 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.003335/0.5131, allocations: 1.689 MB / 0.5181 GB, free: 2.16 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.088e-05/0.5132, allocations: 167.2 kB / 0.5182 GB, free: 1.957 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.002903/0.5161, allocations: 1.815 MB / 0.52 GB, free: 136 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001294/0.5163, allocations: 49.7 kB / 0.5201 GB, free: 80 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009194/0.5172, allocations: 0.9116 MB / 0.5209 GB, free: 15.15 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002971/0.5175, allocations: 291.9 kB / 0.5212 GB, free: 14.86 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-05/0.5176, allocations: 23.94 kB / 0.5212 GB, free: 14.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5177, allocations: 341.9 kB / 0.5216 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008661/0.5186, allocations: 453.8 kB / 0.522 GB, free: 14.06 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009374/0.5195, allocations: 0.6051 MB / 0.5226 GB, free: 13.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000889/0.5204, allocations: 0.5289 MB / 0.5231 GB, free: 12.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.5204, allocations: 0 / 0.5231 GB, free: 12.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002434/0.5229, allocations: 1.357 MB / 0.5244 GB, free: 11.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.5229, allocations: 33.7 kB / 0.5245 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.5229, allocations: 0 / 0.5245 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002908/0.5232, allocations: 96.81 kB / 0.5246 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007954/0.5241, allocations: 188 kB / 0.5247 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002008/0.5261, allocations: 1.978 MB / 0.5267 GB, free: 9.055 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009743/0.5271, allocations: 123.2 kB / 0.5268 GB, free: 8.934 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.712e-05/0.5271, allocations: 39.92 kB / 0.5268 GB, free: 8.895 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.001557/0.5287, allocations: 0.7135 MB / 0.5275 GB, free: 8.168 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003688/0.5291, allocations: 150.1 kB / 0.5277 GB, free: 8.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002431/0.5315, allocations: 1.186 MB / 0.5288 GB, free: 6.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/0.5316, allocations: 12 kB / 0.5288 GB, free: 6.809 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.5316, allocations: 0 / 0.5288 GB, free: 6.809 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.5316, allocations: 3.984 kB / 0.5288 GB, free: 6.805 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006509/0.5381, allocations: 3.76 MB / 0.5325 GB, free: 2.973 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.5382, allocations: 0 / 0.5325 GB, free: 2.973 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007179/0.5389, allocations: 143.8 kB / 0.5326 GB, free: 2.832 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002176/0.5391, allocations: 72.83 kB / 0.5327 GB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.522e-05/0.5392, allocations: 27.98 kB / 0.5327 GB, free: 2.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001899/0.5411, allocations: 1.896 MB / 0.5346 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.5411, allocations: 0 / 0.5346 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2065/0.7476, allocations: 1.806 MB / 0.5364 GB, free: 102.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009218/0.7486, allocations: 447.1 kB / 0.5368 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001974/0.7488, allocations: 29.05 kB / 0.5368 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000603/0.7494, allocations: 65.41 kB / 0.5369 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/0.7496, allocations: 80.09 kB / 0.537 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.953e-05/0.7497, allocations: 21.84 kB / 0.537 GB, free: 102.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002077/0.7518, allocations: 1.362 MB / 0.5383 GB, free: 102.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.7518, allocations: 0 / 0.5383 GB, free: 102.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001263/0.753, allocations: 406 kB / 0.5387 GB, free: 102.6 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.0009796/0.754, allocations: 0.5685 MB / 0.5392 GB, free: 102.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002165/0.7562, allocations: 1.246 MB / 0.5405 GB, free: 102.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.7562, allocations: 0 / 0.5405 GB, free: 102.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009762/0.7572, allocations: 0.6626 MB / 0.5411 GB, free: 102.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/0.7586, allocations: 313.6 kB / 0.5414 GB, free: 102.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007684/0.7663, allocations: 4.5 MB / 0.5458 GB, free: 100.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001596/0.768, allocations: 1.705 MB / 0.5475 GB, free: 99.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001249/0.7692, allocations: 229.1 kB / 0.5477 GB, free: 99.51 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003516/0.7696, allocations: 93.33 kB / 0.5478 GB, free: 99.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.483e-06/0.7696, allocations: 3.094 kB / 0.5478 GB, free: 99.5 MB / 410.7 MB Notification: Performance of Templates: time 0.03254/0.8022, allocations: 20.9 MB / 0.5682 GB, free: 97.84 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)