Running command: translateModel(BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Applications.PhotovoltaicSystems.PhotovoltaicSystem") Notification: Performance of loadModel(BuildingSystems): time 2.97/2.97, allocations: 343.8 MB / 355.9 MB, free: 9.375 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.128e-05/3.139e-05, allocations: 4 kB / 436.6 MB, free: 2.484 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1392, allocations: 77.73 MB / 0.5022 GB, free: 4.602 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5236/0.6628, allocations: 123.2 MB / 0.6226 GB, free: 13.84 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.6631, allocations: 79.97 kB / 0.6227 GB, free: 13.77 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 2.731/3.394, allocations: 474.7 MB / 1.086 GB, free: 182.6 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.846e-06/3.394, allocations: 4 kB / 1.086 GB, free: 182.6 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.001336/3.396, allocations: 202.5 kB / 1.086 GB, free: 182.6 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.02144/3.417, allocations: 10.52 MB / 1.097 GB, free: 172 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/3.417, allocations: 8.031 kB / 1.097 GB, free: 172 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005937/3.423, allocations: 2.238 MB / 1.099 GB, free: 169.8 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.018/3.441, allocations: 7.381 MB / 1.106 GB, free: 162.8 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/3.442, allocations: 134 kB / 1.106 GB, free: 162.6 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001324/3.443, allocations: 152 kB / 1.106 GB, free: 162.5 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01736/3.46, allocations: 11.7 MB / 1.118 GB, free: 150.7 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.178e-05/3.46, allocations: 0 / 1.118 GB, free: 150.7 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001032/3.461, allocations: 116 kB / 1.118 GB, free: 150.6 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/3.461, allocations: 23.89 kB / 1.118 GB, free: 150.6 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01568/3.477, allocations: 10.68 MB / 1.128 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04158/3.519, allocations: 17.29 MB / 1.145 GB, free: 122.6 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0152/3.534, allocations: 10.57 MB / 1.156 GB, free: 112 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01326/3.547, allocations: 10.06 MB / 1.165 GB, free: 101.9 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00247/3.55, allocations: 2.755 MB / 1.168 GB, free: 98.57 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01523/3.565, allocations: 11.24 MB / 1.179 GB, free: 87.3 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=81): time 5.53e-06/3.565, allocations: 0 / 1.179 GB, free: 87.3 MB / 0.6511 GB Notification: Performance of matching and sorting (n=81): time 3.979/7.544, allocations: 33.5 MB / 1.212 GB, free: 53.74 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/7.544, allocations: 149.2 kB / 1.212 GB, free: 53.56 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04658/7.591, allocations: 18.02 MB / 1.23 GB, free: 35.72 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.001317/7.592, allocations: 133.7 kB / 1.23 GB, free: 35.58 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.01741/7.609, allocations: 8.695 MB / 1.238 GB, free: 26.88 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.001603/7.611, allocations: 366.9 kB / 1.238 GB, free: 26.53 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001343/7.612, allocations: 112 kB / 1.239 GB, free: 26.42 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001172/7.613, allocations: 337.9 kB / 1.239 GB, free: 26.08 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01467/7.627, allocations: 10.01 MB / 1.249 GB, free: 16.07 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.8183/8.446, allocations: 10.14 MB / 1.259 GB, free: 199.1 MB / 0.6512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01871/8.464, allocations: 10.03 MB / 1.268 GB, free: 199.1 MB / 0.6512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/8.464, allocations: 3.438 kB / 1.268 GB, free: 199.1 MB / 0.6512 GB Notification: Performance of matching and sorting (n=107) (initialization): time 1.691/10.15, allocations: 32.97 MB / 1.301 GB, free: 189.5 MB / 0.6512 GB Notification: Performance of prepare postOptimizeDAE: time 4.915e-05/10.16, allocations: 39.22 kB / 1.301 GB, free: 189.4 MB / 0.6512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/10.16, allocations: 4 kB / 1.301 GB, free: 189.4 MB / 0.6512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007456/10.16, allocations: 108.1 kB / 1.301 GB, free: 189.3 MB / 0.6512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/10.16, allocations: 242.6 kB / 1.301 GB, free: 189.2 MB / 0.6512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000429/10.16, allocations: 0.5663 MB / 1.302 GB, free: 188.6 MB / 0.6512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0041/10.16, allocations: 264.2 kB / 1.302 GB, free: 188.4 MB / 0.6512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002039/10.16, allocations: 1.042 MB / 1.303 GB, free: 187.4 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.001239/10.17, allocations: 293.5 kB / 1.303 GB, free: 187.1 MB / 0.6512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002584/10.17, allocations: 1.806 MB / 1.305 GB, free: 185.3 MB / 0.6512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.875/14.04, allocations: 34.17 MB / 1.338 GB, free: 156.4 MB / 0.6512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/14.04, allocations: 15.59 kB / 1.338 GB, free: 156.4 MB / 0.6512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.193e-06/14.04, allocations: 0 / 1.338 GB, free: 156.4 MB / 0.6512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-05/14.04, allocations: 7.984 kB / 1.338 GB, free: 156.4 MB / 0.6512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.742/17.78, allocations: 43.12 MB / 1.38 GB, free: 113.3 MB / 0.6512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.497e-06/17.78, allocations: 0 / 1.38 GB, free: 113.3 MB / 0.6512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001475/17.79, allocations: 220.6 kB / 1.381 GB, free: 113.1 MB / 0.6512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007368/17.79, allocations: 111.3 kB / 1.381 GB, free: 112.9 MB / 0.6512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001411/17.79, allocations: 306.9 kB / 1.381 GB, free: 112.6 MB / 0.6512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004278/17.79, allocations: 0.5794 MB / 1.381 GB, free: 112 MB / 0.6512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.588e-06/17.79, allocations: 0 / 1.381 GB, free: 112 MB / 0.6512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.8/21.59, allocations: 49.9 MB / 1.43 GB, free: 62.07 MB / 0.6512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00849/21.6, allocations: 3.922 MB / 1.434 GB, free: 58.12 MB / 0.6512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002762/21.6, allocations: 112 kB / 1.434 GB, free: 58.02 MB / 0.6512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004072/21.6, allocations: 193.6 kB / 1.434 GB, free: 57.83 MB / 0.6512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002495/21.6, allocations: 63.12 kB / 1.434 GB, free: 57.77 MB / 0.6512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002054/21.61, allocations: 1.034 MB / 1.435 GB, free: 56.74 MB / 0.6512 GB Notification: Performance of sorting global known variables: time 0.03557/21.64, allocations: 14.52 MB / 1.45 GB, free: 42.35 MB / 0.6512 GB Notification: Performance of sort global known variables: time 1.11e-06/21.64, allocations: 3.469 kB / 1.45 GB, free: 42.35 MB / 0.6512 GB Notification: Performance of remove unused functions: time 0.002638/21.64, allocations: 0.726 MB / 1.45 GB, free: 41.68 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.00196/21.65, allocations: 0.6042 MB / 1.451 GB, free: 41.3 MB / 0.6512 GB Notification: Performance of simCode: created initialization part: time 0.009964/21.66, allocations: 12.26 MB / 1.463 GB, free: 29.04 MB / 0.6512 GB Notification: Performance of simCode: created event and clocks part: time 6.301e-06/21.66, allocations: 3.594 kB / 1.463 GB, free: 29.04 MB / 0.6512 GB Notification: Performance of simCode: created simulation system equations: time 0.005133/21.66, allocations: 6.201 MB / 1.469 GB, free: 22.84 MB / 0.6512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005649/21.67, allocations: 0.522 MB / 1.469 GB, free: 22.32 MB / 0.6512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06804/21.74, allocations: 30.86 MB / 1.5 GB, free: 7.48 MB / 0.6668 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.7718/22.51, allocations: 7.877 MB / 1.507 GB, free: 211.8 MB / 0.6669 GB Notification: Performance of simCode: alias equations: time 0.001399/22.51, allocations: 168.3 kB / 1.507 GB, free: 211.8 MB / 0.6669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004904/22.51, allocations: 83.05 kB / 1.508 GB, free: 211.8 MB / 0.6669 GB Notification: Performance of SimCode: time 1.964e-06/22.51, allocations: 0 / 1.508 GB, free: 211.8 MB / 0.6669 GB Notification: Performance of Templates: time 0.1651/22.67, allocations: 29.9 MB / 1.537 GB, free: 209.5 MB / 0.6669 GB