Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.982/1.982, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.364e-05/3.384e-05, allocations: 7.984 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3467, allocations: 44.49 MB / 294.2 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2113/0.5581, allocations: 123.8 MB / 418 MB, free: 5.938 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/0.5585, allocations: 83.95 kB / 418.1 MB, free: 5.855 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6955/1.254, allocations: 122 MB / 0.5274 GB, free: 11.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.254, allocations: 0 / 0.5274 GB, free: 11.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005747/1.255, allocations: 143.8 kB / 0.5276 GB, free: 11.8 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.01993/1.275, allocations: 5.071 MB / 0.5325 GB, free: 6.664 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/1.275, allocations: 12.02 kB / 0.5325 GB, free: 6.652 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007428/1.282, allocations: 0.9999 MB / 0.5335 GB, free: 5.645 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01531/1.297, allocations: 4.565 MB / 0.538 GB, free: 1.004 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003238/1.298, allocations: 172 kB / 0.5381 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001875/1.3, allocations: 323.9 kB / 0.5384 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01714/1.317, allocations: 5.059 MB / 0.5434 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02218/1.339, allocations: 6.028 MB / 0.5493 GB, free: 5.219 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000242/1.339, allocations: 7.906 kB / 0.5493 GB, free: 5.211 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00113/1.341, allocations: 4 kB / 0.5493 GB, free: 5.207 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000391/1.341, allocations: 250.6 kB / 0.5495 GB, free: 4.961 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3395/1.68, allocations: 21.39 MB / 0.5704 GB, free: 40.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01103/1.692, allocations: 8.147 MB / 0.5784 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004939/1.697, allocations: 2.015 MB / 0.5803 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0182/1.715, allocations: 6.103 MB / 0.5863 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.969e-05/1.715, allocations: 61.19 kB / 0.5863 GB, free: 33.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=228): time 5.079e-06/1.715, allocations: 0 / 0.5863 GB, free: 33.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=255): time 0.02684/1.742, allocations: 8.635 MB / 0.5948 GB, free: 32.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/1.742, allocations: 79.3 kB / 0.5949 GB, free: 32.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005121/1.747, allocations: 2.188 MB / 0.597 GB, free: 31.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005456/1.748, allocations: 27.92 kB / 0.597 GB, free: 31.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001972/1.75, allocations: 2.481 MB / 0.5994 GB, free: 31.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001153/1.751, allocations: 0.8383 MB / 0.6003 GB, free: 30.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002953/1.751, allocations: 0 / 0.6003 GB, free: 30.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002155/1.751, allocations: 435.3 kB / 0.6007 GB, free: 30.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002875/1.754, allocations: 1.259 MB / 0.6019 GB, free: 30.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003782/1.758, allocations: 2.205 MB / 0.6041 GB, free: 29.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004858/1.763, allocations: 1.825 MB / 0.6058 GB, free: 29.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.606e-05/1.763, allocations: 7.594 kB / 0.6058 GB, free: 29.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.01237/1.775, allocations: 4.537 MB / 0.6103 GB, free: 28.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.834e-05/1.776, allocations: 17.94 kB / 0.6103 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-05/1.776, allocations: 30.78 kB / 0.6103 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002762/1.778, allocations: 0.7117 MB / 0.611 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005628/1.784, allocations: 0.7535 MB / 0.6118 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01329/1.797, allocations: 9.342 MB / 0.6209 GB, free: 21.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004451/1.802, allocations: 127.6 kB / 0.621 GB, free: 21.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008029/1.803, allocations: 142.6 kB / 0.6211 GB, free: 21.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (379): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007244/1.803, allocations: 202.5 kB / 0.6213 GB, free: 21.68 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01038/1.814, allocations: 3.82 MB / 0.6251 GB, free: 20.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001345/1.815, allocations: 317.8 kB / 0.6254 GB, free: 19.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01183/1.827, allocations: 4.101 MB / 0.6294 GB, free: 18.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.733e-05/1.827, allocations: 22.41 kB / 0.6294 GB, free: 18.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.328e-05/1.827, allocations: 10 kB / 0.6294 GB, free: 18.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.226e-05/1.827, allocations: 13.64 kB / 0.6294 GB, free: 18.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02307/1.85, allocations: 8.419 MB / 0.6376 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-05/1.85, allocations: 3.625 kB / 0.6376 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003588/1.854, allocations: 418.4 kB / 0.638 GB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004196/1.858, allocations: 0.9411 MB / 0.639 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005319/1.859, allocations: 34.61 kB / 0.639 GB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02084/1.88, allocations: 15.33 MB / 0.654 GB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.057e-05/1.88, allocations: 7.922 kB / 0.654 GB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01644/1.896, allocations: 6.287 MB / 0.6601 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002773/1.899, allocations: 0.6696 MB / 0.6608 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001209/1.9, allocations: 19.19 kB / 0.6608 GB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003575/1.904, allocations: 117.3 kB / 0.6609 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008669/1.905, allocations: 196 kB / 0.6611 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002908/1.905, allocations: 75.22 kB / 0.6612 GB, free: 12.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00443/1.91, allocations: 1.609 MB / 0.6627 GB, free: 11.15 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.02e-07/1.91, allocations: 2.281 kB / 0.6627 GB, free: 11.15 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006225/1.916, allocations: 0.9455 MB / 0.6636 GB, free: 10.21 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 189 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01841/1.934, allocations: 8.132 MB / 0.6716 GB, free: 2.688 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01018/1.944, allocations: 3.942 MB / 0.6754 GB, free: 15.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.358e-05/1.945, allocations: 3.938 kB / 0.6754 GB, free: 15.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007472/1.952, allocations: 2.678 MB / 0.6781 GB, free: 12.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006372/1.958, allocations: 0.6807 MB / 0.6787 GB, free: 11.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03115/1.99, allocations: 9.284 MB / 0.6878 GB, free: 3.875 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006931/1.997, allocations: 3.508 MB / 0.6912 GB, free: 1.227 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005092/2.002, allocations: 0.7707 MB / 0.692 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01018/2.012, allocations: 2.334 MB / 0.6942 GB, free: 15.85 MB / 426.7 MB Notification: Performance of SimCode: time 1.523e-06/2.012, allocations: 4 kB / 0.6943 GB, free: 15.85 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5143/2.526, allocations: 78.43 MB / 0.7708 GB, free: 74.39 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002378/2.527, allocations: 172.3 kB / 0.771 GB, free: 74.21 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.699/8.226, allocations: 0.75 kB / 0.771 GB, free: 74.21 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat