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.001457/0.001457, allocations: 109.5 kB / 16.41 MB, free: 6.461 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.001699/0.001699, allocations: 192.3 kB / 17.35 MB, free: 5.711 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.318/1.318, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04505/0.04505, allocations: 7.038 MB / 277.6 MB, free: 4.949 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.002681/0.002681, allocations: 73.75 kB / 386 MB, free: 48.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08206/0.08475, allocations: 48.12 MB / 434.1 MB, free: 9.539 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.006744/0.09154, allocations: 7.193 MB / 441.3 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00497/0.09653, allocations: 3.869 MB / 445.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009274/0.09747, allocations: 35.88 kB / 445.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006858/0.1043, allocations: 7.267 MB / 452.4 MB, free: 7.105 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.006408/0.1108, allocations: 6.862 MB / 459.3 MB, free: 236 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001654/0.1124, allocations: 0.7997 MB / 460.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005582/0.118, allocations: 5.077 MB / 465.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001651/0.1197, allocations: 1.225 MB / 466.4 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004145/0.1239, allocations: 3.259 MB / 469.7 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007465/0.1313, allocations: 7.096 MB / 476.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006392/0.132, allocations: 244 kB / 477 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007885/0.1328, allocations: 324 kB / 477.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00511/0.1379, allocations: 7.986 MB / 485.3 MB, free: 6.121 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007835/0.1458, allocations: 8.407 MB / 493.7 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01998/0.1658, allocations: 23.82 MB / 0.5054 GB, free: 5.727 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1658, allocations: 0 / 0.5054 GB, free: 5.727 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1658, allocations: 0 / 0.5054 GB, free: 5.727 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004975/0.1663, allocations: 0 / 0.5054 GB, free: 5.727 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.3653/0.5316, allocations: 24.08 MB / 0.5289 GB, free: 68.67 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.5317, allocations: 9.031 kB / 0.5289 GB, free: 68.67 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00361/0.5353, allocations: 2.584 MB / 0.5314 GB, free: 67.17 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0302/0.5655, allocations: 18.68 MB / 0.5497 GB, free: 58.23 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.884e-05/0.5656, allocations: 106.6 kB / 0.5498 GB, free: 58.13 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001465/0.5658, allocations: 140 kB / 0.5499 GB, free: 57.99 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001998/0.5678, allocations: 1.374 MB / 0.5513 GB, free: 56.67 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.101e-05/0.5678, allocations: 4 kB / 0.5513 GB, free: 56.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.64e-05/0.5679, allocations: 59.94 kB / 0.5513 GB, free: 56.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.568, allocations: 32 kB / 0.5514 GB, free: 56.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001518/0.5695, allocations: 0.9574 MB / 0.5523 GB, free: 55.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03266/0.6022, allocations: 22.12 MB / 0.5739 GB, free: 33.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.6034, allocations: 0.6702 MB / 0.5745 GB, free: 32.74 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005132/0.6039, allocations: 312.4 kB / 0.5748 GB, free: 32.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.145e-05/0.604, allocations: 8.547 kB / 0.5748 GB, free: 32.43 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000629/0.6046, allocations: 414.7 kB / 0.5752 GB, free: 32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=70): time 2.615e-06/0.6046, allocations: 4 kB / 0.5752 GB, free: 32 MB / 414.1 MB Notification: Performance of matching and sorting (n=70): time 0.007283/0.6119, allocations: 3.546 MB / 0.5787 GB, free: 28.42 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.516e-05/0.612, allocations: 166.8 kB / 0.5789 GB, free: 28.22 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.07999/0.692, allocations: 53.05 MB / 0.6307 GB, free: 7.379 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001728/0.6922, allocations: 49.7 kB / 0.6307 GB, free: 7.324 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01986/0.7121, allocations: 12.41 MB / 0.6428 GB, free: 10.96 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003346/0.7124, allocations: 216.9 kB / 0.6431 GB, free: 10.77 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003021/0.7127, allocations: 186.5 kB / 0.6432 GB, free: 10.59 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.7129, allocations: 344.2 kB / 0.6436 GB, free: 10.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006309/0.7135, allocations: 289.9 kB / 0.6438 GB, free: 9.965 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007325/0.7142, allocations: 0.5102 MB / 0.6443 GB, free: 9.375 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.7154, allocations: 0.7221 MB / 0.645 GB, free: 8.594 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.7154, allocations: 1.031 kB / 0.645 GB, free: 8.594 MB / 462.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.008863/0.7243, allocations: 3.396 MB / 0.6484 GB, free: 5.18 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.7244, allocations: 8 kB / 0.6484 GB, free: 5.172 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.7244, allocations: 5.781 kB / 0.6484 GB, free: 5.168 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004514/0.7248, allocations: 124.2 kB / 0.6485 GB, free: 5.047 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005564/0.7254, allocations: 142.5 kB / 0.6486 GB, free: 4.914 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002574/0.728, allocations: 2.299 MB / 0.6509 GB, free: 2.492 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006269/0.7343, allocations: 120.2 kB / 0.651 GB, free: 2.398 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.276e-05/0.7344, allocations: 36 kB / 0.651 GB, free: 2.363 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.01133/0.7457, allocations: 8.112 MB / 0.6589 GB, free: 10.25 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006048/0.7518, allocations: 2.503 MB / 0.6614 GB, free: 7.727 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007355/0.7591, allocations: 3.004 MB / 0.6643 GB, free: 4.715 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.7592, allocations: 7.875 kB / 0.6643 GB, free: 4.707 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.7592, allocations: 3.984 kB / 0.6643 GB, free: 4.703 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0107/0.7699, allocations: 4.271 MB / 0.6685 GB, free: 416 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004953/0.7749, allocations: 20 kB / 0.6685 GB, free: 396 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005137/0.78, allocations: 43.95 kB / 0.6686 GB, free: 352 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002075/0.7802, allocations: 67.39 kB / 0.6686 GB, free: 288 kB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002171/0.7824, allocations: 0.9755 MB / 0.6696 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006521/0.7889, allocations: 3.866 MB / 0.6734 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005453/0.7895, allocations: 320.3 kB / 0.6737 GB, free: 11.08 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.06345/0.853, allocations: 38.81 MB / 0.7116 GB, free: 4.43 MB / 0.5138 GB Notification: Performance of Backend: time 8.12e-07/0.853, allocations: 0 / 0.7116 GB, free: 4.43 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01606/0.8691, allocations: 5.029 MB / 0.7165 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of SimCode: time 0.4137/1.283, allocations: 47.7 MB / 0.763 GB, free: 176 MB / 0.5295 GB Notification: Performance of Templates: time 0.3962/1.679, allocations: 127.7 MB / 0.8878 GB, free: 49.04 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)