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.0009967/0.0009968, allocations: 181.9 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04655/0.04655, allocations: 7.034 MB / 20.3 MB, free: 4.398 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.267/1.267, allocations: 194.3 MB / 216.6 MB, free: 10.88 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: 103.7 kB / 263.1 MB, free: 13.4 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.886e-05/2.891e-05, allocations: 4 kB / 317 MB, free: 7.492 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2311, allocations: 45.97 MB / 363 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1031/0.3343, allocations: 92.22 MB / 455.2 MB, free: 11.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.3345, allocations: 83.97 kB / 455.3 MB, free: 11.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.103/0.4375, allocations: 48.76 MB / 0.4922 GB, free: 10.48 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4376, allocations: 0 / 0.4922 GB, free: 10.48 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001239/0.4377, allocations: 40 kB / 0.4923 GB, free: 10.45 MB / 394.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.003212/0.4409, allocations: 1.99 MB / 0.4942 GB, free: 8.391 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.441, allocations: 8.031 kB / 0.4942 GB, free: 8.383 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003756/0.4414, allocations: 256.9 kB / 0.4944 GB, free: 8.129 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002539/0.4439, allocations: 1.721 MB / 0.4961 GB, free: 6.355 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.444, allocations: 143.5 kB / 0.4963 GB, free: 6.215 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002372/0.4443, allocations: 179.9 kB / 0.4964 GB, free: 6.039 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003123/0.4474, allocations: 1.868 MB / 0.4983 GB, free: 4.145 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.222e-05/0.4475, allocations: 0 / 0.4983 GB, free: 4.145 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001508/0.4476, allocations: 75.95 kB / 0.4983 GB, free: 4.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.936e-05/0.4477, allocations: 40 kB / 0.4984 GB, free: 4.031 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002435/0.4501, allocations: 1.427 MB / 0.4998 GB, free: 2.602 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2171/0.6672, allocations: 7.524 MB / 0.5071 GB, free: 90.61 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002084/0.6693, allocations: 2.481 MB / 0.5095 GB, free: 88.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009725/0.6703, allocations: 0.5873 MB / 0.5101 GB, free: 88.97 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.769e-05/0.6704, allocations: 12.45 kB / 0.5101 GB, free: 88.97 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008682/0.6713, allocations: 0.5755 MB / 0.5107 GB, free: 88.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 2.945e-06/0.6713, allocations: 0 / 0.5107 GB, free: 88.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.001882/0.6732, allocations: 1.031 MB / 0.5117 GB, free: 88.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.438e-05/0.6732, allocations: 167.8 kB / 0.5119 GB, free: 88.56 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.002674/0.6759, allocations: 1.795 MB / 0.5136 GB, free: 88.39 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.676, allocations: 54.41 kB / 0.5137 GB, free: 88.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008088/0.6769, allocations: 0.9132 MB / 0.5145 GB, free: 88.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002436/0.6771, allocations: 286.5 kB / 0.5148 GB, free: 87.95 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.252e-05/0.6772, allocations: 21.03 kB / 0.5148 GB, free: 87.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.703e-05/0.6773, allocations: 344 kB / 0.5152 GB, free: 87.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006731/0.6779, allocations: 425.2 kB / 0.5156 GB, free: 87.65 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007718/0.6787, allocations: 0.5651 MB / 0.5161 GB, free: 87.52 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007337/0.6795, allocations: 0.497 MB / 0.5166 GB, free: 87.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.6795, allocations: 2.641 kB / 0.5166 GB, free: 87.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002031/0.6815, allocations: 1.281 MB / 0.5179 GB, free: 87.29 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.777e-05/0.6816, allocations: 32.67 kB / 0.5179 GB, free: 87.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.6816, allocations: 2.562 kB / 0.5179 GB, free: 87.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002954/0.6819, allocations: 99 kB / 0.518 GB, free: 87.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007814/0.6827, allocations: 186.2 kB / 0.5182 GB, free: 87.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.6843, allocations: 1.917 MB / 0.52 GB, free: 85.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008719/0.6852, allocations: 122.8 kB / 0.5202 GB, free: 85.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-05/0.6853, allocations: 37.8 kB / 0.5202 GB, free: 85.88 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] 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.0002606/0.6855, allocations: 189.2 kB / 0.5204 GB, free: 85.76 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002348/0.6858, allocations: 149.9 kB / 0.5205 GB, free: 85.68 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002027/0.6878, allocations: 1.11 MB / 0.5216 GB, free: 85.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.6878, allocations: 8.781 kB / 0.5216 GB, free: 85.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.6878, allocations: 0 / 0.5216 GB, free: 85.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.6878, allocations: 5.016 kB / 0.5216 GB, free: 85.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004804/0.6927, allocations: 3.698 MB / 0.5252 GB, free: 85.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.6927, allocations: 0 / 0.5252 GB, free: 85.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006536/0.6933, allocations: 144.7 kB / 0.5254 GB, free: 85.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001847/0.6935, allocations: 84.05 kB / 0.5254 GB, free: 85.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.448e-05/0.6936, allocations: 30.88 kB / 0.5255 GB, free: 85.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0013/0.6949, allocations: 1.912 MB / 0.5273 GB, free: 83.45 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.6949, allocations: 2.734 kB / 0.5273 GB, free: 83.45 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001974/0.6969, allocations: 1.717 MB / 0.529 GB, free: 82.55 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006288/0.6976, allocations: 440.9 kB / 0.5294 GB, free: 82.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/0.6977, allocations: 30.27 kB / 0.5295 GB, free: 82.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005668/0.6983, allocations: 64.06 kB / 0.5295 GB, free: 82.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.6985, allocations: 82.78 kB / 0.5296 GB, free: 82.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.156e-05/0.6985, allocations: 21.41 kB / 0.5296 GB, free: 82.17 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001655/0.7002, allocations: 1.347 MB / 0.5309 GB, free: 81.58 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7002, allocations: 0 / 0.5309 GB, free: 81.58 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001141/0.7014, allocations: 414.9 kB / 0.5313 GB, free: 81.51 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.0008688/0.7022, allocations: 0.5418 MB / 0.5319 GB, free: 81.33 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.7038, allocations: 1.177 MB / 0.533 GB, free: 80.74 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.7038, allocations: 0 / 0.533 GB, free: 80.74 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007182/0.7045, allocations: 0.6295 MB / 0.5336 GB, free: 80.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.7056, allocations: 319.6 kB / 0.5339 GB, free: 80.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004759/0.7104, allocations: 3.07 MB / 0.5369 GB, free: 78.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009929/0.7114, allocations: 1.706 MB / 0.5386 GB, free: 78.04 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007707/0.7122, allocations: 237.4 kB / 0.5388 GB, free: 78.01 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002739/0.7125, allocations: 89.48 kB / 0.5389 GB, free: 78 MB / 394.7 MB Notification: Performance of SimCode: time 7.01e-07/0.7125, allocations: 0 / 0.5389 GB, free: 78 MB / 394.7 MB Notification: Performance of Templates: time 0.03139/0.7439, allocations: 21.15 MB / 0.5596 GB, free: 76.21 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)