Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.68/1.68, allocations: 171.2 MB / 183.8 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.962e-05/2.959e-05, allocations: 4 kB / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2517, allocations: 38.77 MB / 263.9 MB, free: 9.75 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1669/0.4186, allocations: 95.76 MB / 359.6 MB, free: 9.832 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003246/0.4189, allocations: 83.95 kB / 359.7 MB, free: 9.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.396/0.8149, allocations: 45.49 MB / 405.2 MB, free: 68.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.815, allocations: 0 / 405.2 MB, free: 68.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003619/0.8153, allocations: 63.88 kB / 405.3 MB, free: 68.91 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: 552 * Number of variables: 552 Notification: Performance of Generate backend data structure: time 0.008933/0.8243, allocations: 2.224 MB / 407.5 MB, free: 66.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.8244, allocations: 16.03 kB / 407.5 MB, free: 66.61 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007969/0.8252, allocations: 312 kB / 407.8 MB, free: 66.3 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001154/0.8263, allocations: 292.8 kB / 408.1 MB, free: 66.01 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006078/0.8324, allocations: 1.491 MB / 409.6 MB, free: 64.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002936/0.8328, allocations: 152.2 kB / 409.7 MB, free: 64.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001217/0.834, allocations: 223.8 kB / 409.9 MB, free: 64.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009627/0.8437, allocations: 2.679 MB / 412.6 MB, free: 61.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.82e-05/0.8438, allocations: 7.984 kB / 412.6 MB, free: 61.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003137/0.8441, allocations: 88 kB / 412.7 MB, free: 61.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/0.8443, allocations: 96.17 kB / 412.8 MB, free: 61.08 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005637/0.8499, allocations: 2.097 MB / 414.9 MB, free: 58.97 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02005/0.87, allocations: 8.546 MB / 423.5 MB, free: 50.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003144/0.8732, allocations: 1.648 MB / 425.1 MB, free: 48.41 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001714/0.875, allocations: 0.7771 MB / 425.9 MB, free: 47.63 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003647/0.8754, allocations: 134 kB / 426 MB, free: 47.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.8754, allocations: 51.55 kB / 426.1 MB, free: 47.42 MB / 314.7 MB Notification: Performance of pre-optimization done (n=102): time 3.717e-06/0.8754, allocations: 0 / 426.1 MB, free: 47.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=123): time 0.02097/0.8964, allocations: 5.899 MB / 432 MB, free: 41.47 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.8965, allocations: 64.41 kB / 432 MB, free: 41.39 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002308/0.8988, allocations: 1.17 MB / 433.2 MB, free: 40.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000265/0.8991, allocations: 49.64 kB / 433.2 MB, free: 40.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006064/0.8997, allocations: 0.9759 MB / 434.2 MB, free: 39.17 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000446/0.9002, allocations: 437.7 kB / 434.6 MB, free: 38.74 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.9003, allocations: 24 kB / 434.7 MB, free: 38.71 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.9004, allocations: 374.8 kB / 435 MB, free: 38.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001503/0.9019, allocations: 0.6873 MB / 435.7 MB, free: 37.65 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00169/0.9036, allocations: 1.053 MB / 436.8 MB, free: 36.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001793/0.9055, allocations: 0.8715 MB / 437.6 MB, free: 35.57 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/0.9055, allocations: 7.938 kB / 437.7 MB, free: 35.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.005772/0.9113, allocations: 2.358 MB / 440 MB, free: 33.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/0.9113, allocations: 11.98 kB / 440 MB, free: 33.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.297e-05/0.9114, allocations: 12 kB / 440 MB, free: 33.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002297/0.9137, allocations: 0.5764 MB / 440.6 MB, free: 32.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002401/0.9161, allocations: 331.5 kB / 440.9 MB, free: 32.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/0.9265, allocations: 6.312 MB / 447.2 MB, free: 25.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002091/0.9286, allocations: 111.9 kB / 447.4 MB, free: 25.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001911/0.9288, allocations: 60 kB / 447.4 MB, free: 25.51 MB / 314.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 (155): * Single equations (assignments): 152 * 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.0003678/0.9292, allocations: 186.1 kB / 447.6 MB, free: 25.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003558/0.9296, allocations: 162 kB / 447.8 MB, free: 25.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005703/0.9353, allocations: 2.26 MB / 450 MB, free: 22.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.667e-05/0.9353, allocations: 12 kB / 450 MB, free: 22.86 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.9353, allocations: 11.95 kB / 450 MB, free: 22.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.918e-05/0.9354, allocations: 7.969 kB / 450 MB, free: 22.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/0.9468, allocations: 4.637 MB / 454.7 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.9469, allocations: 4 kB / 454.7 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001663/0.9485, allocations: 212 kB / 454.9 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002733/0.9513, allocations: 0.6191 MB / 455.5 MB, free: 17.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001769/0.9515, allocations: 35.98 kB / 455.5 MB, free: 17.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0122/0.9637, allocations: 8.049 MB / 463.6 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.9637, allocations: 8.25 kB / 463.6 MB, free: 8.777 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007273/0.971, allocations: 3.368 MB / 467 MB, free: 5.281 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/0.9722, allocations: 391 kB / 467.4 MB, free: 4.879 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003304/0.9725, allocations: 31.98 kB / 467.4 MB, free: 4.848 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001973/0.9745, allocations: 91.91 kB / 467.5 MB, free: 4.758 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004378/0.975, allocations: 100.8 kB / 467.6 MB, free: 4.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001696/0.9752, allocations: 43.98 kB / 467.6 MB, free: 4.617 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002394/0.9776, allocations: 0.8929 MB / 468.5 MB, free: 3.723 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.9776, allocations: 0 / 468.5 MB, free: 3.723 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00332/0.9809, allocations: 0.5078 MB / 469 MB, free: 3.215 MB / 314.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 (96): * Single equations (assignments): 93 * 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.01281/0.9938, allocations: 4.735 MB / 473.8 MB, free: 14.38 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.008359/1.002, allocations: 2.186 MB / 475.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/1.002, allocations: 3.938 kB / 475.9 MB, free: 12.15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005882/1.008, allocations: 1.422 MB / 477.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003886/1.012, allocations: 371.8 kB / 477.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01698/1.029, allocations: 4.234 MB / 482 MB, free: 6.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003324/1.032, allocations: 1.831 MB / 483.8 MB, free: 4.156 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002633/1.035, allocations: 0.8039 MB / 484.6 MB, free: 3.352 MB / 330.7 MB Notification: Performance of SimCode: time 1.423e-06/1.035, allocations: 0 / 484.6 MB, free: 3.352 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.701/4.737, allocations: 66.72 MB / 0.5384 GB, free: 69.15 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.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat