Running command: translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadModel(PowerSystems): time 2.407/2.407, 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.148e-05, allocations: 3.984 kB / 304.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3501, allocations: 53.22 MB / 357.6 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.007059/0.3572, allocations: 4.24 MB / 361.8 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003778/0.361, allocations: 1.423 MB / 363.2 MB, free: 9.789 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004733/0.3616, allocations: 27.81 kB / 363.3 MB, free: 9.762 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002825/0.3619, allocations: 71.52 kB / 363.3 MB, free: 9.691 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008243/0.3627, allocations: 195.4 kB / 363.5 MB, free: 9.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009254/0.3637, allocations: 219.4 kB / 363.7 MB, free: 9.285 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004879/0.3642, allocations: 196 kB / 363.9 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001179/0.3654, allocations: 0.5046 MB / 364.4 MB, free: 8.562 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000392/0.3658, allocations: 147.6 kB / 364.6 MB, free: 8.418 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004632/0.3662, allocations: 187.5 kB / 364.8 MB, free: 8.234 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003379/0.3666, allocations: 79.94 kB / 364.8 MB, free: 8.156 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.389e-05/0.3667, allocations: 15.98 kB / 364.9 MB, free: 8.141 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002966/0.367, allocations: 187.5 kB / 365 MB, free: 7.957 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.3672, allocations: 44 kB / 365.1 MB, free: 7.914 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007067/0.3679, allocations: 423 kB / 365.5 MB, free: 7.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3679, allocations: 0 / 365.5 MB, free: 7.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.3679, allocations: 0 / 365.5 MB, free: 7.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.3679, allocations: 0 / 365.5 MB, free: 7.5 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001457/0.3694, allocations: 0.6299 MB / 366.1 MB, free: 6.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.3695, allocations: 8.031 kB / 366.1 MB, free: 6.812 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001138/0.3706, allocations: 87.38 kB / 366.2 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.3719, allocations: 386.1 kB / 366.6 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.259e-05/0.372, allocations: 32.98 kB / 366.6 MB, free: 6.277 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000232/0.3722, allocations: 47.95 kB / 366.7 MB, free: 6.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/0.3741, allocations: 0.6092 MB / 367.3 MB, free: 5.551 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.266e-05/0.3741, allocations: 11.91 kB / 367.3 MB, free: 5.539 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.489e-05/0.3742, allocations: 16 kB / 367.3 MB, free: 5.523 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002363/0.3745, allocations: 32.98 kB / 367.4 MB, free: 5.492 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.3761, allocations: 475.4 kB / 367.8 MB, free: 5.027 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00673/0.3829, allocations: 2.895 MB / 370.7 MB, free: 1.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008723/0.3838, allocations: 230.8 kB / 370.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.666e-05/0.3839, allocations: 4.062 kB / 370.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.652e-05/0.384, allocations: 35 kB / 371 MB, free: 1.691 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 4.217e-06/0.384, allocations: 4 kB / 371 MB, free: 1.688 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.003481/0.3875, allocations: 0.9536 MB / 371.9 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.422e-05/0.3876, allocations: 85.11 kB / 372 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006329/0.3882, allocations: 283.5 kB / 372.3 MB, free: 304 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.3883, allocations: 33.7 kB / 372.3 MB, free: 264 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003522/0.3887, allocations: 334 kB / 372.6 MB, free: 15.92 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.3889, allocations: 102.6 kB / 372.7 MB, free: 15.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.703e-05/0.3889, allocations: 12 kB / 372.8 MB, free: 15.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.3891, allocations: 330.8 kB / 373.1 MB, free: 15.48 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005249/0.3897, allocations: 141 kB / 373.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007431/0.3904, allocations: 335.2 kB / 373.5 MB, free: 14.92 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007077/0.3912, allocations: 207.9 kB / 373.8 MB, free: 14.72 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.3912, allocations: 3.781 kB / 373.8 MB, free: 14.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0017/0.3929, allocations: 0.5009 MB / 374.3 MB, free: 14.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/0.393, allocations: 8 kB / 374.3 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.393, allocations: 4 kB / 374.3 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.298e-05/0.393, allocations: 12 kB / 374.3 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.3942, allocations: 128.3 kB / 374.4 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.626e-05/0.3942, allocations: 8 kB / 374.4 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005999/0.3948, allocations: 27.98 kB / 374.4 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-05/0.3949, allocations: 31.98 kB / 374.5 MB, free: 14 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004751/0.3954, allocations: 217.3 kB / 374.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.3956, allocations: 31.62 kB / 374.7 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001355/0.3969, allocations: 353.5 kB / 375.1 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.397, allocations: 7.984 kB / 375.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.397, allocations: 4 kB / 375.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.397, allocations: 4 kB / 375.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00308/0.4001, allocations: 0.8758 MB / 376 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.4002, allocations: 4 kB / 376 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008662/0.401, allocations: 63.89 kB / 376 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/0.4011, allocations: 4 kB / 376 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.668e-05/0.4012, allocations: 16.09 kB / 376 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.039e-05/0.4012, allocations: 4 kB / 376 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4012, allocations: 0 / 376 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001817/0.403, allocations: 0.6226 MB / 376.7 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/0.4032, allocations: 108.7 kB / 376.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.4034, allocations: 8 kB / 376.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004476/0.4038, allocations: 12.03 kB / 376.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.002e-05/0.4039, allocations: 19.97 kB / 376.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.03e-05/0.404, allocations: 8 kB / 376.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004788/0.4045, allocations: 223 kB / 377 MB, free: 11.28 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.4045, allocations: 0 / 377 MB, free: 11.28 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001022/0.4055, allocations: 96 kB / 377.1 MB, free: 11.18 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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.0003345/0.4059, allocations: 113.4 kB / 377.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00122/0.4071, allocations: 352.2 kB / 377.6 MB, free: 10.72 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4071, allocations: 0 / 377.6 MB, free: 10.72 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004717/0.4076, allocations: 143.8 kB / 377.7 MB, free: 10.58 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007666/0.4084, allocations: 58.39 kB / 377.8 MB, free: 10.53 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/0.4119, allocations: 1.259 MB / 379 MB, free: 9.227 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008631/0.4128, allocations: 0.8627 MB / 379.9 MB, free: 8.34 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002595/0.4131, allocations: 35.44 kB / 379.9 MB, free: 8.305 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.4131, allocations: 0 / 379.9 MB, free: 8.305 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.