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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001041/0.001041, allocations: 181.1 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04745/0.04744, allocations: 7.034 MB / 20.3 MB, free: 4.398 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.235/1.235, allocations: 194.3 MB / 216.6 MB, free: 10.88 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.001541/0.001542, allocations: 110 kB / 263.1 MB, free: 13.39 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.147e-05/3.15e-05, allocations: 4 kB / 317.1 MB, free: 7.387 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2422, allocations: 45.97 MB / 363.1 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1061/0.3483, allocations: 92.21 MB / 455.3 MB, free: 11.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/0.3486, allocations: 95.89 kB / 455.4 MB, free: 11.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1004/0.449, allocations: 48.75 MB / 0.4923 GB, free: 10.46 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.449, allocations: 0 / 0.4923 GB, free: 10.46 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001311/0.4491, allocations: 40 kB / 0.4924 GB, free: 10.43 MB / 394.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.003762/0.4529, allocations: 1.994 MB / 0.4943 GB, free: 8.367 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.453, allocations: 8.031 kB / 0.4943 GB, free: 8.359 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005062/0.4535, allocations: 268.7 kB / 0.4946 GB, free: 8.086 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005494/0.4541, allocations: 252.9 kB / 0.4948 GB, free: 7.836 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003129/0.4572, allocations: 1.729 MB / 0.4965 GB, free: 6.055 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.4573, allocations: 143.5 kB / 0.4966 GB, free: 5.914 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002577/0.4576, allocations: 180 kB / 0.4968 GB, free: 5.738 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003809/0.4614, allocations: 1.872 MB / 0.4986 GB, free: 3.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.885e-05/0.4615, allocations: 3.953 kB / 0.4986 GB, free: 3.836 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001531/0.4616, allocations: 72 kB / 0.4987 GB, free: 3.766 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.62e-05/0.4617, allocations: 44 kB / 0.4987 GB, free: 3.723 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002853/0.4646, allocations: 1.431 MB / 0.5001 GB, free: 2.289 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2235/0.6881, allocations: 7.529 MB / 0.5075 GB, free: 90.77 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002132/0.6902, allocations: 2.484 MB / 0.5099 GB, free: 89.14 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009935/0.6912, allocations: 0.5837 MB / 0.5105 GB, free: 89.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.789e-05/0.6913, allocations: 10.83 kB / 0.5105 GB, free: 89.13 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009156/0.6923, allocations: 0.5756 MB / 0.5111 GB, free: 89.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 3.908e-06/0.6923, allocations: 0 / 0.5111 GB, free: 89.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.002/0.6943, allocations: 1.034 MB / 0.5121 GB, free: 88.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.6943, allocations: 171.4 kB / 0.5122 GB, free: 88.72 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.00288/0.6972, allocations: 1.794 MB / 0.514 GB, free: 88.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.6974, allocations: 57.34 kB / 0.514 GB, free: 88.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008954/0.6983, allocations: 0.9105 MB / 0.5149 GB, free: 88.26 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002685/0.6985, allocations: 291.4 kB / 0.5152 GB, free: 88.11 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.247e-05/0.6986, allocations: 20.12 kB / 0.5152 GB, free: 88.11 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.6987, allocations: 342.7 kB / 0.5156 GB, free: 87.81 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006511/0.6994, allocations: 420.8 kB / 0.516 GB, free: 87.81 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000748/0.7001, allocations: 0.5699 MB / 0.5165 GB, free: 87.68 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007395/0.7009, allocations: 0.4943 MB / 0.517 GB, free: 87.63 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.7009, allocations: 1.031 kB / 0.517 GB, free: 87.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002257/0.7031, allocations: 1.29 MB / 0.5183 GB, free: 87.45 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.7032, allocations: 31.42 kB / 0.5183 GB, free: 87.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.7032, allocations: 2.906 kB / 0.5183 GB, free: 87.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003043/0.7035, allocations: 92.77 kB / 0.5184 GB, free: 87.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00077/0.7043, allocations: 187.6 kB / 0.5186 GB, free: 87.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001666/0.706, allocations: 1.912 MB / 0.5204 GB, free: 86.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009961/0.707, allocations: 124.4 kB / 0.5205 GB, free: 86.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.722e-05/0.7071, allocations: 34.45 kB / 0.5206 GB, free: 86.04 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] 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.0002581/0.7073, allocations: 190.5 kB / 0.5208 GB, free: 85.92 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002269/0.7076, allocations: 151.1 kB / 0.5209 GB, free: 85.84 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001942/0.7095, allocations: 1.108 MB / 0.522 GB, free: 85.76 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.7096, allocations: 12.55 kB / 0.522 GB, free: 85.76 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.7096, allocations: 0 / 0.522 GB, free: 85.76 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.7096, allocations: 4.875 kB / 0.522 GB, free: 85.76 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00473/0.7143, allocations: 3.7 MB / 0.5256 GB, free: 85.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.7143, allocations: 4.141 kB / 0.5256 GB, free: 85.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006336/0.715, allocations: 141 kB / 0.5257 GB, free: 85.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001735/0.7152, allocations: 79.38 kB / 0.5258 GB, free: 85.19 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.463e-05/0.7152, allocations: 26.81 kB / 0.5259 GB, free: 85.17 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.7166, allocations: 1.913 MB / 0.5277 GB, free: 83.49 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.7166, allocations: 0 / 0.5277 GB, free: 83.49 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/0.7186, allocations: 1.72 MB / 0.5294 GB, free: 82.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006086/0.7192, allocations: 443.8 kB / 0.5298 GB, free: 82.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001628/0.7194, allocations: 27.25 kB / 0.5298 GB, free: 82.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005444/0.72, allocations: 63.7 kB / 0.5299 GB, free: 82.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001715/0.7202, allocations: 85.61 kB / 0.53 GB, free: 82.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.081e-05/0.7202, allocations: 21.67 kB / 0.53 GB, free: 82.21 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001763/0.722, allocations: 1.346 MB / 0.5313 GB, free: 81.62 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.722, allocations: 0 / 0.5313 GB, free: 81.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001138/0.7231, allocations: 407.1 kB / 0.5317 GB, free: 81.55 MB / 394.7 MB 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,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.002921/0.7261, allocations: 2.794 MB / 0.5344 GB, free: 79.97 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.7277, allocations: 1.175 MB / 0.5356 GB, free: 79.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.7277, allocations: 2.031 kB / 0.5356 GB, free: 79.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000726/0.7284, allocations: 0.6252 MB / 0.5362 GB, free: 79.06 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.7296, allocations: 317.2 kB / 0.5365 GB, free: 78.98 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005949/0.7356, allocations: 3.576 MB / 0.54 GB, free: 77.44 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009956/0.7366, allocations: 1.712 MB / 0.5417 GB, free: 76.51 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007816/0.7374, allocations: 231.2 kB / 0.5419 GB, free: 76.48 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000864/0.7383, allocations: 0.7552 MB / 0.5426 GB, free: 75.86 MB / 394.7 MB Notification: Performance of SimCode: time 8.32e-07/0.7383, allocations: 0 / 0.5426 GB, free: 75.86 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08386/0.8221, allocations: 38.56 MB / 0.5803 GB, free: 57.7 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/0.8223, allocations: 231.5 kB / 0.5805 GB, free: 57.41 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.827/3.649, allocations: 0 / 0.5805 GB, free: 57.41 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)