Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.613/1.613, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.531e-05/3.55e-05, allocations: 0 / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2778, allocations: 38.77 MB / 263.9 MB, free: 9.773 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1714/0.4492, allocations: 98.67 MB / 362.5 MB, free: 6.949 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003234/0.4496, allocations: 87.94 kB / 362.6 MB, free: 6.863 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.423/0.8726, allocations: 49.3 MB / 411.9 MB, free: 62.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.8727, allocations: 4 kB / 411.9 MB, free: 62.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002316/0.8729, allocations: 59.94 kB / 412 MB, free: 62.69 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 580 * Number of variables: 580 Notification: Performance of Generate backend data structure: time 0.00767/0.8806, allocations: 2.338 MB / 414.3 MB, free: 60.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.8807, allocations: 12.03 kB / 414.3 MB, free: 60.29 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001034/0.8817, allocations: 328.7 kB / 414.6 MB, free: 59.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001348/0.8831, allocations: 317.3 kB / 414.9 MB, free: 59.64 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004416/0.8875, allocations: 1.593 MB / 416.5 MB, free: 57.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.8877, allocations: 168.4 kB / 416.7 MB, free: 57.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005457/0.8883, allocations: 219.9 kB / 416.9 MB, free: 57.61 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006623/0.8949, allocations: 2.789 MB / 419.7 MB, free: 54.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.1e-05/0.895, allocations: 11.91 kB / 419.7 MB, free: 54.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003186/0.8954, allocations: 95.98 kB / 419.8 MB, free: 54.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001376/0.8955, allocations: 104.3 kB / 419.9 MB, free: 54.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005782/0.9013, allocations: 2.168 MB / 422.1 MB, free: 52.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02056/0.9219, allocations: 9.07 MB / 431.2 MB, free: 42.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002997/0.9249, allocations: 1.653 MB / 432.8 MB, free: 41.16 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001726/0.9267, allocations: 0.8036 MB / 433.6 MB, free: 40.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003611/0.9271, allocations: 134 kB / 433.7 MB, free: 40.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.9271, allocations: 47.56 kB / 433.8 MB, free: 40.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=106): time 3.687e-06/0.9271, allocations: 0 / 433.8 MB, free: 40.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=129): time 0.02383/0.951, allocations: 6.332 MB / 440.1 MB, free: 33.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.9511, allocations: 68.72 kB / 440.2 MB, free: 33.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003325/0.9544, allocations: 1.27 MB / 441.5 MB, free: 32.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002732/0.9547, allocations: 45.7 kB / 441.5 MB, free: 32.37 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009191/0.9556, allocations: 1.042 MB / 442.5 MB, free: 31.31 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005808/0.9562, allocations: 449.4 kB / 443 MB, free: 30.87 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/0.9564, allocations: 28 kB / 443 MB, free: 30.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.9566, allocations: 374.8 kB / 443.4 MB, free: 30.46 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002376/0.959, allocations: 0.7107 MB / 444.1 MB, free: 29.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00285/0.9619, allocations: 1.118 MB / 445.2 MB, free: 28.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002969/0.9649, allocations: 0.9144 MB / 446.1 MB, free: 27.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.685e-05/0.9649, allocations: 4 kB / 446.1 MB, free: 27.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.008366/0.9733, allocations: 2.451 MB / 448.6 MB, free: 25.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.187e-05/0.9734, allocations: 13.72 kB / 448.6 MB, free: 25.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.951e-05/0.9734, allocations: 12 kB / 448.6 MB, free: 25.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003287/0.9767, allocations: 0.5842 MB / 449.2 MB, free: 24.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003424/0.9802, allocations: 351.5 kB / 449.5 MB, free: 24.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01564/0.9958, allocations: 6.69 MB / 456.2 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003061/0.9989, allocations: 116 kB / 456.3 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002535/0.9992, allocations: 67.98 kB / 456.4 MB, free: 16.96 MB / 314.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 (167): * Single equations (assignments): 164 * 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.000497/0.9997, allocations: 196.4 kB / 456.6 MB, free: 16.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005314/1, allocations: 173.8 kB / 456.8 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00816/1.008, allocations: 2.317 MB / 459.1 MB, free: 14.26 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.021e-05/1.009, allocations: 12 kB / 459.1 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/1.009, allocations: 8.078 kB / 459.1 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.64e-05/1.009, allocations: 11.97 kB / 459.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01631/1.025, allocations: 4.841 MB / 463.9 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/1.025, allocations: 0 / 463.9 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002347/1.027, allocations: 215.7 kB / 464.2 MB, free: 9.062 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003774/1.031, allocations: 0.6472 MB / 464.8 MB, free: 8.406 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002044/1.031, allocations: 35.98 kB / 464.8 MB, free: 8.371 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01337/1.045, allocations: 8.371 MB / 473.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.175e-05/1.045, allocations: 7.938 kB / 473.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009381/1.054, allocations: 3.507 MB / 476.7 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001416/1.056, allocations: 406.8 kB / 477.1 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000441/1.056, allocations: 31.98 kB / 477.2 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0018/1.058, allocations: 91.91 kB / 477.2 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004/1.058, allocations: 116.7 kB / 477.4 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/1.059, allocations: 39.98 kB / 477.4 MB, free: 11.24 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002369/1.061, allocations: 0.9672 MB / 478.4 MB, free: 10.28 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.061, allocations: 0 / 478.4 MB, free: 10.28 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003062/1.064, allocations: 0.539 MB / 478.9 MB, free: 9.738 MB / 330.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 (101): * Single equations (assignments): 98 * 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.01031/1.074, allocations: 5.063 MB / 484 MB, free: 4.578 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006202/1.081, allocations: 2.256 MB / 486.2 MB, free: 2.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/1.081, allocations: 0 / 486.2 MB, free: 2.27 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004272/1.085, allocations: 1.447 MB / 487.7 MB, free: 0.7969 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003458/1.088, allocations: 413 kB / 488.1 MB, free: 400 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01305/1.101, allocations: 4.446 MB / 492.5 MB, free: 11.85 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00247/1.104, allocations: 1.894 MB / 494.4 MB, free: 9.926 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002802/1.107, allocations: 0.8742 MB / 495.3 MB, free: 9.051 MB / 346.7 MB Notification: Performance of SimCode: time 2.044e-06/1.107, allocations: 4 kB / 495.3 MB, free: 9.047 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.889/4.996, allocations: 71.33 MB / 0.5533 GB, free: 54.17 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat