Running command: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadModel(PowerSystems): time 2.379/2.379, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.34e-05/3.344e-05, allocations: 4 kB / 304.4 MB, free: 1.965 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.3629, allocations: 53.22 MB / 357.6 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.01075/0.3737, allocations: 6.473 MB / 364.1 MB, free: 8.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005616/0.3793, allocations: 2.016 MB / 366.1 MB, free: 6.957 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009883/0.3804, allocations: 59.62 kB / 366.1 MB, free: 6.898 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006488/0.3811, allocations: 155 kB / 366.3 MB, free: 6.746 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001511/0.3826, allocations: 358.8 kB / 366.6 MB, free: 6.395 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.384, allocations: 327.3 kB / 367 MB, free: 6.074 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.3851, allocations: 399.5 kB / 367.3 MB, free: 5.684 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001348/0.3864, allocations: 0.5821 MB / 367.9 MB, free: 5.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007802/0.3872, allocations: 283.2 kB / 368.2 MB, free: 4.793 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008735/0.3881, allocations: 391 kB / 368.6 MB, free: 4.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006314/0.3888, allocations: 175.7 kB / 368.8 MB, free: 4.238 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001587/0.3889, allocations: 36 kB / 368.8 MB, free: 4.203 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004457/0.3894, allocations: 299.2 kB / 369.1 MB, free: 3.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002663/0.3897, allocations: 68 kB / 369.1 MB, free: 3.844 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001286/0.391, allocations: 0.7599 MB / 369.9 MB, free: 3.082 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.391, allocations: 0 / 369.9 MB, free: 3.082 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.391, allocations: 0 / 369.9 MB, free: 3.082 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.946e-05/0.391, allocations: 8 kB / 369.9 MB, free: 3.074 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.003226/0.3943, allocations: 0.9266 MB / 370.8 MB, free: 2.094 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.3944, allocations: 8.031 kB / 370.9 MB, free: 2.086 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001605/0.396, allocations: 130.9 kB / 371 MB, free: 1.957 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002118/0.3981, allocations: 0.564 MB / 371.5 MB, free: 1.352 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.553e-05/0.3982, allocations: 57.25 kB / 371.6 MB, free: 1.297 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003589/0.3986, allocations: 71.91 kB / 371.7 MB, free: 1.227 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003247/0.4019, allocations: 0.998 MB / 372.7 MB, free: 200 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.951e-05/0.402, allocations: 7.938 kB / 372.7 MB, free: 192 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000157/0.4021, allocations: 28 kB / 372.7 MB, free: 164 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004798/0.4026, allocations: 77.83 kB / 372.8 MB, free: 84 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003475/0.4061, allocations: 0.9681 MB / 373.7 MB, free: 15.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01172/0.4179, allocations: 3.28 MB / 377 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002692/0.4206, allocations: 0.6909 MB / 377.7 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001138/0.4208, allocations: 17.53 kB / 377.7 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.655e-05/0.4208, allocations: 39.12 kB / 377.8 MB, free: 10.94 MB / 314.7 MB Notification: Performance of pre-optimization done (n=73): time 5.651e-06/0.4209, allocations: 0 / 377.8 MB, free: 10.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=75): time 0.008872/0.4297, allocations: 2.561 MB / 380.3 MB, free: 8.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.882e-05/0.4299, allocations: 93.56 kB / 380.4 MB, free: 8.137 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.4309, allocations: 385.1 kB / 380.8 MB, free: 7.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.4311, allocations: 41.69 kB / 380.8 MB, free: 7.703 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004565/0.4316, allocations: 394.1 kB / 381.2 MB, free: 7.312 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000431/0.432, allocations: 260.2 kB / 381.5 MB, free: 7.055 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.611e-05/0.4321, allocations: 16 kB / 381.5 MB, free: 7.039 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002302/0.4324, allocations: 346.8 kB / 381.8 MB, free: 6.691 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001256/0.4336, allocations: 333.8 kB / 382.2 MB, free: 6.367 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001471/0.4351, allocations: 0.5069 MB / 382.7 MB, free: 5.793 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.009953/0.4451, allocations: 1.392 MB / 384.1 MB, free: 4.379 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.4451, allocations: 3.938 kB / 384.1 MB, free: 4.375 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003834/0.449, allocations: 1.056 MB / 385.1 MB, free: 3.293 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.307e-05/0.4491, allocations: 5.875 kB / 385.1 MB, free: 3.289 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.489e-05/0.4491, allocations: 12 kB / 385.1 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002236/0.4493, allocations: 36.8 kB / 385.2 MB, free: 3.238 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002144/0.4515, allocations: 199.7 kB / 385.4 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001882/0.4534, allocations: 1.331 MB / 386.7 MB, free: 1.578 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.4546, allocations: 39.95 kB / 386.7 MB, free: 1.539 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.4548, allocations: 36.23 kB / 386.8 MB, free: 1.504 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (96): * Single equations (assignments): 93 * Array equations: 2 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008158/0.4556, allocations: 281.3 kB / 387 MB, free: 1.219 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002886/0.4559, allocations: 59.25 kB / 387.1 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003439/0.4594, allocations: 0.962 MB / 388.1 MB, free: 172 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.687e-05/0.4594, allocations: 23.94 kB / 388.1 MB, free: 148 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.4595, allocations: 0 / 388.1 MB, free: 148 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/0.4595, allocations: 3.984 kB / 388.1 MB, free: 144 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007354/0.4669, allocations: 1.985 MB / 390.1 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.565e-05/0.4669, allocations: 4 kB / 390.1 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001891/0.4688, allocations: 159.8 kB / 390.2 MB, free: 13.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001689/0.469, allocations: 41.34 kB / 390.3 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.4692, allocations: 23.98 kB / 390.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001812/0.471, allocations: 1.331 MB / 391.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.297e-05/0.471, allocations: 8 kB / 391.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004045/0.4751, allocations: 1.728 MB / 393.4 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002784/0.4754, allocations: 140.3 kB / 393.5 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001993/0.4757, allocations: 23.98 kB / 393.5 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000661/0.4763, allocations: 35.91 kB / 393.6 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.4765, allocations: 60.39 kB / 393.6 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.624e-05/0.4766, allocations: 27.98 kB / 393.7 MB, free: 10.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005205/0.4771, allocations: 295.1 kB / 393.9 MB, free: 9.789 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4771, allocations: 0 / 393.9 MB, free: 9.789 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009545/0.4781, allocations: 184 kB / 394.1 MB, free: 9.609 MB / 330.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): 72 * Array equations: 2 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003986/0.4785, allocations: 155 kB / 394.3 MB, free: 9.449 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002386/0.4809, allocations: 0.9348 MB / 395.2 MB, free: 8.508 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/0.4809, allocations: 4 kB / 395.2 MB, free: 8.504 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.4821, allocations: 0.5108 MB / 395.7 MB, free: 7.984 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.4832, allocations: 132.2 kB / 395.8 MB, free: 7.855 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004976/0.4882, allocations: 2.406 MB / 398.3 MB, free: 5.355 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009202/0.4891, allocations: 1.021 MB / 399.3 MB, free: 4.309 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003952/0.4895, allocations: 71.36 kB / 399.3 MB, free: 4.238 MB / 330.7 MB Notification: Performance of SimCode: time 9.52e-07/0.4895, allocations: 0 / 399.3 MB, free: 4.238 MB / 330.7 MB [CodegenCpp.tpl:4138:14-4138:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4129:14-4129:14:writable] Error: Template error: Unsupported external language: BUILTIN.