Running command: translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadModel(PowerSystems): time 2.584/2.584, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.855e-05/2.851e-05, allocations: 4 kB / 304.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.3621, allocations: 53.22 MB / 357.6 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.006923/0.3691, allocations: 4.248 MB / 361.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003785/0.3729, allocations: 1.42 MB / 363.2 MB, free: 9.789 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004247/0.3734, allocations: 23.88 kB / 363.3 MB, free: 9.766 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002628/0.3737, allocations: 75.5 kB / 363.3 MB, free: 9.691 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007449/0.3744, allocations: 195.3 kB / 363.5 MB, free: 9.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008281/0.3753, allocations: 215.5 kB / 363.7 MB, free: 9.289 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004387/0.3757, allocations: 204 kB / 363.9 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001133/0.3769, allocations: 0.5123 MB / 364.5 MB, free: 8.551 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003689/0.3773, allocations: 151.5 kB / 364.6 MB, free: 8.402 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005076/0.3778, allocations: 227.5 kB / 364.8 MB, free: 8.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005084/0.3783, allocations: 159.7 kB / 365 MB, free: 8.023 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.333e-05/0.3784, allocations: 24 kB / 365 MB, free: 8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002999/0.3787, allocations: 199.5 kB / 365.2 MB, free: 7.805 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001748/0.3789, allocations: 44 kB / 365.2 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008501/0.3798, allocations: 498.8 kB / 365.7 MB, free: 7.273 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.3798, allocations: 0 / 365.7 MB, free: 7.273 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3798, allocations: 0 / 365.7 MB, free: 7.273 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.3798, allocations: 0 / 365.7 MB, free: 7.273 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001653/0.3815, allocations: 0.6611 MB / 366.4 MB, free: 6.562 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.3815, allocations: 11.97 kB / 366.4 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008713/0.3824, allocations: 91.28 kB / 366.5 MB, free: 6.461 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009789/0.3834, allocations: 402 kB / 366.9 MB, free: 6.027 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.773e-05/0.3835, allocations: 32.98 kB / 366.9 MB, free: 5.996 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001887/0.3837, allocations: 43.95 kB / 367 MB, free: 5.953 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.3853, allocations: 0.6725 MB / 367.6 MB, free: 5.242 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.3853, allocations: 0 / 367.6 MB, free: 5.242 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.349e-05/0.3854, allocations: 16 kB / 367.6 MB, free: 5.227 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002969/0.3857, allocations: 48.97 kB / 367.7 MB, free: 5.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001734/0.3875, allocations: 0.6635 MB / 368.4 MB, free: 4.516 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00592/0.3934, allocations: 2.524 MB / 370.9 MB, free: 1.863 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008694/0.3943, allocations: 333.3 kB / 371.2 MB, free: 1.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.211e-05/0.3944, allocations: 12.05 kB / 371.2 MB, free: 1.508 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.3944, allocations: 34.56 kB / 371.3 MB, free: 1.465 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 3.296e-06/0.3945, allocations: 0 / 371.3 MB, free: 1.465 MB / 298.7 MB Notification: Performance of matching and sorting (n=43): time 0.003443/0.3979, allocations: 1.511 MB / 372.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.398, allocations: 81.11 kB / 372.8 MB, free: 15.76 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004401/0.3985, allocations: 267.7 kB / 373.1 MB, free: 15.49 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.924e-05/0.3985, allocations: 29.7 kB / 373.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002428/0.3988, allocations: 318 kB / 373.4 MB, free: 15.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.399, allocations: 149.8 kB / 373.6 MB, free: 14.99 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.463e-05/0.399, allocations: 8 kB / 373.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.3992, allocations: 334.8 kB / 373.9 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004914/0.3997, allocations: 197 kB / 374.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006593/0.4004, allocations: 357.2 kB / 374.5 MB, free: 14.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006418/0.401, allocations: 261.1 kB / 374.7 MB, free: 13.79 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.401, allocations: 4 kB / 374.7 MB, free: 13.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001505/0.4025, allocations: 0.6035 MB / 375.3 MB, free: 13.17 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.4026, allocations: 5.719 kB / 375.3 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.4026, allocations: 8 kB / 375.3 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.912e-05/0.4027, allocations: 8 kB / 375.3 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008402/0.4035, allocations: 119.8 kB / 375.5 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.952e-05/0.4035, allocations: 8.531 kB / 375.5 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004377/0.404, allocations: 27.97 kB / 375.5 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.711e-05/0.4041, allocations: 24 kB / 375.5 MB, free: 12.98 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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.0003792/0.4045, allocations: 213.6 kB / 375.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.4046, allocations: 35.56 kB / 375.8 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00126/0.4059, allocations: 0.4887 MB / 376.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.746e-05/0.4059, allocations: 8 kB / 376.3 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.406, allocations: 7.953 kB / 376.3 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.406, allocations: 7.984 kB / 376.3 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002793/0.4088, allocations: 1.085 MB / 377.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.4088, allocations: 0 / 377.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007124/0.4095, allocations: 71.95 kB / 377.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.209e-05/0.4096, allocations: 3.953 kB / 377.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.535e-05/0.4096, allocations: 16.09 kB / 377.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.566e-06/0.4097, allocations: 7.938 kB / 377.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.4097, allocations: 0 / 377.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001857/0.4115, allocations: 0.8545 MB / 378.3 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.4118, allocations: 112.6 kB / 378.4 MB, free: 9.922 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.4119, allocations: 12.03 kB / 378.4 MB, free: 9.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004016/0.4123, allocations: 15.98 kB / 378.5 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.285e-05/0.4124, allocations: 23.86 kB / 378.5 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.585e-05/0.4124, allocations: 12 kB / 378.5 MB, free: 9.859 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003462/0.4128, allocations: 215.1 kB / 378.7 MB, free: 9.652 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4128, allocations: 0 / 378.7 MB, free: 9.652 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006932/0.4135, allocations: 108 kB / 378.8 MB, free: 9.547 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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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.0003633/0.4139, allocations: 131.1 kB / 378.9 MB, free: 9.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.4151, allocations: 489.2 kB / 379.4 MB, free: 8.934 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.4152, allocations: 0 / 379.4 MB, free: 8.934 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005157/0.4157, allocations: 219.8 kB / 379.6 MB, free: 8.719 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006828/0.4164, allocations: 63.69 kB / 379.7 MB, free: 8.656 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00296/0.4194, allocations: 1.403 MB / 381.1 MB, free: 7.207 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006598/0.4201, allocations: 0.8788 MB / 382 MB, free: 6.305 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/0.4204, allocations: 39.42 kB / 382 MB, free: 6.266 MB / 314.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4204, allocations: 0 / 382 MB, free: 6.266 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.