Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) Warning: Requested package Modelica of version 3.2.2, but this package was already loaded with version 3.2.3. You might experience problems if these versions are incompatible. Notification: Performance of loadModel(PhotoVoltaics_TGM): time 3.993/3.993, allocations: 451.8 MB / 464 MB, free: 8 MB / 378.7 MB Warning: Requested package Modelica of version 3.2.2, but this package was already loaded with version 3.2.3. You might experience problems if these versions are incompatible. Notification: Performance of FrontEnd - loaded program: time 5.193e-05/5.176e-05, allocations: 4 kB / 0.5597 GB, free: 12.84 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2152, allocations: 103.7 MB / 0.6609 GB, free: 5.316 MB / 0.5417 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8234/1.039, allocations: 148.4 MB / 0.8058 GB, free: 12.16 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/1.039, allocations: 67.7 kB / 0.8059 GB, free: 12.15 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.1477/1.187, allocations: 36.07 MB / 0.8411 GB, free: 0.4961 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.104e-06/1.187, allocations: 0 / 0.8411 GB, free: 0.4961 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.655e-05/1.187, allocations: 20 kB / 0.8411 GB, free: 488 kB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 280 * Number of variables: 280 Notification: Performance of Generate backend data structure: time 0.004832/1.192, allocations: 1.347 MB / 0.8425 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/1.192, allocations: 8.031 kB / 0.8425 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004329/1.192, allocations: 168.2 kB / 0.8426 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003311/1.195, allocations: 380.7 kB / 0.843 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/1.197, allocations: 0.5966 MB / 0.8436 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/1.197, allocations: 87.77 kB / 0.8437 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002729/1.197, allocations: 105.1 kB / 0.8438 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003151/1.201, allocations: 1.161 MB / 0.8449 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.059e-05/1.201, allocations: 3.984 kB / 0.8449 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001915/1.201, allocations: 48.75 kB / 0.8449 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.631e-05/1.201, allocations: 28 kB / 0.845 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00317/1.204, allocations: 1.066 MB / 0.846 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01183/1.216, allocations: 4.81 MB / 0.8507 GB, free: 8.598 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003835/1.22, allocations: 1.776 MB / 0.8524 GB, free: 6.887 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/1.221, allocations: 334.2 kB / 0.8528 GB, free: 6.688 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002321/1.221, allocations: 178.7 kB / 0.8529 GB, free: 6.477 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001088/1.222, allocations: 0.529 MB / 0.8534 GB, free: 6.02 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=80): time 3.367e-06/1.222, allocations: 3.938 kB / 0.8534 GB, free: 6.016 MB / 0.6511 GB Notification: Performance of matching and sorting (n=80): time 0.006971/1.229, allocations: 1.18 MB / 0.8546 GB, free: 5.043 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002013/1.23, allocations: 303.1 kB / 0.8549 GB, free: 4.68 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/1.231, allocations: 0.5502 MB / 0.8554 GB, free: 4.266 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001813/1.231, allocations: 41.83 kB / 0.8555 GB, free: 4.23 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005034/1.232, allocations: 0.4987 MB / 0.856 GB, free: 3.824 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003356/1.232, allocations: 270.8 kB / 0.8562 GB, free: 3.594 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.89e-05/1.232, allocations: 19.94 kB / 0.8562 GB, free: 3.59 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000195/1.232, allocations: 389.9 kB / 0.8566 GB, free: 3.234 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009146/1.233, allocations: 312.8 kB / 0.8569 GB, free: 3.051 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/1.234, allocations: 0.5775 MB / 0.8575 GB, free: 2.504 MB / 0.6511 GB 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.03072/1.265, allocations: 2.799 MB / 0.8602 GB, free: 0 / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-05/1.265, allocations: 4.047 kB / 0.8602 GB, free: 15.99 MB / 0.6667 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.004168/1.269, allocations: 1.19 MB / 0.8614 GB, free: 15.06 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001141/1.269, allocations: 93.09 kB / 0.8614 GB, free: 14.95 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.568e-05/1.269, allocations: 8 kB / 0.8615 GB, free: 14.94 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009207/1.27, allocations: 100.7 kB / 0.8616 GB, free: 14.84 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002374/1.273, allocations: 265.7 kB / 0.8618 GB, free: 14.59 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002393/1.275, allocations: 1.566 MB / 0.8633 GB, free: 12.98 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001721/1.277, allocations: 123.7 kB / 0.8635 GB, free: 12.87 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/1.277, allocations: 57.78 kB / 0.8635 GB, free: 12.82 MB / 0.6667 GB 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: 39 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,writeCSV.sampleTrigger,$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,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 3 * 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.0004457/1.278, allocations: 287.8 kB / 0.8638 GB, free: 12.55 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002096/1.278, allocations: 79.14 kB / 0.8639 GB, free: 12.48 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007602/1.285, allocations: 1.455 MB / 0.8653 GB, free: 11.33 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-05/1.285, allocations: 8 kB / 0.8653 GB, free: 11.32 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/1.285, allocations: 0 / 0.8653 GB, free: 11.32 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-05/1.285, allocations: 11.97 kB / 0.8653 GB, free: 11.31 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005418/1.291, allocations: 2.365 MB / 0.8676 GB, free: 9.484 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/1.291, allocations: 0 / 0.8676 GB, free: 9.484 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/1.292, allocations: 131.5 kB / 0.8677 GB, free: 9.359 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004355/1.297, allocations: 0.5492 MB / 0.8683 GB, free: 8.871 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/1.297, allocations: 35.55 kB / 0.8683 GB, free: 8.848 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/1.298, allocations: 0.8646 MB / 0.8691 GB, free: 8.082 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/1.298, allocations: 0 / 0.8691 GB, free: 8.082 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003728/1.302, allocations: 1.568 MB / 0.8707 GB, free: 6.914 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006019/1.302, allocations: 255.4 kB / 0.8709 GB, free: 6.688 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/1.303, allocations: 31.8 kB / 0.871 GB, free: 6.672 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/1.304, allocations: 45.38 kB / 0.871 GB, free: 6.637 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/1.304, allocations: 61.94 kB / 0.8711 GB, free: 6.586 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/1.304, allocations: 42.14 kB / 0.8711 GB, free: 6.551 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.000834/1.305, allocations: 437.8 kB / 0.8715 GB, free: 6.234 MB / 0.6667 GB Notification: Performance of sort global known variables: time 3.81e-07/1.305, allocations: 0 / 0.8715 GB, free: 6.234 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001632/1.307, allocations: 398.8 kB / 0.8719 GB, free: 5.887 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger,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 (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * 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.005032/1.312, allocations: 2.565 MB / 0.8744 GB, free: 3.805 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002905/1.315, allocations: 1.101 MB / 0.8755 GB, free: 2.902 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/1.315, allocations: 0 / 0.8755 GB, free: 2.902 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001385/1.316, allocations: 0.6383 MB / 0.8761 GB, free: 2.332 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/1.317, allocations: 119.7 kB / 0.8762 GB, free: 2.215 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007363/1.324, allocations: 1.981 MB / 0.8781 GB, free: 192 kB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007821/1.325, allocations: 1.042 MB / 0.8792 GB, free: 15.12 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0009099/1.326, allocations: 126.4 kB / 0.8793 GB, free: 14.99 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008736/1.327, allocations: 407.3 kB / 0.8797 GB, free: 14.59 MB / 0.6823 GB Notification: Performance of SimCode: time 1.162e-06/1.327, allocations: 0 / 0.8797 GB, free: 14.59 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5504/1.877, allocations: 20.96 MB / 0.9001 GB, free: 9.824 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002879/1.878, allocations: 215.9 kB / 0.9003 GB, free: 9.602 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.183/5.061, allocations: 4 kB / 0.9004 GB, free: 9.598 MB / 0.698 GB