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.947/1.947, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.176e-05/3.185e-05, allocations: 4 kB / 255.5 MB, free: 2.582 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09759/0.09766, allocations: 44.51 MB / 300 MB, free: 6.016 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4906/0.5883, allocations: 130 MB / 430 MB, free: 13.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003456/0.5887, allocations: 105 kB / 430.1 MB, free: 13.6 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.717/2.305, allocations: 332.6 MB / 0.7448 GB, free: 51.08 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/2.305, allocations: 5.219 kB / 0.7448 GB, free: 51.08 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009098/2.306, allocations: 214.1 kB / 0.745 GB, free: 51.06 MB / 426.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.04252/2.349, allocations: 8.75 MB / 0.7536 GB, free: 48.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/2.349, allocations: 11.06 kB / 0.7536 GB, free: 48.25 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006894/2.356, allocations: 1.412 MB / 0.755 GB, free: 48.14 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.056/2.412, allocations: 5.853 MB / 0.7607 GB, free: 47.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02585/2.438, allocations: 7.445 MB / 0.768 GB, free: 46.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001203/2.439, allocations: 0.7207 MB / 0.7687 GB, free: 46.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004867/2.444, allocations: 0.9339 MB / 0.7696 GB, free: 46.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05434/2.498, allocations: 16.72 MB / 0.7859 GB, free: 41.57 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006602/2.499, allocations: 15.62 kB / 0.7859 GB, free: 41.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004639/2.504, allocations: 414 kB / 0.7863 GB, free: 41.26 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001151/2.505, allocations: 0.7139 MB / 0.787 GB, free: 41.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04659/2.552, allocations: 15.54 MB / 0.8022 GB, free: 30.92 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.482/3.034, allocations: 52.79 MB / 0.8537 GB, free: 33.22 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05005/3.084, allocations: 41.32 MB / 0.8941 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01705/3.101, allocations: 7.015 MB / 0.9009 GB, free: 32.54 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06337/3.164, allocations: 21.72 MB / 0.9222 GB, free: 31.67 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001093/3.164, allocations: 96.86 kB / 0.9222 GB, free: 31.62 MB / 458.7 MB Notification: Performance of pre-optimization done (n=688): time 1.293e-05/3.165, allocations: 3.609 kB / 0.9222 GB, free: 31.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=696): time 0.06325/3.228, allocations: 22.73 MB / 0.9444 GB, free: 26.54 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/3.228, allocations: 109.8 kB / 0.9446 GB, free: 26.47 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005566/3.234, allocations: 2.437 MB / 0.9469 GB, free: 25.54 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001526/3.235, allocations: 121.6 kB / 0.947 GB, free: 25.44 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00281/3.238, allocations: 3.627 MB / 0.9506 GB, free: 22.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003659/3.242, allocations: 2.304 MB / 0.9528 GB, free: 20.98 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001107/3.243, allocations: 129.6 kB / 0.953 GB, free: 20.88 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000844/3.244, allocations: 0.6012 MB / 0.9536 GB, free: 20.45 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01141/3.255, allocations: 4.453 MB / 0.9579 GB, free: 18.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01376/3.269, allocations: 6.224 MB / 0.964 GB, free: 14.66 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01407/3.283, allocations: 5.562 MB / 0.9694 GB, free: 12.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.78e-05/3.283, allocations: 15.09 kB / 0.9694 GB, free: 12.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.03913/3.322, allocations: 13.39 MB / 0.9825 GB, free: 7.184 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.103e-05/3.322, allocations: 27.62 kB / 0.9825 GB, free: 7.184 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001184/3.323, allocations: 55.28 kB / 0.9826 GB, free: 7.184 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0129/3.335, allocations: 3.975 MB / 0.9865 GB, free: 5.996 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009748/3.345, allocations: 1.228 MB / 0.9877 GB, free: 5.957 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02091/3.366, allocations: 9.641 MB / 0.9971 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007969/3.374, allocations: 352.6 kB / 0.9974 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002378/3.377, allocations: 317.2 kB / 0.9977 GB, free: 13.8 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.003698/3.38, allocations: 474.7 kB / 0.9982 GB, free: 13.42 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00236/3.383, allocations: 457.1 kB / 0.9986 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04368/3.427, allocations: 12.83 MB / 1.011 GB, free: 1.965 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003607/3.427, allocations: 180 kB / 1.011 GB, free: 1.809 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.895e-05/3.427, allocations: 0 / 1.011 GB, free: 1.809 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001361/3.427, allocations: 34 kB / 1.011 GB, free: 1.805 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4375/3.865, allocations: 24.92 MB / 1.036 GB, free: 92.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.642e-05/3.865, allocations: 4.656 kB / 1.036 GB, free: 92.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007481/3.872, allocations: 0.8098 MB / 1.036 GB, free: 92.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01216/3.885, allocations: 3.887 MB / 1.04 GB, free: 92.12 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001663/3.886, allocations: 150.9 kB / 1.04 GB, free: 92.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01706/3.903, allocations: 9.508 MB / 1.05 GB, free: 90.02 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.395e-06/3.903, allocations: 7.031 kB / 1.05 GB, free: 90.02 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05009/3.953, allocations: 19.39 MB / 1.069 GB, free: 88.94 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005708/3.959, allocations: 1.474 MB / 1.07 GB, free: 88.72 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002575/3.962, allocations: 102.6 kB / 1.07 GB, free: 88.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006516/3.968, allocations: 268.6 kB / 1.07 GB, free: 88.57 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002511/3.971, allocations: 0.5138 MB / 1.071 GB, free: 88.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001471/3.973, allocations: 194.1 kB / 1.071 GB, free: 88.42 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004649/3.977, allocations: 1.821 MB / 1.073 GB, free: 87.71 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.92e-07/3.977, allocations: 0 / 1.073 GB, free: 87.71 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01075/3.988, allocations: 1.72 MB / 1.075 GB, free: 87.52 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.05008/4.038, allocations: 21.34 MB / 1.095 GB, free: 77.27 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02964/4.068, allocations: 10.91 MB / 1.106 GB, free: 73.15 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/4.068, allocations: 0 / 1.106 GB, free: 73.15 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01707/4.085, allocations: 5.617 MB / 1.112 GB, free: 71 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008706/4.094, allocations: 0.8479 MB / 1.112 GB, free: 70.75 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06636/4.16, allocations: 20.83 MB / 1.133 GB, free: 54.57 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01349/4.174, allocations: 6.535 MB / 1.139 GB, free: 49.68 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00878/4.183, allocations: 1.551 MB / 1.141 GB, free: 48.61 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008435/4.191, allocations: 3.373 MB / 1.144 GB, free: 45.49 MB / 474.7 MB Notification: Performance of SimCode: time 1.523e-06/4.191, allocations: 0 / 1.144 GB, free: 45.49 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7403/4.931, allocations: 170.7 MB / 1.311 GB, free: 30.88 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002872/4.932, allocations: 241.6 kB / 1.311 GB, free: 30.56 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.353/13.28, allocations: 3.906 kB / 1.311 GB, free: 30.56 MB / 474.7 MB