Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Line,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line") Notification: Performance of loadModel(PowerSystems): time 2.364/2.364, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.152e-05/3.144e-05, allocations: 4 kB / 304.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4382/0.4383, allocations: 53.22 MB / 357.6 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.008511/0.4468, allocations: 5.031 MB / 362.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004784/0.4517, allocations: 1.75 MB / 364.4 MB, free: 9.098 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007242/0.4525, allocations: 35.62 kB / 364.4 MB, free: 9.082 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000519/0.453, allocations: 133.1 kB / 364.5 MB, free: 8.961 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001196/0.4542, allocations: 272.3 kB / 364.8 MB, free: 8.711 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.4557, allocations: 313.7 kB / 365.1 MB, free: 8.488 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008323/0.4565, allocations: 294.8 kB / 365.4 MB, free: 8.281 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.4578, allocations: 0.5595 MB / 365.9 MB, free: 7.859 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005965/0.4585, allocations: 213.2 kB / 366.1 MB, free: 7.742 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007851/0.4593, allocations: 316.2 kB / 366.5 MB, free: 7.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004521/0.4597, allocations: 106.9 kB / 366.6 MB, free: 7.547 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001373/0.4599, allocations: 24.09 kB / 366.6 MB, free: 7.547 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003478/0.4602, allocations: 234.8 kB / 366.8 MB, free: 7.418 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002332/0.4605, allocations: 55.53 kB / 366.9 MB, free: 7.418 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.4616, allocations: 0.6078 MB / 367.5 MB, free: 7.035 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.4616, allocations: 7.938 kB / 367.5 MB, free: 7.027 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.4616, allocations: 1.156 kB / 367.5 MB, free: 7.027 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.896e-05/0.4616, allocations: 0 / 367.5 MB, free: 7.027 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.002099/0.4637, allocations: 0.7343 MB / 368.2 MB, free: 6.406 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.4638, allocations: 8.531 kB / 368.2 MB, free: 6.406 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001664/0.4655, allocations: 146.4 kB / 368.4 MB, free: 6.336 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.4671, allocations: 0.4996 MB / 368.9 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.629e-05/0.4672, allocations: 31.19 kB / 368.9 MB, free: 5.922 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000676/0.4679, allocations: 141.1 kB / 369 MB, free: 5.867 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.4699, allocations: 0.844 MB / 369.9 MB, free: 5.043 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.293e-05/0.47, allocations: 7.938 kB / 369.9 MB, free: 5.035 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.842e-05/0.4701, allocations: 27.98 kB / 369.9 MB, free: 5.008 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000857/0.471, allocations: 68.94 kB / 370 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/0.4728, allocations: 0.6088 MB / 370.6 MB, free: 4.332 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007776/0.4806, allocations: 3.8 MB / 374.4 MB, free: 376 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001933/0.4826, allocations: 0.5346 MB / 374.9 MB, free: 15.81 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.593e-05/0.4827, allocations: 8.422 kB / 374.9 MB, free: 15.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.4827, allocations: 39 kB / 375 MB, free: 15.76 MB / 314.7 MB Notification: Performance of pre-optimization done (n=48): time 3.366e-06/0.4827, allocations: 0 / 375 MB, free: 15.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.005222/0.488, allocations: 1.833 MB / 376.8 MB, free: 13.87 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.879e-05/0.4881, allocations: 85.48 kB / 376.9 MB, free: 13.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000649/0.4888, allocations: 365 kB / 377.2 MB, free: 13.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.383e-05/0.4889, allocations: 33.7 kB / 377.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003322/0.4892, allocations: 370.3 kB / 377.6 MB, free: 13.01 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002916/0.4895, allocations: 209.2 kB / 377.8 MB, free: 12.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.714e-05/0.4896, allocations: 12 kB / 377.9 MB, free: 12.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.4898, allocations: 342.8 kB / 378.2 MB, free: 12.45 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009956/0.4908, allocations: 373.5 kB / 378.6 MB, free: 12.08 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001225/0.492, allocations: 0.5901 MB / 379.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.4933, allocations: 473.8 kB / 379.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.4933, allocations: 0 / 379.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.007933/0.5012, allocations: 1.981 MB / 381.6 MB, free: 8.941 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/0.5013, allocations: 12.97 kB / 381.6 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.256e-05/0.5013, allocations: 11.98 kB / 381.6 MB, free: 8.918 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006797/0.5082, allocations: 1.707 MB / 383.3 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008708/0.5091, allocations: 119.8 kB / 383.4 MB, free: 7.086 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01819/0.5273, allocations: 7.429 MB / 390.9 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008897/0.5282, allocations: 31.97 kB / 390.9 MB, free: 15.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.5284, allocations: 32 kB / 390.9 MB, free: 15.32 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * 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%) 6,(8,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005405/0.5289, allocations: 261.3 kB / 391.2 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.5291, allocations: 55.33 kB / 391.2 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002113/0.5312, allocations: 0.718 MB / 392 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.5312, allocations: 4 kB / 392 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.5312, allocations: 0 / 392 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.5313, allocations: 3.984 kB / 392 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004477/0.5358, allocations: 1.528 MB / 393.5 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.5358, allocations: 4 kB / 393.5 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002228/0.538, allocations: 183.8 kB / 393.7 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.51e-05/0.5381, allocations: 4 kB / 393.7 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/0.5382, allocations: 27.98 kB / 393.7 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.204e-05/0.5383, allocations: 4 kB / 393.7 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.5383, allocations: 7.875 kB / 393.7 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002545/0.5408, allocations: 1.036 MB / 394.8 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002538/0.5411, allocations: 128.5 kB / 394.9 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001828/0.5413, allocations: 27.98 kB / 394.9 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006323/0.542, allocations: 27.95 kB / 394.9 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.5421, allocations: 28.34 kB / 395 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.543e-05/0.5422, allocations: 19.98 kB / 395 MB, free: 11.11 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004922/0.5427, allocations: 279.1 kB / 395.3 MB, free: 10.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5427, allocations: 0 / 395.3 MB, free: 10.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001269/0.544, allocations: 224 kB / 395.5 MB, free: 10.62 MB / 330.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: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0003576/0.5443, allocations: 143.8 kB / 395.6 MB, free: 10.47 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004658/0.549, allocations: 1.403 MB / 397 MB, free: 9.043 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.549, allocations: 0 / 397 MB, free: 9.043 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008342/0.5499, allocations: 302.3 kB / 397.3 MB, free: 8.746 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008948/0.5508, allocations: 122.4 kB / 397.4 MB, free: 8.625 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007296/0.5581, allocations: 3.113 MB / 400.5 MB, free: 5.465 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008202/0.559, allocations: 0.9728 MB / 401.5 MB, free: 4.465 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004125/0.5594, allocations: 47.42 kB / 401.6 MB, free: 4.418 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5594, allocations: 0 / 401.6 MB, free: 4.418 MB / 330.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.