Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.973/1.973, allocations: 205.8 MB / 218.9 MB, free: 9.336 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.362e-05/3.375e-05, allocations: 4 kB / 269.5 MB, free: 6.309 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1015, allocations: 47.57 MB / 317 MB, free: 6.652 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4828/0.5843, allocations: 125 MB / 442.1 MB, free: 11.4 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003226/0.5847, allocations: 86.39 kB / 442.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8983/1.483, allocations: 115.9 MB / 0.545 GB, free: 86.41 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.867e-06/1.483, allocations: 0 / 0.545 GB, free: 86.41 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007718/1.484, allocations: 132.6 kB / 0.5451 GB, free: 86.39 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02197/1.506, allocations: 4.895 MB / 0.5499 GB, free: 84.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/1.506, allocations: 7.719 kB / 0.5499 GB, free: 84.54 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003073/1.509, allocations: 0.7046 MB / 0.5506 GB, free: 84.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007582/1.517, allocations: 0.9503 MB / 0.5515 GB, free: 84.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0169/1.534, allocations: 4.399 MB / 0.5558 GB, free: 83.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005577/1.534, allocations: 382.5 kB / 0.5562 GB, free: 83.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002499/1.537, allocations: 0.5071 MB / 0.5567 GB, free: 83.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02356/1.56, allocations: 6.5 MB / 0.563 GB, free: 82.75 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000313/1.561, allocations: 13.47 kB / 0.563 GB, free: 82.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001883/1.563, allocations: 217.1 kB / 0.5632 GB, free: 82.74 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003126/1.563, allocations: 236.8 kB / 0.5635 GB, free: 82.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01776/1.581, allocations: 5.173 MB / 0.5685 GB, free: 82.15 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05893/1.64, allocations: 21.14 MB / 0.5892 GB, free: 71.24 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01238/1.652, allocations: 8.449 MB / 0.5974 GB, free: 64.01 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005092/1.657, allocations: 2.009 MB / 0.5994 GB, free: 63.24 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01875/1.676, allocations: 6 MB / 0.6052 GB, free: 59.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/1.676, allocations: 64.34 kB / 0.6053 GB, free: 59.65 MB / 426.7 MB Notification: Performance of pre-optimization done (n=208): time 5.54e-06/1.676, allocations: 0 / 0.6053 GB, free: 59.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=232): time 0.033/1.709, allocations: 9.27 MB / 0.6144 GB, free: 51.61 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/1.709, allocations: 77.41 kB / 0.6144 GB, free: 51.52 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006025/1.715, allocations: 2.504 MB / 0.6169 GB, free: 49.24 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005741/1.716, allocations: 65.7 kB / 0.6169 GB, free: 49.17 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001987/1.718, allocations: 2.346 MB / 0.6192 GB, free: 47.08 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001143/1.719, allocations: 0.7999 MB / 0.62 GB, free: 46.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003113/1.72, allocations: 60 kB / 0.6201 GB, free: 46.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002053/1.72, allocations: 420.6 kB / 0.6205 GB, free: 45.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003157/1.723, allocations: 1.251 MB / 0.6217 GB, free: 44.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00384/1.727, allocations: 2.098 MB / 0.6237 GB, free: 42.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004089/1.731, allocations: 1.637 MB / 0.6253 GB, free: 40.97 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.391e-05/1.731, allocations: 11.95 kB / 0.6253 GB, free: 40.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.01214/1.743, allocations: 4.399 MB / 0.6296 GB, free: 36.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.698e-05/1.743, allocations: 19.95 kB / 0.6297 GB, free: 36.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.741e-05/1.743, allocations: 28 kB / 0.6297 GB, free: 36.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002826/1.746, allocations: 0.7141 MB / 0.6304 GB, free: 36.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005318/1.752, allocations: 0.6938 MB / 0.6311 GB, free: 35.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0136/1.765, allocations: 9.388 MB / 0.6402 GB, free: 26.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004654/1.77, allocations: 189.6 kB / 0.6404 GB, free: 26.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007702/1.771, allocations: 131.7 kB / 0.6405 GB, free: 26.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (343): * Single equations (assignments): 337 * 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%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007509/1.772, allocations: 277.9 kB / 0.6408 GB, free: 26.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/1.773, allocations: 319.7 kB / 0.6411 GB, free: 25.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/1.784, allocations: 4.004 MB / 0.645 GB, free: 22.23 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.218e-05/1.784, allocations: 24 kB / 0.645 GB, free: 22.21 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.883e-05/1.784, allocations: 11.94 kB / 0.6451 GB, free: 22.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.749e-05/1.784, allocations: 14.97 kB / 0.6451 GB, free: 22.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02436/1.808, allocations: 8.625 MB / 0.6535 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.057e-05/1.808, allocations: 3.656 kB / 0.6535 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003562/1.812, allocations: 383.8 kB / 0.6539 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004356/1.816, allocations: 0.9344 MB / 0.6548 GB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005884/1.817, allocations: 67.97 kB / 0.6548 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3443/2.161, allocations: 15.43 MB / 0.6699 GB, free: 76.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/2.161, allocations: 7.5 kB / 0.6699 GB, free: 76.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01684/2.178, allocations: 5.913 MB / 0.6757 GB, free: 75.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002833/2.181, allocations: 0.6725 MB / 0.6763 GB, free: 75.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001138/2.182, allocations: 53.33 kB / 0.6764 GB, free: 75.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003372/2.186, allocations: 156.9 kB / 0.6765 GB, free: 75.54 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007051/2.186, allocations: 170.5 kB / 0.6767 GB, free: 75.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002718/2.187, allocations: 73.08 kB / 0.6768 GB, free: 75.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005583/2.192, allocations: 1.891 MB / 0.6786 GB, free: 75.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.082e-06/2.192, allocations: 5.031 kB / 0.6786 GB, free: 75.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006026/2.198, allocations: 1.011 MB / 0.6796 GB, free: 75.38 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (178): * Single equations (assignments): 171 * 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,75.0%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01557/2.214, allocations: 7.616 MB / 0.6871 GB, free: 73.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009276/2.223, allocations: 3.846 MB / 0.6908 GB, free: 72.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/2.223, allocations: 5.5 kB / 0.6908 GB, free: 72.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007157/2.231, allocations: 2.609 MB / 0.6934 GB, free: 71.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006846/2.237, allocations: 0.7726 MB / 0.6941 GB, free: 71.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03037/2.268, allocations: 9.166 MB / 0.7031 GB, free: 69.76 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006601/2.275, allocations: 3.41 MB / 0.7064 GB, free: 68.91 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004974/2.28, allocations: 0.7475 MB / 0.7071 GB, free: 68.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004846/2.284, allocations: 1.934 MB / 0.709 GB, free: 68.82 MB / 426.7 MB Notification: Performance of SimCode: time 1.683e-06/2.285, allocations: 0 / 0.709 GB, free: 68.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2001/2.485, allocations: 85.32 MB / 0.7923 GB, free: 18.2 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003496/2.485, allocations: 197.6 kB / 0.7925 GB, free: 17.96 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.808/8.293, allocations: 3.938 kB / 0.7925 GB, free: 17.96 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat