Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.322/2.322, allocations: 233 MB / 245.6 MB, free: 14.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.346e-05/4.362e-05, allocations: 4 kB / 301.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1394, allocations: 53.24 MB / 354.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4723/0.6118, allocations: 95.92 MB / 450.5 MB, free: 5.969 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/0.6121, allocations: 94.78 kB / 450.6 MB, free: 5.879 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07276/0.6849, allocations: 15.26 MB / 465.9 MB, free: 6.457 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.6849, allocations: 0 / 465.9 MB, free: 6.457 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.924e-05/0.685, allocations: 16 kB / 465.9 MB, free: 6.441 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.0023/0.6873, allocations: 0.8015 MB / 466.7 MB, free: 5.594 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.6874, allocations: 8.031 kB / 466.7 MB, free: 5.586 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002076/0.6876, allocations: 90.52 kB / 466.8 MB, free: 5.488 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002207/0.6878, allocations: 71.16 kB / 466.9 MB, free: 5.418 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004618/0.6925, allocations: 1.058 MB / 467.9 MB, free: 4.312 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.039e-05/0.6926, allocations: 41.62 kB / 468 MB, free: 4.273 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.6927, allocations: 48.66 kB / 468 MB, free: 4.227 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.6943, allocations: 0.616 MB / 468.6 MB, free: 3.574 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.6944, allocations: 0 / 468.6 MB, free: 3.574 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.672e-05/0.6945, allocations: 20 kB / 468.6 MB, free: 3.555 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.6945, allocations: 12 kB / 468.6 MB, free: 3.543 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001368/0.6959, allocations: 0.4899 MB / 469.1 MB, free: 3.055 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005354/0.7013, allocations: 2.255 MB / 471.4 MB, free: 0.7031 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.7027, allocations: 461.3 kB / 471.8 MB, free: 240 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001107/0.7038, allocations: 333.7 kB / 472.2 MB, free: 15.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.951e-05/0.7039, allocations: 7.984 kB / 472.2 MB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.7039, allocations: 42.55 kB / 472.2 MB, free: 15.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=45): time 2.765e-06/0.7039, allocations: 0 / 472.2 MB, free: 15.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=47): time 0.003855/0.7078, allocations: 1.34 MB / 473.6 MB, free: 14.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.458e-05/0.7079, allocations: 81.11 kB / 473.6 MB, free: 14.35 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000688/0.7086, allocations: 367 kB / 474 MB, free: 13.99 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.199e-05/0.7087, allocations: 33.7 kB / 474 MB, free: 13.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002719/0.709, allocations: 331 kB / 474.4 MB, free: 13.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/0.7092, allocations: 161.6 kB / 474.5 MB, free: 13.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.154e-05/0.7093, allocations: 12 kB / 474.5 MB, free: 13.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.7094, allocations: 334.8 kB / 474.8 MB, free: 13.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005168/0.71, allocations: 177.1 kB / 475 MB, free: 12.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005917/0.7106, allocations: 298.5 kB / 475.3 MB, free: 12.6 MB / 410.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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.003714/0.7143, allocations: 0.7536 MB / 476.1 MB, free: 11.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.7144, allocations: 0 / 476.1 MB, free: 11.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001914/0.7163, allocations: 0.6487 MB / 476.7 MB, free: 11.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.7163, allocations: 8 kB / 476.7 MB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.7164, allocations: 7.984 kB / 476.7 MB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006642/0.717, allocations: 136.7 kB / 476.9 MB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000928/0.718, allocations: 109.1 kB / 477 MB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004384/0.7224, allocations: 2.338 MB / 479.3 MB, free: 8.445 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000621/0.7231, allocations: 19.98 kB / 479.3 MB, free: 8.426 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.832e-05/0.7231, allocations: 20 kB / 479.3 MB, free: 8.406 MB / 410.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[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * 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 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002137/0.7234, allocations: 136.8 kB / 479.5 MB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.7235, allocations: 55.34 kB / 479.5 MB, free: 8.211 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001905/0.7254, allocations: 0.6423 MB / 480.2 MB, free: 7.555 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.7255, allocations: 4.656 kB / 480.2 MB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.918e-06/0.7255, allocations: 4 kB / 480.2 MB, free: 7.547 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.7255, allocations: 0 / 480.2 MB, free: 7.547 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003613/0.7291, allocations: 1.346 MB / 481.5 MB, free: 6.113 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.998e-06/0.7292, allocations: 4 kB / 481.5 MB, free: 6.109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007242/0.7299, allocations: 75.89 kB / 481.6 MB, free: 6.035 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006671/0.7306, allocations: 134.7 kB / 481.7 MB, free: 5.902 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.49e-05/0.7307, allocations: 9.688 kB / 481.8 MB, free: 5.895 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004247/0.7349, allocations: 2.351 MB / 484.1 MB, free: 3.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.735, allocations: 0 / 484.1 MB, free: 3.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002529/0.7375, allocations: 1.022 MB / 485.1 MB, free: 2.312 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/0.7378, allocations: 128.5 kB / 485.3 MB, free: 2.168 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.7379, allocations: 8 kB / 485.3 MB, free: 2.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004514/0.7384, allocations: 20.09 kB / 485.3 MB, free: 2.141 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.7385, allocations: 39.64 kB / 485.3 MB, free: 2.102 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.312e-05/0.7386, allocations: 23.94 kB / 485.3 MB, free: 2.078 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005119/0.7391, allocations: 285.2 kB / 485.6 MB, free: 1.801 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.634e-06/0.7391, allocations: 0 / 485.6 MB, free: 1.801 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000989/0.7401, allocations: 147.9 kB / 485.8 MB, free: 1.656 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,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 (41): * Single equations (assignments): 39 * Array equations: 0 * 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 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003096/0.7432, allocations: 2.016 MB / 487.8 MB, free: 15.57 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001822/0.7451, allocations: 0.6158 MB / 488.4 MB, free: 14.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.7452, allocations: 0 / 488.4 MB, free: 14.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.7463, allocations: 413.7 kB / 488.8 MB, free: 14.53 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.7474, allocations: 121 kB / 488.9 MB, free: 14.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00345/0.7508, allocations: 1.212 MB / 490.1 MB, free: 13.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000752/0.7516, allocations: 0.9413 MB / 491.1 MB, free: 12.17 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004609/0.7521, allocations: 207.3 kB / 491.3 MB, free: 11.97 MB / 426.7 MB Notification: Performance of SimCode: time 1.082e-06/0.7521, allocations: 0 / 491.3 MB, free: 11.97 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.926/3.678, allocations: 11.61 MB / 0.4911 GB, free: 372 kB / 426.7 MB