Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance") Notification: Performance of loadModel(PowerSystems): time 2.28/2.28, allocations: 232.9 MB / 248.1 MB, free: 10.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.825e-05/2.829e-05, allocations: 4 kB / 304.4 MB, free: 1.965 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3775/0.3776, allocations: 53.21 MB / 357.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.007358/0.385, allocations: 4.379 MB / 362 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003933/0.389, allocations: 1.46 MB / 363.4 MB, free: 9.863 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005203/0.3896, allocations: 31.69 kB / 363.4 MB, free: 9.848 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003217/0.3899, allocations: 71.61 kB / 363.5 MB, free: 9.781 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009662/0.3909, allocations: 203.8 kB / 363.7 MB, free: 9.594 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009933/0.3919, allocations: 225.6 kB / 363.9 MB, free: 9.426 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006374/0.3926, allocations: 209.2 kB / 364.1 MB, free: 9.281 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00128/0.3939, allocations: 0.5139 MB / 364.7 MB, free: 8.891 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005313/0.3944, allocations: 166.4 kB / 364.8 MB, free: 8.793 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005345/0.395, allocations: 196 kB / 365 MB, free: 8.691 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003706/0.3954, allocations: 86.52 kB / 365.1 MB, free: 8.656 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.541e-05/0.3955, allocations: 16.03 kB / 365.1 MB, free: 8.656 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002784/0.3958, allocations: 190.6 kB / 365.3 MB, free: 8.555 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/0.396, allocations: 43.22 kB / 365.3 MB, free: 8.555 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007917/0.3968, allocations: 448.4 kB / 365.8 MB, free: 8.273 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3968, allocations: 0 / 365.8 MB, free: 8.273 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.574e-06/0.3968, allocations: 4 kB / 365.8 MB, free: 8.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.3968, allocations: 0 / 365.8 MB, free: 8.27 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001759/0.3986, allocations: 0.6438 MB / 366.4 MB, free: 7.707 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.3987, allocations: 8.469 kB / 366.4 MB, free: 7.707 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/0.3997, allocations: 102.1 kB / 366.5 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.4008, allocations: 393.1 kB / 366.9 MB, free: 7.316 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.929e-05/0.4009, allocations: 30.47 kB / 366.9 MB, free: 7.305 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002366/0.4012, allocations: 59.53 kB / 367 MB, free: 7.277 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.4027, allocations: 0.6367 MB / 367.6 MB, free: 6.805 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.507e-05/0.4028, allocations: 2.531 kB / 367.6 MB, free: 6.805 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.895e-05/0.4029, allocations: 16.38 kB / 367.7 MB, free: 6.793 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002124/0.4031, allocations: 38.05 kB / 367.7 MB, free: 6.781 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.4044, allocations: 472.7 kB / 368.2 MB, free: 6.559 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005579/0.41, allocations: 3.03 MB / 371.2 MB, free: 3.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004924/0.4106, allocations: 181.1 kB / 371.4 MB, free: 3.395 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.42e-05/0.4106, allocations: 8.047 kB / 371.4 MB, free: 3.387 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.041e-05/0.4107, allocations: 38.8 kB / 371.4 MB, free: 3.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 2.695e-06/0.4107, allocations: 0 / 371.4 MB, free: 3.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.002172/0.4129, allocations: 0.8333 MB / 372.2 MB, free: 2.453 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/0.413, allocations: 81.06 kB / 372.3 MB, free: 2.355 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004973/0.4135, allocations: 308.7 kB / 372.6 MB, free: 2.051 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.793e-05/0.4136, allocations: 25.7 kB / 372.6 MB, free: 2.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002962/0.4139, allocations: 353.4 kB / 373 MB, free: 1.672 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.414, allocations: 78.92 kB / 373.1 MB, free: 1.594 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.414, allocations: 16.12 kB / 373.1 MB, free: 1.578 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.4142, allocations: 326.8 kB / 373.4 MB, free: 1.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003418/0.4145, allocations: 128.8 kB / 373.5 MB, free: 1.125 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004913/0.415, allocations: 319 kB / 373.8 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004868/0.4155, allocations: 201.2 kB / 374 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.4156, allocations: 0 / 374 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001654/0.4172, allocations: 0.5377 MB / 374.6 MB, free: 15.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.4173, allocations: 8 kB / 374.6 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009017/0.4182, allocations: 280.7 kB / 374.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000541/0.4188, allocations: 84.78 kB / 374.9 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006703/0.4194, allocations: 95.83 kB / 375 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002517/0.422, allocations: 1.628 MB / 376.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004905/0.4225, allocations: 12 kB / 376.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.433e-05/0.4226, allocations: 27.98 kB / 376.7 MB, free: 13.72 MB / 314.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: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003929/0.423, allocations: 213.4 kB / 376.9 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.4231, allocations: 39.8 kB / 376.9 MB, free: 13.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008194/0.4239, allocations: 300.6 kB / 377.2 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.574e-05/0.424, allocations: 7.984 kB / 377.2 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.424, allocations: 0 / 377.2 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.424, allocations: 0 / 377.2 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/0.426, allocations: 0.7977 MB / 378 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.4261, allocations: 4.062 kB / 378 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005856/0.4267, allocations: 47.97 kB / 378.1 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.315e-06/0.4267, allocations: 7.828 kB / 378.1 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.4268, allocations: 8 kB / 378.1 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.4268, allocations: 0 / 378.1 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.4268, allocations: 7.938 kB / 378.1 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.4278, allocations: 0.4908 MB / 378.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/0.428, allocations: 108.6 kB / 378.7 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.157e-05/0.4281, allocations: 12.03 kB / 378.7 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.4284, allocations: 8 kB / 378.7 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.044e-05/0.4285, allocations: 15.92 kB / 378.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/0.4285, allocations: 16 kB / 378.8 MB, free: 11.51 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000379/0.4289, allocations: 231.1 kB / 379 MB, free: 11.29 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4289, allocations: 0 / 379 MB, free: 11.29 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008098/0.4297, allocations: 103.9 kB / 379.1 MB, free: 11.18 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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.0003018/0.4301, allocations: 112 kB / 379.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.4313, allocations: 445.1 kB / 379.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.4314, allocations: 5.5 kB / 379.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002991/0.4317, allocations: 111.9 kB / 379.8 MB, free: 10.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000614/0.4323, allocations: 60.16 kB / 379.8 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002674/0.435, allocations: 1.245 MB / 381.1 MB, free: 9.164 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00063/0.4357, allocations: 0.882 MB / 381.9 MB, free: 8.258 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.4358, allocations: 35.38 kB / 382 MB, free: 8.227 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4359, allocations: 0 / 382 MB, free: 8.227 MB / 314.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.