Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadModel(PowerSystems): time 2.393/2.393, allocations: 232.9 MB / 248.1 MB, free: 10.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.086e-05/3.08e-05, allocations: 4 kB / 304.4 MB, free: 1.961 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.407/0.4071, allocations: 53.22 MB / 357.6 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.01151/0.4187, allocations: 7.018 MB / 364.6 MB, free: 8.949 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006347/0.4251, allocations: 2.184 MB / 366.8 MB, free: 7.211 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001251/0.4264, allocations: 59.59 kB / 366.8 MB, free: 7.188 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007349/0.4271, allocations: 155 kB / 367 MB, free: 7.047 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002503/0.4297, allocations: 481 kB / 367.5 MB, free: 6.625 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001686/0.4314, allocations: 373 kB / 367.8 MB, free: 6.344 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001648/0.4331, allocations: 0.5307 MB / 368.4 MB, free: 5.969 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002024/0.4352, allocations: 0.8528 MB / 369.2 MB, free: 5.383 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001258/0.4365, allocations: 394.9 kB / 369.6 MB, free: 5.168 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001223/0.4377, allocations: 445 kB / 370 MB, free: 4.938 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00132/0.4391, allocations: 425.4 kB / 370.4 MB, free: 4.633 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003473/0.4395, allocations: 40 kB / 370.5 MB, free: 4.594 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006421/0.4401, allocations: 403.1 kB / 370.9 MB, free: 4.199 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000457/0.4406, allocations: 96 kB / 371 MB, free: 4.105 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002123/0.4427, allocations: 1.153 MB / 372.1 MB, free: 2.949 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.4428, allocations: 0 / 372.1 MB, free: 2.949 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.4428, allocations: 4 kB / 372.1 MB, free: 2.945 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.596e-05/0.4428, allocations: 4 kB / 372.1 MB, free: 2.941 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.004136/0.447, allocations: 1.303 MB / 373.4 MB, free: 1.562 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.447, allocations: 8.031 kB / 373.4 MB, free: 1.555 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001388/0.4484, allocations: 166.6 kB / 373.6 MB, free: 1.391 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002044/0.4505, allocations: 0.666 MB / 374.3 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002614/0.4508, allocations: 183 kB / 374.5 MB, free: 496 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004202/0.4513, allocations: 103.9 kB / 374.6 MB, free: 392 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004917/0.4562, allocations: 1.543 MB / 376.1 MB, free: 14.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.364e-05/0.4563, allocations: 4 kB / 376.1 MB, free: 14.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001661/0.4565, allocations: 43.89 kB / 376.1 MB, free: 14.72 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002732/0.4568, allocations: 65.97 kB / 376.2 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004216/0.461, allocations: 1.19 MB / 377.4 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01056/0.4716, allocations: 4.797 MB / 382.2 MB, free: 8.516 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005714/0.4774, allocations: 1.211 MB / 383.4 MB, free: 7.27 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001173/0.4775, allocations: 8.625 kB / 383.4 MB, free: 7.262 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00277/0.4803, allocations: 0.734 MB / 384.1 MB, free: 6.508 MB / 314.7 MB Notification: Performance of pre-optimization done (n=80): time 4.989e-06/0.4804, allocations: 0 / 384.1 MB, free: 6.508 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.01315/0.4935, allocations: 3.371 MB / 387.5 MB, free: 3.016 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.4937, allocations: 123.5 kB / 387.6 MB, free: 2.867 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009916/0.4947, allocations: 0.5137 MB / 388.2 MB, free: 2.348 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002154/0.4949, allocations: 53.69 kB / 388.2 MB, free: 2.289 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004469/0.4954, allocations: 477.6 kB / 388.7 MB, free: 1.816 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004211/0.4958, allocations: 280.2 kB / 388.9 MB, free: 1.539 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.762e-05/0.4959, allocations: 20 kB / 389 MB, free: 1.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.4961, allocations: 358.8 kB / 389.3 MB, free: 1.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001336/0.4975, allocations: 466 kB / 389.8 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.4991, allocations: 0.7303 MB / 390.5 MB, free: 15.87 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.5008, allocations: 0.5976 MB / 391.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.5008, allocations: 0 / 391.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.004111/0.5049, allocations: 1.495 MB / 392.6 MB, free: 13.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001186/0.5051, allocations: 62.61 kB / 392.7 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003314/0.5084, allocations: 1.29 MB / 393.9 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005997/0.5091, allocations: 97.64 kB / 394 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001567/0.5107, allocations: 199.7 kB / 394.2 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003723/0.5144, allocations: 3.009 MB / 397.2 MB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.5158, allocations: 80.17 kB / 397.3 MB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000194/0.516, allocations: 75.89 kB / 397.4 MB, free: 8.613 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 1 * Algorithm blocks: 1 * 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: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009087/0.5169, allocations: 377.1 kB / 397.8 MB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002635/0.5172, allocations: 83.06 kB / 397.8 MB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005002/0.5222, allocations: 1.298 MB / 399.1 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.277e-05/0.5223, allocations: 15.98 kB / 399.2 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.5223, allocations: 0 / 399.2 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/0.5223, allocations: 7.984 kB / 399.2 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007539/0.5299, allocations: 2.456 MB / 401.6 MB, free: 4.254 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/0.5299, allocations: 3.938 kB / 401.6 MB, free: 4.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001442/0.5314, allocations: 139.8 kB / 401.8 MB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001398/0.5316, allocations: 24.84 kB / 401.8 MB, free: 4.086 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001479/0.5317, allocations: 31.97 kB / 401.8 MB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001512/0.5333, allocations: 1.385 MB / 403.2 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/0.5333, allocations: 12.22 kB / 403.2 MB, free: 2.527 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007593/0.5409, allocations: 2.027 MB / 405.2 MB, free: 432 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000671/0.5416, allocations: 244 kB / 405.5 MB, free: 168 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003547/0.542, allocations: 79.95 kB / 405.6 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.5435, allocations: 104 kB / 405.7 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.5437, allocations: 56.58 kB / 405.7 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.5439, allocations: 31.92 kB / 405.7 MB, free: 15.89 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007546/0.5446, allocations: 394.8 kB / 406.1 MB, free: 15.51 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5446, allocations: 4 kB / 406.1 MB, free: 15.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001366/0.546, allocations: 248.2 kB / 406.4 MB, free: 15.26 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 64 * Array equations: 1 * 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.0005312/0.5466, allocations: 175.8 kB / 406.6 MB, free: 15.08 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004721/0.5513, allocations: 1.627 MB / 408.2 MB, free: 13.42 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.5514, allocations: 0 / 408.2 MB, free: 13.42 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002669/0.554, allocations: 0.6829 MB / 408.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001263/0.5554, allocations: 154.9 kB / 409 MB, free: 12.58 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007391/0.5628, allocations: 2.877 MB / 411.9 MB, free: 9.652 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/0.5639, allocations: 1.134 MB / 413 MB, free: 8.492 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005429/0.5645, allocations: 71.42 kB / 413.1 MB, free: 8.422 MB / 346.7 MB Notification: Performance of SimCode: time 1.322e-06/0.5645, allocations: 0 / 413.1 MB, free: 8.422 MB / 346.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.