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: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellCycling,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellCycling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellCycling,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellCycling",fmuType="me",version="2.0",platforms={"static"}) [: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.009188/0.009188, allocations: 185.6 kB / 7.461 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.1612/0.1612, allocations: 7.033 MB / 14.91 MB, free: 244 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.491/3.491, allocations: 194.2 MB / 211 MB, free: 15.51 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.002483/0.002483, allocations: 122.3 kB / 257.5 MB, free: 312 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2306/0.2332, allocations: 52.1 MB / 309.6 MB, free: 12.17 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5268/0.76, allocations: 45.96 MB / 355.6 MB, free: 47.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2014/0.9616, allocations: 91.49 MB / 447 MB, free: 100 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005403/0.9622, allocations: 88.94 kB / 447.1 MB, free: 12 kB / 330.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.2001/1.162, allocations: 49.86 MB / 497 MB, free: 14.24 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.128e-05/1.162, allocations: 15.94 kB / 497 MB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001819/1.164, allocations: 252.9 kB / 497.3 MB, free: 13.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007455/1.172, allocations: 1.733 MB / 499 MB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003819/1.172, allocations: 71.94 kB / 499.1 MB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001356/1.174, allocations: 104 kB / 499.2 MB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007886/1.181, allocations: 1.346 MB / 0.4888 GB, free: 10.67 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007907/1.19, allocations: 1.622 MB / 0.4904 GB, free: 9.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-05/1.19, allocations: 0 / 0.4904 GB, free: 9.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002273/1.19, allocations: 7.891 kB / 0.4904 GB, free: 9.012 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.044e-05/1.19, allocations: 44 kB / 0.4904 GB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02437/1.214, allocations: 7.191 MB / 0.4974 GB, free: 1.668 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002143/1.217, allocations: 0.7163 MB / 0.4981 GB, free: 0.9453 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00156/1.218, allocations: 0.5855 MB / 0.4987 GB, free: 368 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.349e-05/1.218, allocations: 16.77 kB / 0.4987 GB, free: 352 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3192/1.537, allocations: 0.5476 MB / 0.4993 GB, free: 132.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 7.564e-06/1.538, allocations: 0 / 0.4993 GB, free: 132.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.003204/1.541, allocations: 0.9669 MB / 0.5002 GB, free: 132.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.136e-05/1.541, allocations: 169.9 kB / 0.5004 GB, free: 132.4 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.004489/1.545, allocations: 1.64 MB / 0.502 GB, free: 132.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003007/1.546, allocations: 34.3 kB / 0.502 GB, free: 132.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/1.547, allocations: 0.6479 MB / 0.5026 GB, free: 132.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005417/1.547, allocations: 281.6 kB / 0.5029 GB, free: 131.9 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/1.547, allocations: 0 / 0.5029 GB, free: 131.9 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/1.548, allocations: 343.5 kB / 0.5032 GB, free: 131.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001145/1.549, allocations: 405.3 kB / 0.5036 GB, free: 131.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/1.55, allocations: 0.5523 MB / 0.5041 GB, free: 131.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/1.551, allocations: 461.8 kB / 0.5046 GB, free: 131.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/1.551, allocations: 0 / 0.5046 GB, free: 131.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003283/1.554, allocations: 1.18 MB / 0.5057 GB, free: 131.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.143e-05/1.554, allocations: 2.906 kB / 0.5057 GB, free: 131.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.393e-05/1.554, allocations: 3.031 kB / 0.5057 GB, free: 131.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004551/1.555, allocations: 94.31 kB / 0.5058 GB, free: 131.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/1.556, allocations: 175.2 kB / 0.506 GB, free: 131.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002274/1.559, allocations: 1.778 MB / 0.5077 GB, free: 130 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001943/1.56, allocations: 88.95 kB / 0.5078 GB, free: 130 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/1.561, allocations: 34.94 kB / 0.5079 GB, free: 130 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.0006061/1.561, allocations: 160.7 kB / 0.508 GB, free: 129.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000811/1.562, allocations: 141.1 kB / 0.5081 GB, free: 129.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003726/1.566, allocations: 1.033 MB / 0.5092 GB, free: 129.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-05/1.566, allocations: 7.188 kB / 0.5092 GB, free: 129.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/1.566, allocations: 0 / 0.5092 GB, free: 129.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.343e-05/1.566, allocations: 7.594 kB / 0.5092 GB, free: 129.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009778/1.576, allocations: 3.307 MB / 0.5124 GB, free: 129.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/1.576, allocations: 0.6562 kB / 0.5124 GB, free: 129.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001257/1.577, allocations: 139.5 kB / 0.5125 GB, free: 129.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003937/1.578, allocations: 85.73 kB / 0.5126 GB, free: 129.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/1.578, allocations: 14.59 kB / 0.5126 GB, free: 129.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002269/1.58, allocations: 1.761 MB / 0.5143 GB, free: 128.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.58, allocations: 2.062 kB / 0.5143 GB, free: 128.1 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004773/1.585, allocations: 1.669 MB / 0.516 GB, free: 127.8 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008624/1.594, allocations: 3.817 MB / 0.5197 GB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002128/1.596, allocations: 434.5 kB / 0.5201 GB, free: 127 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009054/1.597, allocations: 16.28 kB / 0.5201 GB, free: 127 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/1.598, allocations: 47.84 kB / 0.5202 GB, free: 127 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002975/1.598, allocations: 67.47 kB / 0.5202 GB, free: 127 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.175e-05/1.598, allocations: 27.72 kB / 0.5203 GB, free: 127 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00332/1.602, allocations: 1.207 MB / 0.5215 GB, free: 126.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003746/1.605, allocations: 392.4 kB / 0.5218 GB, free: 126.9 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.001554/1.607, allocations: 0.513 MB / 0.5223 GB, free: 126.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003013/1.61, allocations: 1.095 MB / 0.5234 GB, free: 126.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/1.61, allocations: 1.406 kB / 0.5234 GB, free: 126.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/1.612, allocations: 0.5973 MB / 0.524 GB, free: 126.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002512/1.614, allocations: 240.8 kB / 0.5242 GB, free: 126.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/1.626, allocations: 3.059 MB / 0.5272 GB, free: 125.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004378/1.631, allocations: 1.826 MB / 0.529 GB, free: 124.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.854e-06/1.631, allocations: 0 / 0.529 GB, free: 124.9 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellCycling_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellCycling.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling.pipe 2>&1)