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.0008794/0.0008794, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009251/0.0009252, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.295/1.295, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04946/0.04946, allocations: 7.035 MB / 277.4 MB, free: 14.28 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.0005298/0.0005299, allocations: 12 kB / 336.9 MB, free: 27.62 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08611/0.08665, allocations: 49.07 MB / 386 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedStackCycling): time 0.009987/0.09667, allocations: 8.73 MB / 394.7 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008925/0.1056, allocations: 4.735 MB / 399.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002561/0.1083, allocations: 55.88 kB / 399.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003871/0.1122, allocations: 1.015 MB / 400.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002596/0.1148, allocations: 0.518 MB / 401.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002188/0.117, allocations: 0.522 MB / 401.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01159/0.1286, allocations: 6.106 MB / 407.7 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007274/0.1359, allocations: 5 MB / 412.7 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002703/0.1387, allocations: 1.676 MB / 414.4 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003164/0.1419, allocations: 2.005 MB / 416.4 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001195/0.1431, allocations: 240 kB / 416.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001445/0.1445, allocations: 283.9 kB / 416.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001417/0.146, allocations: 1.082 MB / 418 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001925/0.1479, allocations: 1.588 MB / 419.5 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1727/0.3206, allocations: 13.91 MB / 433.5 MB, free: 21.24 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3207, allocations: 0 / 433.5 MB, free: 21.24 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.3207, allocations: 0 / 433.5 MB, free: 21.24 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003718/0.3211, allocations: 0 / 433.5 MB, free: 21.24 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.01616/0.3372, allocations: 7.171 MB / 440.6 MB, free: 17.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.3373, allocations: 8.25 kB / 440.6 MB, free: 17.3 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003497/0.3408, allocations: 0.7315 MB / 441.4 MB, free: 16.92 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01989/0.3607, allocations: 12.47 MB / 453.8 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003862/0.3611, allocations: 436.2 kB / 454.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002465/0.3636, allocations: 438.9 kB / 454.7 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0184/0.382, allocations: 7.06 MB / 461.8 MB, free: 8.141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001007/0.3821, allocations: 7.844 kB / 461.8 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006632/0.3828, allocations: 186.9 kB / 462 MB, free: 7.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.797e-05/0.3829, allocations: 147.2 kB / 462.1 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009462/0.3924, allocations: 5.63 MB / 467.7 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05373/0.4462, allocations: 26.46 MB / 494.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006368/0.4526, allocations: 6.756 MB / 0.4892 GB, free: 80 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000143/0.4528, allocations: 28.83 kB / 0.4892 GB, free: 60 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002477/0.4552, allocations: 1.317 MB / 0.4905 GB, free: 14.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=165): time 6.222e-06/0.4553, allocations: 0 / 0.4905 GB, free: 14.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=165): time 0.0103/0.4656, allocations: 4.391 MB / 0.4948 GB, free: 10.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001743/0.4658, allocations: 307.5 kB / 0.4951 GB, free: 9.941 MB / 366.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.01569/0.4815, allocations: 7.851 MB / 0.5028 GB, free: 2.074 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005169/0.482, allocations: 65.7 kB / 0.5028 GB, free: 2.004 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004672/0.4867, allocations: 3.197 MB / 0.506 GB, free: 14.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009417/0.4877, allocations: 0.5722 MB / 0.5065 GB, free: 14.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003565/0.4881, allocations: 52 kB / 0.5066 GB, free: 14.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000277/0.4883, allocations: 423 kB / 0.507 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002596/0.4909, allocations: 1.34 MB / 0.5083 GB, free: 12.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00334/0.4943, allocations: 2.24 MB / 0.5105 GB, free: 9.789 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003193/0.4975, allocations: 1.819 MB / 0.5122 GB, free: 7.996 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.87e-05/0.4976, allocations: 16 kB / 0.5123 GB, free: 7.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=323) (initialization): time 0.008569/0.5061, allocations: 4.389 MB / 0.5165 GB, free: 3.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.5062, allocations: 23.98 kB / 0.5166 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.944e-05/0.5063, allocations: 28.06 kB / 0.5166 GB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.5074, allocations: 437.7 kB / 0.517 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001933/0.5093, allocations: 0.5254 MB / 0.5175 GB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005242/0.5146, allocations: 4.186 MB / 0.5216 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003113/0.5177, allocations: 345.1 kB / 0.5219 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003459/0.5181, allocations: 112 kB / 0.522 GB, free: 14.02 MB / 398.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: 130 * 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 (297): * Single equations (assignments): 296 * 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 {1 26} Notification: Performance of prepare postOptimizeDAE: time 0.006479/0.5246, allocations: 3.953 MB / 0.5259 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001397/0.526, allocations: 0.5014 MB / 0.5264 GB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006921/0.5329, allocations: 2.944 MB / 0.5293 GB, free: 6.641 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/0.533, allocations: 16 kB / 0.5293 GB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.533, allocations: 4 kB / 0.5293 GB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.659e-05/0.533, allocations: 11.97 kB / 0.5293 GB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01958/0.5526, allocations: 9.162 MB / 0.5382 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.175e-05/0.5526, allocations: 0 / 0.5382 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001342/0.554, allocations: 291.2 kB / 0.5385 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009559/0.555, allocations: 380 kB / 0.5389 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002455/0.5552, allocations: 83.95 kB / 0.539 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004643/0.5599, allocations: 3.877 MB / 0.5428 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.5599, allocations: 3.375 kB / 0.5428 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007413/0.5673, allocations: 4.764 MB / 0.5474 GB, free: 3.766 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003/0.5704, allocations: 0.9473 MB / 0.5483 GB, free: 2.793 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001448/0.5718, allocations: 79.97 kB / 0.5484 GB, free: 2.715 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002145/0.574, allocations: 99.91 kB / 0.5485 GB, free: 2.617 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004329/0.5744, allocations: 148.9 kB / 0.5486 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002136/0.5747, allocations: 47.98 kB / 0.5487 GB, free: 2.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.01284/0.5875, allocations: 5.672 MB / 0.5542 GB, free: 12.76 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5876, allocations: 0 / 0.5542 GB, free: 12.76 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005388/0.593, allocations: 1.078 MB / 0.5553 GB, free: 11.68 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (141): * Single equations (assignments): 138 * 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 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.001223/0.5942, allocations: 476.2 kB / 0.5557 GB, free: 11.22 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006274/0.6005, allocations: 3.073 MB / 0.5587 GB, free: 8.16 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.6005, allocations: 0 / 0.5587 GB, free: 8.16 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002935/0.6035, allocations: 1.451 MB / 0.5602 GB, free: 6.695 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006125/0.6096, allocations: 1.229 MB / 0.5614 GB, free: 5.469 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0289/0.6386, allocations: 16.98 MB / 0.5779 GB, free: 4.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1678/0.8064, allocations: 5.916 MB / 0.5837 GB, free: 146.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005394/0.8119, allocations: 1.979 MB / 0.5856 GB, free: 146.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008764/0.8128, allocations: 287.2 kB / 0.5859 GB, free: 146.1 MB / 446.1 MB Notification: Performance of SimCode: time 6.82e-07/0.8128, allocations: 6.219 kB / 0.5859 GB, free: 146.1 MB / 446.1 MB Notification: Performance of Templates: time 0.08144/0.8942, allocations: 55.61 MB / 0.6402 GB, free: 105.3 MB / 446.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.makefile Environment - environmentSimulation: make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.o ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.c ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.c:1932:10: error: invalid argument type 'boolean_array' (aka 'struct base_array_s') to unary expression if(!(!tmp31)) ^~~~~~ ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.c:1964:10: error: invalid argument type 'boolean_array' (aka 'struct base_array_s') to unary expression if(!(!tmp37)) ^~~~~~ ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.c:1996:10: error: invalid argument type 'boolean_array' (aka 'struct base_array_s') to unary expression if(!(!tmp43)) ^~~~~~ 3 errors generated. make: *** [: ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedStackCycling.o] Error 1