Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.959/1.959, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.54e-05/3.563e-05, allocations: 4 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09806/0.09813, allocations: 44.5 MB / 299.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4837/0.5819, allocations: 108.3 MB / 408.2 MB, free: 9.883 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/0.5823, allocations: 86.11 kB / 408.3 MB, free: 9.871 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.245/0.8273, allocations: 58.28 MB / 466.6 MB, free: 2.176 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.8274, allocations: 0 / 466.6 MB, free: 2.176 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003929/0.8278, allocations: 83.88 kB / 466.7 MB, free: 2.094 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.01141/0.8392, allocations: 2.873 MB / 469.5 MB, free: 15.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/0.8393, allocations: 12.03 kB / 469.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001819/0.8411, allocations: 400.9 kB / 469.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002337/0.8435, allocations: 399.6 kB / 470.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008277/0.8518, allocations: 2.184 MB / 472.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003318/0.8522, allocations: 209.7 kB / 472.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001436/0.8537, allocations: 279.9 kB / 473 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01325/0.867, allocations: 3.586 MB / 476.6 MB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001587/0.8672, allocations: 15.89 kB / 476.6 MB, free: 7.879 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006174/0.8678, allocations: 112 kB / 476.7 MB, free: 7.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002216/0.868, allocations: 141.4 kB / 476.8 MB, free: 7.629 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01012/0.8782, allocations: 2.856 MB / 479.7 MB, free: 4.762 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03617/0.9144, allocations: 11.64 MB / 491.3 MB, free: 8.785 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004627/0.9191, allocations: 1.932 MB / 493.3 MB, free: 6.738 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002667/0.9218, allocations: 0.9257 MB / 494.2 MB, free: 5.812 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005686/0.9224, allocations: 219.5 kB / 494.4 MB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.587e-05/0.9225, allocations: 47.88 kB / 494.5 MB, free: 5.508 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 4.268e-06/0.9225, allocations: 4 kB / 494.5 MB, free: 5.504 MB / 378.7 MB Notification: Performance of matching and sorting (n=148): time 0.02511/0.9476, allocations: 6.355 MB / 0.4891 GB, free: 15.09 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.229e-05/0.9477, allocations: 64.72 kB / 0.4891 GB, free: 15.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005778/0.9535, allocations: 1.712 MB / 0.4908 GB, free: 13.27 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005121/0.9541, allocations: 53.7 kB / 0.4909 GB, free: 13.21 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001979/0.9561, allocations: 1.314 MB / 0.4921 GB, free: 11.88 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001223/0.9574, allocations: 0.5083 MB / 0.4926 GB, free: 11.37 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002997/0.9577, allocations: 36 kB / 0.4927 GB, free: 11.33 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003594/0.9581, allocations: 386.8 kB / 0.493 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003491/0.9616, allocations: 0.8513 MB / 0.4939 GB, free: 10.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004535/0.9662, allocations: 1.389 MB / 0.4952 GB, free: 8.465 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004468/0.9707, allocations: 1.094 MB / 0.4963 GB, free: 7.371 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.423e-05/0.9708, allocations: 4 kB / 0.4963 GB, free: 7.367 MB / 394.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.01204/0.9829, allocations: 2.845 MB / 0.4991 GB, free: 4.504 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.615e-05/0.983, allocations: 17.31 kB / 0.4991 GB, free: 4.488 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.152e-05/0.9831, allocations: 20 kB / 0.4991 GB, free: 4.469 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002596/0.9857, allocations: 0.5489 MB / 0.4997 GB, free: 3.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003429/0.9891, allocations: 447.2 kB / 0.5001 GB, free: 3.473 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0129/1.002, allocations: 6.266 MB / 0.5062 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003155/1.005, allocations: 135.7 kB / 0.5063 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005832/1.006, allocations: 83.98 kB / 0.5064 GB, free: 12.71 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (208): * Single equations (assignments): 205 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005642/1.007, allocations: 212.4 kB / 0.5066 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008362/1.007, allocations: 209.4 kB / 0.5068 GB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008571/1.016, allocations: 2.617 MB / 0.5094 GB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.794e-05/1.016, allocations: 16 kB / 0.5094 GB, free: 9.645 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.644e-05/1.016, allocations: 4 kB / 0.5094 GB, free: 9.641 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.132e-05/1.016, allocations: 7.969 kB / 0.5094 GB, free: 9.633 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01893/1.035, allocations: 5.7 MB / 0.515 GB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.428e-05/1.035, allocations: 0 / 0.515 GB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002401/1.038, allocations: 263.7 kB / 0.5152 GB, free: 3.559 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002986/1.041, allocations: 0.5724 MB / 0.5158 GB, free: 2.977 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004078/1.041, allocations: 43.94 kB / 0.5158 GB, free: 2.934 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3442/1.385, allocations: 7.975 MB / 0.5236 GB, free: 96.47 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.275e-05/1.385, allocations: 6.281 kB / 0.5236 GB, free: 96.47 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01609/1.402, allocations: 4.003 MB / 0.5275 GB, free: 95.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002567/1.404, allocations: 485.5 kB / 0.528 GB, free: 95.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009827/1.405, allocations: 34.52 kB / 0.528 GB, free: 95.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003563/1.409, allocations: 94.3 kB / 0.5281 GB, free: 95.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006812/1.41, allocations: 111.3 kB / 0.5282 GB, free: 95.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002579/1.41, allocations: 47.2 kB / 0.5283 GB, free: 95.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00557/1.415, allocations: 1.306 MB / 0.5295 GB, free: 95.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.843e-06/1.415, allocations: 2.938 kB / 0.5295 GB, free: 95.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005533/1.421, allocations: 0.6084 MB / 0.5301 GB, free: 95.65 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 120 * 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 {(5,76.0%) 20,(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.01149/1.433, allocations: 5.567 MB / 0.5356 GB, free: 93.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006302/1.439, allocations: 2.562 MB / 0.5381 GB, free: 93.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/1.439, allocations: 3.719 kB / 0.5381 GB, free: 93.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004213/1.443, allocations: 1.571 MB / 0.5396 GB, free: 93.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004789/1.448, allocations: 497.1 kB / 0.5401 GB, free: 93.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02068/1.469, allocations: 5.398 MB / 0.5453 GB, free: 92 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002712/1.472, allocations: 2.242 MB / 0.5475 GB, free: 91.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002555/1.474, allocations: 1.142 MB / 0.5486 GB, free: 91.25 MB / 410.7 MB Notification: Performance of SimCode: time 1.443e-06/1.474, allocations: 0 / 0.5486 GB, free: 91.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.704/5.179, allocations: 89.68 MB / 0.6362 GB, free: 34.93 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat