Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault") Notification: Performance of loadModel(PowerSystems): time 2.252/2.252, allocations: 232.9 MB / 248.1 MB, free: 10.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.958e-05/2.958e-05, allocations: 4 kB / 304.4 MB, free: 1.953 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3602, allocations: 53.21 MB / 357.6 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Fault): time 0.01147/0.3717, allocations: 6.886 MB / 364.5 MB, free: 9.023 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007209/0.379, allocations: 2.233 MB / 366.7 MB, free: 7.254 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001203/0.3802, allocations: 45.19 kB / 366.7 MB, free: 7.234 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009092/0.3812, allocations: 178.1 kB / 366.9 MB, free: 7.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002719/0.3839, allocations: 463.4 kB / 367.4 MB, free: 6.672 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002029/0.386, allocations: 382.6 kB / 367.7 MB, free: 6.383 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002063/0.3881, allocations: 0.5333 MB / 368.3 MB, free: 5.992 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003191/0.3913, allocations: 0.9216 MB / 369.2 MB, free: 5.348 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001591/0.393, allocations: 407.3 kB / 369.6 MB, free: 5.117 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001736/0.3947, allocations: 0.5258 MB / 370.1 MB, free: 4.832 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001826/0.3966, allocations: 437 kB / 370.5 MB, free: 4.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000422/0.3971, allocations: 52 kB / 370.6 MB, free: 4.469 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.3981, allocations: 482.9 kB / 371.1 MB, free: 3.996 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006307/0.3988, allocations: 104 kB / 371.2 MB, free: 3.895 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002926/0.4017, allocations: 1.22 MB / 372.4 MB, free: 2.672 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.4018, allocations: 0 / 372.4 MB, free: 2.672 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.105e-06/0.4018, allocations: 0 / 372.4 MB, free: 2.672 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.264e-05/0.4018, allocations: 0 / 372.4 MB, free: 2.672 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.005907/0.4078, allocations: 1.373 MB / 373.8 MB, free: 1.227 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.985e-05/0.4078, allocations: 12.03 kB / 373.8 MB, free: 1.215 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002636/0.4105, allocations: 190.4 kB / 374 MB, free: 1.027 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002775/0.4133, allocations: 0.6852 MB / 374.6 MB, free: 308 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000193/0.4135, allocations: 85.94 kB / 374.7 MB, free: 224 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007329/0.4143, allocations: 124 kB / 374.8 MB, free: 100 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005918/0.4202, allocations: 1.597 MB / 376.4 MB, free: 14.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.253e-05/0.4204, allocations: 3.938 kB / 376.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000275/0.4207, allocations: 47.98 kB / 376.5 MB, free: 14.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006177/0.4213, allocations: 77.95 kB / 376.6 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006141/0.4274, allocations: 1.429 MB / 378 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02005/0.4476, allocations: 5.805 MB / 383.8 MB, free: 6.871 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004365/0.452, allocations: 1.547 MB / 385.4 MB, free: 5.191 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001948/0.4522, allocations: 13 kB / 385.4 MB, free: 5.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003233/0.4555, allocations: 1.103 MB / 386.5 MB, free: 4.047 MB / 314.7 MB Notification: Performance of pre-optimization done (n=153): time 5.2e-06/0.4555, allocations: 0 / 386.5 MB, free: 4.047 MB / 314.7 MB Notification: Performance of matching and sorting (n=154): time 0.01275/0.4683, allocations: 4.94 MB / 391.4 MB, free: 14.9 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000174/0.4685, allocations: 225.3 kB / 391.6 MB, free: 14.64 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009774/0.4695, allocations: 498.1 kB / 392.1 MB, free: 14.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002812/0.4698, allocations: 61.69 kB / 392.2 MB, free: 14.08 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000477/0.4703, allocations: 486.8 kB / 392.7 MB, free: 13.6 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006968/0.471, allocations: 465.6 kB / 393.1 MB, free: 13.14 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.4712, allocations: 24 kB / 393.1 MB, free: 13.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002246/0.4714, allocations: 384.6 kB / 393.5 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001889/0.4733, allocations: 0.6676 MB / 394.2 MB, free: 12.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002246/0.4756, allocations: 0.9637 MB / 395.1 MB, free: 11 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002244/0.4779, allocations: 0.8361 MB / 396 MB, free: 10.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/0.4779, allocations: 8 kB / 396 MB, free: 10.14 MB / 330.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.009998/0.4879, allocations: 2.765 MB / 398.7 MB, free: 7.352 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.514e-05/0.488, allocations: 67.39 kB / 398.8 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008373/0.4964, allocations: 2.325 MB / 401.1 MB, free: 4.945 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006234/0.5027, allocations: 1.083 MB / 402.2 MB, free: 3.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.5038, allocations: 147.7 kB / 402.4 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02503/0.5289, allocations: 8.671 MB / 411 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/0.5305, allocations: 83.92 kB / 411.1 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002098/0.5307, allocations: 55.98 kB / 411.2 MB, free: 10.76 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 79 (system.initime,$PRE.fault_ab.fault_pp.t0,fault_ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$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],$PRE.fault_ab.theta_zero,fault_ab.theta_zero,$PRE.fault_ab.v_pos,fault_ab.v_pos,$PRE.fault_ab.first,fault_ab.first,$PRE.fault_ab.fault_pp.on,fault_ab.fault_pp.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 136 * Array equations: 3 * 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: 1 {(12,84.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001059/0.5318, allocations: 0.4887 MB / 411.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003544/0.5322, allocations: 102.8 kB / 411.8 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004907/0.5371, allocations: 1.834 MB / 413.6 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.746e-05/0.5372, allocations: 32 kB / 413.6 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.5372, allocations: 0 / 413.6 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.162e-05/0.5372, allocations: 7.969 kB / 413.6 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009338/0.5466, allocations: 3.312 MB / 416.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.5467, allocations: 0 / 416.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003864/0.5505, allocations: 359.7 kB / 417.3 MB, free: 4.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002086/0.5508, allocations: 36.84 kB / 417.3 MB, free: 4.473 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002317/0.551, allocations: 35.92 kB / 417.4 MB, free: 4.438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00144/0.5525, allocations: 1.339 MB / 418.7 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.5525, allocations: 8 kB / 418.7 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007428/0.56, allocations: 2.932 MB / 421.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009196/0.5609, allocations: 291.8 kB / 421.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003279/0.5613, allocations: 43.94 kB / 422 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/0.5625, allocations: 71.84 kB / 422 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004806/0.563, allocations: 132.8 kB / 422.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000158/0.5632, allocations: 39.98 kB / 422.2 MB, free: 15.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007724/0.564, allocations: 390.8 kB / 422.6 MB, free: 15 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.564, allocations: 0 / 422.6 MB, free: 15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001819/0.5658, allocations: 388 kB / 423 MB, free: 14.62 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (line.i1[1],line.i1[2],line.i1[3],line.i2[1],line.i2[2],line.i2[3]) * Number of discrete variables: 54 (switch1.switch_b.closed,switch1.switch_a.closed,switch1.switch_c.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,fault_ab.theta_zero,fault_ab.v_pos,fault_ab.first,fault_ab.fault_pp.on,fault_ab.fault_pp.t0,system.initime) * Number of discrete states: 20 (fault_ab.theta_zero,fault_ab.fault_pp.on,fault_ab.v_pos,fault_ab.first,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_b.open,switch2.switch_c.open,switch2.switch_a.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_c.open,switch1.switch_a.open,switch1.switch_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 105 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 10 * 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.0005654/0.5664, allocations: 192.1 kB / 423.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008167/0.5746, allocations: 2.495 MB / 425.7 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.361e-06/0.5747, allocations: 0 / 425.7 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00288/0.5776, allocations: 1.194 MB / 426.8 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.579, allocations: 144.5 kB / 427 MB, free: 10.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008637/0.5876, allocations: 3.486 MB / 430.5 MB, free: 7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001287/0.589, allocations: 1.237 MB / 431.7 MB, free: 5.727 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007254/0.5897, allocations: 79.44 kB / 431.8 MB, free: 5.648 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5897, allocations: 3.938 kB / 431.8 MB, free: 5.645 MB / 362.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.