Running command: translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline") Notification: Performance of loadModel(PowerSystems): time 2.324/2.324, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.489e-05/3.486e-05, allocations: 4 kB / 304.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3686, allocations: 53.23 MB / 357.6 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.009954/0.3786, allocations: 6.196 MB / 363.8 MB, free: 9.266 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00559/0.3843, allocations: 2.051 MB / 365.8 MB, free: 7.207 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007994/0.3851, allocations: 35.81 kB / 365.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00068/0.3858, allocations: 158.9 kB / 366 MB, free: 7.016 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002024/0.3879, allocations: 418.7 kB / 366.4 MB, free: 6.605 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001419/0.3893, allocations: 311.3 kB / 366.7 MB, free: 6.301 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001187/0.3906, allocations: 444.3 kB / 367.2 MB, free: 5.867 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001933/0.3925, allocations: 0.8015 MB / 368 MB, free: 5.035 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008008/0.3934, allocations: 319 kB / 368.3 MB, free: 4.723 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000909/0.3943, allocations: 438.9 kB / 368.7 MB, free: 4.293 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/0.3955, allocations: 423.4 kB / 369.1 MB, free: 3.879 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002732/0.3958, allocations: 44 kB / 369.2 MB, free: 3.836 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000628/0.3965, allocations: 387.1 kB / 369.5 MB, free: 3.457 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003649/0.3969, allocations: 88 kB / 369.6 MB, free: 3.371 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001819/0.3987, allocations: 1.013 MB / 370.6 MB, free: 2.355 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3987, allocations: 4 kB / 370.6 MB, free: 2.352 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.23e-06/0.3988, allocations: 4 kB / 370.7 MB, free: 2.348 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.803e-05/0.3988, allocations: 3.938 kB / 370.7 MB, free: 2.344 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.003383/0.4022, allocations: 1.141 MB / 371.8 MB, free: 1.137 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.4023, allocations: 8.031 kB / 371.8 MB, free: 1.129 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001406/0.4037, allocations: 154.6 kB / 372 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001823/0.4055, allocations: 0.5919 MB / 372.5 MB, free: 348 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.4057, allocations: 77.92 kB / 372.6 MB, free: 272 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003694/0.4061, allocations: 95.98 kB / 372.7 MB, free: 176 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003513/0.4096, allocations: 1.311 MB / 374 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.584e-05/0.4097, allocations: 4 kB / 374 MB, free: 14.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001505/0.4099, allocations: 35.98 kB / 374.1 MB, free: 14.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002706/0.4102, allocations: 69.91 kB / 374.1 MB, free: 14.69 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003686/0.4139, allocations: 1.167 MB / 375.3 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01137/0.4253, allocations: 4.684 MB / 380 MB, free: 8.676 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/0.4281, allocations: 1.292 MB / 381.3 MB, free: 7.258 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001383/0.4283, allocations: 13.02 kB / 381.3 MB, free: 7.246 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002159/0.4305, allocations: 0.8985 MB / 382.2 MB, free: 6.312 MB / 314.7 MB Notification: Performance of pre-optimization done (n=122): time 4.278e-06/0.4305, allocations: 0 / 382.2 MB, free: 6.312 MB / 314.7 MB Notification: Performance of matching and sorting (n=123): time 0.009324/0.4398, allocations: 3.922 MB / 386.1 MB, free: 2.223 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001891/0.4401, allocations: 238.6 kB / 386.3 MB, free: 1.941 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008779/0.441, allocations: 445 kB / 386.8 MB, free: 1.496 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001664/0.4411, allocations: 49.7 kB / 386.8 MB, free: 1.441 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004296/0.4416, allocations: 442.5 kB / 387.3 MB, free: 1.004 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000511/0.4421, allocations: 363 kB / 387.6 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.962e-05/0.4422, allocations: 28 kB / 387.6 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.4424, allocations: 370.7 kB / 388 MB, free: 252 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001448/0.4439, allocations: 0.507 MB / 388.5 MB, free: 15.74 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001771/0.4457, allocations: 0.7661 MB / 389.3 MB, free: 14.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001715/0.4474, allocations: 0.6456 MB / 389.9 MB, free: 14.22 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.4475, allocations: 4 kB / 389.9 MB, free: 14.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.006533/0.454, allocations: 2.01 MB / 391.9 MB, free: 12.19 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.663e-05/0.4541, allocations: 63.39 kB / 392 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005422/0.4596, allocations: 1.634 MB / 393.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003434/0.4631, allocations: 0.6564 MB / 394.3 MB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009556/0.4641, allocations: 143.7 kB / 394.4 MB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01628/0.4804, allocations: 6.122 MB / 400.6 MB, free: 3.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.4815, allocations: 67.8 kB / 400.6 MB, free: 3.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/0.4817, allocations: 51.92 kB / 400.7 MB, free: 3.305 MB / 330.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: 67 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 119 * 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: 1 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009098/0.4826, allocations: 425.9 kB / 401.1 MB, free: 2.863 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000296/0.4829, allocations: 87.05 kB / 401.2 MB, free: 2.777 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00369/0.4866, allocations: 1.423 MB / 402.6 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.765e-05/0.4867, allocations: 20 kB / 402.6 MB, free: 1.309 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.4868, allocations: 11.98 kB / 402.6 MB, free: 1.297 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.539e-05/0.4868, allocations: 3.984 kB / 402.6 MB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00731/0.4941, allocations: 2.779 MB / 405.4 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.4942, allocations: 7.984 kB / 405.4 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002143/0.4963, allocations: 227.8 kB / 405.6 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.665e-05/0.4964, allocations: 4 kB / 405.6 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/0.4965, allocations: 31.89 kB / 405.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.417e-05/0.4966, allocations: 7.984 kB / 405.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.4966, allocations: 3.938 kB / 405.7 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005614/0.5022, allocations: 2.338 MB / 408 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003011/0.5026, allocations: 144.2 kB / 408.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002602/0.5028, allocations: 36.03 kB / 408.2 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007846/0.5036, allocations: 43.94 kB / 408.2 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003777/0.504, allocations: 116.7 kB / 408.4 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001577/0.5042, allocations: 39.98 kB / 408.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006509/0.5049, allocations: 338.8 kB / 408.7 MB, free: 11.03 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5049, allocations: 0 / 408.7 MB, free: 11.03 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001428/0.5063, allocations: 319.9 kB / 409 MB, free: 10.71 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_c.closed,switch1.switch_a.closed,switch1.switch_b.closed,switch2.switch_b.closed,switch2.switch_c.closed,switch2.switch_a.closed,$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,system.initime) * Number of discrete states: 16 (relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_a.open,switch2.switch_c.open,switch2.switch_b.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_b.open,switch1.switch_a.open,switch1.switch_c.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 88 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005018/0.5068, allocations: 169.1 kB / 409.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005159/0.512, allocations: 1.848 MB / 411 MB, free: 8.648 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.5121, allocations: 4 kB / 411.1 MB, free: 8.645 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002087/0.5142, allocations: 0.8877 MB / 411.9 MB, free: 7.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009895/0.5152, allocations: 115.3 kB / 412.1 MB, free: 7.621 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006535/0.5218, allocations: 2.735 MB / 414.8 MB, free: 4.84 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.5229, allocations: 1.125 MB / 415.9 MB, free: 3.691 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005473/0.5234, allocations: 67.44 kB / 416 MB, free: 3.629 MB / 346.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5235, allocations: 0 / 416 MB, free: 3.629 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.