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.773/1.773, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.561e-05/3.582e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2605, allocations: 38.77 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.174/0.4346, allocations: 98.66 MB / 362.5 MB, free: 7.055 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003534/0.435, allocations: 87.94 kB / 362.6 MB, free: 6.969 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4339/0.8689, allocations: 49.3 MB / 411.9 MB, free: 62.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.8689, allocations: 3.938 kB / 411.9 MB, free: 62.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002647/0.8692, allocations: 63.92 kB / 411.9 MB, free: 62.89 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.00811/0.8773, allocations: 2.338 MB / 414.3 MB, free: 60.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.8774, allocations: 12.03 kB / 414.3 MB, free: 60.48 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001153/0.8786, allocations: 320.7 kB / 414.6 MB, free: 60.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001828/0.8804, allocations: 321.3 kB / 414.9 MB, free: 59.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005004/0.8855, allocations: 1.593 MB / 416.5 MB, free: 58.19 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002159/0.8858, allocations: 164.4 kB / 416.7 MB, free: 58.03 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000918/0.8867, allocations: 223.9 kB / 416.9 MB, free: 57.81 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008517/0.8952, allocations: 2.819 MB / 419.7 MB, free: 54.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001218/0.8954, allocations: 7.906 kB / 419.7 MB, free: 54.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004421/0.8958, allocations: 96 kB / 419.8 MB, free: 54.74 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001418/0.896, allocations: 104.3 kB / 419.9 MB, free: 54.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007051/0.9031, allocations: 2.2 MB / 422.1 MB, free: 52.42 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02392/0.927, allocations: 9.058 MB / 431.2 MB, free: 43.08 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003342/0.9304, allocations: 1.68 MB / 432.8 MB, free: 41.28 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002019/0.9325, allocations: 0.7997 MB / 433.6 MB, free: 40.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004279/0.933, allocations: 142 kB / 433.8 MB, free: 40.33 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.933, allocations: 43.56 kB / 433.8 MB, free: 40.28 MB / 314.7 MB Notification: Performance of pre-optimization done (n=106): time 3.416e-06/0.933, allocations: 0 / 433.8 MB, free: 40.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=129): time 0.02443/0.9575, allocations: 6.332 MB / 440.2 MB, free: 33.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.9575, allocations: 64.72 kB / 440.2 MB, free: 33.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002885/0.9604, allocations: 1.266 MB / 441.5 MB, free: 32.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00032/0.9608, allocations: 45.7 kB / 441.5 MB, free: 32.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007549/0.9616, allocations: 1.038 MB / 442.6 MB, free: 31.44 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005977/0.9622, allocations: 453.5 kB / 443 MB, free: 30.99 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.9624, allocations: 32 kB / 443 MB, free: 30.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.9625, allocations: 374.8 kB / 443.4 MB, free: 30.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001814/0.9643, allocations: 0.7068 MB / 444.1 MB, free: 29.88 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002093/0.9665, allocations: 1.134 MB / 445.3 MB, free: 28.56 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002223/0.9687, allocations: 0.9105 MB / 446.2 MB, free: 27.65 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/0.9688, allocations: 4 kB / 446.2 MB, free: 27.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.00667/0.9755, allocations: 2.482 MB / 448.7 MB, free: 25.15 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.818e-05/0.9756, allocations: 12 kB / 448.7 MB, free: 25.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.702e-05/0.9756, allocations: 12 kB / 448.7 MB, free: 25.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002457/0.9781, allocations: 0.5842 MB / 449.3 MB, free: 24.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002607/0.9807, allocations: 355.5 kB / 449.6 MB, free: 24.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01174/0.9925, allocations: 6.702 MB / 456.3 MB, free: 17.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002334/0.9949, allocations: 111.9 kB / 456.4 MB, free: 17.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003688/0.9953, allocations: 71.92 kB / 456.5 MB, free: 17.03 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.0004056/0.9957, allocations: 192.5 kB / 456.7 MB, free: 16.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005338/0.9963, allocations: 173.8 kB / 456.8 MB, free: 16.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006247/1.003, allocations: 2.313 MB / 459.2 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.969e-05/1.003, allocations: 15.94 kB / 459.2 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/1.003, allocations: 11.95 kB / 459.2 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-05/1.003, allocations: 7.969 kB / 459.2 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01318/1.016, allocations: 4.845 MB / 464 MB, free: 9.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.081e-05/1.016, allocations: 0 / 464 MB, free: 9.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001837/1.018, allocations: 215.7 kB / 464.2 MB, free: 9.129 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002946/1.021, allocations: 0.6475 MB / 464.9 MB, free: 8.473 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002874/1.021, allocations: 31.98 kB / 464.9 MB, free: 8.441 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01369/1.035, allocations: 8.383 MB / 473.3 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.127e-06/1.035, allocations: 4 kB / 473.3 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009711/1.045, allocations: 3.515 MB / 476.8 MB, free: 11.99 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001555/1.046, allocations: 402.9 kB / 477.2 MB, free: 11.57 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005828/1.047, allocations: 35.98 kB / 477.3 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002059/1.049, allocations: 91.91 kB / 477.3 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005291/1.049, allocations: 108.7 kB / 477.5 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001618/1.05, allocations: 39.98 kB / 477.5 MB, free: 11.3 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002636/1.052, allocations: 0.9672 MB / 478.5 MB, free: 10.34 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.052, allocations: 0 / 478.5 MB, free: 10.34 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003207/1.056, allocations: 0.5429 MB / 479 MB, free: 9.797 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.01159/1.067, allocations: 5.047 MB / 484.1 MB, free: 4.641 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006851/1.074, allocations: 2.301 MB / 486.4 MB, free: 2.285 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/1.074, allocations: 1 kB / 486.4 MB, free: 2.285 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004788/1.079, allocations: 1.489 MB / 487.8 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003705/1.083, allocations: 431.7 kB / 488.3 MB, free: 340 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/1.097, allocations: 4.448 MB / 492.7 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003231/1.1, allocations: 1.894 MB / 494.6 MB, free: 9.859 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002392/1.103, allocations: 0.8781 MB / 495.5 MB, free: 8.98 MB / 346.7 MB Notification: Performance of SimCode: time 1.753e-06/1.103, allocations: 0 / 495.5 MB, free: 8.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.091/5.194, allocations: 71.53 MB / 0.5537 GB, free: 53.96 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