Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.965/1.965, allocations: 194.9 MB / 202.6 MB, free: 6.914 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2643/2.23, allocations: 46.83 MB / 249.4 MB, free: 5.363 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09769/2.327, allocations: 44.51 MB / 293.9 MB, free: 10.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3137/2.641, allocations: 82.73 MB / 376.6 MB, free: 7.035 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003174/2.642, allocations: 79.53 kB / 376.7 MB, free: 7.035 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: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.2544/2.896, allocations: 55.75 MB / 432.5 MB, free: 5.309 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/2.896, allocations: 8 kB / 432.5 MB, free: 5.301 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006541/2.903, allocations: 0.5937 MB / 433.1 MB, free: 4.703 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007663/2.91, allocations: 1.831 MB / 434.9 MB, free: 2.836 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001882/2.911, allocations: 88 kB / 435 MB, free: 2.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001029/2.912, allocations: 159.9 kB / 435.1 MB, free: 2.594 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01103/2.923, allocations: 2.701 MB / 437.8 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01244/2.935, allocations: 3.134 MB / 441 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-05/2.935, allocations: 4 kB / 441 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004527/2.936, allocations: 0 / 441 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001653/2.936, allocations: 109.3 kB / 441.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0351/2.971, allocations: 10.09 MB / 451.2 MB, free: 2.191 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002695/2.974, allocations: 0.8183 MB / 452 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003/2.977, allocations: 0.9073 MB / 452.9 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008618/2.986, allocations: 2.558 MB / 455.5 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.714e-05/2.986, allocations: 55.56 kB / 455.5 MB, free: 13.76 MB / 362.7 MB Notification: Performance of pre-optimization done (n=117): time 7.534e-06/2.986, allocations: 3.984 kB / 455.5 MB, free: 13.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=117): time 0.00635/2.992, allocations: 1.587 MB / 457.1 MB, free: 12.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/2.992, allocations: 90.11 kB / 457.2 MB, free: 12.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003271/2.995, allocations: 1.14 MB / 458.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002942/2.996, allocations: 25.7 kB / 458.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009442/2.997, allocations: 0.957 MB / 459.3 MB, free: 9.902 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005888/2.997, allocations: 390.2 kB / 459.7 MB, free: 9.516 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/2.997, allocations: 4 kB / 459.7 MB, free: 9.512 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002066/2.998, allocations: 357.8 kB / 460 MB, free: 9.156 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001932/3, allocations: 0.596 MB / 460.6 MB, free: 8.559 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002188/3.002, allocations: 0.8655 MB / 461.5 MB, free: 7.586 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002892/3.005, allocations: 0.7868 MB / 462.3 MB, free: 6.797 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/3.005, allocations: 0 / 462.3 MB, free: 6.797 MB / 362.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.007543/3.012, allocations: 2.001 MB / 464.3 MB, free: 4.793 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/3.012, allocations: 7.75 kB / 464.3 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.722e-05/3.012, allocations: 12.31 kB / 464.3 MB, free: 4.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002129/3.015, allocations: 399.3 kB / 464.7 MB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002541/3.017, allocations: 239.7 kB / 464.9 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01391/3.031, allocations: 5.643 MB / 470.6 MB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002357/3.033, allocations: 122.8 kB / 470.7 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/3.034, allocations: 55.98 kB / 470.8 MB, free: 14.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 120 * 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.000444/3.034, allocations: 140.6 kB / 470.9 MB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000462/3.035, allocations: 138.3 kB / 471 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00702/3.042, allocations: 1.73 MB / 472.8 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.397e-05/3.042, allocations: 12 kB / 472.8 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.632e-05/3.042, allocations: 4 kB / 472.8 MB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-05/3.042, allocations: 3.984 kB / 472.8 MB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01358/3.055, allocations: 3.926 MB / 476.7 MB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.556e-05/3.055, allocations: 4 kB / 476.7 MB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001788/3.057, allocations: 155.8 kB / 476.9 MB, free: 7.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002165/3.059, allocations: 385.8 kB / 477.2 MB, free: 7.527 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002021/3.06, allocations: 23.97 kB / 477.3 MB, free: 7.504 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01368/3.073, allocations: 5.659 MB / 482.9 MB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.737e-05/3.073, allocations: 15.83 kB / 482.9 MB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008623/3.082, allocations: 2.678 MB / 485.6 MB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01553/3.098, allocations: 5.448 MB / 491.1 MB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007855/3.099, allocations: 239.1 kB / 491.3 MB, free: 9.098 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004478/3.099, allocations: 15.98 kB / 491.3 MB, free: 9.082 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002051/3.101, allocations: 79.88 kB / 491.4 MB, free: 9.004 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003432/3.101, allocations: 80.88 kB / 491.5 MB, free: 8.926 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000166/3.102, allocations: 35.98 kB / 491.5 MB, free: 8.891 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002373/3.104, allocations: 0.8569 MB / 492.4 MB, free: 8.027 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004422/3.108, allocations: 0.6335 MB / 493 MB, free: 7.391 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (converter_e.singlePhaseElectroMagneticConverter[3].Phi.re,converter_e.singlePhaseElectroMagneticConverter[3].Phi.im,converter_m.singlePhaseElectroMagneticConverter[3].Phi.re,converter_m.singlePhaseElectroMagneticConverter[3].Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 75 * 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%) 21,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005573/3.109, allocations: 150.8 kB / 493.1 MB, free: 7.234 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005559/3.115, allocations: 1.734 MB / 494.9 MB, free: 5.48 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.836e-06/3.115, allocations: 4.062 kB / 494.9 MB, free: 5.477 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003583/3.118, allocations: 1.047 MB / 495.9 MB, free: 4.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002774/3.121, allocations: 232.6 kB / 496.1 MB, free: 4.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01391/3.135, allocations: 3.812 MB / 500 MB, free: 288 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1857/3.321, allocations: 2.309 MB / 0.4905 GB, free: 75.44 MB / 394.7 MB Notification: Performance of SimCode: time 2.455e-06/3.321, allocations: 3.75 kB / 0.4905 GB, free: 75.44 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat does not exist to compare? outputFormat=mat