Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.4/2.4, allocations: 233 MB / 245.6 MB, free: 14.82 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.733e-05/6.749e-05, allocations: 11.98 kB / 301.4 MB, free: 7.867 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.116, allocations: 53.23 MB / 354.6 MB, free: 2.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4714/0.5875, allocations: 94.97 MB / 449.6 MB, free: 6.906 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003244/0.5879, allocations: 83.95 kB / 449.6 MB, free: 6.824 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07574/0.6636, allocations: 16.91 MB / 466.6 MB, free: 5.719 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.6637, allocations: 0 / 466.6 MB, free: 5.719 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.893e-05/0.6638, allocations: 20 kB / 466.6 MB, free: 5.699 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.00251/0.6663, allocations: 1.004 MB / 467.6 MB, free: 4.637 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.6664, allocations: 12.03 kB / 467.6 MB, free: 4.625 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002352/0.6666, allocations: 106.5 kB / 467.7 MB, free: 4.512 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002706/0.6669, allocations: 94.88 kB / 467.8 MB, free: 4.418 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006964/0.6739, allocations: 1.69 MB / 469.5 MB, free: 2.684 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.158e-05/0.674, allocations: 53.28 kB / 469.5 MB, free: 2.629 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001665/0.6742, allocations: 63.95 kB / 469.6 MB, free: 2.566 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001988/0.6762, allocations: 0.784 MB / 470.4 MB, free: 1.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.924e-05/0.6762, allocations: 4.5 kB / 470.4 MB, free: 1.746 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.346e-05/0.6763, allocations: 28 kB / 470.4 MB, free: 1.719 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.317e-05/0.6764, allocations: 33.3 kB / 470.4 MB, free: 1.684 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/0.678, allocations: 0.5843 MB / 471 MB, free: 1.102 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005635/0.6837, allocations: 2.642 MB / 473.7 MB, free: 14.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.6853, allocations: 0.5932 MB / 474.3 MB, free: 13.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009825/0.6863, allocations: 373 kB / 474.6 MB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.762e-05/0.6863, allocations: 8.391 kB / 474.6 MB, free: 13.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008749/0.6872, allocations: 478.2 kB / 475.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=63): time 3.076e-06/0.6873, allocations: 4 kB / 475.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=64): time 0.00391/0.6912, allocations: 1.735 MB / 476.8 MB, free: 11.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001671/0.6914, allocations: 251.9 kB / 477.1 MB, free: 10.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008931/0.6923, allocations: 496.9 kB / 477.6 MB, free: 10.22 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.687e-05/0.6924, allocations: 45.73 kB / 477.6 MB, free: 10.17 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003812/0.6927, allocations: 425.9 kB / 478 MB, free: 9.746 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002414/0.693, allocations: 209 kB / 478.2 MB, free: 9.539 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.914e-05/0.6931, allocations: 16 kB / 478.2 MB, free: 9.523 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.6932, allocations: 342.8 kB / 478.6 MB, free: 9.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005939/0.6938, allocations: 213.9 kB / 478.8 MB, free: 8.973 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007962/0.6947, allocations: 444.2 kB / 479.2 MB, free: 8.441 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007316/0.6954, allocations: 334.4 kB / 479.6 MB, free: 8.102 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.495e-06/0.6954, allocations: 4 kB / 479.6 MB, free: 8.098 MB / 410.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002315/0.6978, allocations: 0.8707 MB / 480.4 MB, free: 7.203 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.041e-05/0.6978, allocations: 67.41 kB / 480.5 MB, free: 7.125 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.983e-05/0.6979, allocations: 11.98 kB / 480.5 MB, free: 7.113 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005942/0.6985, allocations: 105.9 kB / 480.6 MB, free: 7.004 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009746/0.6995, allocations: 147.7 kB / 480.8 MB, free: 6.859 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004127/0.7036, allocations: 3.197 MB / 483.9 MB, free: 3.395 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007988/0.7044, allocations: 35.98 kB / 484 MB, free: 3.359 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.7046, allocations: 59.84 kB / 484 MB, free: 3.301 MB / 410.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: 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 (90): * Single equations (assignments): 86 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002923/0.7049, allocations: 229.9 kB / 484.3 MB, free: 3.059 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.705, allocations: 71.16 kB / 484.3 MB, free: 2.988 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001886/0.7069, allocations: 0.7779 MB / 485.1 MB, free: 2.188 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.757e-06/0.707, allocations: 4 kB / 485.1 MB, free: 2.184 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.707, allocations: 7.953 kB / 485.1 MB, free: 2.176 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.707, allocations: 3.984 kB / 485.1 MB, free: 2.172 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003431/0.7104, allocations: 1.545 MB / 486.7 MB, free: 0.5508 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.7105, allocations: 192 / 486.7 MB, free: 0.5508 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009666/0.7114, allocations: 115.9 kB / 486.8 MB, free: 448 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/0.7115, allocations: 4 kB / 486.8 MB, free: 444 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.228e-05/0.7115, allocations: 23.98 kB / 486.8 MB, free: 420 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.664e-06/0.7115, allocations: 4 kB / 486.8 MB, free: 416 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.7116, allocations: 0 / 486.8 MB, free: 416 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002546/0.7141, allocations: 1.231 MB / 488 MB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003765/0.7145, allocations: 184.2 kB / 488.2 MB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.7146, allocations: 16 kB / 488.2 MB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005922/0.7153, allocations: 36.03 kB / 488.3 MB, free: 14.85 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.7154, allocations: 40.34 kB / 488.3 MB, free: 14.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/0.7156, allocations: 63.86 kB / 488.4 MB, free: 14.75 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006808/0.7162, allocations: 383.1 kB / 488.8 MB, free: 14.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7163, allocations: 0 / 488.8 MB, free: 14.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001112/0.7174, allocations: 188 kB / 488.9 MB, free: 14.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (trafo1.i1,trafo2.i1) * 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 (55): * Single equations (assignments): 52 * 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.003318/0.7207, allocations: 2.128 MB / 491.1 MB, free: 12.01 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002323/0.7231, allocations: 0.9449 MB / 492 MB, free: 11.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.7231, allocations: 0 / 492 MB, free: 11.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009627/0.7241, allocations: 0.4886 MB / 492.5 MB, free: 10.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.7252, allocations: 143.1 kB / 492.6 MB, free: 10.37 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003874/0.7291, allocations: 1.437 MB / 494.1 MB, free: 8.871 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009005/0.73, allocations: 1.029 MB / 495.1 MB, free: 7.816 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005674/0.7306, allocations: 283.3 kB / 495.4 MB, free: 7.539 MB / 426.7 MB Notification: Performance of SimCode: time 1.453e-06/0.7306, allocations: 0 / 495.4 MB, free: 7.539 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.848/3.579, allocations: 15.67 MB / 0.4991 GB, free: 7.875 MB / 442.7 MB