Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.938/1.938, allocations: 194.9 MB / 208 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.919e-05/4.934e-05, allocations: 4 kB / 255.5 MB, free: 2.586 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1017, allocations: 44.5 MB / 300 MB, free: 6.023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5425/0.6442, allocations: 151.8 MB / 451.8 MB, free: 8.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003808/0.6447, allocations: 102 kB / 451.9 MB, free: 8.668 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.092/2.736, allocations: 389.7 MB / 0.8218 GB, free: 24.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.663e-06/2.736, allocations: 4 kB / 0.8218 GB, free: 24.87 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001101/2.738, allocations: 283.6 kB / 0.8221 GB, free: 24.59 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: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.05621/2.794, allocations: 11.23 MB / 0.8331 GB, free: 13.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.761e-05/2.794, allocations: 8.031 kB / 0.8331 GB, free: 13.25 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01065/2.805, allocations: 1.943 MB / 0.835 GB, free: 11.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04676/2.851, allocations: 5.205 MB / 0.8401 GB, free: 6.066 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4312/3.283, allocations: 9.628 MB / 0.8495 GB, free: 27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002376/3.285, allocations: 0.8979 MB / 0.8503 GB, free: 26.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008886/3.294, allocations: 1.173 MB / 0.8515 GB, free: 26.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09418/3.388, allocations: 19.19 MB / 0.8702 GB, free: 25.57 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009797/3.389, allocations: 18.03 kB / 0.8702 GB, free: 25.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006109/3.395, allocations: 0.5038 MB / 0.8707 GB, free: 25.57 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00162/3.397, allocations: 0.7715 MB / 0.8715 GB, free: 25.55 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05338/3.451, allocations: 16.91 MB / 0.888 GB, free: 25.49 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1576/3.608, allocations: 63.22 MB / 0.9497 GB, free: 0.5039 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0396/3.648, allocations: 22.17 MB / 0.9714 GB, free: 0.6445 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.03325/3.681, allocations: 7.72 MB / 0.9789 GB, free: 15.23 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07229/3.754, allocations: 22.88 MB / 1.001 GB, free: 13.95 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001208/3.754, allocations: 104.8 kB / 1.001 GB, free: 13.83 MB / 474.7 MB Notification: Performance of pre-optimization done (n=746): time 1.157e-05/3.754, allocations: 1.562 kB / 1.001 GB, free: 13.83 MB / 474.7 MB Notification: Performance of matching and sorting (n=756): time 0.4325/4.186, allocations: 25.99 MB / 1.027 GB, free: 69.45 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000155/4.186, allocations: 146.6 kB / 1.027 GB, free: 69.35 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01729/4.204, allocations: 3.868 MB / 1.031 GB, free: 69.02 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002206/4.206, allocations: 133.3 kB / 1.031 GB, free: 68.98 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006626/4.213, allocations: 4.757 MB / 1.035 GB, free: 66.78 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005322/4.218, allocations: 2.516 MB / 1.038 GB, free: 65.15 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002355/4.221, allocations: 145.8 kB / 1.038 GB, free: 65.15 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001296/4.222, allocations: 0.6306 MB / 1.039 GB, free: 64.83 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01745/4.239, allocations: 4.716 MB / 1.043 GB, free: 64.81 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02032/4.26, allocations: 6.534 MB / 1.05 GB, free: 62.82 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01616/4.276, allocations: 5.877 MB / 1.055 GB, free: 62.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001219/4.276, allocations: 17.69 kB / 1.055 GB, free: 62.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=1042) (initialization): time 0.03942/4.316, allocations: 14.06 MB / 1.069 GB, free: 61.96 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.015e-05/4.316, allocations: 29.47 kB / 1.069 GB, free: 61.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/4.316, allocations: 53.84 kB / 1.069 GB, free: 61.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01117/4.327, allocations: 3.348 MB / 1.072 GB, free: 61.87 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0117/4.339, allocations: 1.481 MB / 1.074 GB, free: 61.87 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01834/4.357, allocations: 13.82 MB / 1.087 GB, free: 54.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009168/4.366, allocations: 398.4 kB / 1.088 GB, free: 54.83 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002039/4.368, allocations: 335.4 kB / 1.088 GB, free: 54.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 (785): * Single equations (assignments): 720 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.002104/4.371, allocations: 0.5175 MB / 1.089 GB, free: 54.68 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002119/4.373, allocations: 0.5862 MB / 1.089 GB, free: 54.38 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03747/4.41, allocations: 13.46 MB / 1.102 GB, free: 52.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02645/4.437, allocations: 10.31 MB / 1.112 GB, free: 48.18 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.002e-05/4.437, allocations: 10.06 kB / 1.112 GB, free: 48.18 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001625/4.437, allocations: 34.5 kB / 1.112 GB, free: 48.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1001/4.537, allocations: 27.89 MB / 1.14 GB, free: 35.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001482/4.537, allocations: 11.45 kB / 1.14 GB, free: 35.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0134/4.551, allocations: 0.9425 MB / 1.141 GB, free: 35.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01721/4.568, allocations: 3.457 MB / 1.144 GB, free: 34.78 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001812/4.57, allocations: 164.6 kB / 1.144 GB, free: 34.68 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02392/4.594, allocations: 18.2 MB / 1.162 GB, free: 16.98 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/4.594, allocations: 4 kB / 1.162 GB, free: 16.98 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4299/5.024, allocations: 21.24 MB / 1.183 GB, free: 64.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006693/5.03, allocations: 1.731 MB / 1.184 GB, free: 64.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003198/5.034, allocations: 116.8 kB / 1.184 GB, free: 64.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007936/5.042, allocations: 313.8 kB / 1.185 GB, free: 64.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002917/5.045, allocations: 0.5542 MB / 1.185 GB, free: 64.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00183/5.047, allocations: 204.6 kB / 1.186 GB, free: 64.39 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009269/5.056, allocations: 2.897 MB / 1.188 GB, free: 64.19 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.062e-06/5.056, allocations: 4.062 kB / 1.188 GB, free: 64.19 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01491/5.071, allocations: 2.153 MB / 1.19 GB, free: 64.19 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (504): * Single equations (assignments): 438 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.05627/5.127, allocations: 22.93 MB / 1.213 GB, free: 61.09 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03136/5.159, allocations: 11.83 MB / 1.224 GB, free: 60.43 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.305e-05/5.159, allocations: 0 / 1.224 GB, free: 60.43 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01828/5.177, allocations: 6.495 MB / 1.231 GB, free: 59.77 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01245/5.189, allocations: 1.308 MB / 1.232 GB, free: 59.74 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07798/5.267, allocations: 24.72 MB / 1.256 GB, free: 55.94 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01633/5.284, allocations: 7.77 MB / 1.264 GB, free: 54.88 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0114/5.295, allocations: 1.805 MB / 1.265 GB, free: 54.67 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01127/5.307, allocations: 4.433 MB / 1.27 GB, free: 52.08 MB / 474.7 MB Notification: Performance of SimCode: time 1.884e-06/5.307, allocations: 0 / 1.27 GB, free: 52.08 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8146/6.121, allocations: 203.3 MB / 1.468 GB, free: 29.44 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000258/6.122, allocations: 233.5 kB / 1.469 GB, free: 29.13 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/16.48, allocations: 0 / 1.469 GB, free: 29.13 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat