Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.236/2.236, allocations: 233 MB / 245.6 MB, free: 14.79 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.09e-05/5.101e-05, allocations: 11.92 kB / 301.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1583, allocations: 53.24 MB / 354.6 MB, free: 2.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4809/0.6392, allocations: 106 MB / 460.6 MB, free: 11.82 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/0.6396, allocations: 91.94 kB / 460.7 MB, free: 11.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1023/0.742, allocations: 21.78 MB / 482.5 MB, free: 5.719 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.742, allocations: 0 / 482.5 MB, free: 5.719 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.661e-05/0.7421, allocations: 12 kB / 482.5 MB, free: 5.707 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.003331/0.7454, allocations: 0.9538 MB / 483.5 MB, free: 4.707 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.7455, allocations: 12.03 kB / 483.5 MB, free: 4.695 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003804/0.7459, allocations: 114.6 kB / 483.6 MB, free: 4.574 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00119/0.7471, allocations: 142.8 kB / 483.7 MB, free: 4.434 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005042/0.7522, allocations: 1.124 MB / 484.8 MB, free: 3.266 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.559e-05/0.7523, allocations: 49.31 kB / 484.9 MB, free: 3.219 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002437/0.7526, allocations: 71.92 kB / 485 MB, free: 3.148 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002764/0.7553, allocations: 0.9729 MB / 485.9 MB, free: 2.133 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.971e-05/0.7554, allocations: 3.984 kB / 485.9 MB, free: 2.129 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001137/0.7556, allocations: 24 kB / 486 MB, free: 2.105 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002554/0.7558, allocations: 65.28 kB / 486 MB, free: 2.043 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002741/0.7586, allocations: 0.9207 MB / 486.9 MB, free: 1.121 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008645/0.7673, allocations: 3.213 MB / 490.2 MB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/0.7694, allocations: 0.6793 MB / 490.8 MB, free: 13.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001191/0.7706, allocations: 450.5 kB / 491.3 MB, free: 12.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.545e-05/0.7707, allocations: 5.219 kB / 491.3 MB, free: 12.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.658e-05/0.7708, allocations: 51.05 kB / 491.3 MB, free: 12.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 3.647e-06/0.7708, allocations: 3.938 kB / 491.3 MB, free: 12.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=79): time 0.005631/0.7765, allocations: 2.084 MB / 493.4 MB, free: 10.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.143e-05/0.7766, allocations: 93.62 kB / 493.5 MB, free: 10.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000746/0.7773, allocations: 371 kB / 493.9 MB, free: 9.957 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00015/0.7775, allocations: 37.7 kB / 493.9 MB, free: 9.914 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003054/0.7778, allocations: 382.9 kB / 494.3 MB, free: 9.535 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003619/0.7782, allocations: 275.9 kB / 494.6 MB, free: 9.262 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.298e-05/0.7783, allocations: 16 kB / 494.6 MB, free: 9.246 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.7785, allocations: 346.8 kB / 494.9 MB, free: 8.898 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009258/0.7794, allocations: 345.7 kB / 495.2 MB, free: 8.559 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001064/0.7805, allocations: 0.4988 MB / 495.7 MB, free: 7.996 MB / 426.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.01723/0.7977, allocations: 2.745 MB / 498.5 MB, free: 5.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.7978, allocations: 11.95 kB / 498.5 MB, free: 5.219 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002704/0.8005, allocations: 1.06 MB / 499.6 MB, free: 4.133 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.8005, allocations: 4 kB / 499.6 MB, free: 4.129 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.8006, allocations: 11.94 kB / 499.6 MB, free: 4.117 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002186/0.8008, allocations: 32.84 kB / 499.6 MB, free: 4.082 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/0.8025, allocations: 207.7 kB / 499.8 MB, free: 3.879 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001624/0.8042, allocations: 1.386 MB / 0.4895 GB, free: 2.355 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/0.8052, allocations: 43.92 kB / 0.4895 GB, free: 2.312 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.8054, allocations: 35.97 kB / 0.4895 GB, free: 2.277 MB / 426.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 89 * Array equations: 3 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00029/0.8057, allocations: 152.8 kB / 0.4897 GB, free: 2.121 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.8059, allocations: 63.23 kB / 0.4897 GB, free: 2.059 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/0.8086, allocations: 1.007 MB / 0.4907 GB, free: 1.023 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.92e-05/0.8087, allocations: 27.94 kB / 0.4907 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.8087, allocations: 0 / 0.4907 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.597e-05/0.8088, allocations: 3.984 kB / 0.4907 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006125/0.8149, allocations: 2.057 MB / 0.4928 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/0.815, allocations: 4 kB / 0.4928 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001559/0.8165, allocations: 168.3 kB / 0.4929 GB, free: 14.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001983/0.8168, allocations: 40.84 kB / 0.493 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.8169, allocations: 19.98 kB / 0.493 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001602/0.8185, allocations: 1.389 MB / 0.4943 GB, free: 13.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-05/0.8186, allocations: 11.94 kB / 0.4943 GB, free: 13.04 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003813/0.8224, allocations: 1.8 MB / 0.4961 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002748/0.8227, allocations: 140.4 kB / 0.4962 GB, free: 10.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.8229, allocations: 23.98 kB / 0.4963 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000689/0.8236, allocations: 35.97 kB / 0.4963 GB, free: 10.81 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/0.8238, allocations: 72.31 kB / 0.4964 GB, free: 10.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.215e-05/0.8239, allocations: 24 kB / 0.4964 GB, free: 10.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005179/0.8244, allocations: 285.2 kB / 0.4967 GB, free: 10.44 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.8244, allocations: 0 / 0.4967 GB, free: 10.44 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001143/0.8256, allocations: 203.9 kB / 0.4969 GB, free: 10.24 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004791/0.8304, allocations: 3.727 MB / 0.5005 GB, free: 6.332 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002607/0.833, allocations: 0.9551 MB / 0.5014 GB, free: 5.367 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/0.8331, allocations: 0 / 0.5014 GB, free: 5.367 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001288/0.8344, allocations: 0.5217 MB / 0.5019 GB, free: 4.836 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.8356, allocations: 126 kB / 0.5021 GB, free: 4.715 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005644/0.8413, allocations: 1.951 MB / 0.504 GB, free: 2.66 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009196/0.8422, allocations: 1.029 MB / 0.505 GB, free: 1.602 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008054/0.8431, allocations: 275.3 kB / 0.5052 GB, free: 1.332 MB / 442.7 MB Notification: Performance of SimCode: time 1.473e-06/0.8431, allocations: 0 / 0.5052 GB, free: 1.332 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.923/3.766, allocations: 15.19 MB / 0.5201 GB, free: 2.141 MB / 458.7 MB