Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_QuasiStatic_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.838/1.838, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2357/2.074, allocations: 46.84 MB / 249.4 MB, free: 5.328 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09549/2.17, allocations: 44.51 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3249/2.495, allocations: 93.78 MB / 387.7 MB, free: 3.66 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003307/2.495, allocations: 86.94 kB / 387.8 MB, free: 3.645 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: 2497 * Number of variables: 2497 Notification: Performance of Generate backend data structure: time 1.521/4.016, allocations: 312.3 MB / 0.6837 GB, free: 35.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/4.016, allocations: 7.75 kB / 0.6837 GB, free: 35.61 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04308/4.059, allocations: 3.909 MB / 0.6875 GB, free: 35.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02289/4.082, allocations: 5.802 MB / 0.6931 GB, free: 34.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009984/4.083, allocations: 295.3 kB / 0.6934 GB, free: 34.29 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00457/4.088, allocations: 500 kB / 0.6939 GB, free: 34.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04312/4.131, allocations: 12.23 MB / 0.7058 GB, free: 34.25 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05442/4.185, allocations: 13.96 MB / 0.7195 GB, free: 33.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005647/4.186, allocations: 12.7 kB / 0.7195 GB, free: 33.24 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004074/4.19, allocations: 7.281 kB / 0.7195 GB, free: 33.24 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009472/4.191, allocations: 0.6223 MB / 0.7201 GB, free: 33.22 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1405/4.332, allocations: 44.32 MB / 0.7634 GB, free: 6.465 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0266/4.358, allocations: 9.075 MB / 0.7722 GB, free: 14.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02247/4.381, allocations: 7.268 MB / 0.7793 GB, free: 8.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001407/4.382, allocations: 275.9 kB / 0.7796 GB, free: 7.926 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001503/4.382, allocations: 103 kB / 0.7797 GB, free: 7.816 MB / 410.7 MB Notification: Performance of pre-optimization done (n=817): time 1.536e-05/4.383, allocations: 4 kB / 0.7797 GB, free: 7.812 MB / 410.7 MB Notification: Performance of matching and sorting (n=817): time 0.3841/4.767, allocations: 13.81 MB / 0.7932 GB, free: 77.92 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/4.767, allocations: 148.8 kB / 0.7933 GB, free: 77.82 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004849/4.772, allocations: 1.643 MB / 0.7949 GB, free: 77.67 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002008/4.774, allocations: 29.89 kB / 0.795 GB, free: 77.64 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001833/4.776, allocations: 2.477 MB / 0.7974 GB, free: 76.98 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004735/4.78, allocations: 2.574 MB / 0.7999 GB, free: 75.23 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002206/4.783, allocations: 3.531 kB / 0.7999 GB, free: 75.23 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.001161/4.784, allocations: 0.5997 MB / 0.8005 GB, free: 74.91 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01589/4.8, allocations: 5.228 MB / 0.8056 GB, free: 74.9 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01776/4.818, allocations: 6.041 MB / 0.8115 GB, free: 74.27 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02091/4.839, allocations: 6.371 MB / 0.8177 GB, free: 74.18 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.881e-05/4.839, allocations: 6.156 kB / 0.8177 GB, free: 74.18 MB / 410.8 MB Notification: Performance of matching and sorting (n=922) (initialization): time 0.05085/4.89, allocations: 14.64 MB / 0.832 GB, free: 73.74 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/4.89, allocations: 7.188 kB / 0.832 GB, free: 73.74 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00011/4.89, allocations: 14.31 kB / 0.832 GB, free: 73.74 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0182/4.908, allocations: 4.338 MB / 0.8363 GB, free: 73.67 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01191/4.92, allocations: 1.031 MB / 0.8373 GB, free: 73.67 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02641/4.946, allocations: 11.21 MB / 0.8482 GB, free: 71.47 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00899/4.955, allocations: 0.5287 MB / 0.8487 GB, free: 71.17 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002662/4.958, allocations: 251 kB / 0.849 GB, free: 71.17 MB / 410.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.004946/4.963, allocations: 298.3 kB / 0.8493 GB, free: 71.04 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003126/4.966, allocations: 382.7 kB / 0.8496 GB, free: 70.83 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05454/5.021, allocations: 15.39 MB / 0.8647 GB, free: 67.56 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04484/5.066, allocations: 13.77 MB / 0.8781 GB, free: 62.44 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.742e-05/5.066, allocations: 0 / 0.8781 GB, free: 62.44 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002082/5.066, allocations: 41.73 kB / 0.8782 GB, free: 62.44 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08706/5.153, allocations: 26.31 MB / 0.9038 GB, free: 49.91 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001332/5.153, allocations: 0 / 0.9038 GB, free: 49.91 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01086/5.164, allocations: 0.8992 MB / 0.9047 GB, free: 49.23 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01802/5.182, allocations: 4.312 MB / 0.9089 GB, free: 45.71 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002299/5.185, allocations: 89.83 kB / 0.909 GB, free: 45.64 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0262/5.211, allocations: 11.21 MB / 0.92 GB, free: 35.53 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/5.211, allocations: 0 / 0.92 GB, free: 35.53 MB / 410.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06857/5.28, allocations: 22.94 MB / 0.9424 GB, free: 15.37 MB / 410.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3538/5.633, allocations: 50.76 MB / 0.9919 GB, free: 77.63 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007009/5.641, allocations: 1.722 MB / 0.9936 GB, free: 77.54 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003068/5.644, allocations: 0 / 0.9936 GB, free: 77.54 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008076/5.652, allocations: 184 kB / 0.9938 GB, free: 77.54 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003394/5.655, allocations: 0.5477 MB / 0.9943 GB, free: 77.53 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002401/5.658, allocations: 214.5 kB / 0.9945 GB, free: 77.53 MB / 410.8 MB Notification: Performance of sort global known variables: time 0.003599/5.661, allocations: 1.249 MB / 0.9958 GB, free: 77.42 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.01196/5.673, allocations: 2.056 MB / 0.9978 GB, free: 77.34 MB / 410.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,12 72,6 9,12 95} Notification: Performance of Backend phase and start with SimCode phase: time 0.002603/5.676, allocations: 229.4 kB / 0.998 GB, free: 77.26 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.0398/5.716, allocations: 12.69 MB / 1.01 GB, free: 77.02 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/5.716, allocations: 5.344 kB / 1.01 GB, free: 77.02 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02359/5.739, allocations: 6.741 MB / 1.017 GB, free: 76.95 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008332/5.748, allocations: 497 kB / 1.017 GB, free: 76.94 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06358/5.811, allocations: 17.57 MB / 1.035 GB, free: 73.09 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02076/5.832, allocations: 6.53 MB / 1.041 GB, free: 70.91 MB / 410.8 MB Notification: Performance of SimCode: time 2.785e-06/5.832, allocations: 0 / 1.041 GB, free: 70.91 MB / 410.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat does not exist to compare? outputFormat=mat