Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.016/2.016, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.914e-05/2.928e-05, allocations: 4 kB / 292.8 MB, free: 8.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 50.41 MB / 343.2 MB, free: 5.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5631/0.6769, allocations: 137.1 MB / 480.3 MB, free: 5.465 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005494/0.6775, allocations: 102.2 kB / 480.4 MB, free: 5.41 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.707/2.384, allocations: 321.5 MB / 0.7831 GB, free: 45.03 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.264e-06/2.384, allocations: 0 / 0.7831 GB, free: 45.03 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006719/2.385, allocations: 210.1 kB / 0.7833 GB, free: 45.01 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03973/2.425, allocations: 8.419 MB / 0.7915 GB, free: 41.98 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/2.425, allocations: 7.219 kB / 0.7915 GB, free: 41.98 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007122/2.432, allocations: 1.524 MB / 0.793 GB, free: 41.26 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03246/2.465, allocations: 3.918 MB / 0.7968 GB, free: 40.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02557/2.49, allocations: 7.347 MB / 0.804 GB, free: 36.74 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009297/2.491, allocations: 0.672 MB / 0.8047 GB, free: 36.44 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004218/2.495, allocations: 0.8877 MB / 0.8055 GB, free: 36.15 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05635/2.552, allocations: 14.63 MB / 0.8198 GB, free: 25.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005394/2.552, allocations: 15.91 kB / 0.8198 GB, free: 25.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003663/2.556, allocations: 387.2 kB / 0.8202 GB, free: 25.51 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001033/2.557, allocations: 0.6875 MB / 0.8209 GB, free: 24.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03748/2.595, allocations: 12.4 MB / 0.833 GB, free: 13.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.494/3.089, allocations: 47.97 MB / 0.8798 GB, free: 36.52 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03338/3.122, allocations: 28.4 MB / 0.9075 GB, free: 27.33 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007627/3.13, allocations: 2.993 MB / 0.9105 GB, free: 27.29 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007434/3.131, allocations: 242.2 kB / 0.9107 GB, free: 27.1 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.823e-05/3.131, allocations: 79.62 kB / 0.9108 GB, free: 27.06 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 6.993e-06/3.131, allocations: 0 / 0.9108 GB, free: 27.06 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.03352/3.164, allocations: 11.3 MB / 0.9218 GB, free: 25.48 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.316e-05/3.164, allocations: 92.22 kB / 0.9219 GB, free: 25.41 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008307/3.173, allocations: 3.131 MB / 0.925 GB, free: 41.12 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007853/3.174, allocations: 87.67 kB / 0.925 GB, free: 41.09 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003051/3.177, allocations: 4.023 MB / 0.929 GB, free: 39.03 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001826/3.179, allocations: 1.349 MB / 0.9303 GB, free: 38.18 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006449/3.179, allocations: 121.2 kB / 0.9304 GB, free: 38.18 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005205/3.18, allocations: 0.5533 MB / 0.9309 GB, free: 37.86 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006138/3.186, allocations: 2.498 MB / 0.9334 GB, free: 37.85 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008109/3.194, allocations: 4.933 MB / 0.9382 GB, free: 34.82 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008318/3.202, allocations: 3.72 MB / 0.9418 GB, free: 34.77 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.766e-05/3.203, allocations: 27.34 kB / 0.9419 GB, free: 34.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02297/3.226, allocations: 8.243 MB / 0.9499 GB, free: 34.35 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.264e-05/3.226, allocations: 41.25 kB / 0.9499 GB, free: 34.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001558/3.226, allocations: 87.64 kB / 0.95 GB, free: 34.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003831/3.23, allocations: 0.8903 MB / 0.9509 GB, free: 34.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009329/3.239, allocations: 1.358 MB / 0.9522 GB, free: 34.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01676/3.256, allocations: 7.518 MB / 0.9596 GB, free: 32.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007024/3.263, allocations: 337.8 kB / 0.9599 GB, free: 32.77 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001437/3.264, allocations: 311.8 kB / 0.9602 GB, free: 32.77 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 377 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (716): * Single equations (assignments): 714 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 1 {(8,65.6%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001377/3.266, allocations: 0.49 MB / 0.9607 GB, free: 32.61 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001257/3.267, allocations: 414.9 kB / 0.9611 GB, free: 32.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01644/3.283, allocations: 5.853 MB / 0.9668 GB, free: 32.11 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.654e-05/3.284, allocations: 41.28 kB / 0.9668 GB, free: 32.11 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.672e-05/3.284, allocations: 7.406 kB / 0.9668 GB, free: 32.11 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001011/3.284, allocations: 24.09 kB / 0.9668 GB, free: 32.11 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04229/3.326, allocations: 15.3 MB / 0.9818 GB, free: 26.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.502e-05/3.326, allocations: 4.25 kB / 0.9818 GB, free: 26.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005743/3.332, allocations: 0.6883 MB / 0.9825 GB, free: 26.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003369/3.335, allocations: 0.6847 MB / 0.9831 GB, free: 26.71 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007682/3.336, allocations: 87.69 kB / 0.9832 GB, free: 26.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/3.349, allocations: 6.156 MB / 0.9892 GB, free: 23.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/3.35, allocations: 6.5 kB / 0.9892 GB, free: 23.16 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02109/3.371, allocations: 8.926 MB / 0.998 GB, free: 18.96 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003504/3.374, allocations: 0.8785 MB / 0.9988 GB, free: 18.44 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001462/3.376, allocations: 73 kB / 0.9989 GB, free: 18.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004601/3.38, allocations: 199 kB / 0.9991 GB, free: 18.33 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001058/3.381, allocations: 261.1 kB / 0.9993 GB, free: 18.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003586/3.382, allocations: 110.6 kB / 0.9994 GB, free: 18.27 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005794/3.388, allocations: 2.328 MB / 1.002 GB, free: 17.38 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.212e-06/3.388, allocations: 0 / 1.002 GB, free: 17.38 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009548/3.397, allocations: 1.603 MB / 1.003 GB, free: 17.19 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 1 {(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02326/3.421, allocations: 11.23 MB / 1.014 GB, free: 9.82 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0185/3.439, allocations: 6.222 MB / 1.02 GB, free: 4.297 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/3.439, allocations: 0 / 1.02 GB, free: 4.297 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008743/3.448, allocations: 2.796 MB / 1.023 GB, free: 1.754 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007857/3.456, allocations: 0.8446 MB / 1.024 GB, free: 1.086 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05488/3.511, allocations: 16.16 MB / 1.04 GB, free: 3.082 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3803/3.891, allocations: 6.753 MB / 1.046 GB, free: 99.8 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01505/3.906, allocations: 1.862 MB / 1.048 GB, free: 99.76 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02319/3.929, allocations: 3.167 MB / 1.051 GB, free: 99.76 MB / 0.4948 GB Notification: Performance of SimCode: time 1.633e-06/3.93, allocations: 0 / 1.051 GB, free: 99.76 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3093/4.239, allocations: 122.5 MB / 1.171 GB, free: 53.77 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002123/4.239, allocations: 219.8 kB / 1.171 GB, free: 53.55 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.202/11.44, allocations: 0 / 1.171 GB, free: 53.55 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat does not exist to compare? outputFormat=mat