Running command: translateModel(PowerSystems.Examples.AC3ph.Transformation.TapChanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger") Notification: Performance of loadModel(PowerSystems): time 2.487/2.487, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.324e-05/3.304e-05, allocations: 3.984 kB / 304.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4271/0.4271, allocations: 53.22 MB / 357.6 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.01389/0.4411, allocations: 8.911 MB / 366.5 MB, free: 7.453 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009013/0.4501, allocations: 3.34 MB / 369.8 MB, free: 4.812 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001383/0.4516, allocations: 67.22 kB / 369.9 MB, free: 4.785 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.4526, allocations: 322.8 kB / 370.2 MB, free: 4.492 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002975/0.4556, allocations: 0.7139 MB / 370.9 MB, free: 3.852 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002255/0.4579, allocations: 0.5849 MB / 371.5 MB, free: 3.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001778/0.4597, allocations: 0.7255 MB / 372.2 MB, free: 2.871 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002335/0.4621, allocations: 1.02 MB / 373.3 MB, free: 1.824 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001295/0.4634, allocations: 0.5491 MB / 373.8 MB, free: 1.273 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00167/0.4651, allocations: 0.7911 MB / 374.6 MB, free: 492 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001318/0.4664, allocations: 415.3 kB / 375 MB, free: 76 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002683/0.4667, allocations: 64 kB / 375.1 MB, free: 12 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001078/0.4678, allocations: 0.7756 MB / 375.8 MB, free: 15.23 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006017/0.4684, allocations: 164 kB / 376 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002884/0.4713, allocations: 1.742 MB / 377.7 MB, free: 13.33 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.4713, allocations: 0 / 377.7 MB, free: 13.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4713, allocations: 0 / 377.7 MB, free: 13.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.252e-05/0.4714, allocations: 0 / 377.7 MB, free: 13.33 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.004294/0.4757, allocations: 1.595 MB / 379.3 MB, free: 11.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.4757, allocations: 8.031 kB / 379.3 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002848/0.4786, allocations: 369.4 kB / 379.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002779/0.4814, allocations: 1.004 MB / 380.7 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.4815, allocations: 110.7 kB / 380.8 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000575/0.4821, allocations: 163.9 kB / 381 MB, free: 9.973 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005233/0.4874, allocations: 2.3 MB / 383.3 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.206e-05/0.4875, allocations: 11.94 kB / 383.3 MB, free: 7.504 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002195/0.4877, allocations: 55.98 kB / 383.3 MB, free: 7.449 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009152/0.4886, allocations: 226.8 kB / 383.6 MB, free: 7.227 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004865/0.4935, allocations: 1.818 MB / 385.4 MB, free: 5.402 MB / 314.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0175/0.5111, allocations: 9.578 MB / 395 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003695/0.5148, allocations: 1.451 MB / 396.4 MB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001428/0.5149, allocations: 21.03 kB / 396.4 MB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001793/0.5168, allocations: 0.8411 MB / 397.3 MB, free: 8.926 MB / 330.7 MB Notification: Performance of pre-optimization done (n=130): time 4.208e-06/0.5168, allocations: 0 / 397.3 MB, free: 8.926 MB / 330.7 MB Notification: Performance of matching and sorting (n=131): time 0.009921/0.5267, allocations: 4.125 MB / 401.4 MB, free: 4.664 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002007/0.527, allocations: 290.2 kB / 401.7 MB, free: 4.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001533/0.5285, allocations: 0.7926 MB / 402.5 MB, free: 3.508 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.5286, allocations: 45.95 kB / 402.5 MB, free: 3.457 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007947/0.5294, allocations: 0.7924 MB / 403.3 MB, free: 2.652 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005654/0.53, allocations: 453.7 kB / 403.8 MB, free: 2.203 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.5301, allocations: 32 kB / 403.8 MB, free: 2.172 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002336/0.5304, allocations: 386.7 kB / 404.2 MB, free: 1.785 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001565/0.532, allocations: 0.5621 MB / 404.7 MB, free: 1.223 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00212/0.5341, allocations: 1.159 MB / 405.9 MB, free: 15.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001998/0.5361, allocations: 0.8333 MB / 406.7 MB, free: 14.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.565e-05/0.5361, allocations: 8 kB / 406.7 MB, free: 14.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.007154/0.5433, allocations: 2.416 MB / 409.1 MB, free: 12.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.076e-05/0.5434, allocations: 71.33 kB / 409.2 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00483/0.5483, allocations: 1.549 MB / 410.8 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002679/0.551, allocations: 0.5536 MB / 411.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002087/0.5531, allocations: 327.5 kB / 411.6 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/0.569, allocations: 8.907 MB / 420.5 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/0.5707, allocations: 84.02 kB / 420.6 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002241/0.571, allocations: 99.97 kB / 420.7 MB, free: 356 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,$whenCondition3,$whenCondition4,$PRE.tapRelay1.cnt_1,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_2,$whenCondition1,$whenCondition2,$PRE.tapRelay2.cnt_1,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_2,$PRE.tapRelay2.tap_1,tapRelay2.tap_1,$PRE.tapRelay2.tap_2,tapRelay2.tap_2,$PRE.tapRelay1.tap_1,tapRelay1.tap_1,$PRE.tapRelay1.tap_2,tapRelay1.tap_2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(2,100.0%) 11,(2,100.0%) 12,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001274/0.5723, allocations: 0.5957 MB / 421.3 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002583/0.5725, allocations: 126.5 kB / 421.4 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003896/0.5764, allocations: 1.523 MB / 423 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.839e-05/0.5765, allocations: 12 kB / 423 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.5765, allocations: 4 kB / 423 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-05/0.5765, allocations: 11.97 kB / 423 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007433/0.584, allocations: 3.067 MB / 426.1 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.584, allocations: 4 kB / 426.1 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002592/0.5866, allocations: 299.8 kB / 426.4 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.429e-05/0.5866, allocations: 4 kB / 426.4 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001173/0.5868, allocations: 35.98 kB / 426.4 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.415e-05/0.5868, allocations: 7.938 kB / 426.4 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.5868, allocations: 4 kB / 426.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005259/0.5921, allocations: 2.369 MB / 428.8 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007478/0.5929, allocations: 303.4 kB / 429.1 MB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002684/0.5931, allocations: 28 kB / 429.1 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.5942, allocations: 51.97 kB / 429.1 MB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.5944, allocations: 80.84 kB / 429.2 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001955/0.5947, allocations: 80.03 kB / 429.3 MB, free: 7.516 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001202/0.5959, allocations: 0.5947 MB / 429.9 MB, free: 6.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5959, allocations: 3.938 kB / 429.9 MB, free: 6.906 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002059/0.5979, allocations: 432.1 kB / 430.3 MB, free: 6.484 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (trafo1.i1[1],trafo1.i1[2],trafo1.i1[3],trafo2.i1[1],trafo2.i1[2],trafo2.i1[3]) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 2 * 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.0004568/0.5984, allocations: 174.9 kB / 430.5 MB, free: 6.312 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005406/0.6038, allocations: 2.298 MB / 432.8 MB, free: 3.938 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.6039, allocations: 3.938 kB / 432.8 MB, free: 3.934 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001859/0.6058, allocations: 0.8634 MB / 433.7 MB, free: 3.047 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/0.6072, allocations: 189.9 kB / 433.8 MB, free: 2.863 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009047/0.6162, allocations: 4.142 MB / 438 MB, free: 14.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001804/0.6181, allocations: 1.498 MB / 439.5 MB, free: 13.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006005/0.6187, allocations: 103.4 kB / 439.6 MB, free: 13.02 MB / 378.7 MB Notification: Performance of SimCode: time 1.643e-06/0.6187, allocations: 0 / 439.6 MB, free: 13.02 MB / 378.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. [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. [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. [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.