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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ElectricalEnergyStorage.Examples.SimpleStackCycling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=150000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleStackCycling") translateModel(ElectricalEnergyStorage.Examples.SimpleStackCycling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=150000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleStackCycling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 115.6 kB / 16.42 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001758/0.001758, allocations: 187.9 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06093/0.06093, allocations: 7.038 MB / 277.6 MB, free: 4.965 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ElectricalEnergyStorage requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 72.8 kB / 386 MB, free: 48.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08823/0.08976, allocations: 48.11 MB / 434.1 MB, free: 9.43 MB / 318.1 MB [/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.SimpleStackCycling): time 0.007812/0.09762, allocations: 7.194 MB / 441.3 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006136/0.1038, allocations: 3.865 MB / 445.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001815/0.1056, allocations: 31.94 kB / 445.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007521/0.1131, allocations: 7.263 MB / 452.4 MB, free: 7.008 MB / 334.1 MB [/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.007771/0.121, allocations: 6.854 MB / 459.3 MB, free: 144 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002062/0.123, allocations: 0.7841 MB / 460.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007148/0.1302, allocations: 5.09 MB / 465.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002041/0.1323, allocations: 1.233 MB / 466.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005254/0.1376, allocations: 3.263 MB / 469.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009075/0.1466, allocations: 7.081 MB / 476.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008128/0.1475, allocations: 248 kB / 477 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008477/0.1484, allocations: 323.9 kB / 477.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005357/0.1537, allocations: 7.99 MB / 485.3 MB, free: 6.031 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01364/0.1674, allocations: 8.395 MB / 493.7 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03062/0.1981, allocations: 23.7 MB / 0.5052 GB, free: 5.801 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1981, allocations: 0 / 0.5052 GB, free: 5.801 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1982, allocations: 0 / 0.5052 GB, free: 5.801 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006961/0.1989, allocations: 0 / 0.5052 GB, free: 5.801 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.5101/0.709, allocations: 23.15 MB / 0.5278 GB, free: 68.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.9e-05/0.7091, allocations: 8.562 kB / 0.5279 GB, free: 68.7 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006506/0.7156, allocations: 2.45 MB / 0.5302 GB, free: 67.81 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03919/0.7548, allocations: 18.42 MB / 0.5482 GB, free: 58.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.626e-05/0.7549, allocations: 106.7 kB / 0.5483 GB, free: 58.49 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.7551, allocations: 136 kB / 0.5485 GB, free: 58.36 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002258/0.7573, allocations: 1.383 MB / 0.5498 GB, free: 57.01 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/0.7574, allocations: 0 / 0.5498 GB, free: 57.01 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.7575, allocations: 65.44 kB / 0.5499 GB, free: 56.95 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.105e-05/0.7575, allocations: 32 kB / 0.5499 GB, free: 56.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.7591, allocations: 0.949 MB / 0.5508 GB, free: 55.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04351/0.8026, allocations: 22.1 MB / 0.5724 GB, free: 33.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.8039, allocations: 0.6706 MB / 0.5731 GB, free: 33.04 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005363/0.8045, allocations: 316.8 kB / 0.5734 GB, free: 32.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.814e-05/0.8045, allocations: 9.875 kB / 0.5734 GB, free: 32.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006941/0.8052, allocations: 410.3 kB / 0.5738 GB, free: 32.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=70): time 4.177e-06/0.8053, allocations: 0 / 0.5738 GB, free: 32.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=70): time 0.009246/0.8145, allocations: 3.425 MB / 0.5771 GB, free: 28.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.8146, allocations: 166.7 kB / 0.5773 GB, free: 28.64 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1229/0.9375, allocations: 53.04 MB / 0.6291 GB, free: 7.793 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002423/0.9378, allocations: 49.7 kB / 0.6291 GB, free: 7.738 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.02349/0.9613, allocations: 12.4 MB / 0.6412 GB, free: 11.33 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003997/0.9618, allocations: 213 kB / 0.6414 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003403/0.9621, allocations: 186.5 kB / 0.6416 GB, free: 10.93 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.9623, allocations: 341.9 kB / 0.6419 GB, free: 10.59 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006817/0.963, allocations: 297.2 kB / 0.6422 GB, free: 10.31 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007458/0.9637, allocations: 0.5026 MB / 0.6427 GB, free: 9.723 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.9649, allocations: 0.7269 MB / 0.6434 GB, free: 8.938 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.965, allocations: 2 kB / 0.6434 GB, free: 8.938 MB / 462.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.0116/0.9766, allocations: 3.258 MB / 0.6466 GB, free: 5.648 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.356e-05/0.9767, allocations: 8 kB / 0.6466 GB, free: 5.641 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.049e-05/0.9767, allocations: 4 kB / 0.6466 GB, free: 5.637 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005856/0.9773, allocations: 127.8 kB / 0.6467 GB, free: 5.512 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005788/0.9779, allocations: 132.4 kB / 0.6469 GB, free: 5.383 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002797/0.9807, allocations: 2.305 MB / 0.6491 GB, free: 2.957 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007954/0.9887, allocations: 113.6 kB / 0.6492 GB, free: 2.848 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/0.9889, allocations: 28 kB / 0.6493 GB, free: 2.82 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 39 ($PRE.load.fTP72_Power.FTP72_Table.nextTimeEvent,$whenCondition1,load.fTP72_Power.FTP72_Table.nextTimeEventScaled,$PRE.load.fTP72_Power.FTP72_Table.nextTimeEventScaled,load.fTP72_Power.FTP72_Table.nextTimeEvent,cycler.chargingFinished.fallingEdge.not_u,$PRE.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,$PRE.cycler.cycling.edge1.u,cycler.cycling.BeforeChargingDelay.greaterThreshold.y,cycler.cycling.BeforeChargingDelay.timer.entryTime,$PRE.cycler.cycling.BeforeChargingDelay.timer.entryTime,cycler.cycling.BeforeChargingDelay.rSFlipFlop.pre.u,$PRE.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,$PRE.cycler.cycling.AfterChargingDelay.timer.entryTime,cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,$PRE.cycler.cycling.AfterChargingDelay.rSFlipFlop.pre.u,cycler.cycling.AfterChargingDelay.rSFlipFlop.QI,cycler.cycling.AfterChargingDelay.u,cycler.cycling.lessVinMin.y,cycler.cycling.rSFlipFlop.pre.u,$PRE.cycler.cycling.rSFlipFlop.pre.u,cycler.Charging,cycler.Discharging,$whenCondition2,$whenCondition3,batteryStack.staticResistance.cellCalculator.EquivalentCycles.integrator.local_reset,batteryStack.staticResistance.cellCalculator.q.absInt.local_reset,batteryStack.staticResistance.cellCalculator.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 (98): * Single equations (assignments): 97 * 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 {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.01391/1.003, allocations: 8.117 MB / 0.6572 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007976/1.011, allocations: 2.371 MB / 0.6595 GB, free: 8.297 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008989/1.02, allocations: 3.001 MB / 0.6624 GB, free: 5.289 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/1.02, allocations: 7.922 kB / 0.6624 GB, free: 5.281 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/1.02, allocations: 0 / 0.6624 GB, free: 5.281 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01093/1.031, allocations: 4.141 MB / 0.6665 GB, free: 1.09 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005777/1.037, allocations: 20 kB / 0.6665 GB, free: 1.07 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00737/1.044, allocations: 44.11 kB / 0.6665 GB, free: 1.031 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002842/1.044, allocations: 69.36 kB / 0.6666 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002246/1.047, allocations: 0.9697 MB / 0.6675 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009268/1.056, allocations: 3.738 MB / 0.6712 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006028/1.056, allocations: 313 kB / 0.6715 GB, free: 11.89 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.1118/1.168, allocations: 38.81 MB / 0.7094 GB, free: 5.242 MB / 0.5138 GB Notification: Performance of Backend: time 1.853e-06/1.168, allocations: 0 / 0.7094 GB, free: 5.242 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0285/1.197, allocations: 5.054 MB / 0.7143 GB, free: 228 kB / 0.5138 GB Notification: Performance of SimCode: time 0.5081/1.705, allocations: 47.01 MB / 0.7602 GB, free: 176.6 MB / 0.5295 GB Notification: Performance of Templates: time 0.3885/2.094, allocations: 127.7 MB / 0.885 GB, free: 49.75 MB / 0.5295 GB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleStackCycling.makefile (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 & ./ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleStackCycling -abortSlowSimulation -alarm=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleStackCycling.pipe 2>&1)