Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.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.AdvancedStackCycling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling") translateModel(ElectricalEnergyStorage.Examples.AdvancedStackCycling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009578/0.000958, allocations: 99.12 kB / 15.71 MB, free: 440 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 174 kB / 16.58 MB, free: 6.418 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.583/1.583, allocations: 205.4 MB / 222.8 MB, free: 5.883 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05075/0.05075, allocations: 7.027 MB / 278.1 MB, free: 14.52 MB / 238.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.0005218/0.0005218, allocations: 16 kB / 337.6 MB, free: 27.61 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08517/0.0857, allocations: 49.07 MB / 386.7 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedStackCycling): time 0.01096/0.0967, allocations: 9.252 MB / 395.9 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008443/0.1052, allocations: 4.765 MB / 400.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001897/0.1071, allocations: 51.88 kB / 400.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002661/0.1098, allocations: 0.96 MB / 401.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001767/0.1116, allocations: 424.8 kB / 402.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001557/0.1132, allocations: 0.5189 MB / 402.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009086/0.1223, allocations: 7.964 MB / 410.6 MB, free: 2.445 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00649/0.1288, allocations: 5.004 MB / 415.6 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002995/0.1318, allocations: 1.94 MB / 417.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002534/0.1344, allocations: 2.278 MB / 419.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004947/0.1349, allocations: 328 kB / 420.1 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007251/0.1356, allocations: 348 kB / 420.5 MB, free: 8.484 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001009/0.1366, allocations: 1.284 MB / 421.8 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001542/0.1382, allocations: 1.584 MB / 423.4 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2351/0.3733, allocations: 14.87 MB / 438.2 MB, free: 20.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.3734, allocations: 0 / 438.2 MB, free: 20.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3734, allocations: 0 / 438.2 MB, free: 20.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005414/0.374, allocations: 0 / 438.2 MB, free: 20.26 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1082 * Number of variables: 1082 Notification: Performance of Generate backend data structure: time 0.02306/0.397, allocations: 7.523 MB / 445.7 MB, free: 16.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.3971, allocations: 10 kB / 445.8 MB, free: 16.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005081/0.4022, allocations: 0.729 MB / 446.5 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01765/0.4199, allocations: 8.21 MB / 454.7 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003934/0.4203, allocations: 362 kB / 455 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002897/0.4232, allocations: 431.9 kB / 455.5 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02168/0.4449, allocations: 7.536 MB / 463 MB, free: 9.754 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001112/0.445, allocations: 11.12 kB / 463 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001269/0.4463, allocations: 177.3 kB / 463.2 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001077/0.4464, allocations: 158.5 kB / 463.3 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01486/0.4613, allocations: 6.477 MB / 469.8 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07835/0.5397, allocations: 31.51 MB / 0.4896 GB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01085/0.5506, allocations: 8.364 MB / 0.4977 GB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004984/0.5556, allocations: 2.45 MB / 0.5001 GB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002612/0.5559, allocations: 29.31 kB / 0.5002 GB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004434/0.5604, allocations: 2.173 MB / 0.5023 GB, free: 5.691 MB / 366.1 MB Notification: Performance of pre-optimization done (n=203): time 6.692e-06/0.5604, allocations: 0 / 0.5023 GB, free: 5.691 MB / 366.1 MB Notification: Performance of matching and sorting (n=203): time 0.01624/0.5766, allocations: 6.559 MB / 0.5087 GB, free: 15.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002347/0.5769, allocations: 389.8 kB / 0.5091 GB, free: 14.64 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo:595:11-595:138:writable] Warning: Parameter batteryStack.SOCini[3,1] has no value, and is fixed during initialization (fixed=true), using available start value (start=0.5) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo:595:11-595:138:writable] Warning: Parameter batteryStack.SOCini[2,1] has no value, and is fixed during initialization (fixed=true), using available start value (start=0.5) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo:595:11-595:138:writable] Warning: Parameter batteryStack.SOCini[1,1] has no value, and is fixed during initialization (fixed=true), using available start value (start=0.5) 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[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.3+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter cycler.vOut[3].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.3+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter cycler.vOut[2].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.3+maint.om/Blocks/Math.mo:543:5-544: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.02675/0.6037, allocations: 10.82 MB / 0.5196 GB, free: 3.801 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009594/0.6047, allocations: 81.7 kB / 0.5197 GB, free: 3.715 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005898/0.6106, allocations: 3.049 MB / 0.5227 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001875/0.6125, allocations: 0.7039 MB / 0.5234 GB, free: 15.97 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000883/0.6134, allocations: 49.2 kB / 0.5234 GB, free: 15.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003818/0.6138, allocations: 419.2 kB / 0.5238 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004087/0.6179, allocations: 1.984 MB / 0.5258 GB, free: 13.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004318/0.6223, allocations: 2.771 MB / 0.5285 GB, free: 10.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004301/0.6266, allocations: 2.44 MB / 0.5309 GB, free: 8.043 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.088e-05/0.6266, allocations: 4 kB / 0.5309 GB, free: 8.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=331) (initialization): time 0.0152/0.6418, allocations: 5.558 MB / 0.5363 GB, free: 2.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.886e-05/0.6419, allocations: 16 kB / 0.5363 GB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.451e-05/0.642, allocations: 16 kB / 0.5363 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.6433, allocations: 0.499 MB / 0.5368 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002741/0.646, allocations: 0.6612 MB / 0.5374 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006146/0.6522, allocations: 4.645 MB / 0.542 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005542/0.6577, allocations: 492.7 kB / 0.5425 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008677/0.6586, allocations: 96 kB / 0.5425 GB, free: 12.07 MB / 414.1 MB Warning: Assuming fixed start value for the following 3 variables: batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3,1,1] batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3,1,1] batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3,1,1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 52 ($whenCondition2,$whenCondition1,cycler.Discharging,cycler.Charging,$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,cycler.chargingFinished.fallingEdge.y,$PRE.cycler.chargingFinished.fallingEdge.not_u,cycler.chargingFinished.fallingEdge.not_u,batteryStack.cell[3,1].linearDynamicImpedance.selfDischarge.qabs.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.calculator.q.absInt.local_reset,batteryStack.cell[3,1].linearDynamicImpedance.calculator.sOC.integrator.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.selfDischarge.qabs.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.calculator.q.absInt.local_reset,batteryStack.cell[2,1].linearDynamicImpedance.calculator.sOC.integrator.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.selfDischarge.qabs.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.local_reset,batteryStack.cell[1,1].linearDynamicImpedance.calculator.q.absInt.local_reset,batteryStack.cell[1,1].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 (302): * Single equations (assignments): 301 * Array equations: 0 * Algorithm blocks: 0 * 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 {3 27} Notification: Performance of prepare postOptimizeDAE: time 0.00968/0.6683, allocations: 3.942 MB / 0.5464 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002753/0.6711, allocations: 0.5052 MB / 0.5469 GB, free: 7.637 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01135/0.6825, allocations: 4.683 MB / 0.5515 GB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.31e-05/0.6825, allocations: 20 kB / 0.5515 GB, free: 2.914 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.6826, allocations: 3.562 kB / 0.5515 GB, free: 2.914 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.871e-05/0.6826, allocations: 15.92 kB / 0.5515 GB, free: 2.898 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03343/0.716, allocations: 14.13 MB / 0.5653 GB, free: 4.738 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.7161, allocations: 5.797 kB / 0.5653 GB, free: 4.734 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002306/0.7184, allocations: 497.4 kB / 0.5658 GB, free: 4.266 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.7196, allocations: 450.1 kB / 0.5662 GB, free: 3.824 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004588/0.72, allocations: 79.95 kB / 0.5663 GB, free: 3.746 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005977/0.726, allocations: 4.415 MB / 0.5706 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.7261, allocations: 0 / 0.5706 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01331/0.7394, allocations: 6.933 MB / 0.5774 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005393/0.7448, allocations: 1.791 MB / 0.5791 GB, free: 6.434 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002776/0.7476, allocations: 87.97 kB / 0.5792 GB, free: 6.348 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004083/0.7517, allocations: 267.6 kB / 0.5795 GB, free: 6.086 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007862/0.7525, allocations: 149.8 kB / 0.5796 GB, free: 5.941 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004668/0.753, allocations: 55.98 kB / 0.5796 GB, free: 5.887 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.2316/0.9847, allocations: 7.613 MB / 0.5871 GB, free: 150.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.21e-07/0.9847, allocations: 2.031 kB / 0.5871 GB, free: 150.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007889/0.9926, allocations: 1.278 MB / 0.5883 GB, free: 150.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 25 (charger.controlledCurrent.limitedController.limIntegrator.y,batteryStack.cell[1,1].linearDynamicImpedance.calculator.sOC.integrator.y,batteryStack.cell[1,1].linearDynamicImpedance.calculator.q.absInt.y,batteryStack.cell[1,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.y,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,batteryStack.cell[1,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.y,batteryStack.cell[1,1].linearDynamicImpedance.selfDischarge.qabs.absInt.y,batteryStack.cell[2,1].linearDynamicImpedance.calculator.sOC.integrator.y,batteryStack.cell[2,1].linearDynamicImpedance.calculator.q.absInt.y,batteryStack.cell[2,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.y,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,batteryStack.cell[2,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.y,batteryStack.cell[2,1].linearDynamicImpedance.selfDischarge.qabs.absInt.y,batteryStack.cell[3,1].linearDynamicImpedance.calculator.sOC.integrator.y,batteryStack.cell[3,1].linearDynamicImpedance.calculator.q.absInt.y,batteryStack.cell[3,1].linearDynamicImpedance.calculator.EquivalentCycles.integrator.y,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,batteryStack.cell[3,1].linearDynamicImpedance.cellImpedance.rs.impedanceValue.qabs.absInt.y,batteryStack.cell[3,1].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 (179): * Single equations (assignments): 176 * 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 {3 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.001463/0.9941, allocations: 487.2 kB / 0.5888 GB, free: 150.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007537/1.002, allocations: 4.463 MB / 0.5932 GB, free: 149.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/1.002, allocations: 3.844 kB / 0.5932 GB, free: 149.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002998/1.005, allocations: 2.157 MB / 0.5953 GB, free: 148.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008569/1.013, allocations: 1.303 MB / 0.5965 GB, free: 148 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02684/1.04, allocations: 17.89 MB / 0.614 GB, free: 138.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004569/1.045, allocations: 5.662 MB / 0.6195 GB, free: 133.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002172/1.047, allocations: 291.4 kB / 0.6198 GB, free: 132.8 MB / 446.1 MB Notification: Performance of SimCode: time 7.31e-07/1.047, allocations: 0 / 0.6198 GB, free: 132.8 MB / 446.1 MB Notification: Performance of Templates: time 0.3953/1.442, allocations: 160.8 MB / 0.7769 GB, free: 135.3 MB / 446.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.makefile make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCyclingCalcHelperMain.o OMCppElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCyclingCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCyclingCalcHelperMain.o] Error 1