Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.366/2.366, allocations: 233 MB / 245.6 MB, free: 14.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.012e-05/4.019e-05, allocations: 7.938 kB / 301.4 MB, free: 7.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.131, allocations: 53.24 MB / 354.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4572/0.5883, allocations: 94.88 MB / 449.5 MB, free: 6.996 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/0.5887, allocations: 83.95 kB / 449.6 MB, free: 6.914 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05237/0.6411, allocations: 11.5 MB / 461.1 MB, free: 11.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.6411, allocations: 0 / 461.1 MB, free: 11.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.235e-05/0.6412, allocations: 19.92 kB / 461.1 MB, free: 11.27 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001818/0.643, allocations: 0.7518 MB / 461.8 MB, free: 10.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.6431, allocations: 12.03 kB / 461.8 MB, free: 10.45 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001686/0.6433, allocations: 86.52 kB / 461.9 MB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/0.6435, allocations: 55.34 kB / 462 MB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005036/0.6485, allocations: 1.214 MB / 463.2 MB, free: 9.047 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.248e-05/0.6486, allocations: 33.69 kB / 463.2 MB, free: 9.016 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.6487, allocations: 43.98 kB / 463.3 MB, free: 8.973 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.65, allocations: 0.5172 MB / 463.8 MB, free: 8.422 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.6501, allocations: 0 / 463.8 MB, free: 8.422 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.459e-05/0.6501, allocations: 20 kB / 463.8 MB, free: 8.402 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.046e-05/0.6502, allocations: 20.78 kB / 463.8 MB, free: 8.383 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.6513, allocations: 373.3 kB / 464.2 MB, free: 8.016 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003871/0.6552, allocations: 1.932 MB / 466.1 MB, free: 5.969 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009016/0.6561, allocations: 317.4 kB / 466.4 MB, free: 5.641 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005352/0.6567, allocations: 177.7 kB / 466.6 MB, free: 5.461 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.185e-05/0.6567, allocations: 4 kB / 466.6 MB, free: 5.457 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005729/0.6573, allocations: 276.7 kB / 466.9 MB, free: 5.156 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 3.006e-06/0.6573, allocations: 1.312 kB / 466.9 MB, free: 5.156 MB / 394.7 MB Notification: Performance of matching and sorting (n=36): time 0.002644/0.66, allocations: 1.066 MB / 467.9 MB, free: 4.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.6602, allocations: 170.2 kB / 468.1 MB, free: 3.816 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006271/0.6608, allocations: 343.1 kB / 468.4 MB, free: 3.473 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.802e-05/0.6609, allocations: 33.7 kB / 468.5 MB, free: 3.434 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000309/0.6612, allocations: 326.1 kB / 468.8 MB, free: 3.109 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.6613, allocations: 122.3 kB / 468.9 MB, free: 2.988 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/0.6614, allocations: 12 kB / 468.9 MB, free: 2.977 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.6616, allocations: 334.8 kB / 469.3 MB, free: 2.641 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003481/0.6619, allocations: 117.1 kB / 469.4 MB, free: 2.527 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004798/0.6624, allocations: 277 kB / 469.6 MB, free: 2.188 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004986/0.6629, allocations: 186.4 kB / 469.8 MB, free: 2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.663, allocations: 0 / 469.8 MB, free: 2 MB / 394.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001173/0.6641, allocations: 471 kB / 470.3 MB, free: 1.527 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.866e-05/0.6642, allocations: 34.45 kB / 470.3 MB, free: 1.488 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.6642, allocations: 11.94 kB / 470.3 MB, free: 1.477 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.983e-05/0.6643, allocations: 8 kB / 470.3 MB, free: 1.469 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008036/0.6651, allocations: 111.8 kB / 470.4 MB, free: 1.359 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.267e-05/0.6651, allocations: 8 kB / 470.5 MB, free: 1.352 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000506/0.6656, allocations: 24.17 kB / 470.5 MB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.2e-05/0.6658, allocations: 39.97 kB / 470.5 MB, free: 1.289 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * 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.0002079/0.666, allocations: 166.5 kB / 470.7 MB, free: 1.113 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.6661, allocations: 52.84 kB / 470.7 MB, free: 1.062 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/0.6673, allocations: 447.3 kB / 471.2 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.6673, allocations: 4 kB / 471.2 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.6673, allocations: 0 / 471.2 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.6674, allocations: 0 / 471.2 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002023/0.6694, allocations: 0.9498 MB / 472.1 MB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.6694, allocations: 64 / 472.1 MB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006096/0.67, allocations: 59.97 kB / 472.2 MB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-05/0.6701, allocations: 4 kB / 472.2 MB, free: 15.53 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.007e-05/0.6701, allocations: 15.98 kB / 472.2 MB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.358e-06/0.6702, allocations: 7.938 kB / 472.2 MB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6702, allocations: 0 / 472.2 MB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.6718, allocations: 0.7207 MB / 472.9 MB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.6721, allocations: 136.5 kB / 473.1 MB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.063e-05/0.6722, allocations: 8 kB / 473.1 MB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004045/0.6727, allocations: 23.92 kB / 473.1 MB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.548e-05/0.6728, allocations: 27.98 kB / 473.1 MB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001084/0.6729, allocations: 39.89 kB / 473.2 MB, free: 14.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004822/0.6734, allocations: 265.2 kB / 473.4 MB, free: 14.24 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6734, allocations: 0 / 473.4 MB, free: 14.24 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007714/0.6742, allocations: 116 kB / 473.5 MB, free: 14.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.002224/0.6764, allocations: 1.454 MB / 475 MB, free: 12.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.6775, allocations: 386.8 kB / 475.4 MB, free: 12.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.6775, allocations: 0 / 475.4 MB, free: 12.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005319/0.678, allocations: 256.7 kB / 475.6 MB, free: 11.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009301/0.679, allocations: 84.33 kB / 475.7 MB, free: 11.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002752/0.6818, allocations: 0.8859 MB / 476.6 MB, free: 10.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007026/0.6825, allocations: 0.8937 MB / 477.5 MB, free: 10.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004671/0.683, allocations: 183.4 kB / 477.7 MB, free: 9.859 MB / 410.7 MB Notification: Performance of SimCode: time 4.739e-06/0.683, allocations: 0 / 477.7 MB, free: 9.859 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.823/3.506, allocations: 8.352 MB / 486 MB, free: 1.52 MB / 410.7 MB