Running command: "" <> buildModelFMU(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,fileNamePrefix="BuildingSystems_BuildingSystems_Applications_PhotovoltaicSystems_PhotovoltaicSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(BuildingSystems): time 3.207/3.207, allocations: 343.7 MB / 355.9 MB, free: 9.395 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.844e-05/3.857e-05, allocations: 4 kB / 436.6 MB, free: 2.395 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.189, allocations: 77.73 MB / 0.5023 GB, free: 4.508 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6736/0.8627, allocations: 123.3 MB / 0.6227 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.863, allocations: 71.97 kB / 0.6227 GB, free: 13.6 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/BuildingSystems 2.0.0-beta/Interfaces/RadiationPort.mo:2:1-11:18:writable] Warning: Connector .BuildingSystems.Interfaces.RadiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of FrontEnd - DAE generated: time 3.226/4.089, allocations: 474.7 MB / 1.086 GB, free: 181.7 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.315e-06/4.089, allocations: 0 / 1.086 GB, free: 181.7 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.001917/4.091, allocations: 200.9 kB / 1.087 GB, free: 181.7 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.02747/4.118, allocations: 10.53 MB / 1.097 GB, free: 171.2 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/4.118, allocations: 8.031 kB / 1.097 GB, free: 171.2 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002424/4.121, allocations: 198.5 kB / 1.097 GB, free: 171 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00929/4.13, allocations: 2.234 MB / 1.099 GB, free: 168.8 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02648/4.156, allocations: 7.387 MB / 1.106 GB, free: 161.8 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002066/4.157, allocations: 131.3 kB / 1.107 GB, free: 161.6 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002843/4.16, allocations: 152 kB / 1.107 GB, free: 161.5 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02855/4.188, allocations: 11.7 MB / 1.118 GB, free: 149.7 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.2e-05/4.188, allocations: 0 / 1.118 GB, free: 149.7 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002471/4.191, allocations: 123.9 kB / 1.118 GB, free: 149.6 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/4.191, allocations: 15.95 kB / 1.118 GB, free: 149.6 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02514/4.216, allocations: 10.68 MB / 1.129 GB, free: 138.9 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06018/4.276, allocations: 17.29 MB / 1.146 GB, free: 121.6 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02321/4.3, allocations: 10.58 MB / 1.156 GB, free: 111 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01998/4.32, allocations: 10.05 MB / 1.166 GB, free: 100.9 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003447/4.323, allocations: 2.754 MB / 1.168 GB, free: 97.59 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02326/4.346, allocations: 11.25 MB / 1.179 GB, free: 86.31 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=81): time 5.03e-06/4.346, allocations: 4 kB / 1.179 GB, free: 86.31 MB / 0.6511 GB Notification: Performance of matching and sorting (n=81): time 4.849/9.196, allocations: 33.51 MB / 1.212 GB, free: 52.75 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.609e-05/9.196, allocations: 137.3 kB / 1.212 GB, free: 52.58 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05648/9.252, allocations: 18.02 MB / 1.23 GB, free: 34.73 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.00218/9.255, allocations: 133.7 kB / 1.23 GB, free: 34.59 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0202/9.275, allocations: 8.697 MB / 1.238 GB, free: 25.89 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.002345/9.277, allocations: 367.7 kB / 1.239 GB, free: 25.54 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00223/9.279, allocations: 108 kB / 1.239 GB, free: 25.43 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001492/9.28, allocations: 341.9 kB / 1.239 GB, free: 25.09 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02058/9.3, allocations: 10.02 MB / 1.249 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.9157/10.22, allocations: 10.14 MB / 1.259 GB, free: 196.7 MB / 0.6512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02652/10.24, allocations: 10.03 MB / 1.269 GB, free: 196.7 MB / 0.6512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/10.24, allocations: 4.688 kB / 1.269 GB, free: 196.7 MB / 0.6512 GB Notification: Performance of matching and sorting (n=107) (initialization): time 2.754/13, allocations: 32.97 MB / 1.301 GB, free: 185.7 MB / 0.6512 GB Notification: Performance of prepare postOptimizeDAE: time 7.338e-05/13, allocations: 33.7 kB / 1.301 GB, free: 185.6 MB / 0.6512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/13, allocations: 4 kB / 1.301 GB, free: 185.6 MB / 0.6512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001114/13, allocations: 107.7 kB / 1.301 GB, free: 185.6 MB / 0.6512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002119/13, allocations: 236.3 kB / 1.301 GB, free: 185.4 MB / 0.6512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005162/13, allocations: 0.5773 MB / 1.302 GB, free: 184.8 MB / 0.6512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006608/13.01, allocations: 256.3 kB / 1.302 GB, free: 184.6 MB / 0.6512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002973/13.01, allocations: 1.046 MB / 1.303 GB, free: 183.6 MB / 0.6512 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_discharged:VARIABLE(start = 0.0 unit = "J" ) "Total energy taken from the battery" type: Real battery.E_charged:VARIABLE(start = 0.0 unit = "J" ) "Total energy charged to the battery" type: Real battery.EBou:VARIABLE(start = (1.0 - battery.c) * battery.SOC_start * battery.E_nominal unit = "J" ) "Bound charge of the battery" type: Real battery.EAva:VARIABLE(start = battery.c * battery.SOC_start * battery.E_nominal unit = "J" ) "Available charge of the battery" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,$whenCondition1,$PRE.weatherData.weatherData.conTim.tNext,weatherData.weatherData.conTim.tNext,SLP_July.a,SLP_July.b,SLP_July.last,$PRE.SLP_July.nextEvent,SLP_July.nextEvent,SLP_July.nextEventScaled,radiation.outsidePolarCircle,Eload.local_reset,EGrid.local_reset,EField.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 1 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.001977/13.01, allocations: 297.3 kB / 1.303 GB, free: 183.3 MB / 0.6512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004055/13.02, allocations: 1.807 MB / 1.305 GB, free: 181.5 MB / 0.6512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.107/18.12, allocations: 34.18 MB / 1.338 GB, free: 152.5 MB / 0.6512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/18.12, allocations: 15.44 kB / 1.338 GB, free: 152.5 MB / 0.6512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/18.12, allocations: 0 / 1.338 GB, free: 152.5 MB / 0.6512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.71e-05/18.12, allocations: 3.984 kB / 1.339 GB, free: 152.5 MB / 0.6512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.521/22.64, allocations: 43.11 MB / 1.381 GB, free: 109.3 MB / 0.6512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/22.64, allocations: 1.312 kB / 1.381 GB, free: 109.3 MB / 0.6512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002085/22.65, allocations: 218.8 kB / 1.381 GB, free: 109.1 MB / 0.6512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/22.65, allocations: 113 kB / 1.381 GB, free: 109 MB / 0.6512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001901/22.65, allocations: 308 kB / 1.381 GB, free: 108.7 MB / 0.6512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000458/22.65, allocations: 0.5789 MB / 1.382 GB, free: 108.1 MB / 0.6512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/22.65, allocations: 0 / 1.382 GB, free: 108.1 MB / 0.6512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.634/27.28, allocations: 49.91 MB / 1.431 GB, free: 58.12 MB / 0.6512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01212/27.3, allocations: 3.917 MB / 1.434 GB, free: 54.18 MB / 0.6512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003862/27.3, allocations: 112 kB / 1.434 GB, free: 54.07 MB / 0.6512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005818/27.31, allocations: 198.4 kB / 1.435 GB, free: 53.88 MB / 0.6512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003312/27.31, allocations: 60.69 kB / 1.435 GB, free: 53.82 MB / 0.6512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003134/27.31, allocations: 1.034 MB / 1.436 GB, free: 52.79 MB / 0.6512 GB Notification: Performance of sorting global known variables: time 0.04181/27.35, allocations: 14.52 MB / 1.45 GB, free: 38.4 MB / 0.6512 GB Notification: Performance of sort global known variables: time 1.183e-06/27.35, allocations: 0 / 1.45 GB, free: 38.4 MB / 0.6512 GB Notification: Performance of remove unused functions: time 0.003394/27.36, allocations: 0.7281 MB / 1.451 GB, free: 37.73 MB / 0.6512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged,EField.y,EGrid.y,Eload.y) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,weatherData.weatherData.conTim.tNext,SLP_July.a,SLP_July.b,SLP_July.last,SLP_July.nextEvent,SLP_July.nextEventScaled) * Number of discrete states: 7 (SLP_July.nextEvent,SLP_July.last,SLP_July.nextEventScaled,SLP_July.b,SLP_July.a,$whenCondition1,weatherData.weatherData.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.03011/27.39, allocations: 30.49 MB / 1.48 GB, free: 7.414 MB / 0.6512 GB Notification: Performance of simCode: created initialization part: time 0.01364/27.4, allocations: 12.26 MB / 1.492 GB, free: 11.16 MB / 0.6668 GB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/27.4, allocations: 2.5 kB / 1.492 GB, free: 11.16 MB / 0.6668 GB Notification: Performance of simCode: created simulation system equations: time 0.008362/27.41, allocations: 6.2 MB / 1.498 GB, free: 4.965 MB / 0.6668 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005981/27.41, allocations: 0.5214 MB / 1.499 GB, free: 4.445 MB / 0.6668 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.01/28.42, allocations: 34.42 MB / 1.533 GB, free: 211.1 MB / 0.6669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02792/28.45, allocations: 7.887 MB / 1.54 GB, free: 209.4 MB / 0.6669 GB Notification: Performance of simCode: alias equations: time 0.00164/28.45, allocations: 170.8 kB / 1.54 GB, free: 209.3 MB / 0.6669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0132/28.47, allocations: 6.727 MB / 1.547 GB, free: 204.1 MB / 0.6669 GB Notification: Performance of SimCode: time 1.563e-06/28.47, allocations: 0 / 1.547 GB, free: 204.1 MB / 0.6669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4222/28.89, allocations: 184.6 MB / 1.727 GB, free: 25.37 MB / 0.6669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002561/28.89, allocations: 245.6 kB / 1.727 GB, free: 25.04 MB / 0.6669 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/42.96, allocations: 7.938 kB / 1.727 GB, free: 25.03 MB / 0.6669 GB