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.001043/0.001043, allocations: 117.6 kB / 16.42 MB, free: 6.496 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.001007/0.001007, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.242/1.242, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04537/0.04537, allocations: 7.03 MB / 277.6 MB, free: 4.965 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.001401/0.001401, allocations: 71.38 kB / 386 MB, free: 48.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0639/0.06531, 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.008181/0.07352, allocations: 9.598 MB / 443.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007282/0.08082, allocations: 5.437 MB / 449.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001412/0.08226, allocations: 47.88 kB / 449.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00233/0.0846, allocations: 1.169 MB / 450.3 MB, free: 9.109 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.001276/0.08589, allocations: 0.5426 MB / 450.9 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001601/0.0875, allocations: 1.089 MB / 452 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003063/0.09057, allocations: 3.412 MB / 455.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00253/0.09312, allocations: 2.115 MB / 457.5 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001113/0.09424, allocations: 1.121 MB / 458.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009939/0.09525, allocations: 1.159 MB / 459.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004147/0.09567, allocations: 428 kB / 460.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005112/0.09619, allocations: 460 kB / 460.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005694/0.09677, allocations: 0.7636 MB / 461.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001181/0.09796, allocations: 1.486 MB / 462.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003919/0.1019, allocations: 4.865 MB / 467.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1019, allocations: 0 / 467.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1019, allocations: 0 / 467.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.473e-05/0.1019, allocations: 0 / 467.7 MB, free: 7.586 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.00435/0.1063, allocations: 2.78 MB / 470.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.1063, allocations: 8.031 kB / 470.5 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003779/0.1067, allocations: 265.7 kB / 470.8 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002674/0.1094, allocations: 1.991 MB / 472.8 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.1096, allocations: 152 kB / 472.9 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002596/0.1098, allocations: 192 kB / 473.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003547/0.1134, allocations: 2.12 MB / 475.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.391e-05/0.1134, allocations: 0 / 475.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001736/0.1136, allocations: 79.91 kB / 475.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-05/0.1136, allocations: 44 kB / 475.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002856/0.1165, allocations: 1.583 MB / 476.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01053/0.127, allocations: 8.861 MB / 485.8 MB, free: 5.148 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002536/0.1296, allocations: 2.545 MB / 488.3 MB, free: 2.289 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001169/0.1308, allocations: 0.6206 MB / 489 MB, free: 1.664 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.744e-05/0.1309, allocations: 16.98 kB / 489 MB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/0.1319, allocations: 0.6147 MB / 489.6 MB, free: 1.012 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.595e-06/0.1319, allocations: 0 / 489.6 MB, free: 1.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=92): time 0.003248/0.1351, allocations: 1.66 MB / 491.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.976e-05/0.1352, allocations: 167.2 kB / 491.4 MB, free: 15.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002663/0.1379, allocations: 2.11 MB / 493.5 MB, free: 13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.903e-05/0.138, allocations: 53.7 kB / 493.6 MB, free: 12.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000781/0.1388, allocations: 0.9699 MB / 494.6 MB, free: 11.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002543/0.1391, allocations: 303.7 kB / 494.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000353/0.1394, allocations: 226.8 kB / 495.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1396, allocations: 353.9 kB / 495.4 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008537/0.1404, allocations: 478.4 kB / 495.9 MB, free: 10.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.1414, allocations: 0.7295 MB / 496.6 MB, free: 9.781 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005102/0.1466, allocations: 2.167 MB / 498.8 MB, free: 7.527 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.1466, allocations: 4 kB / 498.8 MB, free: 7.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002515/0.1491, allocations: 1.465 MB / 0.4885 GB, free: 6.047 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.1491, allocations: 4 kB / 0.4885 GB, free: 6.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.1492, allocations: 16 kB / 0.4885 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002599/0.1494, allocations: 96.81 kB / 0.4886 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008509/0.1503, allocations: 199.7 kB / 0.4888 GB, free: 5.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002161/0.1525, allocations: 2.134 MB / 0.4909 GB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007889/0.1533, allocations: 138.8 kB / 0.491 GB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.132e-05/0.1534, allocations: 40 kB / 0.4911 GB, free: 3.281 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.001128/0.1545, allocations: 0.7553 MB / 0.4918 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002502/0.1547, allocations: 158 kB / 0.492 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002227/0.157, allocations: 1.183 MB / 0.4931 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.157, allocations: 7.969 kB / 0.4931 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.157, allocations: 0 / 0.4931 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007133/0.1577, allocations: 438.8 kB / 0.4936 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002449/0.158, allocations: 31.94 kB / 0.4936 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005849/0.1586, allocations: 51.95 kB / 0.4936 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.1588, allocations: 76.91 kB / 0.4937 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002955/0.1617, allocations: 1.338 MB / 0.495 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002795/0.1645, allocations: 1.929 MB / 0.4969 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007795/0.1653, allocations: 0.5153 MB / 0.4974 GB, free: 12.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001929/0.1673, allocations: 1.45 MB / 0.4988 GB, free: 11.29 MB / 398.1 MB Notification: Performance of Backend: time 7.91e-07/0.1673, allocations: 0 / 0.4988 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002737/0.17, allocations: 1.284 MB / 0.5001 GB, free: 9.984 MB / 398.1 MB Notification: Performance of SimCode: time 0.005788/0.1758, allocations: 4.318 MB / 0.5043 GB, free: 5.602 MB / 398.1 MB Notification: Performance of Templates: time 0.1888/0.3646, allocations: 24.7 MB / 0.5284 GB, free: 92.67 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)