Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleStackCycling.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.SimpleStackCycling,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_SimpleStackCycling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.SimpleStackCycling,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_SimpleStackCycling",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.005616/0.005616, allocations: 181 kB / 7.458 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.1248/0.1248, allocations: 7.042 MB / 14.91 MB, free: 236 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.69/2.69, allocations: 194.2 MB / 211 MB, free: 15.58 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.002138/0.002138, allocations: 116.5 kB / 257.5 MB, free: 312 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2173/0.2195, allocations: 52.1 MB / 309.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6001/0.8196, allocations: 45.96 MB / 355.6 MB, free: 46.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2469/1.067, allocations: 91.59 MB / 447.2 MB, free: 15.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005566/1.067, allocations: 95.67 kB / 447.2 MB, free: 15.79 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo:571:11-571:143:writable] Warning: connect(internalHeatPort, internalHeatPort) connects the same connector instance! The connect equation will be ignored. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$load$fTP72_Power$FTP72_Table.getDerTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$load$fTP72_Power$FTP72_Table.getTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$load$fTP72_Power$FTP72_Table.getTableTimeTmin. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$load$fTP72_Power$FTP72_Table.getTableTimeTmax. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 336 * Number of variables: 336 Notification: Performance of Generate backend data structure: time 3.595/4.662, allocations: 347.2 MB / 0.7758 GB, free: 29.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.957e-05/4.662, allocations: 11.94 kB / 0.7758 GB, free: 29.33 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01488/4.677, allocations: 2.444 MB / 0.7782 GB, free: 26.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08838/4.766, allocations: 18.44 MB / 0.7962 GB, free: 8.969 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/4.766, allocations: 52 kB / 0.7963 GB, free: 8.918 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003878/4.766, allocations: 80 kB / 0.7963 GB, free: 8.84 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002353/4.769, allocations: 0.8058 MB / 0.7971 GB, free: 8.031 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002131/4.771, allocations: 1.059 MB / 0.7982 GB, free: 6.938 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.702e-05/4.771, allocations: 0 / 0.7982 GB, free: 6.938 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/4.771, allocations: 4 kB / 0.7982 GB, free: 6.934 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.405e-05/4.771, allocations: 35.91 kB / 0.7982 GB, free: 6.898 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.592/5.363, allocations: 22.44 MB / 0.8201 GB, free: 104.2 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001933/5.365, allocations: 431.5 kB / 0.8205 GB, free: 104 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/5.366, allocations: 282 kB / 0.8208 GB, free: 103.9 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001171/5.366, allocations: 9.375 kB / 0.8208 GB, free: 103.9 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/5.368, allocations: 359.4 kB / 0.8212 GB, free: 103.7 MB / 410.8 MB Notification: Performance of pre-optimization done (n=70): time 8.446e-06/5.368, allocations: 2.812 kB / 0.8212 GB, free: 103.7 MB / 410.8 MB Notification: Performance of matching and sorting (n=70): time 0.01853/5.386, allocations: 2.873 MB / 0.824 GB, free: 102.1 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/5.387, allocations: 142.5 kB / 0.8241 GB, free: 102 MB / 410.8 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.7992/6.186, allocations: 45.99 MB / 0.869 GB, free: 87.72 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004192/6.186, allocations: 34.95 kB / 0.869 GB, free: 87.68 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.01591/6.202, allocations: 3.676 MB / 0.8726 GB, free: 86.23 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002425/6.205, allocations: 203 kB / 0.8728 GB, free: 86.09 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/6.205, allocations: 5.344 kB / 0.8728 GB, free: 86.09 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0001387/6.205, allocations: 342.3 kB / 0.8732 GB, free: 85.77 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008756/6.206, allocations: 257.7 kB / 0.8734 GB, free: 85.65 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008717/6.207, allocations: 402.6 kB / 0.8738 GB, free: 85.38 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008096/6.208, allocations: 292.5 kB / 0.8741 GB, free: 85.25 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/6.208, allocations: 0 / 0.8741 GB, free: 85.25 MB / 410.8 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0217/6.229, allocations: 3.106 MB / 0.8771 GB, free: 83.61 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/6.229, allocations: 9.969 kB / 0.8771 GB, free: 83.61 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/6.23, allocations: 3.188 kB / 0.8771 GB, free: 83.61 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006877/6.23, allocations: 117.9 kB / 0.8772 GB, free: 83.57 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009664/6.231, allocations: 131.2 kB / 0.8774 GB, free: 83.57 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003633/6.235, allocations: 1.962 MB / 0.8793 GB, free: 82 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02509/6.26, allocations: 82.72 kB / 0.8793 GB, free: 81.98 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005386/6.261, allocations: 36.72 kB / 0.8794 GB, free: 81.97 MB / 410.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: charger.v:VARIABLE() type: Real idealCommutingSwitch.s2:VARIABLE(unit = "1" protected = true ) "Auxiliary variables" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 35 ($whenCondition1,$PRE.load.fTP72_Power.FTP72_Table.nextTimeEvent,$whenCondition3,$whenCondition2,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,load.fTP72_Power.FTP72_Table.nextTimeEvent,$PRE.load.fTP72_Power.FTP72_Table.nextTimeEventScaled,load.fTP72_Power.FTP72_Table.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * 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 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0006934/6.261, allocations: 166.6 kB / 0.8795 GB, free: 81.85 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01747/6.279, allocations: 2.358 MB / 0.8818 GB, free: 80.51 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02368/6.303, allocations: 3.522 MB / 0.8853 GB, free: 79.48 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/6.303, allocations: 10.44 kB / 0.8853 GB, free: 79.48 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/6.303, allocations: 3.375 kB / 0.8853 GB, free: 79.48 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/6.303, allocations: 3.188 kB / 0.8853 GB, free: 79.48 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1045/6.407, allocations: 19.57 MB / 0.9044 GB, free: 68.6 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/6.407, allocations: 0.7656 kB / 0.9044 GB, free: 68.6 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007474/6.408, allocations: 78.67 kB / 0.9045 GB, free: 68.54 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005972/6.409, allocations: 106.9 kB / 0.9046 GB, free: 68.45 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.986e-05/6.409, allocations: 10.69 kB / 0.9046 GB, free: 68.44 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003478/6.412, allocations: 1.947 MB / 0.9065 GB, free: 66.52 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/6.412, allocations: 0 / 0.9065 GB, free: 66.52 MB / 410.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02549/6.438, allocations: 3.648 MB / 0.9101 GB, free: 62.86 MB / 410.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03011/6.468, allocations: 5.514 MB / 0.9154 GB, free: 57.37 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.02825/6.496, allocations: 5.563 MB / 0.9209 GB, free: 52.16 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01562/6.512, allocations: 11.28 kB / 0.9209 GB, free: 52.16 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01832/6.53, allocations: 48.22 kB / 0.9209 GB, free: 52.12 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005539/6.531, allocations: 61.78 kB / 0.921 GB, free: 52.09 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.211e-05/6.531, allocations: 22.08 kB / 0.921 GB, free: 52.07 MB / 410.8 MB Notification: Performance of sort global known variables: time 0.8473/7.378, allocations: 35.7 MB / 0.9559 GB, free: 92.86 MB / 410.9 MB Notification: Performance of remove unused functions: time 0.03911/7.418, allocations: 2.141 MB / 0.958 GB, free: 92.84 MB / 410.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (charger.controlledCurrent.limitedController.limIntegrator.y,batteryStack.staticResistance.cellCalculator.sOC.integrator.y,batteryStack.staticResistance.cellCalculator.q.absInt.y,batteryStack.staticResistance.cellCalculator.EquivalentCycles.integrator.y) * Number of discrete variables: 26 (cycler.cycling.AfterChargingDelay.u,cycler.cycling.BeforeChargingDelay.u,$whenCondition3,$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,load.fTP72_Power.FTP72_Table.nextTimeEvent,load.fTP72_Power.FTP72_Table.nextTimeEventScaled) * Number of discrete states: 7 (load.fTP72_Power.FTP72_Table.nextTimeEvent,load.fTP72_Power.FTP72_Table.nextTimeEventScaled,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 (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00243/7.42, allocations: 0.5259 MB / 0.9585 GB, free: 92.64 MB / 410.9 MB Notification: Performance of simCode: created initialization part: time 0.003282/7.424, allocations: 0.8217 MB / 0.9593 GB, free: 92.23 MB / 410.9 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/7.424, allocations: 0 / 0.9593 GB, free: 92.23 MB / 410.9 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/7.425, allocations: 446.7 kB / 0.9597 GB, free: 92.02 MB / 410.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03851/7.463, allocations: 1.426 MB / 0.9611 GB, free: 91.03 MB / 410.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4097/7.873, allocations: 44.21 MB / 1.004 GB, free: 78.96 MB / 410.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.08652/7.96, allocations: 12.84 MB / 1.017 GB, free: 75.66 MB / 410.9 MB Notification: Performance of SimCode: time 3.036e-06/7.96, allocations: 0 / 1.017 GB, free: 75.66 MB / 410.9 MB (rm -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleStackCycling.pipe ; mkfifo ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleStackCycling.pipe ; head -c 1048576 < ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleStackCycling.pipe >> ../files/ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleStackCycling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_SimpleStackCycling_fmu --startTime=0 --stopTime=75000 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_SimpleStackCycling.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleStackCycling.pipe 2>&1)