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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001747/0.001747, allocations: 182.9 kB / 7.456 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04192/0.04192, allocations: 7.032 MB / 14.91 MB, free: 248 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9431/0.9431, allocations: 194.2 MB / 211 MB, free: 15.5 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.0016/0.0016, allocations: 119.3 kB / 257.5 MB, free: 296 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.35e-06/5.37e-06, allocations: 0 / 309.5 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.172/0.172, allocations: 45.96 MB / 355.5 MB, free: 46.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09055/0.2626, allocations: 91.49 MB / 446.9 MB, free: 16 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002261/0.2628, allocations: 88.03 kB / 447 MB, free: 15.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.09464/0.3575, allocations: 47.79 MB / 494.8 MB, free: 316 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001148/0.3576, allocations: 56.06 kB / 494.9 MB, free: 260 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.003126/0.3608, allocations: 2.009 MB / 496.9 MB, free: 14.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.3608, allocations: 11.97 kB / 496.9 MB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003633/0.3612, allocations: 252.9 kB / 497.1 MB, free: 13.92 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002587/0.3638, allocations: 1.748 MB / 498.9 MB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.276e-05/0.3639, allocations: 67.98 kB / 499 MB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001897/0.3641, allocations: 100 kB / 499.1 MB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002385/0.3665, allocations: 1.346 MB / 0.4887 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002815/0.3693, allocations: 1.622 MB / 0.4903 GB, free: 8.957 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.647e-05/0.3693, allocations: 0 / 0.4903 GB, free: 8.957 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000121/0.3695, allocations: 7.891 kB / 0.4903 GB, free: 8.949 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.634e-05/0.3695, allocations: 44 kB / 0.4903 GB, free: 8.906 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009655/0.3792, allocations: 7.187 MB / 0.4973 GB, free: 1.609 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.3803, allocations: 0.7211 MB / 0.498 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008493/0.3811, allocations: 0.5858 MB / 0.4986 GB, free: 304 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.214e-05/0.3812, allocations: 12.78 kB / 0.4986 GB, free: 292 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.09712/0.4783, allocations: 0.5492 MB / 0.4992 GB, free: 133.4 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 2.995e-06/0.4784, allocations: 0 / 0.4992 GB, free: 133.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.001502/0.4799, allocations: 0.9623 MB / 0.5001 GB, free: 133.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.4799, allocations: 170.8 kB / 0.5003 GB, free: 133.2 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.002/0.4819, allocations: 1.64 MB / 0.5019 GB, free: 133 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.66e-05/0.482, allocations: 35.33 kB / 0.5019 GB, free: 133 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004521/0.4825, allocations: 0.6511 MB / 0.5025 GB, free: 132.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002023/0.4827, allocations: 284.9 kB / 0.5028 GB, free: 132.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.387e-05/0.4827, allocations: 0 / 0.5028 GB, free: 132.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.082e-05/0.4828, allocations: 340.6 kB / 0.5031 GB, free: 132.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005196/0.4833, allocations: 417 kB / 0.5035 GB, free: 132.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000569/0.4839, allocations: 0.544 MB / 0.5041 GB, free: 132.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005625/0.4845, allocations: 469.6 kB / 0.5045 GB, free: 132.2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.4845, allocations: 0 / 0.5045 GB, free: 132.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001454/0.486, allocations: 1.169 MB / 0.5056 GB, free: 132.1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.486, allocations: 6 kB / 0.5056 GB, free: 132.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.486, allocations: 7.484 kB / 0.5057 GB, free: 132.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002386/0.4862, allocations: 87.7 kB / 0.5057 GB, free: 132.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007494/0.487, allocations: 181.2 kB / 0.5059 GB, free: 132.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/0.4882, allocations: 1.775 MB / 0.5076 GB, free: 130.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005759/0.4888, allocations: 87.61 kB / 0.5077 GB, free: 130.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.124e-05/0.4889, allocations: 35.22 kB / 0.5078 GB, free: 130.8 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.0001932/0.4891, allocations: 160.8 kB / 0.5079 GB, free: 130.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.4892, allocations: 141.4 kB / 0.5081 GB, free: 130.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001383/0.4906, allocations: 1.029 MB / 0.5091 GB, free: 130.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.4907, allocations: 9.562 kB / 0.5091 GB, free: 130.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.4907, allocations: 0 / 0.5091 GB, free: 130.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.4907, allocations: 11.64 kB / 0.5091 GB, free: 130.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.4941, allocations: 3.3 MB / 0.5123 GB, free: 130.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.4941, allocations: 3.156 kB / 0.5123 GB, free: 130.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006776/0.4948, allocations: 145.9 kB / 0.5124 GB, free: 130.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001569/0.4949, allocations: 79.58 kB / 0.5125 GB, free: 130.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.905e-05/0.495, allocations: 17.84 kB / 0.5125 GB, free: 130.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001081/0.4961, allocations: 1.757 MB / 0.5143 GB, free: 128.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4961, allocations: 0 / 0.5143 GB, free: 128.9 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001795/0.4979, allocations: 1.668 MB / 0.5159 GB, free: 128.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004919/0.4984, allocations: 440.3 kB / 0.5163 GB, free: 128.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001906/0.4986, allocations: 13.28 kB / 0.5163 GB, free: 128.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005433/0.4992, allocations: 52.53 kB / 0.5164 GB, free: 128.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.4993, allocations: 69.66 kB / 0.5164 GB, free: 128.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.023e-05/0.4994, allocations: 27.31 kB / 0.5165 GB, free: 128.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001273/0.5007, allocations: 1.207 MB / 0.5176 GB, free: 128.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008103/0.5015, allocations: 382 kB / 0.518 GB, free: 128.3 MB / 394.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) * 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.0006503/0.5021, allocations: 0.5079 MB / 0.5185 GB, free: 128.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00128/0.5034, allocations: 1.09 MB / 0.5196 GB, free: 128 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5035, allocations: 2.844 kB / 0.5196 GB, free: 128 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006482/0.5041, allocations: 0.5903 MB / 0.5201 GB, free: 127.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008647/0.505, allocations: 247.4 kB / 0.5204 GB, free: 127.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004725/0.5097, allocations: 3.011 MB / 0.5233 GB, free: 127.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001433/0.5112, allocations: 1.796 MB / 0.5251 GB, free: 126.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.233e-06/0.5112, allocations: 0 / 0.5251 GB, free: 126.5 MB / 394.7 MB Notification: Performance of Templates: time 0.02387/0.5351, allocations: 16.8 MB / 0.5415 GB, free: 125.3 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)