Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.732/1.732, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.319e-05/2.337e-05, allocations: 4 kB / 219.6 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.2992, allocations: 38.76 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1313/0.4306, allocations: 76.57 MB / 334.9 MB, free: 1.32 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.431, allocations: 75.95 kB / 335 MB, free: 1.246 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3942/0.8252, allocations: 51.14 MB / 386.1 MB, free: 74.89 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.8252, allocations: 0 / 386.1 MB, free: 74.89 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001637/0.8254, allocations: 65.8 kB / 386.2 MB, free: 74.89 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 645 * Number of variables: 645 Notification: Performance of Generate backend data structure: time 0.008986/0.8344, allocations: 2.672 MB / 388.8 MB, free: 73.83 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.8345, allocations: 6.375 kB / 388.9 MB, free: 73.83 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002216/0.8367, allocations: 419.4 kB / 389.3 MB, free: 73.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004855/0.8416, allocations: 1.758 MB / 391 MB, free: 73.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-05/0.8417, allocations: 79.75 kB / 391.1 MB, free: 73.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004756/0.8422, allocations: 151.8 kB / 391.2 MB, free: 73.17 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005463/0.8477, allocations: 2.311 MB / 393.6 MB, free: 72.28 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006158/0.8539, allocations: 2.857 MB / 396.4 MB, free: 71.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.871e-05/0.854, allocations: 3.344 kB / 396.4 MB, free: 71.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002911/0.8543, allocations: 0 / 396.4 MB, free: 71.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001164/0.8544, allocations: 107.1 kB / 396.5 MB, free: 71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01951/0.8739, allocations: 9.279 MB / 405.8 MB, free: 66.22 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00204/0.876, allocations: 1.422 MB / 407.2 MB, free: 64.81 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.8772, allocations: 0.6534 MB / 407.9 MB, free: 64.22 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.345e-05/0.8773, allocations: 8.766 kB / 407.9 MB, free: 64.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.8773, allocations: 43.33 kB / 407.9 MB, free: 64.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=88): time 3.226e-06/0.8773, allocations: 3.938 kB / 407.9 MB, free: 64.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=88): time 0.002919/0.8803, allocations: 1.249 MB / 409.2 MB, free: 63.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.8803, allocations: 97.48 kB / 409.3 MB, free: 62.97 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001842/0.8822, allocations: 1.098 MB / 410.4 MB, free: 62.01 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.826e-05/0.8823, allocations: 25.7 kB / 410.4 MB, free: 61.98 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006119/0.8829, allocations: 1.078 MB / 411.5 MB, free: 60.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002501/0.8832, allocations: 295.6 kB / 411.8 MB, free: 60.69 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.259e-05/0.8832, allocations: 0 / 411.8 MB, free: 60.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.414e-05/0.8833, allocations: 354.8 kB / 412.1 MB, free: 60.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008707/0.8842, allocations: 462.4 kB / 412.6 MB, free: 59.88 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009987/0.8852, allocations: 0.6684 MB / 413.2 MB, free: 59.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.8863, allocations: 0.572 MB / 413.8 MB, free: 58.55 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.824e-06/0.8863, allocations: 4 kB / 413.8 MB, free: 58.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.003287/0.8896, allocations: 1.519 MB / 415.3 MB, free: 57.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.8897, allocations: 12.06 kB / 415.3 MB, free: 57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.8897, allocations: 4 kB / 415.3 MB, free: 57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001405/0.8911, allocations: 399.9 kB / 415.7 MB, free: 56.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.8923, allocations: 179.7 kB / 415.9 MB, free: 56.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008888/0.9012, allocations: 5.933 MB / 421.8 MB, free: 50.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/0.9027, allocations: 103 kB / 421.9 MB, free: 50.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.9028, allocations: 47.92 kB / 422 MB, free: 50.12 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 19,(2,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00025/0.9031, allocations: 124.7 kB / 422.1 MB, free: 50 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002777/0.9059, allocations: 1.259 MB / 423.4 MB, free: 48.72 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002386/0.9061, allocations: 130.5 kB / 423.5 MB, free: 48.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004144/0.9065, allocations: 147 kB / 423.6 MB, free: 48.45 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/0.9066, allocations: 8 kB / 423.6 MB, free: 48.44 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.9066, allocations: 8 kB / 423.7 MB, free: 48.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.9066, allocations: 3.984 kB / 423.7 MB, free: 48.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006929/0.9135, allocations: 3.265 MB / 426.9 MB, free: 45.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.637e-06/0.9136, allocations: 4 kB / 426.9 MB, free: 45.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007747/0.9144, allocations: 112.2 kB / 427 MB, free: 44.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001393/0.9158, allocations: 385.5 kB / 427.4 MB, free: 44.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.936e-05/0.9159, allocations: 15.98 kB / 427.4 MB, free: 44.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008594/0.9245, allocations: 5.863 MB / 433.3 MB, free: 38.49 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/0.9245, allocations: 4 kB / 433.3 MB, free: 38.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004045/0.9286, allocations: 2.242 MB / 435.5 MB, free: 36.13 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007547/0.9294, allocations: 335.4 kB / 435.9 MB, free: 35.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002734/0.9297, allocations: 12 kB / 435.9 MB, free: 35.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.9309, allocations: 79.91 kB / 436 MB, free: 35.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002916/0.9312, allocations: 95.77 kB / 436.1 MB, free: 35.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.229e-05/0.9313, allocations: 35.36 kB / 436.1 MB, free: 35.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001414/0.9327, allocations: 0.8332 MB / 436.9 MB, free: 34.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.9327, allocations: 0 / 436.9 MB, free: 34.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002176/0.9349, allocations: 0.5946 MB / 437.5 MB, free: 34.13 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (converter_m.singlePhaseElectroMagneticConverter[3].Phi.re,converter_m.singlePhaseElectroMagneticConverter[3].Phi.im,converter_e.singlePhaseElectroMagneticConverter[3].Phi.re,converter_e.singlePhaseElectroMagneticConverter[3].Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 46 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 19,(2,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00432/0.9392, allocations: 3.617 MB / 441.1 MB, free: 30.4 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003033/0.9423, allocations: 1.464 MB / 442.6 MB, free: 28.92 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.9423, allocations: 0 / 442.6 MB, free: 28.92 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002057/0.9444, allocations: 0.9733 MB / 443.6 MB, free: 27.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/0.9464, allocations: 244.1 kB / 443.8 MB, free: 27.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009074/0.9555, allocations: 4.102 MB / 447.9 MB, free: 23.51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001966/0.9575, allocations: 2.118 MB / 450 MB, free: 21.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001449/0.959, allocations: 0.8117 MB / 450.8 MB, free: 20.55 MB / 314.7 MB Notification: Performance of SimCode: time 1.313e-06/0.959, allocations: 0 / 450.8 MB, free: 20.55 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.27/4.229, allocations: 59.82 MB / 0.4987 GB, free: 94.27 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat does not exist to compare? outputFormat=mat