Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadModel(PowerSystems): time 2.364/2.364, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.028e-05/3.027e-05, allocations: 4 kB / 304.4 MB, free: 1.961 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.383/0.3831, allocations: 53.22 MB / 357.6 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.009771/0.3929, allocations: 6.114 MB / 363.7 MB, free: 9.348 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004374/0.3973, allocations: 1.634 MB / 365.3 MB, free: 7.707 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008596/0.3982, allocations: 51.69 kB / 365.4 MB, free: 7.656 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005354/0.3988, allocations: 131.1 kB / 365.5 MB, free: 7.527 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001291/0.4001, allocations: 346.8 kB / 365.8 MB, free: 7.188 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008745/0.401, allocations: 219.5 kB / 366.1 MB, free: 6.973 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008442/0.4019, allocations: 359.2 kB / 366.4 MB, free: 6.621 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003492/0.4022, allocations: 152.3 kB / 366.6 MB, free: 6.473 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005851/0.4028, allocations: 259.2 kB / 366.8 MB, free: 6.219 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006784/0.4035, allocations: 287.2 kB / 367.1 MB, free: 5.938 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001251/0.4037, allocations: 20 kB / 367.1 MB, free: 5.918 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.325e-05/0.4038, allocations: 24 kB / 367.1 MB, free: 5.895 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000313/0.4041, allocations: 211.5 kB / 367.3 MB, free: 5.688 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001944/0.4043, allocations: 59.94 kB / 367.4 MB, free: 5.629 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007585/0.4051, allocations: 0.4948 MB / 367.9 MB, free: 5.133 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.4051, allocations: 0 / 367.9 MB, free: 5.133 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.4051, allocations: 0 / 367.9 MB, free: 5.133 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.4051, allocations: 0 / 367.9 MB, free: 5.133 MB / 298.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.002195/0.4073, allocations: 0.7856 MB / 368.7 MB, free: 4.297 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.4074, allocations: 8.031 kB / 368.7 MB, free: 4.289 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001943/0.4076, allocations: 67.25 kB / 368.8 MB, free: 4.223 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.409, allocations: 0.5054 MB / 369.3 MB, free: 3.676 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.516e-05/0.4091, allocations: 36.94 kB / 369.3 MB, free: 3.641 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.4092, allocations: 55.91 kB / 369.4 MB, free: 3.586 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.4108, allocations: 0.6171 MB / 370 MB, free: 2.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.4108, allocations: 0 / 370 MB, free: 2.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.427e-05/0.4109, allocations: 20 kB / 370 MB, free: 2.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001981/0.4111, allocations: 36.97 kB / 370 MB, free: 2.875 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001371/0.4125, allocations: 0.5034 MB / 370.5 MB, free: 2.371 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005142/0.4177, allocations: 2.234 MB / 372.8 MB, free: 48 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.4191, allocations: 489.9 kB / 373.2 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.985e-05/0.4192, allocations: 4.062 kB / 373.2 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.4193, allocations: 38.5 kB / 373.3 MB, free: 15.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 2.936e-06/0.4193, allocations: 4 kB / 373.3 MB, free: 15.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.005464/0.4248, allocations: 1.732 MB / 375 MB, free: 13.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/0.4249, allocations: 81.11 kB / 375.1 MB, free: 13.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006496/0.4255, allocations: 357.1 kB / 375.4 MB, free: 13.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.346e-05/0.4256, allocations: 37.83 kB / 375.5 MB, free: 13.19 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002819/0.4259, allocations: 338.8 kB / 375.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/0.4261, allocations: 161.6 kB / 376 MB, free: 12.7 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-05/0.4262, allocations: 12 kB / 376 MB, free: 12.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.4263, allocations: 334.8 kB / 376.3 MB, free: 12.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004939/0.4268, allocations: 177 kB / 376.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006089/0.4275, allocations: 307.6 kB / 376.8 MB, free: 11.83 MB / 314.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.003525/0.431, allocations: 0.7647 MB / 377.5 MB, free: 11.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.431, allocations: 3.938 kB / 377.6 MB, free: 11.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001905/0.4329, allocations: 0.6682 MB / 378.2 MB, free: 10.37 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.433, allocations: 4 kB / 378.2 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.433, allocations: 4 kB / 378.2 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006238/0.4336, allocations: 132.7 kB / 378.4 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009131/0.4346, allocations: 120 kB / 378.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004477/0.4391, allocations: 2.33 MB / 380.8 MB, free: 7.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005689/0.4397, allocations: 28.02 kB / 380.8 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.704e-05/0.4398, allocations: 20 kB / 380.9 MB, free: 7.598 MB / 314.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 (55): * Single equations (assignments): 54 * 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,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004661/0.4402, allocations: 238.9 kB / 381.1 MB, free: 7.355 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.4404, allocations: 51.34 kB / 381.1 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001851/0.4422, allocations: 0.6386 MB / 381.8 MB, free: 6.652 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.4423, allocations: 8.109 kB / 381.8 MB, free: 6.645 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4423, allocations: 7.938 kB / 381.8 MB, free: 6.637 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.4423, allocations: 7.938 kB / 381.8 MB, free: 6.629 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003474/0.4458, allocations: 1.352 MB / 383.1 MB, free: 5.191 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.4458, allocations: 3.953 kB / 383.2 MB, free: 5.188 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007069/0.4466, allocations: 79.89 kB / 383.2 MB, free: 5.109 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006841/0.4473, allocations: 140.6 kB / 383.4 MB, free: 4.969 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.033e-05/0.4473, allocations: 16 kB / 383.4 MB, free: 4.953 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004298/0.4516, allocations: 2.354 MB / 385.7 MB, free: 2.465 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.4517, allocations: 0 / 385.7 MB, free: 2.465 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002585/0.4543, allocations: 1.037 MB / 386.8 MB, free: 1.359 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002045/0.4545, allocations: 124.6 kB / 386.9 MB, free: 1.219 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.4547, allocations: 16.73 kB / 386.9 MB, free: 1.203 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004239/0.4551, allocations: 23.98 kB / 386.9 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.4552, allocations: 36.34 kB / 387 MB, free: 1.145 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.555e-05/0.4553, allocations: 19.98 kB / 387 MB, free: 1.125 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004833/0.4558, allocations: 283.1 kB / 387.3 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4558, allocations: 0 / 387.3 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008471/0.4567, allocations: 148 kB / 387.4 MB, free: 0.7031 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (42): * Single equations (assignments): 40 * 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,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001918/0.4569, allocations: 111.2 kB / 387.5 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001853/0.4587, allocations: 0.656 MB / 388.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.4588, allocations: 4 kB / 388.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.4598, allocations: 425.9 kB / 388.6 MB, free: 15.48 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.4609, allocations: 116 kB / 388.7 MB, free: 15.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003575/0.4645, allocations: 1.619 MB / 390.3 MB, free: 13.71 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007733/0.4653, allocations: 0.9528 MB / 391.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002454/0.4656, allocations: 43.42 kB / 391.3 MB, free: 12.68 MB / 330.7 MB Notification: Performance of SimCode: time 1.382e-06/0.4656, allocations: 0 / 391.3 MB, free: 12.68 MB / 330.7 MB Notification: Performance of Templates: time 0.02025/0.4858, allocations: 8.846 MB / 400.2 MB, free: 3.848 MB / 330.7 MB