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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001396/0.001397, allocations: 115.2 kB / 16.42 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 183.9 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.354/1.354, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04647/0.04647, allocations: 7.033 MB / 277.6 MB, free: 4.977 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ElectricalEnergyStorage requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 76.84 kB / 386 MB, free: 48.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08105/0.08272, allocations: 48.11 MB / 434.1 MB, free: 9.438 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter cycler.vOut.gain.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter cycler.iOut.gain.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellCycling): time 0.009358/0.09212, allocations: 9.605 MB / 443.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00768/0.09981, allocations: 5.425 MB / 449.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001143/0.101, allocations: 47.88 kB / 449.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002405/0.1034, allocations: 1.165 MB / 450.3 MB, free: 9.117 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001228/0.1046, allocations: 0.5074 MB / 450.8 MB, free: 8.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001694/0.1063, allocations: 1.097 MB / 451.9 MB, free: 7.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003194/0.1095, allocations: 3.408 MB / 455.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002855/0.1124, allocations: 2.107 MB / 457.4 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001555/0.114, allocations: 1.129 MB / 458.6 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.1152, allocations: 1.151 MB / 459.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004516/0.1156, allocations: 432 kB / 460.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005191/0.1162, allocations: 464 kB / 460.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005457/0.1167, allocations: 0.7558 MB / 461.3 MB, free: 14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001279/0.118, allocations: 1.494 MB / 462.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004799/0.1228, allocations: 4.857 MB / 467.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1228, allocations: 4 kB / 467.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1228, allocations: 0 / 467.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.974e-05/0.1229, allocations: 0 / 467.7 MB, free: 7.629 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 461 * Number of variables: 461 Notification: Performance of Generate backend data structure: time 0.004622/0.1275, allocations: 2.784 MB / 470.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1276, allocations: 8.031 kB / 470.5 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003777/0.1279, allocations: 261.8 kB / 470.7 MB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002676/0.1306, allocations: 1.995 MB / 472.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.1308, allocations: 152 kB / 472.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002514/0.131, allocations: 188.1 kB / 473.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003381/0.1344, allocations: 2.12 MB / 475.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.337e-05/0.1345, allocations: 7.938 kB / 475.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001549/0.1346, allocations: 72 kB / 475.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.242e-05/0.1347, allocations: 44 kB / 475.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00273/0.1374, allocations: 1.579 MB / 476.9 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01039/0.1478, allocations: 8.869 MB / 485.8 MB, free: 5.188 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002531/0.1504, allocations: 2.549 MB / 488.3 MB, free: 2.324 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001087/0.1515, allocations: 0.6206 MB / 488.9 MB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.864e-05/0.1515, allocations: 9 kB / 488.9 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009326/0.1525, allocations: 0.607 MB / 489.5 MB, free: 1.062 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.865e-06/0.1525, allocations: 4 kB / 489.6 MB, free: 1.059 MB / 366.1 MB Notification: Performance of matching and sorting (n=92): time 0.003242/0.1557, allocations: 1.66 MB / 491.2 MB, free: 15.37 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.1558, allocations: 163.2 kB / 491.4 MB, free: 15.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002807/0.1587, allocations: 2.118 MB / 493.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.618e-05/0.1588, allocations: 57.64 kB / 493.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008182/0.1596, allocations: 0.9661 MB / 494.5 MB, free: 12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003104/0.1599, allocations: 303.7 kB / 494.8 MB, free: 11.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003587/0.1603, allocations: 226.8 kB / 495 MB, free: 11.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1604, allocations: 353.9 kB / 495.4 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008274/0.1613, allocations: 474.4 kB / 495.8 MB, free: 10.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009925/0.1623, allocations: 0.7373 MB / 496.6 MB, free: 9.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004857/0.1671, allocations: 2.163 MB / 498.7 MB, free: 7.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.1672, allocations: 8 kB / 498.7 MB, free: 7.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002568/0.1697, allocations: 1.457 MB / 0.4885 GB, free: 6.094 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.1698, allocations: 12.16 kB / 0.4885 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.1698, allocations: 4 kB / 0.4885 GB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000299/0.1701, allocations: 100.8 kB / 0.4886 GB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007915/0.1709, allocations: 203.7 kB / 0.4888 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002049/0.1729, allocations: 2.134 MB / 0.4909 GB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000891/0.1739, allocations: 138.8 kB / 0.491 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-05/0.1739, allocations: 40 kB / 0.491 GB, free: 3.324 MB / 382.1 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: 29 * Number of states: 0 () * Number of discrete variables: 38 ($PRE.cycler.chargingFinished.fallingEdge.not_u,$PRE.cycler.cycling.edge1.u,$PRE.cycler.cycling.BeforeChargingDelay.timer.entryTime,$PRE.cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.AfterChargingDelay.timer.entryTime,$PRE.cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.rSFlipFlop.pre.u,cycler.chargingFinished.fallingEdge.not_u,cycler.chargingFinished.fallingEdge.y,cycler.chargingFinished.GraterEqualVmax.y,cycler.cycling.or1.y,cycler.cycling.greaterThreshold.y,cycler.cycling.edge1.y,cycler.cycling.edge1.u,cycler.cycling.BeforeChargingDelay.greaterThreshold.y,cycler.cycling.BeforeChargingDelay.timer.entryTime,cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,cycler.cycling.BeforeChargingDelay.rSFlipFlop.QI,cycler.cycling.BeforeChargingDelay.u,cycler.cycling.AfterChargingDelay.greaterThreshold.y,cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.QI,cycler.cycling.AfterChargingDelay.u,cycler.cycling.lessVinMin.y,cycler.cycling.rSFlipFlop.pre.u,cycler.Charging,cycler.Discharging,$whenCondition1,$whenCondition2,batteryCell.linearDynamicImpedance.selfDischarge.qabs.absInt.local_reset,batteryCell.linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryCell.linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryCell.linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryCell.linearDynamicImpedance.calculator.EquivalentCycles.integrator.local_reset,batteryCell.linearDynamicImpedance.calculator.q.absInt.local_reset,batteryCell.linearDynamicImpedance.calculator.sOC.integrator.local_reset,charger.controlledCurrent.limitedController.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.001257/0.1752, allocations: 0.7669 MB / 0.4918 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002334/0.1755, allocations: 158 kB / 0.4919 GB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00207/0.1775, allocations: 1.175 MB / 0.4931 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.1776, allocations: 3.984 kB / 0.4931 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1776, allocations: 4 kB / 0.4931 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006925/0.1783, allocations: 434.8 kB / 0.4935 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001801/0.1784, allocations: 35.98 kB / 0.4935 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005284/0.179, allocations: 47.95 kB / 0.4936 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.1792, allocations: 76.91 kB / 0.4937 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002763/0.1819, allocations: 1.334 MB / 0.495 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002836/0.1848, allocations: 1.937 MB / 0.4969 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007812/0.1856, allocations: 0.5075 MB / 0.4974 GB, free: 12.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001984/0.1876, allocations: 1.458 MB / 0.4988 GB, free: 11.33 MB / 398.1 MB Notification: Performance of Backend: time 4.01e-07/0.1876, allocations: 0 / 0.4988 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002924/0.1905, allocations: 1.276 MB / 0.5 GB, free: 10.03 MB / 398.1 MB Notification: Performance of SimCode: time 0.006255/0.1968, allocations: 4.322 MB / 0.5042 GB, free: 5.645 MB / 398.1 MB Notification: Performance of Templates: time 0.2165/0.4133, allocations: 24.71 MB / 0.5284 GB, free: 90.66 MB / 414.1 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)