Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.361/2.361, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.071e-05/5.086e-05, allocations: 11.94 kB / 301.4 MB, free: 7.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1494, allocations: 53.23 MB / 354.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4781/0.6275, allocations: 92.8 MB / 447.4 MB, free: 9.066 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003333/0.6279, allocations: 87.94 kB / 447.5 MB, free: 8.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09471/0.7227, allocations: 23.85 MB / 471.3 MB, free: 0.8945 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.719e-06/0.7227, allocations: 0 / 471.3 MB, free: 0.8945 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.067e-05/0.7228, allocations: 15.94 kB / 471.3 MB, free: 0.8789 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001512/0.7243, allocations: 0.663 MB / 472 MB, free: 176 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.7244, allocations: 12.03 kB / 472 MB, free: 164 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/0.7245, allocations: 94.5 kB / 472.1 MB, free: 60 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002668/0.7272, allocations: 211.1 kB / 472.3 MB, free: 15.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008792/0.7281, allocations: 366.7 kB / 472.7 MB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.767e-05/0.7282, allocations: 32.95 kB / 472.7 MB, free: 15.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.7283, allocations: 43.98 kB / 472.8 MB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.7299, allocations: 0.601 MB / 473.4 MB, free: 14.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.375e-05/0.7299, allocations: 7.906 kB / 473.4 MB, free: 14.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.357e-05/0.73, allocations: 16 kB / 473.4 MB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002269/0.7302, allocations: 40.97 kB / 473.4 MB, free: 14.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.7318, allocations: 0.568 MB / 474 MB, free: 14.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00548/0.7373, allocations: 2.27 MB / 476.3 MB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.7384, allocations: 474.8 kB / 476.7 MB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000526/0.739, allocations: 217.7 kB / 476.9 MB, free: 11.01 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.684e-05/0.739, allocations: 15.94 kB / 476.9 MB, free: 11 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.425e-05/0.7391, allocations: 30.56 kB / 477 MB, free: 10.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 3.376e-06/0.7391, allocations: 4 kB / 477 MB, free: 10.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=43): time 0.003412/0.7425, allocations: 1.231 MB / 478.2 MB, free: 9.664 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/0.7426, allocations: 85.11 kB / 478.3 MB, free: 9.562 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004124/0.743, allocations: 239.4 kB / 478.5 MB, free: 9.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.635e-05/0.7431, allocations: 37.73 kB / 478.6 MB, free: 9.277 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002078/0.7433, allocations: 286.5 kB / 478.8 MB, free: 8.996 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.7435, allocations: 153.8 kB / 479 MB, free: 8.844 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.748e-05/0.7436, allocations: 12 kB / 479 MB, free: 8.832 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.7437, allocations: 326.8 kB / 479.3 MB, free: 8.504 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004529/0.7442, allocations: 165.1 kB / 479.5 MB, free: 8.344 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005547/0.7447, allocations: 285.2 kB / 479.8 MB, free: 8.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005777/0.7453, allocations: 207.8 kB / 480 MB, free: 7.816 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.7454, allocations: 4 kB / 480 MB, free: 7.812 MB / 410.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001912/0.7473, allocations: 0.6187 MB / 480.6 MB, free: 7.184 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.7473, allocations: 8.438 kB / 480.6 MB, free: 7.176 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.7474, allocations: 8 kB / 480.6 MB, free: 7.168 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000921/0.7483, allocations: 161.3 kB / 480.8 MB, free: 7.008 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007429/0.749, allocations: 95.81 kB / 480.9 MB, free: 6.914 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005275/0.7543, allocations: 2.504 MB / 483.4 MB, free: 4.277 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005576/0.7549, allocations: 31.97 kB / 483.4 MB, free: 4.246 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.366e-05/0.755, allocations: 20 kB / 483.4 MB, free: 4.227 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001821/0.7552, allocations: 132.8 kB / 483.5 MB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.7553, allocations: 35.62 kB / 483.6 MB, free: 4.055 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.7572, allocations: 0.6059 MB / 484.2 MB, free: 3.438 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.7573, allocations: 4 kB / 484.2 MB, free: 3.434 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.7573, allocations: 4 kB / 484.2 MB, free: 3.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.7573, allocations: 3.984 kB / 484.2 MB, free: 3.426 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or 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 postOpt removeSimpleEquations (simulation): time 0.003577/0.7609, allocations: 1.332 MB / 485.5 MB, free: 2.016 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.7609, allocations: 0 / 485.5 MB, free: 2.016 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007496/0.7617, allocations: 83.88 kB / 485.6 MB, free: 1.934 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007462/0.7624, allocations: 136.8 kB / 485.7 MB, free: 1.797 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.667e-05/0.7625, allocations: 15.94 kB / 485.8 MB, free: 1.781 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00446/0.767, allocations: 2.3 MB / 488.1 MB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.767, allocations: 4.031 kB / 488.1 MB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002423/0.7694, allocations: 0.9496 MB / 489 MB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001585/0.7696, allocations: 116.6 kB / 489.1 MB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.62e-05/0.7697, allocations: 12 kB / 489.1 MB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003918/0.7701, allocations: 12.09 kB / 489.1 MB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.7702, allocations: 43.89 kB / 489.2 MB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/0.7703, allocations: 8 kB / 489.2 MB, free: 14.13 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000311/0.7706, allocations: 195.1 kB / 489.4 MB, free: 13.94 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.7706, allocations: 0 / 489.4 MB, free: 13.94 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009381/0.7716, allocations: 151.9 kB / 489.5 MB, free: 13.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002829/0.7744, allocations: 1.717 MB / 491.3 MB, free: 12.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001971/0.7764, allocations: 0.6261 MB / 491.9 MB, free: 11.39 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.7764, allocations: 4.062 kB / 491.9 MB, free: 11.39 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.7776, allocations: 398.6 kB / 492.3 MB, free: 10.99 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005902/0.7782, allocations: 55.5 kB / 492.3 MB, free: 10.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002947/0.7812, allocations: 1.084 MB / 493.4 MB, free: 9.805 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006635/0.7819, allocations: 0.8871 MB / 494.3 MB, free: 8.891 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003427/0.7822, allocations: 151.4 kB / 494.4 MB, free: 8.742 MB / 426.7 MB Notification: Performance of SimCode: time 1.403e-06/0.7822, allocations: 0 / 494.4 MB, free: 8.742 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.785/3.567, allocations: 8.736 MB / 0.4914 GB, free: 15.99 MB / 442.7 MB