Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.013/2.013, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.635e-05/2.645e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.2998, allocations: 44.5 MB / 294.2 MB, free: 14.15 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1772/0.477, allocations: 100.2 MB / 394.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003187/0.4774, allocations: 79.95 kB / 394.5 MB, free: 13.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4451/0.9225, allocations: 45.29 MB / 439.8 MB, free: 92.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.9225, allocations: 0 / 439.8 MB, free: 92.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000251/0.9228, allocations: 62.75 kB / 439.8 MB, free: 92.95 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: 550 * Number of variables: 550 Notification: Performance of Generate backend data structure: time 0.008053/0.9309, allocations: 2.229 MB / 442.1 MB, free: 91.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.9309, allocations: 9.438 kB / 442.1 MB, free: 91.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001759/0.9327, allocations: 292.6 kB / 442.4 MB, free: 91.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005154/0.9379, allocations: 1.577 MB / 443.9 MB, free: 91.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001326/0.9381, allocations: 71.5 kB / 444 MB, free: 91.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008361/0.9389, allocations: 136.9 kB / 444.1 MB, free: 91.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006347/0.9453, allocations: 1.997 MB / 446.1 MB, free: 91.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007197/0.9526, allocations: 2.395 MB / 448.5 MB, free: 90.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001004/0.9527, allocations: 0 / 448.5 MB, free: 90.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002732/0.953, allocations: 3.938 kB / 448.5 MB, free: 90.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001331/0.9531, allocations: 95.17 kB / 448.6 MB, free: 90.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02042/0.9736, allocations: 8.176 MB / 456.8 MB, free: 85.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003299/0.9769, allocations: 1.638 MB / 458.4 MB, free: 84.87 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00167/0.9787, allocations: 0.7601 MB / 459.2 MB, free: 84.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004579/0.9791, allocations: 217.9 kB / 459.4 MB, free: 84.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.9792, allocations: 41.91 kB / 459.5 MB, free: 84.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=105): time 4.669e-06/0.9792, allocations: 0 / 459.5 MB, free: 84.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=126): time 0.01357/0.9928, allocations: 4.744 MB / 464.2 MB, free: 82.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.9929, allocations: 64.78 kB / 464.3 MB, free: 82.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001985/0.9949, allocations: 1.021 MB / 465.3 MB, free: 81.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000307/0.9952, allocations: 25.7 kB / 465.3 MB, free: 81.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006291/0.9959, allocations: 0.9951 MB / 466.3 MB, free: 80.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004938/0.9964, allocations: 424.9 kB / 466.7 MB, free: 79.99 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.9965, allocations: 4 kB / 466.7 MB, free: 79.99 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.9966, allocations: 374.1 kB / 467.1 MB, free: 79.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001357/0.998, allocations: 0.6709 MB / 467.8 MB, free: 79.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001535/0.9995, allocations: 1.035 MB / 468.8 MB, free: 77.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/1.001, allocations: 0.8416 MB / 469.6 MB, free: 77.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.177e-05/1.001, allocations: 6.812 kB / 469.6 MB, free: 77.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.005439/1.007, allocations: 2.252 MB / 471.9 MB, free: 75.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/1.007, allocations: 8 kB / 471.9 MB, free: 75.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.342e-05/1.007, allocations: 12 kB / 471.9 MB, free: 75.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002261/1.009, allocations: 0.5727 MB / 472.5 MB, free: 74.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002429/1.012, allocations: 341.7 kB / 472.8 MB, free: 74.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009739/1.021, allocations: 6.061 MB / 478.9 MB, free: 68.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002033/1.023, allocations: 87.78 kB / 479 MB, free: 68.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000181/1.024, allocations: 60.06 kB / 479 MB, free: 68.08 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 155 * 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%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003508/1.024, allocations: 144.3 kB / 479.2 MB, free: 67.93 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004968/1.029, allocations: 2 MB / 481.2 MB, free: 65.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006203/1.03, allocations: 146.2 kB / 481.3 MB, free: 65.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005541/1.035, allocations: 2.166 MB / 483.5 MB, free: 63.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.898e-05/1.035, allocations: 12 kB / 483.5 MB, free: 63.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/1.035, allocations: 8 kB / 483.5 MB, free: 63.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-05/1.035, allocations: 3.984 kB / 483.5 MB, free: 63.56 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/1.047, allocations: 4.318 MB / 487.8 MB, free: 59.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/1.047, allocations: 4.031 kB / 487.8 MB, free: 59.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001799/1.048, allocations: 211.7 kB / 488 MB, free: 58.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002768/1.051, allocations: 0.6273 MB / 488.7 MB, free: 58.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002529/1.052, allocations: 15.98 kB / 488.7 MB, free: 58.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01195/1.064, allocations: 7.745 MB / 496.4 MB, free: 50.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/1.064, allocations: 3.938 kB / 496.4 MB, free: 50.24 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00726/1.071, allocations: 3.29 MB / 499.7 MB, free: 46.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/1.072, allocations: 383.2 kB / 0.4884 GB, free: 46.46 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005497/1.073, allocations: 4 kB / 0.4884 GB, free: 46.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00182/1.075, allocations: 74.83 kB / 0.4884 GB, free: 46.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005261/1.075, allocations: 113 kB / 0.4885 GB, free: 46.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001378/1.075, allocations: 39.98 kB / 0.4886 GB, free: 46.24 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001649/1.077, allocations: 0.7582 MB / 0.4893 GB, free: 45.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.62e-07/1.077, allocations: 0 / 0.4893 GB, free: 45.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002626/1.08, allocations: 459.9 kB / 0.4898 GB, free: 45.03 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 95 * 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%) 22,(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.007967/1.088, allocations: 4.644 MB / 0.4943 GB, free: 40.31 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005178/1.093, allocations: 2.156 MB / 0.4964 GB, free: 38.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/1.093, allocations: 3.938 kB / 0.4964 GB, free: 38.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003801/1.097, allocations: 1.42 MB / 0.4978 GB, free: 36.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002842/1.1, allocations: 288.1 kB / 0.4981 GB, free: 36.38 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/1.112, allocations: 4.157 MB / 0.5021 GB, free: 32.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002169/1.114, allocations: 1.838 MB / 0.5039 GB, free: 30.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001902/1.116, allocations: 0.8175 MB / 0.5047 GB, free: 29.49 MB / 362.7 MB Notification: Performance of SimCode: time 1.844e-06/1.116, allocations: 4 kB / 0.5047 GB, free: 29.49 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.867/4.983, allocations: 66.11 MB / 0.5693 GB, free: 111.1 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.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat