Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMPDC,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PhotoVoltaics): time 2.086/2.086, allocations: 211.3 MB / 223.4 MB, free: 3.641 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.913e-05/3.942e-05, allocations: 4 kB / 277.7 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1037, allocations: 48.76 MB / 326.4 MB, free: 13.25 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4675/0.5712, allocations: 87.4 MB / 413.8 MB, free: 2.391 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.5715, allocations: 69.22 kB / 413.9 MB, free: 2.359 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1234/0.6949, allocations: 20.88 MB / 434.8 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.695, allocations: 0 / 434.8 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.941e-05/0.6951, allocations: 16 kB / 434.8 MB, free: 0.6016 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 185 * Number of variables: 185 Notification: Performance of Generate backend data structure: time 0.005738/0.7009, allocations: 1.017 MB / 435.8 MB, free: 15.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.947e-05/0.701, allocations: 8.031 kB / 435.8 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000509/0.7015, allocations: 115.1 kB / 435.9 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004794/0.702, allocations: 94.91 kB / 436 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001949/0.704, allocations: 495 kB / 436.5 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.7041, allocations: 60.06 kB / 436.6 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003232/0.7045, allocations: 69.88 kB / 436.6 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003406/0.7079, allocations: 0.7586 MB / 437.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.267e-05/0.708, allocations: 0 / 437.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002087/0.7083, allocations: 37.8 kB / 437.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.24e-05/0.7083, allocations: 20 kB / 437.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003514/0.7119, allocations: 0.6379 MB / 438.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00889/0.7208, allocations: 2.893 MB / 441 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002191/0.7231, allocations: 0.9043 MB / 441.9 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007042/0.7238, allocations: 246.2 kB / 442.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001705/0.724, allocations: 85.55 kB / 442.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008983/0.7249, allocations: 432.6 kB / 442.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 3.457e-06/0.7249, allocations: 0 / 442.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.006413/0.7314, allocations: 0.964 MB / 443.6 MB, free: 9.332 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001691/0.7316, allocations: 225.7 kB / 443.8 MB, free: 9.066 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009599/0.7325, allocations: 436 kB / 444.2 MB, free: 8.738 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001522/0.7327, allocations: 36.27 kB / 444.3 MB, free: 8.703 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003803/0.7331, allocations: 369.2 kB / 444.6 MB, free: 8.418 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002706/0.7334, allocations: 189.4 kB / 444.8 MB, free: 8.258 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.451e-05/0.7335, allocations: 17.25 kB / 444.8 MB, free: 8.254 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.7337, allocations: 370.1 kB / 445.2 MB, free: 7.906 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000684/0.7344, allocations: 210.3 kB / 445.4 MB, free: 7.785 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007579/0.7352, allocations: 367.7 kB / 445.8 MB, free: 7.465 MB / 362.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.02429/0.7595, allocations: 2.097 MB / 447.9 MB, free: 5.566 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.7595, allocations: 4 kB / 447.9 MB, free: 5.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00273/0.7622, allocations: 0.8202 MB / 448.7 MB, free: 4.914 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.35e-05/0.7624, allocations: 61.53 kB / 448.7 MB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.7624, allocations: 4 kB / 448.7 MB, free: 4.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009063/0.7633, allocations: 96.39 kB / 448.8 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001717/0.765, allocations: 181.8 kB / 449 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00244/0.7675, allocations: 1.549 MB / 450.6 MB, free: 2.973 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/0.7689, allocations: 72.98 kB / 450.6 MB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.769, allocations: 39.27 kB / 450.7 MB, free: 2.879 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 22 ($PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003801/0.7694, allocations: 226.2 kB / 450.9 MB, free: 2.664 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001791/0.7696, allocations: 67.2 kB / 451 MB, free: 2.598 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006977/0.7766, allocations: 1.2 MB / 452.2 MB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-05/0.7767, allocations: 4 kB / 452.2 MB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.7767, allocations: 0 / 452.2 MB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-05/0.7767, allocations: 7.984 kB / 452.2 MB, free: 1.633 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004373/0.7811, allocations: 1.835 MB / 454 MB, free: 196 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.285e-05/0.7812, allocations: 4 kB / 454 MB, free: 192 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.7822, allocations: 107.5 kB / 454.1 MB, free: 88 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004443/0.7867, allocations: 0.5429 MB / 454.7 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001882/0.7869, allocations: 22.59 kB / 454.7 MB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001431/0.7884, allocations: 0.8664 MB / 455.6 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.7884, allocations: 0 / 455.6 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003296/0.7917, allocations: 1.232 MB / 456.8 MB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000577/0.7923, allocations: 212.1 kB / 457 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/0.7925, allocations: 24 kB / 457 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009697/0.7935, allocations: 47.92 kB / 457.1 MB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.7937, allocations: 44.48 kB / 457.1 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-05/0.7938, allocations: 31.97 kB / 457.1 MB, free: 13.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007498/0.7946, allocations: 353.6 kB / 457.5 MB, free: 12.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7946, allocations: 0 / 457.5 MB, free: 12.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001306/0.7959, allocations: 259.3 kB / 457.7 MB, free: 12.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (converter.integrator.y,battery.energy,battery.capacitor.v) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays) * Number of discrete states: 13 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 57 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004024/0.8, allocations: 1.944 MB / 459.7 MB, free: 10.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00234/0.8024, allocations: 0.794 MB / 460.5 MB, free: 9.859 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.8024, allocations: 0 / 460.5 MB, free: 9.859 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001218/0.8036, allocations: 0.4894 MB / 461 MB, free: 9.348 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.8048, allocations: 102.9 kB / 461.1 MB, free: 9.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003947/0.8087, allocations: 1.138 MB / 462.2 MB, free: 8.062 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006715/0.8095, allocations: 0.9498 MB / 463.2 MB, free: 7.086 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000687/0.8102, allocations: 84.88 kB / 463.2 MB, free: 7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006786/0.8109, allocations: 295.3 kB / 463.5 MB, free: 6.711 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.8109, allocations: 0 / 463.5 MB, free: 6.711 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05879/0.8697, allocations: 15.9 MB / 479.4 MB, free: 6.898 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002926/0.87, allocations: 165.1 kB / 479.6 MB, free: 6.676 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.006/3.877, allocations: 0 / 479.6 MB, free: 6.676 MB / 394.7 MB