Running command: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") Notification: Performance of loadModel(PowerSystems): time 2.393/2.393, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.759e-05/2.763e-05, allocations: 4 kB / 304.4 MB, free: 1.957 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3767, allocations: 53.21 MB / 357.6 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.01218/0.389, allocations: 6.313 MB / 363.9 MB, free: 9.148 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007884/0.3969, allocations: 2.394 MB / 366.3 MB, free: 6.746 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001087/0.398, allocations: 47.69 kB / 366.3 MB, free: 6.699 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008745/0.3989, allocations: 159 kB / 366.5 MB, free: 6.543 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002468/0.4014, allocations: 450.5 kB / 366.9 MB, free: 6.102 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002077/0.4036, allocations: 403.2 kB / 367.3 MB, free: 5.707 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00255/0.4061, allocations: 0.8739 MB / 368.2 MB, free: 4.832 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002212/0.4084, allocations: 0.7872 MB / 369 MB, free: 4.016 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001615/0.41, allocations: 0.5028 MB / 369.5 MB, free: 3.512 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002196/0.4123, allocations: 0.69 MB / 370.2 MB, free: 2.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002202/0.4145, allocations: 0.4954 MB / 370.7 MB, free: 2.324 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005523/0.4151, allocations: 68 kB / 370.7 MB, free: 2.258 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001248/0.4164, allocations: 0.5144 MB / 371.3 MB, free: 1.742 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006909/0.4171, allocations: 100 kB / 371.4 MB, free: 1.645 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003528/0.4206, allocations: 1.535 MB / 372.9 MB, free: 108 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.4207, allocations: 0 / 372.9 MB, free: 108 kB / 298.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.4207, allocations: 0 / 372.9 MB, free: 108 kB / 298.7 MB Notification: Performance of Transformations before backend: time 4.934e-05/0.4208, allocations: 0 / 372.9 MB, free: 108 kB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.009397/0.4302, allocations: 1.624 MB / 374.5 MB, free: 14.4 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.08e-05/0.4303, allocations: 12.03 kB / 374.5 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001927/0.4322, allocations: 170.6 kB / 374.7 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005684/0.4379, allocations: 0.9428 MB / 375.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001602/0.4396, allocations: 0.5179 MB / 376.2 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007838/0.4404, allocations: 103.9 kB / 376.3 MB, free: 12.54 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01077/0.4512, allocations: 2.105 MB / 378.4 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.37e-05/0.4513, allocations: 4 kB / 378.4 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003392/0.4517, allocations: 35.98 kB / 378.4 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005194/0.4522, allocations: 97.88 kB / 378.5 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01246/0.4647, allocations: 2.4 MB / 380.9 MB, free: 7.859 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0178/0.4825, allocations: 5.775 MB / 386.7 MB, free: 1.973 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00942/0.492, allocations: 1.941 MB / 388.6 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002276/0.4923, allocations: 20.98 kB / 388.6 MB, free: 15.97 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005631/0.4979, allocations: 1.477 MB / 390.1 MB, free: 14.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=123): time 4.569e-06/0.4979, allocations: 0 / 390.1 MB, free: 14.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=124): time 0.02756/0.5255, allocations: 6.558 MB / 396.7 MB, free: 7.773 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.5257, allocations: 102.1 kB / 396.8 MB, free: 7.656 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008606/0.5265, allocations: 441.1 kB / 397.2 MB, free: 7.219 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003983/0.5269, allocations: 61.67 kB / 397.3 MB, free: 7.152 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003784/0.5273, allocations: 387.2 kB / 397.6 MB, free: 6.77 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006533/0.528, allocations: 426 kB / 398.1 MB, free: 6.348 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.5282, allocations: 20 kB / 398.1 MB, free: 6.328 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.5284, allocations: 370.7 kB / 398.4 MB, free: 5.957 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00462/0.533, allocations: 1.076 MB / 399.5 MB, free: 4.879 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006558/0.5396, allocations: 1.231 MB / 400.7 MB, free: 3.613 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006501/0.5462, allocations: 1.116 MB / 401.9 MB, free: 2.488 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/0.5463, allocations: 0 / 401.9 MB, free: 2.488 MB / 330.7 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.03432/0.5806, allocations: 4.441 MB / 406.3 MB, free: 14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001614/0.5808, allocations: 67.23 kB / 406.4 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.323e-05/0.5809, allocations: 7.953 kB / 406.4 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01795/0.5989, allocations: 2.245 MB / 408.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/0.601, allocations: 183.7 kB / 408.8 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07164/0.6726, allocations: 13.72 MB / 422.5 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002601/0.6753, allocations: 212 kB / 422.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003375/0.6757, allocations: 75.94 kB / 422.8 MB, free: 13.21 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 99 * Array equations: 3 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 1 {6 21} Notification: Performance of prepare postOptimizeDAE: time 0.001022/0.6767, allocations: 383.6 kB / 423.2 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003616/0.6771, allocations: 83.05 kB / 423.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01143/0.6885, allocations: 2.66 MB / 425.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-05/0.6886, allocations: 27.98 kB / 425.9 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.6887, allocations: 4.125 kB / 425.9 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.744e-05/0.6887, allocations: 7.984 kB / 426 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01596/0.7047, allocations: 4.408 MB / 430.4 MB, free: 5.496 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.7047, allocations: 4.031 kB / 430.4 MB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0243/0.729, allocations: 2.841 MB / 433.2 MB, free: 2.648 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001523/0.7292, allocations: 28.78 kB / 433.2 MB, free: 2.617 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003208/0.7296, allocations: 31.97 kB / 433.3 MB, free: 2.586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00146/0.7311, allocations: 1.392 MB / 434.7 MB, free: 1.062 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.7311, allocations: 4.25 kB / 434.7 MB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01703/0.7481, allocations: 4.354 MB / 439 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/0.7493, allocations: 344.1 kB / 439.4 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004763/0.7498, allocations: 83.92 kB / 439.4 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002816/0.7527, allocations: 255.7 kB / 439.7 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007495/0.7534, allocations: 188.7 kB / 439.9 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001963/0.7537, allocations: 43.97 kB / 439.9 MB, free: 11.67 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006681/0.7543, allocations: 342.8 kB / 440.2 MB, free: 11.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.7543, allocations: 0 / 440.2 MB, free: 11.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001805/0.7562, allocations: 360 kB / 440.6 MB, free: 10.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 95 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.0006878/0.7569, allocations: 212.7 kB / 440.8 MB, free: 10.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01411/0.771, allocations: 3.95 MB / 444.8 MB, free: 6.703 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.7711, allocations: 4 kB / 444.8 MB, free: 6.699 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01293/0.784, allocations: 2.355 MB / 447.1 MB, free: 4.332 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.7856, allocations: 159 kB / 447.3 MB, free: 4.172 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01278/0.7984, allocations: 3.851 MB / 451.1 MB, free: 272 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.7996, allocations: 1.167 MB / 452.3 MB, free: 15.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009963/0.8006, allocations: 75.42 kB / 452.4 MB, free: 15 MB / 394.7 MB Notification: Performance of SimCode: time 1.333e-06/0.8006, allocations: 0 / 452.4 MB, free: 15 MB / 394.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.