Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.964/1.964, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.726e-05/2.739e-05, allocations: 0 / 269.5 MB, free: 6.273 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 47.57 MB / 317 MB, free: 6.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5071/0.6076, allocations: 135.8 MB / 452.9 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003592/0.608, allocations: 98 kB / 453 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623/2.231, allocations: 331.2 MB / 0.7658 GB, free: 41.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.096e-06/2.231, allocations: 0 / 0.7658 GB, free: 41.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006983/2.232, allocations: 217.7 kB / 0.766 GB, free: 41.75 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.04415/2.276, allocations: 8.752 MB / 0.7746 GB, free: 38.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/2.276, allocations: 10.06 kB / 0.7746 GB, free: 38.91 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008023/2.284, allocations: 1.624 MB / 0.7762 GB, free: 38.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04942/2.334, allocations: 5.856 MB / 0.7819 GB, free: 37.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02675/2.36, allocations: 7.436 MB / 0.7892 GB, free: 34.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001191/2.362, allocations: 0.7238 MB / 0.7899 GB, free: 33.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005161/2.367, allocations: 0.9393 MB / 0.7908 GB, free: 33.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05558/2.422, allocations: 16.73 MB / 0.8071 GB, free: 20.61 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000594/2.423, allocations: 15.7 kB / 0.8071 GB, free: 20.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004319/2.427, allocations: 415.7 kB / 0.8075 GB, free: 20.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001127/2.429, allocations: 0.7132 MB / 0.8082 GB, free: 19.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04528/2.474, allocations: 15.55 MB / 0.8234 GB, free: 5.559 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5056/2.98, allocations: 52.8 MB / 0.875 GB, free: 39.64 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05007/3.03, allocations: 41.32 MB / 0.9153 GB, free: 39.06 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01738/3.047, allocations: 7.006 MB / 0.9222 GB, free: 38.96 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06245/3.11, allocations: 21.72 MB / 0.9434 GB, free: 34.28 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.594e-05/3.11, allocations: 98.08 kB / 0.9435 GB, free: 34.2 MB / 474.7 MB Notification: Performance of pre-optimization done (n=688): time 1.228e-05/3.11, allocations: 0 / 0.9435 GB, free: 34.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=696): time 0.0712/3.181, allocations: 22.74 MB / 0.9657 GB, free: 24.27 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/3.181, allocations: 115.9 kB / 0.9658 GB, free: 24.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006505/3.188, allocations: 2.431 MB / 0.9682 GB, free: 23.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001611/3.189, allocations: 122.5 kB / 0.9683 GB, free: 23.16 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002836/3.192, allocations: 3.636 MB / 0.9718 GB, free: 20.47 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003923/3.196, allocations: 2.303 MB / 0.9741 GB, free: 18.68 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001996/3.198, allocations: 125.3 kB / 0.9742 GB, free: 18.58 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001139/3.2, allocations: 0.6073 MB / 0.9748 GB, free: 18.14 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01212/3.212, allocations: 4.452 MB / 0.9791 GB, free: 16.31 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01374/3.225, allocations: 6.225 MB / 0.9852 GB, free: 12.35 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01472/3.24, allocations: 5.563 MB / 0.9907 GB, free: 10.06 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.385e-05/3.24, allocations: 19 kB / 0.9907 GB, free: 10.06 MB / 474.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.04428/3.285, allocations: 13.39 MB / 1.004 GB, free: 2.238 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.234e-05/3.285, allocations: 28 kB / 1.004 GB, free: 2.211 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001527/3.285, allocations: 52 kB / 1.004 GB, free: 2.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01539/3.3, allocations: 4 MB / 1.008 GB, free: 14.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01064/3.311, allocations: 1.22 MB / 1.009 GB, free: 13.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02193/3.333, allocations: 9.638 MB / 1.018 GB, free: 5.242 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008362/3.341, allocations: 348.4 kB / 1.019 GB, free: 4.969 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002539/3.344, allocations: 319.3 kB / 1.019 GB, free: 4.684 MB / 490.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.004182/3.348, allocations: 480.4 kB / 1.019 GB, free: 4.289 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002879/3.351, allocations: 453.8 kB / 1.02 GB, free: 3.848 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4122/3.764, allocations: 13.09 MB / 1.033 GB, free: 101 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003367/3.764, allocations: 182.4 kB / 1.033 GB, free: 101 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.621e-05/3.764, allocations: 2.969 kB / 1.033 GB, free: 101 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001652/3.764, allocations: 28.97 kB / 1.033 GB, free: 101 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06935/3.833, allocations: 24.68 MB / 1.057 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-05/3.834, allocations: 3.688 kB / 1.057 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007615/3.841, allocations: 0.8053 MB / 1.058 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01239/3.854, allocations: 3.888 MB / 1.062 GB, free: 100.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002006/3.856, allocations: 158.4 kB / 1.062 GB, free: 100.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01719/3.873, allocations: 9.5 MB / 1.071 GB, free: 98.03 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/3.873, allocations: 5.219 kB / 1.071 GB, free: 98.03 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04875/3.922, allocations: 19.4 MB / 1.09 GB, free: 90.61 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005431/3.927, allocations: 1.47 MB / 1.091 GB, free: 90.04 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002289/3.93, allocations: 109.1 kB / 1.091 GB, free: 89.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006465/3.936, allocations: 271.7 kB / 1.092 GB, free: 89.88 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002563/3.939, allocations: 0.5099 MB / 1.092 GB, free: 89.77 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002068/3.941, allocations: 185.8 kB / 1.092 GB, free: 89.73 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004719/3.946, allocations: 1.831 MB / 1.094 GB, free: 89.02 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.21e-07/3.946, allocations: 0 / 1.094 GB, free: 89.02 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01039/3.956, allocations: 1.719 MB / 1.096 GB, free: 88.82 MB / 490.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.04731/4.003, allocations: 21.36 MB / 1.117 GB, free: 78.62 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02852/4.032, allocations: 10.9 MB / 1.127 GB, free: 73.46 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.497e-06/4.032, allocations: 4 kB / 1.127 GB, free: 73.46 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01593/4.048, allocations: 5.618 MB / 1.133 GB, free: 68.52 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008034/4.056, allocations: 0.8457 MB / 1.134 GB, free: 67.87 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05952/4.116, allocations: 20.87 MB / 1.154 GB, free: 49.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01246/4.128, allocations: 6.541 MB / 1.16 GB, free: 44.84 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008434/4.137, allocations: 1.557 MB / 1.162 GB, free: 43.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007769/4.145, allocations: 3.381 MB / 1.165 GB, free: 40.64 MB / 490.7 MB Notification: Performance of SimCode: time 3.457e-06/4.145, allocations: 0 / 1.165 GB, free: 40.64 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7101/4.855, allocations: 171 MB / 1.332 GB, free: 33.31 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002314/4.855, allocations: 238.4 kB / 1.333 GB, free: 33 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.628/12.48, allocations: 0 / 1.333 GB, free: 33 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat does not exist to compare? outputFormat=mat