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.00143/0.00143, allocations: 187.3 kB / 7.654 MB, free: 1.402 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.08708/0.08708, allocations: 7.04 MB / 15.12 MB, free: 188 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.502/1.502, allocations: 194.3 MB / 211.4 MB, free: 15.37 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.001626/0.001626, allocations: 108.2 kB / 257.8 MB, free: 1.484 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.437e-05/1.432e-05, allocations: 0 / 310 MB, free: 13.27 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2816, allocations: 45.98 MB / 356 MB, free: 46.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1046/0.3863, allocations: 91.55 MB / 447.6 MB, free: 52 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.3866, allocations: 92.03 kB / 447.6 MB, free: 15.96 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1063/0.4929, allocations: 48.04 MB / 495.7 MB, free: 96 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4929, allocations: 0 / 495.7 MB, free: 96 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002351/0.4931, allocations: 44 kB / 495.7 MB, free: 52 kB / 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.004805/0.498, allocations: 1.986 MB / 497.7 MB, free: 14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.498, allocations: 8.031 kB / 497.7 MB, free: 13.99 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009109/0.4989, allocations: 256.9 kB / 498 MB, free: 13.74 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003319/0.5023, allocations: 1.721 MB / 499.7 MB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.5024, allocations: 68 kB / 499.8 MB, free: 11.9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003274/0.5027, allocations: 107.9 kB / 499.9 MB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002931/0.5057, allocations: 1.339 MB / 0.4895 GB, free: 10.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003347/0.509, allocations: 1.611 MB / 0.491 GB, free: 8.816 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.548e-05/0.5091, allocations: 4 kB / 0.491 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.5092, allocations: 4 kB / 0.491 GB, free: 8.809 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.068e-05/0.5093, allocations: 40 kB / 0.4911 GB, free: 8.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01196/0.5212, allocations: 7.215 MB / 0.4981 GB, free: 1.445 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1952/0.7165, allocations: 2.436 MB / 0.5005 GB, free: 89.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.7178, allocations: 0.5575 MB / 0.501 GB, free: 89.06 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.516e-05/0.7179, allocations: 13.75 kB / 0.5011 GB, free: 89.06 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008028/0.7187, allocations: 0.5441 MB / 0.5016 GB, free: 88.98 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 2.374e-06/0.7187, allocations: 0 / 0.5016 GB, free: 88.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.002013/0.7207, allocations: 0.9632 MB / 0.5025 GB, free: 88.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.007e-05/0.7208, allocations: 170.1 kB / 0.5027 GB, free: 88.74 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.00272/0.7235, allocations: 1.622 MB / 0.5043 GB, free: 88.58 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000137/0.7237, allocations: 36.41 kB / 0.5043 GB, free: 88.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009192/0.7246, allocations: 0.9115 MB / 0.5052 GB, free: 88.31 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002534/0.7248, allocations: 278.8 kB / 0.5055 GB, free: 88.17 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.778e-05/0.7249, allocations: 0 / 0.5055 GB, free: 88.17 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.814e-05/0.725, allocations: 348.9 kB / 0.5058 GB, free: 87.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006247/0.7256, allocations: 400.8 kB / 0.5062 GB, free: 87.86 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006767/0.7263, allocations: 0.5444 MB / 0.5067 GB, free: 87.73 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007205/0.727, allocations: 459.6 kB / 0.5071 GB, free: 87.72 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.7271, allocations: 0.9375 kB / 0.5071 GB, free: 87.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002104/0.7292, allocations: 1.175 MB / 0.5083 GB, free: 87.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.806e-05/0.7292, allocations: 33.44 kB / 0.5083 GB, free: 87.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.7293, allocations: 4.781 kB / 0.5083 GB, free: 87.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003051/0.7296, allocations: 90.41 kB / 0.5084 GB, free: 87.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008057/0.7304, allocations: 185.8 kB / 0.5086 GB, free: 87.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/0.7323, allocations: 1.855 MB / 0.5104 GB, free: 86.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.7336, allocations: 89.62 kB / 0.5105 GB, free: 86.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.587e-05/0.7337, allocations: 32.56 kB / 0.5105 GB, free: 86.23 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: batteryCell.linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [1] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: batteryCell.linearDynamicImpedance.cellImpedance.pin_p.i:VARIABLE(flow=true unit = "A" ) "Current flowing into the pin" type: Real 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 () * 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.0003525/0.7341, allocations: 166.8 kB / 0.5107 GB, free: 86.11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003623/0.7344, allocations: 141.1 kB / 0.5108 GB, free: 86.03 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00242/0.7369, allocations: 1.018 MB / 0.5118 GB, free: 85.95 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.7369, allocations: 14.62 kB / 0.5118 GB, free: 85.95 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.7369, allocations: 3.625 kB / 0.5118 GB, free: 85.95 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/0.7369, allocations: 4.547 kB / 0.5118 GB, free: 85.95 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005648/0.7426, allocations: 3.399 MB / 0.5152 GB, free: 85.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.7426, allocations: 1.094 kB / 0.5152 GB, free: 85.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007219/0.7434, allocations: 145.3 kB / 0.5153 GB, free: 85.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001982/0.7436, allocations: 76.58 kB / 0.5154 GB, free: 85.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.76e-05/0.7437, allocations: 14.09 kB / 0.5154 GB, free: 85.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001484/0.7451, allocations: 1.859 MB / 0.5172 GB, free: 84.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/0.7452, allocations: 4.031 kB / 0.5172 GB, free: 84.21 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002425/0.7476, allocations: 1.643 MB / 0.5188 GB, free: 83.93 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007303/0.7483, allocations: 425.3 kB / 0.5192 GB, free: 83.76 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001902/0.7485, allocations: 14.69 kB / 0.5192 GB, free: 83.76 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005416/0.7491, allocations: 46.06 kB / 0.5193 GB, free: 83.76 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/0.7493, allocations: 82.86 kB / 0.5193 GB, free: 83.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.757e-05/0.7494, allocations: 25.09 kB / 0.5194 GB, free: 83.76 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001879/0.7513, allocations: 1.197 MB / 0.5205 GB, free: 83.65 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7513, allocations: 1.5 kB / 0.5205 GB, free: 83.65 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001484/0.7528, allocations: 383.3 kB / 0.5209 GB, free: 83.6 MB / 394.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) * 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.001014/0.7538, allocations: 0.5336 MB / 0.5214 GB, free: 83.44 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.7556, allocations: 1.114 MB / 0.5225 GB, free: 83.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.7556, allocations: 1.594 kB / 0.5225 GB, free: 83.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008655/0.7565, allocations: 0.6136 MB / 0.5231 GB, free: 83.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.7579, allocations: 253.5 kB / 0.5234 GB, free: 83.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005898/0.7638, allocations: 3.001 MB / 0.5263 GB, free: 82.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001225/0.765, allocations: 1.709 MB / 0.528 GB, free: 81.68 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008785/0.7659, allocations: 215.1 kB / 0.5282 GB, free: 81.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002629/0.7662, allocations: 92.95 kB / 0.5283 GB, free: 81.66 MB / 394.7 MB Notification: Performance of SimCode: time 2.134e-06/0.7662, allocations: 0 / 0.5283 GB, free: 81.66 MB / 394.7 MB Notification: Performance of Templates: time 0.02323/0.7894, allocations: 15.96 MB / 0.5438 GB, free: 80.46 MB / 394.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)