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.671/1.671, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 1.852e-05/1.828e-05, allocations: 0 / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2693, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1834/0.4527, allocations: 95.09 MB / 353.4 MB, free: 14.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/0.453, allocations: 83.95 kB / 353.5 MB, free: 14.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3865/0.8395, allocations: 44.89 MB / 398.4 MB, free: 76.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.8396, allocations: 0 / 398.4 MB, free: 76.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002108/0.8398, allocations: 59.94 kB / 398.4 MB, free: 76.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.007412/0.8472, allocations: 2.236 MB / 400.7 MB, free: 74.62 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.8473, allocations: 8.031 kB / 400.7 MB, free: 74.61 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001462/0.8488, allocations: 296.8 kB / 401 MB, free: 74.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004227/0.853, allocations: 1.49 MB / 402.5 MB, free: 72.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.8532, allocations: 72 kB / 402.5 MB, free: 72.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006204/0.8538, allocations: 131.9 kB / 402.7 MB, free: 72.6 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005665/0.8595, allocations: 1.996 MB / 404.7 MB, free: 70.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006452/0.866, allocations: 2.41 MB / 407.1 MB, free: 68.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-05/0.8661, allocations: 4 kB / 407.1 MB, free: 68.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002661/0.8664, allocations: 0 / 407.1 MB, free: 68.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/0.8665, allocations: 96.17 kB / 407.2 MB, free: 67.95 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0193/0.8858, allocations: 8.134 MB / 415.3 MB, free: 59.65 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003047/0.8889, allocations: 1.635 MB / 416.9 MB, free: 57.9 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001643/0.8906, allocations: 0.748 MB / 417.7 MB, free: 57.15 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003975/0.891, allocations: 138.3 kB / 417.8 MB, free: 57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.8911, allocations: 43.88 kB / 417.9 MB, free: 56.95 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 4.058e-06/0.8911, allocations: 0 / 417.9 MB, free: 56.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.01326/0.9044, allocations: 4.724 MB / 422.6 MB, free: 52.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.068e-05/0.9044, allocations: 68.66 kB / 422.7 MB, free: 52.1 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001817/0.9063, allocations: 0.9654 MB / 423.6 MB, free: 51.12 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002846/0.9066, allocations: 25.7 kB / 423.6 MB, free: 51.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006586/0.9072, allocations: 0.9912 MB / 424.6 MB, free: 50.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004478/0.9077, allocations: 421.7 kB / 425.1 MB, free: 49.67 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.9078, allocations: 0 / 425.1 MB, free: 49.67 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.908, allocations: 370.8 kB / 425.4 MB, free: 49.3 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001347/0.9093, allocations: 0.6716 MB / 426.1 MB, free: 48.63 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.9108, allocations: 1.03 MB / 427.1 MB, free: 47.44 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.9125, allocations: 0.8416 MB / 428 MB, free: 46.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-06/0.9126, allocations: 4 kB / 428 MB, free: 46.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.005332/0.9179, allocations: 2.252 MB / 430.2 MB, free: 44.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.918, allocations: 15.95 kB / 430.2 MB, free: 44.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.367e-05/0.918, allocations: 16 kB / 430.2 MB, free: 44.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002257/0.9203, allocations: 0.5687 MB / 430.8 MB, free: 43.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002392/0.9227, allocations: 335.5 kB / 431.1 MB, free: 43.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009779/0.9325, allocations: 6.057 MB / 437.2 MB, free: 37.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001955/0.9345, allocations: 87.78 kB / 437.3 MB, free: 37.01 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002265/0.9348, allocations: 56.06 kB / 437.3 MB, free: 36.95 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 (157): * Single equations (assignments): 154 * 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.0003641/0.9351, allocations: 138 kB / 437.5 MB, free: 36.81 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004951/0.9401, allocations: 1.996 MB / 439.5 MB, free: 34.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005606/0.9407, allocations: 146.2 kB / 439.6 MB, free: 34.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005378/0.9461, allocations: 2.15 MB / 441.8 MB, free: 32.49 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.9461, allocations: 12 kB / 441.8 MB, free: 32.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.9462, allocations: 11.98 kB / 441.8 MB, free: 32.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-05/0.9462, allocations: 11.92 kB / 441.8 MB, free: 32.45 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01077/0.957, allocations: 4.284 MB / 446.1 MB, free: 28.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/0.957, allocations: 4.281 kB / 446.1 MB, free: 28.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001658/0.9587, allocations: 211.7 kB / 446.3 MB, free: 27.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002678/0.9614, allocations: 0.6191 MB / 446.9 MB, free: 27.26 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001745/0.9616, allocations: 15.98 kB / 446.9 MB, free: 27.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01146/0.9731, allocations: 7.726 MB / 454.7 MB, free: 19.17 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/0.9731, allocations: 7.938 kB / 454.7 MB, free: 19.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006829/0.98, allocations: 3.274 MB / 457.9 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.9811, allocations: 367.2 kB / 458.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003797/0.9815, allocations: 11.94 kB / 458.3 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001506/0.983, allocations: 75.89 kB / 458.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003751/0.9834, allocations: 109 kB / 458.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.9836, allocations: 39.98 kB / 458.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001371/0.985, allocations: 0.7229 MB / 459.2 MB, free: 14.47 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.985, allocations: 0 / 459.2 MB, free: 14.47 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002313/0.9873, allocations: 451.9 kB / 459.7 MB, free: 14.03 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 (97): * Single equations (assignments): 94 * 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,75.0%) 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.007585/0.9949, allocations: 4.617 MB / 464.3 MB, free: 9.324 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004876/0.9998, allocations: 2.165 MB / 466.5 MB, free: 7.121 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/0.9999, allocations: 0 / 466.5 MB, free: 7.121 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003493/1.003, allocations: 1.412 MB / 467.9 MB, free: 5.684 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002529/1.006, allocations: 280.5 kB / 468.2 MB, free: 5.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01052/1.017, allocations: 4.129 MB / 472.3 MB, free: 1.195 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002026/1.019, allocations: 1.823 MB / 474.1 MB, free: 15.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/1.021, allocations: 0.8156 MB / 474.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of SimCode: time 1.383e-06/1.021, allocations: 0 / 474.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.777/4.798, allocations: 65.37 MB / 0.5276 GB, free: 87.52 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