Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.886/1.886, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.381e-05/4.395e-05, allocations: 8 kB / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1013, allocations: 44.52 MB / 300 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4902/0.5915, allocations: 130 MB / 430 MB, free: 14.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003666/0.5919, allocations: 101.6 kB / 430.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.706/2.298, allocations: 332.6 MB / 0.7448 GB, free: 35.28 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.406e-06/2.298, allocations: 4 kB / 0.7448 GB, free: 35.28 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007789/2.298, allocations: 226.3 kB / 0.745 GB, free: 35.25 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04583/2.344, allocations: 8.749 MB / 0.7536 GB, free: 32.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.26e-05/2.344, allocations: 8.25 kB / 0.7536 GB, free: 32.45 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007967/2.352, allocations: 1.418 MB / 0.7549 GB, free: 32.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04903/2.401, allocations: 5.855 MB / 0.7607 GB, free: 31.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02863/2.43, allocations: 7.433 MB / 0.7679 GB, free: 30.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001389/2.432, allocations: 0.7182 MB / 0.7686 GB, free: 30.67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006315/2.438, allocations: 0.9394 MB / 0.7695 GB, free: 30.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06341/2.501, allocations: 16.83 MB / 0.786 GB, free: 25.94 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006688/2.502, allocations: 17.12 kB / 0.786 GB, free: 25.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005198/2.507, allocations: 415.2 kB / 0.7864 GB, free: 25.63 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001384/2.509, allocations: 0.715 MB / 0.7871 GB, free: 25.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0512/2.56, allocations: 15.67 MB / 0.8024 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5364/3.096, allocations: 52.79 MB / 0.8539 GB, free: 33.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05341/3.15, allocations: 41.39 MB / 0.8944 GB, free: 32.57 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01846/3.168, allocations: 7.008 MB / 0.9012 GB, free: 32.47 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06468/3.233, allocations: 21.73 MB / 0.9224 GB, free: 31.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001072/3.233, allocations: 97.23 kB / 0.9225 GB, free: 31.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=688): time 1.275e-05/3.233, allocations: 0 / 0.9225 GB, free: 31.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=696): time 0.07254/3.306, allocations: 22.72 MB / 0.9447 GB, free: 26.72 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/3.306, allocations: 113 kB / 0.9448 GB, free: 26.65 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007073/3.313, allocations: 2.437 MB / 0.9472 GB, free: 25.72 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001759/3.315, allocations: 120.2 kB / 0.9473 GB, free: 25.62 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003127/3.318, allocations: 3.627 MB / 0.9508 GB, free: 22.95 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004172/3.322, allocations: 2.304 MB / 0.9531 GB, free: 21.16 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001996/3.324, allocations: 123.5 kB / 0.9532 GB, free: 21.07 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00108/3.326, allocations: 0.6085 MB / 0.9538 GB, free: 20.63 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01259/3.338, allocations: 4.453 MB / 0.9582 GB, free: 18.79 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01461/3.353, allocations: 6.263 MB / 0.9643 GB, free: 14.82 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01568/3.369, allocations: 5.568 MB / 0.9697 GB, free: 12.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.693e-05/3.369, allocations: 16.39 kB / 0.9697 GB, free: 12.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.04321/3.412, allocations: 13.53 MB / 0.9829 GB, free: 7.309 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.008e-05/3.412, allocations: 28.56 kB / 0.983 GB, free: 7.309 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001327/3.412, allocations: 54.45 kB / 0.983 GB, free: 7.305 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01413/3.426, allocations: 3.986 MB / 0.9869 GB, free: 6.113 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01013/3.437, allocations: 1.216 MB / 0.9881 GB, free: 6.078 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02283/3.459, allocations: 9.644 MB / 0.9975 GB, free: 14.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009093/3.469, allocations: 352.2 kB / 0.9979 GB, free: 14.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002745/3.471, allocations: 315.6 kB / 0.9982 GB, free: 13.83 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (647): * Single equations (assignments): 595 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * 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: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.004627/3.476, allocations: 477.3 kB / 0.9986 GB, free: 13.44 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00334/3.48, allocations: 449.8 kB / 0.999 GB, free: 13 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04576/3.525, allocations: 12.84 MB / 1.012 GB, free: 1.988 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003858/3.526, allocations: 183.2 kB / 1.012 GB, free: 1.832 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.378e-05/3.526, allocations: 3.594 kB / 1.012 GB, free: 1.832 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000154/3.526, allocations: 27.33 kB / 1.012 GB, free: 1.832 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.479/4.005, allocations: 24.92 MB / 1.036 GB, free: 92.15 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001085/4.005, allocations: 2.719 kB / 1.036 GB, free: 92.15 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007735/4.013, allocations: 0.812 MB / 1.037 GB, free: 92.15 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01318/4.026, allocations: 3.887 MB / 1.041 GB, free: 92.07 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00198/4.028, allocations: 153.1 kB / 1.041 GB, free: 92.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01966/4.048, allocations: 9.506 MB / 1.05 GB, free: 89.96 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/4.048, allocations: 3.469 kB / 1.05 GB, free: 89.96 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05475/4.103, allocations: 19.39 MB / 1.069 GB, free: 88.89 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00633/4.109, allocations: 1.476 MB / 1.071 GB, free: 88.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002834/4.112, allocations: 102 kB / 1.071 GB, free: 88.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006942/4.119, allocations: 272.2 kB / 1.071 GB, free: 88.69 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002882/4.122, allocations: 0.5149 MB / 1.071 GB, free: 88.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001949/4.124, allocations: 190.6 kB / 1.072 GB, free: 88.54 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005579/4.13, allocations: 1.829 MB / 1.073 GB, free: 87.82 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.413e-06/4.13, allocations: 2.688 kB / 1.073 GB, free: 87.82 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01162/4.141, allocations: 1.719 MB / 1.075 GB, free: 87.63 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 386 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * 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: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.06136/4.203, allocations: 21.33 MB / 1.096 GB, free: 77.38 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04872/4.252, allocations: 11.03 MB / 1.107 GB, free: 73.22 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.719e-05/4.252, allocations: 0 / 1.107 GB, free: 73.22 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02751/4.279, allocations: 5.656 MB / 1.112 GB, free: 71.04 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0133/4.293, allocations: 0.8429 MB / 1.113 GB, free: 70.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07548/4.368, allocations: 20.85 MB / 1.133 GB, free: 54.53 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01537/4.384, allocations: 6.534 MB / 1.14 GB, free: 49.62 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01048/4.394, allocations: 1.56 MB / 1.141 GB, free: 48.55 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009229/4.403, allocations: 3.373 MB / 1.145 GB, free: 45.43 MB / 474.7 MB Notification: Performance of SimCode: time 1.874e-06/4.403, allocations: 0 / 1.145 GB, free: 45.43 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8283/5.232, allocations: 171.2 MB / 1.312 GB, free: 29.92 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002317/5.232, allocations: 242.8 kB / 1.312 GB, free: 29.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.109/13.34, allocations: 1.781 kB / 1.312 GB, free: 29.6 MB / 474.7 MB