Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.977/1.977, allocations: 225.8 MB / 238.8 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.877e-05/2.881e-05, allocations: 4 kB / 292.2 MB, free: 8.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 50.42 MB / 342.7 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5069/0.61, allocations: 131.7 MB / 474.3 MB, free: 11.12 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003284/0.6104, allocations: 97.42 kB / 474.4 MB, free: 11.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8315/1.442, allocations: 124.4 MB / 0.5848 GB, free: 97.35 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.064e-06/1.442, allocations: 0 / 0.5848 GB, free: 97.35 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005501/1.443, allocations: 147.1 kB / 0.585 GB, free: 97.31 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01923/1.462, allocations: 5.133 MB / 0.59 GB, free: 94.91 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/1.462, allocations: 11.75 kB / 0.59 GB, free: 94.91 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00232/1.464, allocations: 0.7343 MB / 0.5907 GB, free: 94.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006902/1.471, allocations: 1.006 MB / 0.5917 GB, free: 94.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.015/1.486, allocations: 4.599 MB / 0.5962 GB, free: 91.86 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003582/1.487, allocations: 403.7 kB / 0.5966 GB, free: 91.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001644/1.488, allocations: 0.5227 MB / 0.5971 GB, free: 91.51 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01769/1.506, allocations: 6.758 MB / 0.6037 GB, free: 87.77 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001982/1.506, allocations: 11.91 kB / 0.6037 GB, free: 87.76 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000847/1.507, allocations: 231.2 kB / 0.6039 GB, free: 87.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002772/1.507, allocations: 246.6 kB / 0.6042 GB, free: 87.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02099/1.528, allocations: 5.351 MB / 0.6094 GB, free: 81.94 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05428/1.583, allocations: 22.54 MB / 0.6314 GB, free: 59.01 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/1.594, allocations: 8.232 MB / 0.6394 GB, free: 49.88 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004933/1.599, allocations: 2.108 MB / 0.6415 GB, free: 47.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01607/1.615, allocations: 6.321 MB / 0.6477 GB, free: 41.39 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/1.615, allocations: 56.56 kB / 0.6477 GB, free: 41.32 MB / 442.7 MB Notification: Performance of pre-optimization done (n=227): time 5.521e-06/1.615, allocations: 0 / 0.6477 GB, free: 41.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=254): time 0.03383/1.649, allocations: 10.08 MB / 0.6576 GB, free: 31.19 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/1.649, allocations: 77.41 kB / 0.6576 GB, free: 31.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005823/1.655, allocations: 2.729 MB / 0.6603 GB, free: 28.37 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005612/1.655, allocations: 73.64 kB / 0.6604 GB, free: 28.29 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002017/1.657, allocations: 2.486 MB / 0.6628 GB, free: 25.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001205/1.659, allocations: 0.8755 MB / 0.6637 GB, free: 24.92 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003457/1.659, allocations: 64 kB / 0.6637 GB, free: 24.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002126/1.659, allocations: 440.8 kB / 0.6641 GB, free: 24.42 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003401/1.663, allocations: 1.322 MB / 0.6654 GB, free: 23.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003978/1.667, allocations: 2.275 MB / 0.6676 GB, free: 20.39 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004177/1.671, allocations: 1.734 MB / 0.6693 GB, free: 18.63 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.863e-05/1.671, allocations: 8 kB / 0.6693 GB, free: 18.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.01224/1.683, allocations: 4.684 MB / 0.6739 GB, free: 13.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.43e-05/1.683, allocations: 16 kB / 0.6739 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.778e-05/1.683, allocations: 36 kB / 0.674 GB, free: 13.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002769/1.686, allocations: 0.7179 MB / 0.6747 GB, free: 13.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005625/1.692, allocations: 0.7566 MB / 0.6754 GB, free: 12.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01369/1.705, allocations: 9.755 MB / 0.6849 GB, free: 2.027 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005313/1.711, allocations: 207.7 kB / 0.6851 GB, free: 1.824 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008031/1.712, allocations: 144 kB / 0.6853 GB, free: 1.684 MB / 442.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 (378): * Single equations (assignments): 372 * 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.0009715/1.713, allocations: 303.9 kB / 0.6856 GB, free: 1.379 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001302/1.714, allocations: 351.6 kB / 0.6859 GB, free: 1.031 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3468/2.061, allocations: 4.214 MB / 0.69 GB, free: 86.78 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.775e-05/2.061, allocations: 23.53 kB / 0.69 GB, free: 86.78 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.623e-05/2.061, allocations: 10.03 kB / 0.69 GB, free: 86.78 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.741e-05/2.061, allocations: 14.92 kB / 0.6901 GB, free: 86.78 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02738/2.088, allocations: 9.194 MB / 0.699 GB, free: 85.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.228e-05/2.089, allocations: 3.969 kB / 0.699 GB, free: 85.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003885/2.092, allocations: 416 kB / 0.6994 GB, free: 85.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004513/2.097, allocations: 0.9552 MB / 0.7004 GB, free: 85.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005458/2.098, allocations: 67.47 kB / 0.7004 GB, free: 85.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02325/2.121, allocations: 15.95 MB / 0.716 GB, free: 76.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/2.121, allocations: 6.438 kB / 0.716 GB, free: 76.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01444/2.135, allocations: 6.37 MB / 0.7222 GB, free: 75.71 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002598/2.138, allocations: 0.7261 MB / 0.723 GB, free: 75.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001175/2.139, allocations: 57.3 kB / 0.723 GB, free: 75.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004145/2.143, allocations: 157.3 kB / 0.7232 GB, free: 75.61 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009933/2.144, allocations: 192 kB / 0.7233 GB, free: 75.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003162/2.145, allocations: 77.8 kB / 0.7234 GB, free: 75.61 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005614/2.15, allocations: 2.058 MB / 0.7254 GB, free: 75.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.102e-06/2.15, allocations: 3.438 kB / 0.7254 GB, free: 75.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006379/2.157, allocations: 1.091 MB / 0.7265 GB, free: 75 MB / 442.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 (197): * Single equations (assignments): 190 * 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.01578/2.173, allocations: 8.394 MB / 0.7347 GB, free: 70.46 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009514/2.182, allocations: 4.047 MB / 0.7386 GB, free: 68.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/2.182, allocations: 0 / 0.7386 GB, free: 68.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006805/2.189, allocations: 2.719 MB / 0.7413 GB, free: 67.24 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006876/2.196, allocations: 0.8695 MB / 0.7421 GB, free: 67.02 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02819/2.224, allocations: 9.6 MB / 0.7515 GB, free: 63.11 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005616/2.23, allocations: 3.529 MB / 0.755 GB, free: 61.82 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004802/2.235, allocations: 0.7994 MB / 0.7557 GB, free: 61.71 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00437/2.239, allocations: 2.091 MB / 0.7578 GB, free: 59.98 MB / 442.7 MB Notification: Performance of SimCode: time 1.233e-06/2.239, allocations: 0 / 0.7578 GB, free: 59.98 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2865/2.526, allocations: 93.1 MB / 0.8487 GB, free: 1.559 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002829/2.526, allocations: 222.7 kB / 0.8489 GB, free: 1.328 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.476/9.002, allocations: 4.062 kB / 0.8489 GB, free: 1.324 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat