Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.394e-05/2.404e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2977, allocations: 44.5 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1561/0.4539, allocations: 76.11 MB / 370.3 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.4542, allocations: 75.95 kB / 370.4 MB, free: 5.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03969/0.4939, allocations: 9.548 MB / 379.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.494, allocations: 0 / 379.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.754e-05/0.494, allocations: 8 kB / 379.9 MB, free: 12.11 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001651/0.4957, allocations: 0.6427 MB / 380.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.4957, allocations: 12.03 kB / 380.6 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007411/0.4965, allocations: 83.44 kB / 380.7 MB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006069/0.4971, allocations: 299.9 kB / 381 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.4972, allocations: 8 kB / 381 MB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.517e-05/0.4973, allocations: 24.81 kB / 381 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006271/0.4979, allocations: 205.5 kB / 381.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007124/0.4986, allocations: 284.9 kB / 381.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.4987, allocations: 3.938 kB / 381.5 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.279e-05/0.4987, allocations: 0 / 381.5 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.701e-05/0.4987, allocations: 8 kB / 381.5 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003071/0.5018, allocations: 1.315 MB / 382.8 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004281/0.5023, allocations: 161.2 kB / 383 MB, free: 8.883 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.5025, allocations: 69.75 kB / 383 MB, free: 8.809 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001129/0.5036, allocations: 0.8671 MB / 383.9 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.022e-05/0.5037, allocations: 42.52 kB / 383.9 MB, free: 7.789 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 4.348e-06/0.5037, allocations: 0 / 383.9 MB, free: 7.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003822/0.5041, allocations: 121.3 kB / 384.1 MB, free: 7.664 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.262e-05/0.5041, allocations: 85.11 kB / 384.1 MB, free: 7.562 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003605/0.5045, allocations: 230.3 kB / 384.4 MB, free: 7.324 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/0.5046, allocations: 25.7 kB / 384.4 MB, free: 7.293 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002105/0.5048, allocations: 302.1 kB / 384.7 MB, free: 6.996 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.161e-05/0.5048, allocations: 43.3 kB / 384.7 MB, free: 6.953 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.395e-05/0.5049, allocations: 0 / 384.7 MB, free: 6.953 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.505, allocations: 326.8 kB / 385.1 MB, free: 6.625 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001333/0.5052, allocations: 40 kB / 385.1 MB, free: 6.586 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002464/0.5054, allocations: 179.8 kB / 385.3 MB, free: 6.352 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001922/0.5056, allocations: 68.5 kB / 385.3 MB, free: 6.285 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.5057, allocations: 4 kB / 385.3 MB, free: 6.281 MB / 330.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005639/0.5062, allocations: 233.4 kB / 385.6 MB, free: 6.047 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.5063, allocations: 11.95 kB / 385.6 MB, free: 6.035 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.5063, allocations: 4 kB / 385.6 MB, free: 6.031 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.5063, allocations: 8 kB / 385.6 MB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/0.5068, allocations: 68 kB / 385.7 MB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.593e-05/0.5069, allocations: 15.88 kB / 385.7 MB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003442/0.5072, allocations: 35.95 kB / 385.7 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.355e-05/0.5073, allocations: 16 kB / 385.7 MB, free: 5.891 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001246/0.5074, allocations: 112.7 kB / 385.8 MB, free: 5.773 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003368/0.5078, allocations: 121.3 kB / 385.9 MB, free: 5.648 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.663e-05/0.5079, allocations: 31.66 kB / 386 MB, free: 5.617 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.009e-05/0.508, allocations: 29.86 kB / 386 MB, free: 5.586 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.508, allocations: 0 / 386 MB, free: 5.586 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.508, allocations: 0 / 386 MB, free: 5.586 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.508, allocations: 4 kB / 386 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009215/0.5089, allocations: 447.6 kB / 386.5 MB, free: 5.098 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.509, allocations: 3.984 kB / 386.5 MB, free: 5.094 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000378/0.5094, allocations: 39.98 kB / 386.5 MB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.5094, allocations: 4.125 kB / 386.5 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.5094, allocations: 8 kB / 386.5 MB, free: 5.043 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.5094, allocations: 0 / 386.5 MB, free: 5.043 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5094, allocations: 4.031 kB / 386.5 MB, free: 5.039 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005544/0.51, allocations: 383.5 kB / 386.9 MB, free: 4.637 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.5101, allocations: 92.83 kB / 387 MB, free: 4.527 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.833e-05/0.5102, allocations: 4 kB / 387 MB, free: 4.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003269/0.5105, allocations: 16.05 kB / 387 MB, free: 4.508 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.575e-05/0.5106, allocations: 11.98 kB / 387 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.5106, allocations: 4 kB / 387 MB, free: 4.492 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002661/0.5109, allocations: 185.9 kB / 387.2 MB, free: 4.312 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5109, allocations: 0 / 387.2 MB, free: 4.312 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006504/0.5116, allocations: 75.69 kB / 387.3 MB, free: 4.238 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor_e.i,converter_m.Phi.re) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001016/0.5126, allocations: 1.057 MB / 388.3 MB, free: 3.145 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003961/0.513, allocations: 128.9 kB / 388.4 MB, free: 3.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.513, allocations: 0 / 388.4 MB, free: 3.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.5132, allocations: 43.94 kB / 388.5 MB, free: 2.977 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004237/0.5136, allocations: 36.89 kB / 388.5 MB, free: 2.938 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.5153, allocations: 0.5186 MB / 389 MB, free: 2.367 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.5158, allocations: 0.7833 MB / 389.8 MB, free: 1.559 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002391/0.5161, allocations: 103.6 kB / 389.9 MB, free: 1.457 MB / 330.7 MB Notification: Performance of SimCode: time 9.31e-07/0.5161, allocations: 3.938 kB / 389.9 MB, free: 1.453 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.328/2.844, allocations: 4.624 MB / 394.6 MB, free: 12.83 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat does not exist to compare? outputFormat=mat