Running command: translateModel(PowerSystems.Examples.AC3ph.Transmission.Tline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=80000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.Tline") Notification: Performance of loadModel(PowerSystems): time 2.31/2.31, allocations: 232.9 MB / 248.1 MB, free: 10.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.176e-05/4.173e-05, allocations: 7.984 kB / 304.4 MB, free: 1.961 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3498, allocations: 53.22 MB / 357.6 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.Tline): time 0.01176/0.3616, allocations: 7.389 MB / 365 MB, free: 8.078 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006814/0.3685, allocations: 2.53 MB / 367.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001018/0.3696, allocations: 39.75 kB / 367.5 MB, free: 5.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008822/0.3705, allocations: 202.7 kB / 367.7 MB, free: 5.301 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002386/0.3729, allocations: 0.5256 MB / 368.3 MB, free: 4.773 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001748/0.3747, allocations: 435.2 kB / 368.7 MB, free: 4.348 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001746/0.3764, allocations: 0.6679 MB / 369.4 MB, free: 3.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002008/0.3785, allocations: 0.8522 MB / 370.2 MB, free: 2.797 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.3796, allocations: 466.7 kB / 370.7 MB, free: 2.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001362/0.381, allocations: 0.6702 MB / 371.3 MB, free: 1.668 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001341/0.3824, allocations: 447.4 kB / 371.8 MB, free: 1.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003664/0.3827, allocations: 68 kB / 371.8 MB, free: 1.164 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007206/0.3835, allocations: 486.8 kB / 372.3 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005036/0.384, allocations: 120 kB / 372.4 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002536/0.3866, allocations: 1.45 MB / 373.9 MB, free: 15.12 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3866, allocations: 0 / 373.9 MB, free: 15.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.387e-06/0.3866, allocations: 0 / 373.9 MB, free: 15.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.413e-05/0.3867, allocations: 0 / 373.9 MB, free: 15.12 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.005023/0.3917, allocations: 1.498 MB / 375.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.3918, allocations: 12.02 kB / 375.4 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002108/0.3939, allocations: 222.1 kB / 375.6 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002522/0.3965, allocations: 0.7849 MB / 376.4 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.3967, allocations: 89.98 kB / 376.5 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000862/0.3975, allocations: 191.7 kB / 376.7 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004659/0.4022, allocations: 1.685 MB / 378.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.665e-05/0.4023, allocations: 3.938 kB / 378.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002021/0.4025, allocations: 51.98 kB / 378.4 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009331/0.4035, allocations: 98.03 kB / 378.5 MB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004686/0.4082, allocations: 1.496 MB / 380 MB, free: 8.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01561/0.4238, allocations: 5.981 MB / 386 MB, free: 2.613 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004442/0.4283, allocations: 1.814 MB / 387.8 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000202/0.4286, allocations: 13.06 kB / 387.8 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003394/0.432, allocations: 1.283 MB / 389.1 MB, free: 15.34 MB / 330.7 MB Notification: Performance of pre-optimization done (n=173): time 5.871e-06/0.432, allocations: 4 kB / 389.1 MB, free: 15.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=174): time 0.01619/0.4482, allocations: 6.115 MB / 395.2 MB, free: 8.934 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002223/0.4485, allocations: 250.9 kB / 395.5 MB, free: 8.637 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.4498, allocations: 0.5932 MB / 396 MB, free: 8.035 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003868/0.4502, allocations: 69.69 kB / 396.1 MB, free: 7.961 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005253/0.4507, allocations: 0.4953 MB / 396.6 MB, free: 7.461 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008333/0.4516, allocations: 0.5319 MB / 397.1 MB, free: 6.922 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.4518, allocations: 35.98 kB / 397.2 MB, free: 6.887 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002452/0.452, allocations: 394.7 kB / 397.6 MB, free: 6.492 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002438/0.4545, allocations: 0.8316 MB / 398.4 MB, free: 5.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002811/0.4573, allocations: 1.125 MB / 399.5 MB, free: 4.445 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002782/0.4602, allocations: 0.9931 MB / 400.5 MB, free: 3.445 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-05/0.4602, allocations: 4 kB / 400.5 MB, free: 3.441 MB / 330.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.01479/0.475, allocations: 3.714 MB / 404.2 MB, free: 15.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.824e-05/0.4751, allocations: 63.41 kB / 404.3 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.534e-05/0.4752, allocations: 4 kB / 404.3 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01098/0.4862, allocations: 2.523 MB / 406.8 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.4873, allocations: 151.7 kB / 407 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04171/0.5291, allocations: 13.56 MB / 420.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002106/0.5312, allocations: 143.7 kB / 420.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002882/0.5316, allocations: 67.92 kB / 420.7 MB, free: 15.03 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 91 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.breaker1.breaker_a.arc,breaker1.breaker_a.arc,$PRE.breaker1.breaker_a.open,breaker1.breaker_a.open,breaker1.breaker_a.closed,$PRE.breaker1.breaker_a.t0,breaker1.breaker_a.t0,breaker1.breaker_a.opening,$PRE.breaker1.breaker_b.arc,breaker1.breaker_b.arc,$PRE.breaker1.breaker_b.open,breaker1.breaker_b.open,breaker1.breaker_b.closed,$PRE.breaker1.breaker_b.t0,breaker1.breaker_b.t0,breaker1.breaker_b.opening,$PRE.breaker1.breaker_c.arc,breaker1.breaker_c.arc,$PRE.breaker1.breaker_c.open,breaker1.breaker_c.open,breaker1.breaker_c.closed,$PRE.breaker1.breaker_c.t0,breaker1.breaker_c.t0,breaker1.breaker_c.opening,$PRE.breaker2.breaker_a.arc,breaker2.breaker_a.arc,$PRE.breaker2.breaker_a.open,breaker2.breaker_a.open,breaker2.breaker_a.closed,$PRE.breaker2.breaker_a.t0,breaker2.breaker_a.t0,breaker2.breaker_a.opening,$PRE.breaker2.breaker_b.arc,breaker2.breaker_b.arc,$PRE.breaker2.breaker_b.open,breaker2.breaker_b.open,breaker2.breaker_b.closed,$PRE.breaker2.breaker_b.t0,breaker2.breaker_b.t0,breaker2.breaker_b.opening,$PRE.breaker2.breaker_c.arc,breaker2.breaker_c.arc,$PRE.breaker2.breaker_c.open,breaker2.breaker_c.open,breaker2.breaker_c.closed,$PRE.breaker2.breaker_c.t0,breaker2.breaker_c.t0,breaker2.breaker_c.opening,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 148 * Array equations: 2 * Algorithm blocks: 2 * 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: 0 * Non-linear torn systems: 1 {29 53} Notification: Performance of prepare postOptimizeDAE: time 0.001207/0.5328, allocations: 0.4927 MB / 421.2 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004233/0.5332, allocations: 118.6 kB / 421.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006545/0.5398, allocations: 2.245 MB / 423.6 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.307e-05/0.5399, allocations: 28 kB / 423.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.5399, allocations: 3.984 kB / 423.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-05/0.54, allocations: 7.984 kB / 423.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0128/0.5528, allocations: 4.17 MB / 427.8 MB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/0.5528, allocations: 4 kB / 427.8 MB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00308/0.5559, allocations: 263.6 kB / 428.1 MB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005462/0.5565, allocations: 173.1 kB / 428.2 MB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003221/0.5569, allocations: 55.97 kB / 428.3 MB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008164/0.565, allocations: 7.872 MB / 436.2 MB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.5651, allocations: 0 / 436.2 MB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009286/0.5744, allocations: 3.365 MB / 439.5 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004635/0.5749, allocations: 191.6 kB / 439.7 MB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005332/0.5755, allocations: 59.94 kB / 439.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001706/0.5772, allocations: 127.9 kB / 439.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005802/0.5778, allocations: 157 kB / 440 MB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002254/0.578, allocations: 51.97 kB / 440.1 MB, free: 10.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009928/0.579, allocations: 467 kB / 440.5 MB, free: 10.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-07/0.579, allocations: 0 / 440.5 MB, free: 10.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00244/0.5815, allocations: 0.5 MB / 441 MB, free: 9.617 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 21 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * Number of discrete variables: 65 (breaker1.breaker_a.closed,breaker1.breaker_b.closed,breaker1.breaker_c.closed,breaker2.breaker_b.closed,breaker2.breaker_a.closed,breaker2.breaker_c.closed,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,breaker1.breaker_a.arc,breaker1.breaker_a.open,breaker1.breaker_a.t0,breaker1.breaker_a.opening,breaker1.breaker_b.arc,breaker1.breaker_b.open,breaker1.breaker_b.t0,breaker1.breaker_b.opening,breaker1.breaker_c.arc,breaker1.breaker_c.open,breaker1.breaker_c.t0,breaker1.breaker_c.opening,breaker2.breaker_a.arc,breaker2.breaker_a.open,breaker2.breaker_a.t0,breaker2.breaker_a.opening,breaker2.breaker_b.arc,breaker2.breaker_b.open,breaker2.breaker_b.t0,breaker2.breaker_b.opening,breaker2.breaker_c.arc,breaker2.breaker_c.open,breaker2.breaker_c.t0,breaker2.breaker_c.opening,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,system.initime) * Number of discrete states: 22 (breaker1.breaker_a.arc,breaker1.breaker_b.arc,breaker1.breaker_c.arc,breaker2.breaker_a.arc,breaker2.breaker_b.arc,breaker2.breaker_c.arc,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,breaker2.breaker_c.open,breaker2.breaker_a.open,breaker2.breaker_b.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,breaker1.breaker_c.open,breaker1.breaker_b.open,breaker1.breaker_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 127 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007357/0.5823, allocations: 219 kB / 441.3 MB, free: 9.398 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009255/0.5915, allocations: 3.033 MB / 444.3 MB, free: 6.336 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.5916, allocations: 0 / 444.3 MB, free: 6.336 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004197/0.5958, allocations: 1.906 MB / 446.2 MB, free: 4.324 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.5973, allocations: 179.3 kB / 446.4 MB, free: 4.152 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01265/0.61, allocations: 5.052 MB / 451.4 MB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001483/0.6115, allocations: 1.325 MB / 452.8 MB, free: 13.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009384/0.6125, allocations: 95.42 kB / 452.8 MB, free: 13.59 MB / 394.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6125, allocations: 0 / 452.8 MB, free: 13.59 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.