Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.635/1.635, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.873e-05/2.891e-05, allocations: 4 kB / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.246, allocations: 38.77 MB / 263.9 MB, free: 9.816 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4636/0.7096, allocations: 112.3 MB / 376.2 MB, free: 50.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.71, allocations: 85.33 kB / 376.3 MB, free: 50.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4162/1.126, allocations: 110.7 MB / 487 MB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.144e-06/1.126, allocations: 0 / 487 MB, free: 11.34 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006242/1.127, allocations: 135.8 kB / 487.1 MB, free: 11.21 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: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.02205/1.149, allocations: 4.748 MB / 491.9 MB, free: 6.391 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/1.149, allocations: 12.03 kB / 491.9 MB, free: 6.379 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00334/1.152, allocations: 0.6749 MB / 492.6 MB, free: 5.695 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005432/1.158, allocations: 0.739 MB / 493.3 MB, free: 4.949 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01359/1.172, allocations: 3.458 MB / 496.8 MB, free: 1.414 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000623/1.172, allocations: 373.8 kB / 497.1 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002368/1.175, allocations: 499.9 kB / 497.6 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0241/1.199, allocations: 6.216 MB / 0.492 GB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003625/1.199, allocations: 7.906 kB / 0.492 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001936/1.201, allocations: 212 kB / 0.4922 GB, free: 9.918 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003985/1.202, allocations: 221.8 kB / 0.4924 GB, free: 9.699 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01843/1.22, allocations: 4.787 MB / 0.4971 GB, free: 4.906 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3174/1.538, allocations: 19.98 MB / 0.5166 GB, free: 45.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007366/1.545, allocations: 3.933 MB / 0.5205 GB, free: 43.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004389/1.549, allocations: 1.732 MB / 0.5222 GB, free: 43.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005773/1.55, allocations: 148.1 kB / 0.5223 GB, free: 43.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.598e-05/1.55, allocations: 60.31 kB / 0.5224 GB, free: 43.13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=215): time 5.691e-06/1.55, allocations: 3.969 kB / 0.5224 GB, free: 43.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=259): time 0.04247/1.593, allocations: 10.84 MB / 0.5329 GB, free: 41.64 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/1.593, allocations: 77.02 kB / 0.533 GB, free: 41.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006155/1.599, allocations: 2.377 MB / 0.5353 GB, free: 41.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006095/1.6, allocations: 65.08 kB / 0.5354 GB, free: 41.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002036/1.602, allocations: 2.232 MB / 0.5376 GB, free: 40.58 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001254/1.603, allocations: 0.8909 MB / 0.5385 GB, free: 40.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003123/1.603, allocations: 67.38 kB / 0.5385 GB, free: 40.08 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000203/1.603, allocations: 425.3 kB / 0.5389 GB, free: 39.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003256/1.607, allocations: 1.343 MB / 0.5402 GB, free: 39.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00399/1.611, allocations: 2.173 MB / 0.5424 GB, free: 38.81 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004201/1.615, allocations: 1.749 MB / 0.5441 GB, free: 38.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.423e-05/1.615, allocations: 10.91 kB / 0.5441 GB, free: 38.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.01331/1.628, allocations: 4.827 MB / 0.5488 GB, free: 38.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.111e-05/1.629, allocations: 17.16 kB / 0.5488 GB, free: 38.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.008e-05/1.629, allocations: 25.72 kB / 0.5488 GB, free: 38.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004099/1.633, allocations: 0.9704 MB / 0.5498 GB, free: 38.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005022/1.638, allocations: 0.6753 MB / 0.5504 GB, free: 38.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01939/1.657, allocations: 12.93 MB / 0.5631 GB, free: 31.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004324/1.662, allocations: 181.9 kB / 0.5632 GB, free: 31.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000728/1.662, allocations: 127.1 kB / 0.5634 GB, free: 31.67 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (339): * Single equations (assignments): 332 * 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: 5 * 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: 5 {(6,72.2%) 22,(1,100.0%) 1,(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007451/1.663, allocations: 293.2 kB / 0.5636 GB, free: 31.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/1.664, allocations: 327.3 kB / 0.564 GB, free: 31.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01174/1.676, allocations: 4.346 MB / 0.5682 GB, free: 29.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.33e-05/1.676, allocations: 24.91 kB / 0.5682 GB, free: 29.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.846e-05/1.676, allocations: 14.5 kB / 0.5682 GB, free: 29.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.832e-05/1.676, allocations: 14.45 kB / 0.5682 GB, free: 29.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02602/1.702, allocations: 9.879 MB / 0.5779 GB, free: 25.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-05/1.702, allocations: 3.875 kB / 0.5779 GB, free: 25.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003371/1.706, allocations: 405.3 kB / 0.5783 GB, free: 25.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004727/1.71, allocations: 1.063 MB / 0.5793 GB, free: 25.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005898/1.711, allocations: 70.81 kB / 0.5794 GB, free: 24.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02362/1.735, allocations: 16.57 MB / 0.5956 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.227e-06/1.735, allocations: 9.469 kB / 0.5956 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01487/1.75, allocations: 6.677 MB / 0.6021 GB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002553/1.752, allocations: 0.6902 MB / 0.6028 GB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001113/1.753, allocations: 62.75 kB / 0.6028 GB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003595/1.757, allocations: 145.7 kB / 0.603 GB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000859/1.758, allocations: 202 kB / 0.6032 GB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000264/1.758, allocations: 76.28 kB / 0.6032 GB, free: 8.297 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004192/1.762, allocations: 1.803 MB / 0.605 GB, free: 7.352 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.62e-07/1.762, allocations: 0 / 0.605 GB, free: 7.352 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005896/1.768, allocations: 1.018 MB / 0.606 GB, free: 6.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.port_n.Phi.re,smrM.stator.port_n.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 191 * 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%) 22,(4,93.8%) 18,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(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.01769/1.786, allocations: 8.868 MB / 0.6147 GB, free: 13.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01242/1.799, allocations: 4.37 MB / 0.6189 GB, free: 9.945 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/1.799, allocations: 0 / 0.6189 GB, free: 9.945 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008929/1.808, allocations: 2.842 MB / 0.6217 GB, free: 7.305 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006768/1.814, allocations: 0.7807 MB / 0.6225 GB, free: 6.703 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03069/1.845, allocations: 9.268 MB / 0.6315 GB, free: 14.56 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006674/1.852, allocations: 3.402 MB / 0.6348 GB, free: 11.97 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004568/1.856, allocations: 0.6985 MB / 0.6355 GB, free: 11.49 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004681/1.861, allocations: 1.907 MB / 0.6374 GB, free: 9.723 MB / 394.7 MB Notification: Performance of SimCode: time 1.553e-06/1.861, allocations: 0 / 0.6374 GB, free: 9.723 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4668/2.328, allocations: 87 MB / 0.7223 GB, free: 69.15 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002036/2.328, allocations: 190.5 kB / 0.7225 GB, free: 68.93 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.817/8.145, allocations: 0 / 0.7225 GB, free: 68.93 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat