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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33: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/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0003697/0.0003697, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0004979/0.0004979, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.3573/0.3573, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo): time 0.01447/0.01447, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: simulate(ElectricalEnergyStorage.Examples.AdvancedCellCycling,startTime=0,stopTime=20000,tolerance=1e-06,numberOfIntervals=20000,outputFormat="empty",variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling",simflags="-alarm=480 -lv LOG_STATS") simulate(ElectricalEnergyStorage.Examples.AdvancedCellCycling,startTime=0,stopTime=20000,tolerance=1e-06,numberOfIntervals=20000,outputFormat="empty",variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellCycling",simflags="-alarm=480 -lv LOG_STATS") [Timeout 1140] "Notification: Performance of FrontEnd - loaded program: time 7.42e-07/7.42e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 3.221e-05/3.295e-05, allocations: 0 / 0, free: 0 / 0 [/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.02657/0.02661, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.02148/0.04809, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.004318/0.0524, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.01039/0.0628, allocations: 0 / 0, free: 0 / 0 [/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.005409/0.06821, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.006965/0.07517, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.00998/0.08515, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.00681/0.09196, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.008792/0.1008, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.004551/0.1053, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.001422/0.1067, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.001375/0.1081, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.002506/0.1106, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.004601/0.1152, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.01751/0.1327, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.002223/0.1349, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 5.952e-06/0.1349, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 0.0001708/0.1351, allocations: 0 / 0, free: 0 / 0 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.0227/0.1578, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0006443/0.1585, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003431/0.1619, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.01344/0.1753, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005081/0.1758, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.001443/0.1773, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.01803/0.1953, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 0.0001404/0.1955, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009437/0.1964, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/0.1966, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01271/0.2093, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04339/0.2527, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.007624/0.2603, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.003697/0.264, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 0.0001246/0.2641, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003948/0.2681, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=92): time 0.0004609/0.2685, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=92): time 0.0125/0.281, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002086/0.2812, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01243/0.2937, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0008149/0.2945, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.003173/0.2977, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.000915/0.2986, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.002182/0.3008, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0003918/0.3012, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.003504/0.3047, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.004141/0.3088, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.01709/0.3259, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.041e-05/0.3259, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=141) (initialization): time 0.01098/0.3369, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 8.369e-05/0.337, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.676e-05/0.337, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.0007554/0.3378, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002602/0.3404, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00689/0.3473, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002032/0.3493, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004697/0.3498, allocations: 0 / 0, free: 0 / 0 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.004691/0.3545, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00137/0.3558, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009212/0.3651, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-05/0.3651, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.3651, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.286e-05/0.3651, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02151/0.3866, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.045e-05/0.3867, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001961/0.3886, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.0006585/0.3893, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004335/0.3897, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006246/0.396, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.396, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01103/0.407, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.003789/0.4108, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001298/0.4121, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/0.4137, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00147/0.4151, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000307/0.4154, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.007819/0.4233, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 0.0001354/0.4234, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.00472/0.4281, allocations: 0 / 0, free: 0 / 0 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,cycler.Discharging,cycler.Charging,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.y,cycler.chargingFinished.fallingEdge.not_u) * 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) * Number of clocked states: 0 () * 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 (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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001239/0.4294, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.0074/0.4368, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 1.43e-05/0.4368, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.003561/0.4403, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006327/0.4467, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02376/0.4704, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004956/0.4754, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.002529/0.4779, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003566/0.4815, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0015/0.483, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.01314/0.4961, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 1139] [Calling sys.exit(0), Time elapsed: 1.9677227590000257]