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: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedStackCycling,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedStackCycling,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 100.2 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.001296/0.001296, allocations: 177.3 kB / 15.94 MB, free: 228 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.822/1.822, allocations: 205.4 MB / 222.1 MB, free: 5.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.0803/0.0803, allocations: 7.042 MB / 277.4 MB, free: 14.15 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.001058/0.001058, allocations: 12.22 kB / 337 MB, free: 27.5 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1339, allocations: 49.07 MB / 386.1 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedStackCycling): time 0.01949/0.1534, allocations: 8.738 MB / 394.9 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01428/0.1678, allocations: 4.712 MB / 399.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003475/0.1713, allocations: 55.88 kB / 399.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00519/0.1765, allocations: 1.027 MB / 400.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004742/0.1813, allocations: 0.518 MB / 401.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003433/0.1848, allocations: 0.5227 MB / 401.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01822/0.2031, allocations: 6.098 MB / 407.8 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01182/0.2149, allocations: 5 MB / 412.8 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004371/0.2194, allocations: 1.676 MB / 414.5 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004714/0.2241, allocations: 2.009 MB / 416.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000792/0.225, allocations: 240 kB / 416.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.2261, allocations: 275.9 kB / 417 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001059/0.2271, allocations: 1.089 MB / 418.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001734/0.2289, allocations: 1.584 MB / 419.6 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2283/0.4572, allocations: 13.91 MB / 433.6 MB, free: 21.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.4573, allocations: 1.031 kB / 433.6 MB, free: 21.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.398e-06/0.4573, allocations: 0 / 433.6 MB, free: 21.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004513/0.4577, allocations: 0 / 433.6 MB, free: 21.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.01864/0.4764, allocations: 7.186 MB / 440.7 MB, free: 17.31 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.4764, allocations: 9.75 kB / 440.7 MB, free: 17.31 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003631/0.4801, allocations: 0.7797 MB / 441.5 MB, free: 17.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004195/0.4843, allocations: 0.7324 MB / 442.3 MB, free: 16.74 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02331/0.5076, allocations: 12.47 MB / 454.7 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004575/0.5081, allocations: 447.2 kB / 455.2 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003075/0.5112, allocations: 433.1 kB / 455.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0238/0.535, allocations: 7.099 MB / 462.7 MB, free: 7.281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002405/0.5353, allocations: 12.81 kB / 462.7 MB, free: 7.277 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00267/0.538, allocations: 176 kB / 462.9 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001615/0.5382, allocations: 147.2 kB / 463 MB, free: 6.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01519/0.5534, allocations: 5.657 MB / 468.7 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06371/0.6171, allocations: 26.5 MB / 495.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01211/0.6293, allocations: 6.756 MB / 0.4902 GB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000248/0.6296, allocations: 30.61 kB / 0.4902 GB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004754/0.6344, allocations: 1.319 MB / 0.4915 GB, free: 13.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=165): time 1.118e-05/0.6345, allocations: 0 / 0.4915 GB, free: 13.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=165): time 0.01635/0.6508, allocations: 4.383 MB / 0.4958 GB, free: 9.406 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001989/0.6511, allocations: 312 kB / 0.4961 GB, free: 9.031 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.02107/0.6722, allocations: 7.852 MB / 0.5037 GB, free: 1.164 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006351/0.6729, allocations: 65.7 kB / 0.5038 GB, free: 1.094 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006776/0.6797, allocations: 3.206 MB / 0.5069 GB, free: 13.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001356/0.681, allocations: 0.5792 MB / 0.5075 GB, free: 13.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/0.6813, allocations: 52 kB / 0.5075 GB, free: 13.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000349/0.6817, allocations: 419.1 kB / 0.5079 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004118/0.6858, allocations: 1.336 MB / 0.5092 GB, free: 11.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005018/0.6909, allocations: 2.244 MB / 0.5114 GB, free: 8.891 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004984/0.6959, allocations: 1.834 MB / 0.5132 GB, free: 7.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.662e-05/0.6959, allocations: 9.312 kB / 0.5132 GB, free: 7.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=323) (initialization): time 0.0139/0.7099, allocations: 4.395 MB / 0.5175 GB, free: 2.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.301e-05/0.71, allocations: 23.11 kB / 0.5176 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.859e-05/0.7101, allocations: 32 kB / 0.5176 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001844/0.7119, allocations: 434.5 kB / 0.518 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003308/0.7152, allocations: 0.5323 MB / 0.5185 GB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008837/0.7241, allocations: 4.162 MB / 0.5226 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005747/0.7299, allocations: 356.9 kB / 0.5229 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006653/0.7306, allocations: 112 kB / 0.523 GB, free: 13.12 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.008104/0.7387, allocations: 3.949 MB / 0.5269 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001798/0.7405, allocations: 0.5014 MB / 0.5274 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006895/0.7474, allocations: 2.947 MB / 0.5303 GB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.952e-05/0.7475, allocations: 20 kB / 0.5303 GB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.7475, allocations: 3.984 kB / 0.5303 GB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-05/0.7476, allocations: 11.97 kB / 0.5303 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02126/0.7688, allocations: 9.165 MB / 0.5392 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.528e-05/0.7689, allocations: 4 kB / 0.5392 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.7703, allocations: 294.3 kB / 0.5395 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/0.7713, allocations: 370.7 kB / 0.5399 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002186/0.7715, allocations: 83.95 kB / 0.54 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005176/0.7767, allocations: 3.884 MB / 0.5437 GB, free: 7.734 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.7767, allocations: 11.28 kB / 0.5438 GB, free: 7.727 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01015/0.7869, allocations: 4.771 MB / 0.5484 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004859/0.7918, allocations: 0.9356 MB / 0.5493 GB, free: 1.855 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001925/0.7938, allocations: 79.97 kB / 0.5494 GB, free: 1.777 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/0.7952, allocations: 103.9 kB / 0.5495 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003797/0.7956, allocations: 141.5 kB / 0.5496 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001146/0.7957, allocations: 47.98 kB / 0.5497 GB, free: 1.496 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.01373/0.8094, allocations: 5.676 MB / 0.5552 GB, free: 11.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.232e-06/0.8095, allocations: 0 / 0.5552 GB, free: 11.82 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00587/0.8154, allocations: 1.082 MB / 0.5563 GB, free: 10.73 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.009937/0.8253, allocations: 6.166 MB / 0.5623 GB, free: 4.496 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005972/0.8314, allocations: 3.072 MB / 0.5653 GB, free: 1.438 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.385e-06/0.8314, allocations: 0 / 0.5653 GB, free: 1.438 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002472/0.8339, allocations: 1.454 MB / 0.5667 GB, free: 15.97 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006319/0.8403, allocations: 1.233 MB / 0.5679 GB, free: 14.74 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2663/1.107, allocations: 41.62 MB / 0.6086 GB, free: 129.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0101/1.117, allocations: 5.938 MB / 0.6144 GB, free: 127.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0059/1.123, allocations: 1.987 MB / 0.6163 GB, free: 127.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006121/1.129, allocations: 2.525 MB / 0.6188 GB, free: 125.6 MB / 446.1 MB Notification: Performance of SimCode: time 2.474e-06/1.129, allocations: 0 / 0.6188 GB, free: 125.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2001/1.329, allocations: 122.2 MB / 0.7381 GB, free: 12.82 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002273/1.329, allocations: 272.5 kB / 0.7384 GB, free: 12.45 MB / 446.1 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling.o ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling.c In file included from ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling.c:7: In file included from ./ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling.c:1926:10: error: invalid argument type 'boolean_array' (aka 'struct base_array_s') to unary expression if(!(!tmp31)) ^~~~~~ ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling.c:1958:10: error: invalid argument type 'boolean_array' (aka 'struct base_array_s') to unary expression if(!(!tmp37)) ^~~~~~ ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling.c:1990:10: error: invalid argument type 'boolean_array' (aka 'struct base_array_s') to unary expression if(!(!tmp43)) ^~~~~~ 2 warnings and 3 errors generated. make: *** [: ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedStackCycling.o] Error 1