Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.788/1.788, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.848e-05/3.858e-05, allocations: 0 / 225.1 MB, free: 2.629 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3022, allocations: 38.78 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1246/0.4268, allocations: 70.76 MB / 334.6 MB, free: 3.008 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.4271, allocations: 75.95 kB / 334.7 MB, free: 2.934 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03583/0.463, allocations: 8.911 MB / 343.6 MB, free: 9.926 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.463, allocations: 0.6562 kB / 343.6 MB, free: 9.926 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.4631, allocations: 4 kB / 343.6 MB, free: 9.922 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001619/0.4647, allocations: 0.6269 MB / 344.2 MB, free: 9.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.4648, allocations: 8.031 kB / 344.2 MB, free: 9.242 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001119/0.4649, allocations: 70.53 kB / 344.3 MB, free: 9.164 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003703/0.4653, allocations: 55.52 kB / 344.3 MB, free: 9.109 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005929/0.4659, allocations: 300.2 kB / 344.6 MB, free: 8.773 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.484e-05/0.4659, allocations: 24.78 kB / 344.7 MB, free: 8.746 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.823e-05/0.466, allocations: 32 kB / 344.7 MB, free: 8.715 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007639/0.4668, allocations: 298.3 kB / 345 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.4668, allocations: 0 / 345 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.262e-05/0.4669, allocations: 16 kB / 345 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.4669, allocations: 8 kB / 345 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005451/0.4675, allocations: 187.9 kB / 345.2 MB, free: 8.199 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002921/0.4704, allocations: 1.316 MB / 346.5 MB, free: 6.777 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003128/0.4708, allocations: 129.2 kB / 346.6 MB, free: 6.633 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.4709, allocations: 61.7 kB / 346.7 MB, free: 6.566 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.471, allocations: 0 / 346.7 MB, free: 6.566 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/0.471, allocations: 38.55 kB / 346.7 MB, free: 6.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.013e-06/0.471, allocations: 4 kB / 346.7 MB, free: 6.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004422/0.4715, allocations: 141.5 kB / 346.9 MB, free: 6.371 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/0.4716, allocations: 77.11 kB / 346.9 MB, free: 6.277 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000386/0.4719, allocations: 243.3 kB / 347.2 MB, free: 6.031 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.472, allocations: 29.7 kB / 347.2 MB, free: 5.996 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001984/0.4722, allocations: 285.8 kB / 347.5 MB, free: 5.715 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.485e-05/0.4723, allocations: 47.36 kB / 347.5 MB, free: 5.668 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.735e-05/0.4723, allocations: 4 kB / 347.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.4724, allocations: 322.9 kB / 347.9 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.4726, allocations: 51.94 kB / 347.9 MB, free: 5.289 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002324/0.4729, allocations: 153.7 kB / 348.1 MB, free: 5.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.4731, allocations: 75.91 kB / 348.1 MB, free: 5.016 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4731, allocations: 0 / 348.1 MB, free: 5.016 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005643/0.4737, allocations: 237.4 kB / 348.4 MB, free: 4.777 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.4737, allocations: 7.984 kB / 348.4 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.4737, allocations: 4 kB / 348.4 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.4738, allocations: 8 kB / 348.4 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004878/0.4743, allocations: 63.91 kB / 348.4 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.458e-05/0.4743, allocations: 4 kB / 348.4 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003111/0.4746, allocations: 35.67 kB / 348.5 MB, free: 4.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/0.4747, allocations: 20.12 kB / 348.5 MB, free: 4.637 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001121/0.4748, allocations: 124.8 kB / 348.6 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.116e-05/0.4749, allocations: 27.67 kB / 348.7 MB, free: 4.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.764e-05/0.475, allocations: 29.86 kB / 348.7 MB, free: 4.449 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.475, allocations: 4 kB / 348.7 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.475, allocations: 0 / 348.7 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.475, allocations: 0 / 348.7 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009256/0.4759, allocations: 0.4952 MB / 349.2 MB, free: 3.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.476, allocations: 0 / 349.2 MB, free: 3.891 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003754/0.4763, allocations: 39.97 kB / 349.2 MB, free: 3.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.4764, allocations: 4 kB / 349.2 MB, free: 3.848 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.4764, allocations: 0 / 349.2 MB, free: 3.848 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.603e-06/0.4764, allocations: 4 kB / 349.2 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4764, allocations: 0 / 349.2 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005626/0.477, allocations: 386.9 kB / 349.6 MB, free: 3.434 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.4771, allocations: 112.8 kB / 349.7 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.563e-05/0.4772, allocations: 8 kB / 349.7 MB, free: 3.297 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003257/0.4776, allocations: 16.05 kB / 349.7 MB, free: 3.281 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.4776, allocations: 16.08 kB / 349.8 MB, free: 3.266 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.4777, allocations: 3.938 kB / 349.8 MB, free: 3.262 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000272/0.4779, allocations: 187.1 kB / 349.9 MB, free: 3.082 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.478, allocations: 4 kB / 349.9 MB, free: 3.078 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005479/0.4785, allocations: 75.75 kB / 350 MB, free: 3.004 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter_m.Phi.re,inductor_e.i) * 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.00101/0.4795, allocations: 1.076 MB / 351.1 MB, free: 1.887 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003926/0.4799, allocations: 135.8 kB / 351.2 MB, free: 1.754 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.48, allocations: 4 kB / 351.2 MB, free: 1.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.4801, allocations: 48.8 kB / 351.3 MB, free: 1.703 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004119/0.4805, allocations: 32.91 kB / 351.3 MB, free: 1.664 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.4822, allocations: 0.5315 MB / 351.8 MB, free: 1.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004201/0.4826, allocations: 0.7716 MB / 352.6 MB, free: 300 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002146/0.4828, allocations: 99.39 kB / 352.7 MB, free: 200 kB / 298.7 MB Notification: Performance of SimCode: time 1.122e-06/0.4828, allocations: 0 / 352.7 MB, free: 200 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.44/2.923, allocations: 4.433 MB / 357.1 MB, free: 11.77 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat does not exist to compare? outputFormat=mat