Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.022/2.022, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.699e-05/2.708e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3049, allocations: 44.5 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1782/0.4831, allocations: 103.1 MB / 397.3 MB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/0.4835, allocations: 83.94 kB / 397.4 MB, free: 10.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4613/0.9449, allocations: 49.04 MB / 446.5 MB, free: 94.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.945, allocations: 0 / 446.5 MB, free: 94.17 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002171/0.9452, allocations: 66.23 kB / 446.5 MB, free: 94.16 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.0075/0.9527, allocations: 2.326 MB / 448.8 MB, free: 92.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.9528, allocations: 11.44 kB / 448.9 MB, free: 92.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0016/0.9544, allocations: 316.8 kB / 449.2 MB, free: 92.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004976/0.9594, allocations: 1.664 MB / 450.8 MB, free: 91.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-05/0.9595, allocations: 69.47 kB / 450.9 MB, free: 91.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000509/0.9601, allocations: 144.2 kB / 451 MB, free: 91.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005546/0.9656, allocations: 2.066 MB / 453.1 MB, free: 91.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005978/0.9716, allocations: 2.49 MB / 455.6 MB, free: 89.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.19e-05/0.9718, allocations: 7.906 kB / 455.6 MB, free: 89.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002696/0.9721, allocations: 3.688 kB / 455.6 MB, free: 89.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001406/0.9722, allocations: 105.7 kB / 455.7 MB, free: 89.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01957/0.9918, allocations: 8.673 MB / 464.4 MB, free: 84.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002787/0.9946, allocations: 1.653 MB / 466 MB, free: 82.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001565/0.9962, allocations: 0.7701 MB / 466.8 MB, free: 81.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004226/0.9967, allocations: 223.4 kB / 467 MB, free: 81.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.9967, allocations: 43.88 kB / 467.1 MB, free: 81.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=109): time 4.849e-06/0.9967, allocations: 0 / 467.1 MB, free: 81.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=132): time 0.01358/1.01, allocations: 4.901 MB / 472 MB, free: 76.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/1.01, allocations: 64.72 kB / 472 MB, free: 76.24 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002109/1.013, allocations: 1.109 MB / 473.1 MB, free: 75.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002054/1.013, allocations: 25.7 kB / 473.2 MB, free: 75.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006511/1.013, allocations: 1.065 MB / 474.2 MB, free: 74.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004711/1.014, allocations: 441.3 kB / 474.7 MB, free: 73.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/1.014, allocations: 3.938 kB / 474.7 MB, free: 73.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/1.014, allocations: 378.7 kB / 475 MB, free: 73.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001431/1.016, allocations: 0.6911 MB / 475.7 MB, free: 72.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/1.017, allocations: 1.095 MB / 476.8 MB, free: 71.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/1.019, allocations: 0.8807 MB / 477.7 MB, free: 70.35 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/1.019, allocations: 4 kB / 477.7 MB, free: 70.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.006192/1.025, allocations: 2.342 MB / 480 MB, free: 67.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.417e-05/1.025, allocations: 12 kB / 480.1 MB, free: 67.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/1.025, allocations: 12 kB / 480.1 MB, free: 67.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002297/1.028, allocations: 0.5686 MB / 480.6 MB, free: 67.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002577/1.03, allocations: 371.3 kB / 481 MB, free: 67.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01059/1.041, allocations: 6.394 MB / 487.4 MB, free: 60.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002239/1.043, allocations: 87.78 kB / 487.5 MB, free: 60.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002228/1.044, allocations: 68.05 kB / 487.5 MB, free: 60.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {(6,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003663/1.044, allocations: 147 kB / 487.7 MB, free: 60.1 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005109/1.049, allocations: 2.051 MB / 489.7 MB, free: 58.03 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005332/1.05, allocations: 162 kB / 489.9 MB, free: 57.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005628/1.055, allocations: 2.21 MB / 492.1 MB, free: 55.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/1.055, allocations: 12 kB / 492.1 MB, free: 55.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/1.055, allocations: 4 kB / 492.1 MB, free: 55.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.49e-05/1.055, allocations: 11.97 kB / 492.1 MB, free: 55.6 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/1.067, allocations: 4.51 MB / 496.6 MB, free: 51.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.529e-05/1.067, allocations: 4 kB / 496.7 MB, free: 51.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001829/1.069, allocations: 223.7 kB / 496.9 MB, free: 50.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00273/1.072, allocations: 0.6394 MB / 497.5 MB, free: 50.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001802/1.072, allocations: 15.98 kB / 497.5 MB, free: 50.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01229/1.084, allocations: 8.066 MB / 0.4937 GB, free: 41.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/1.084, allocations: 3.938 kB / 0.4937 GB, free: 41.72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007052/1.091, allocations: 3.422 MB / 0.4971 GB, free: 38.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/1.093, allocations: 391 kB / 0.4975 GB, free: 37.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000396/1.093, allocations: 15.98 kB / 0.4975 GB, free: 37.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/1.095, allocations: 75.89 kB / 0.4975 GB, free: 37.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003763/1.095, allocations: 113 kB / 0.4977 GB, free: 37.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/1.095, allocations: 39.98 kB / 0.4977 GB, free: 37.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001554/1.097, allocations: 0.828 MB / 0.4985 GB, free: 36.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.097, allocations: 0 / 0.4985 GB, free: 36.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002473/1.099, allocations: 479.9 kB / 0.499 GB, free: 36.22 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007809/1.107, allocations: 4.938 MB / 0.5038 GB, free: 31.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004913/1.112, allocations: 2.226 MB / 0.506 GB, free: 28.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/1.112, allocations: 3.938 kB / 0.506 GB, free: 28.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003454/1.116, allocations: 1.436 MB / 0.5074 GB, free: 27.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002914/1.118, allocations: 347 kB / 0.5077 GB, free: 27.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0117/1.13, allocations: 4.361 MB / 0.512 GB, free: 22.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002103/1.132, allocations: 1.894 MB / 0.5138 GB, free: 20.74 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001872/1.134, allocations: 0.8897 MB / 0.5147 GB, free: 19.85 MB / 362.7 MB Notification: Performance of SimCode: time 1.553e-06/1.134, allocations: 0 / 0.5147 GB, free: 19.85 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.189/5.323, allocations: 70.75 MB / 0.5838 GB, free: 112.9 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat