Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.924/1.924, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.947e-05/1.946e-05, allocations: 0 / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2963, allocations: 44.5 MB / 294.2 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1634/0.4598, allocations: 93.85 MB / 388.1 MB, free: 4.016 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/0.4601, allocations: 83.95 kB / 388.1 MB, free: 3.934 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.469/1.93, allocations: 305.5 MB / 0.6773 GB, free: 20.12 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.93, allocations: 0 / 0.6773 GB, free: 20.12 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005137/1.93, allocations: 191.8 kB / 0.6775 GB, free: 19.94 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2497 * Number of variables: 2497 Notification: Performance of Generate backend data structure: time 0.04321/1.973, allocations: 8.729 MB / 0.6861 GB, free: 11.13 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/1.973, allocations: 11.97 kB / 0.6861 GB, free: 11.12 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03593/2.009, allocations: 4.184 MB / 0.6901 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02176/2.031, allocations: 5.799 MB / 0.6958 GB, free: 1.055 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009371/2.032, allocations: 292 kB / 0.6961 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004139/2.036, allocations: 0.4921 MB / 0.6966 GB, free: 284 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.6701/2.707, allocations: 11.96 MB / 0.7082 GB, free: 37.24 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04116/2.748, allocations: 13.71 MB / 0.7216 GB, free: 36.27 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003936/2.748, allocations: 15.62 kB / 0.7217 GB, free: 36.27 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002967/2.751, allocations: 3.969 kB / 0.7217 GB, free: 36.27 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008677/2.752, allocations: 0.607 MB / 0.7223 GB, free: 36.24 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1109/2.863, allocations: 43.9 MB / 0.7651 GB, free: 27.68 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02359/2.887, allocations: 12.1 MB / 0.7769 GB, free: 21.14 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01534/2.902, allocations: 7.103 MB / 0.7839 GB, free: 18.13 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00193/2.904, allocations: 272.6 kB / 0.7841 GB, free: 17.99 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000159/2.904, allocations: 102.5 kB / 0.7842 GB, free: 17.9 MB / 394.8 MB Notification: Performance of pre-optimization done (n=817): time 2.266e-05/2.904, allocations: 0 / 0.7842 GB, free: 17.9 MB / 394.8 MB Notification: Performance of matching and sorting (n=817): time 0.04083/2.945, allocations: 14.05 MB / 0.798 GB, free: 11.55 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/2.945, allocations: 146.3 kB / 0.7981 GB, free: 11.39 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003234/2.949, allocations: 1.613 MB / 0.7997 GB, free: 10 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001856/2.951, allocations: 31.5 kB / 0.7997 GB, free: 9.973 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001747/2.952, allocations: 2.699 MB / 0.8023 GB, free: 7.703 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004147/2.956, allocations: 2.574 MB / 0.8048 GB, free: 5.32 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001728/2.958, allocations: 0 / 0.8048 GB, free: 5.32 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0008117/2.959, allocations: 0.6087 MB / 0.8054 GB, free: 4.789 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01147/2.971, allocations: 4.992 MB / 0.8103 GB, free: 424 kB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03563/3.006, allocations: 7.085 MB / 0.8172 GB, free: 14.38 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02231/3.029, allocations: 7.033 MB / 0.8241 GB, free: 8.695 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.953e-05/3.029, allocations: 4 kB / 0.8241 GB, free: 8.691 MB / 410.8 MB Notification: Performance of matching and sorting (n=922) (initialization): time 0.04677/3.076, allocations: 14.82 MB / 0.8386 GB, free: 12.09 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.152e-05/3.076, allocations: 15.94 kB / 0.8386 GB, free: 12.07 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.25e-05/3.076, allocations: 19.61 kB / 0.8386 GB, free: 12.06 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0154/3.091, allocations: 4.294 MB / 0.8428 GB, free: 8.559 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009766/3.101, allocations: 1.094 MB / 0.8439 GB, free: 7.742 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3363/3.437, allocations: 10.85 MB / 0.8545 GB, free: 64.06 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007597/3.445, allocations: 0.6278 MB / 0.8551 GB, free: 64.06 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002379/3.447, allocations: 251.2 kB / 0.8553 GB, free: 64.06 MB / 426.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: loss_e.conductor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] loss_e.conductor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] loss_e.conductor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] loss_e.conductor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_e.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] loss_e.conductor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_e.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerb_e.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_e.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerb_e.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_e.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_e.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star_e.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistor_m.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_m.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistor_m.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistor_m.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_m.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_m.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_m.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_m.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_m.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerb_m.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerb_m.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_m.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star_m.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (559): * Single equations (assignments): 484 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 71 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,12 72,6 9,12 95} Notification: Performance of prepare postOptimizeDAE: time 0.00429/3.452, allocations: 309.1 kB / 0.8556 GB, free: 63.94 MB / 426.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0408/3.493, allocations: 14.06 MB / 0.8693 GB, free: 63.62 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002959/3.496, allocations: 389.8 kB / 0.8697 GB, free: 63.41 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04556/3.541, allocations: 15.51 MB / 0.8849 GB, free: 63.06 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03839/3.58, allocations: 14.06 MB / 0.8986 GB, free: 62.8 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.907e-05/3.58, allocations: 3.25 kB / 0.8986 GB, free: 62.8 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001933/3.58, allocations: 32.72 kB / 0.8986 GB, free: 62.8 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07226/3.652, allocations: 26.63 MB / 0.9246 GB, free: 57.45 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-05/3.652, allocations: 0 / 0.9246 GB, free: 57.45 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008395/3.661, allocations: 0.9399 MB / 0.9256 GB, free: 57.43 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01405/3.675, allocations: 4.273 MB / 0.9297 GB, free: 56.18 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001985/3.677, allocations: 86.75 kB / 0.9298 GB, free: 56.16 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01799/3.695, allocations: 10.81 MB / 0.9404 GB, free: 50.4 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.802e-06/3.695, allocations: 3.391 kB / 0.9404 GB, free: 50.4 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05679/3.752, allocations: 22.78 MB / 0.9626 GB, free: 32.86 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00593/3.758, allocations: 1.716 MB / 0.9643 GB, free: 31.42 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002786/3.761, allocations: 4 kB / 0.9643 GB, free: 31.42 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006789/3.767, allocations: 278.9 kB / 0.9646 GB, free: 31.27 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002975/3.77, allocations: 0.5706 MB / 0.9651 GB, free: 30.91 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002028/3.773, allocations: 212 kB / 0.9653 GB, free: 30.72 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.002508/3.775, allocations: 1.22 MB / 0.9665 GB, free: 29.67 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.403e-06/3.775, allocations: 1.719 kB / 0.9665 GB, free: 29.67 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0103/3.785, allocations: 2.045 MB / 0.9685 GB, free: 27.7 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (converter_m.port_p.reference.gamma,loss_e.conductor[1].pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (488): * Single equations (assignments): 413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 71 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,11 73,6 9,12 95} Notification: Performance of Backend phase and start with SimCode phase: time 0.05838/3.844, allocations: 23.53 MB / 0.9915 GB, free: 7.309 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0345/3.878, allocations: 12.29 MB / 1.003 GB, free: 12.75 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/3.879, allocations: 0 / 1.003 GB, free: 12.75 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02119/3.9, allocations: 6.487 MB / 1.01 GB, free: 7.121 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00741/3.907, allocations: 0.5276 MB / 1.01 GB, free: 6.73 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3718/4.279, allocations: 19.87 MB / 1.03 GB, free: 81.9 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01238/4.292, allocations: 6.022 MB / 1.036 GB, free: 81.04 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008968/4.301, allocations: 2.945 MB / 1.038 GB, free: 81.04 MB / 442.8 MB Notification: Performance of SimCode: time 2.285e-06/4.301, allocations: 0 / 1.038 GB, free: 81.04 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.272/9.573, allocations: 339 MB / 1.37 GB, free: 96.91 MB / 458.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat does not exist to compare? outputFormat=mat