Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) [: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.868/1.868, allocations: 171.2 MB / 178.1 MB, free: 8.277 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2293/2.097, allocations: 41.1 MB / 219.2 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09037/2.188, allocations: 38.77 MB / 258 MB, free: 4.355 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2735/2.461, allocations: 69.95 MB / 328 MB, free: 2.078 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/2.461, allocations: 74.02 kB / 328 MB, free: 2.039 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.03109/2.493, allocations: 6.884 MB / 334.9 MB, free: 12.25 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/2.493, allocations: 8 kB / 334.9 MB, free: 12.24 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/2.493, allocations: 35.53 kB / 335 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004511/2.493, allocations: 257 kB / 335.2 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/2.493, allocations: 8 kB / 335.2 MB, free: 11.92 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.811e-05/2.493, allocations: 16 kB / 335.2 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005356/2.494, allocations: 169.7 kB / 335.4 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005543/2.494, allocations: 185.6 kB / 335.6 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/2.494, allocations: 0 / 335.6 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.391e-05/2.494, allocations: 0 / 335.6 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/2.495, allocations: 8 kB / 335.6 MB, free: 11.65 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002703/2.497, allocations: 0.9462 MB / 336.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004501/2.498, allocations: 126.2 kB / 336.7 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003811/2.498, allocations: 91.97 kB / 336.7 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001652/2.498, allocations: 81.3 kB / 336.8 MB, free: 10.54 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.927e-05/2.498, allocations: 34.75 kB / 336.9 MB, free: 10.5 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 3.917e-06/2.498, allocations: 4 kB / 336.9 MB, free: 10.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.01297/2.511, allocations: 1.18 MB / 338 MB, free: 9.453 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.797e-05/2.511, allocations: 55.41 kB / 338.1 MB, free: 9.387 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004255/2.512, allocations: 196.5 kB / 338.3 MB, free: 9.219 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.75e-05/2.512, allocations: 25.7 kB / 338.3 MB, free: 9.188 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/2.512, allocations: 160.2 kB / 338.5 MB, free: 9.035 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/2.512, allocations: 107.8 kB / 338.6 MB, free: 8.941 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.733e-05/2.512, allocations: 0 / 338.6 MB, free: 8.941 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002011/2.513, allocations: 341 kB / 338.9 MB, free: 8.609 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000398/2.513, allocations: 88.06 kB / 339 MB, free: 8.562 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004936/2.514, allocations: 151.5 kB / 339.1 MB, free: 8.441 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000617/2.514, allocations: 117.6 kB / 339.3 MB, free: 8.367 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/2.514, allocations: 0 / 339.3 MB, free: 8.367 MB / 282.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.005883/2.52, allocations: 490.7 kB / 339.7 MB, free: 7.98 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/2.52, allocations: 8.062 kB / 339.7 MB, free: 7.973 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/2.52, allocations: 4 kB / 339.8 MB, free: 7.969 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001299/2.522, allocations: 166.1 kB / 339.9 MB, free: 7.836 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007013/2.522, allocations: 59.53 kB / 340 MB, free: 7.781 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008521/2.531, allocations: 2.615 MB / 342.6 MB, free: 5.375 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006679/2.532, allocations: 4 kB / 342.6 MB, free: 5.371 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.814e-05/2.532, allocations: 22.86 kB / 342.6 MB, free: 5.352 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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: 1 {(1,100.0%) 8} * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002044/2.532, allocations: 105.6 kB / 342.7 MB, free: 5.242 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/2.532, allocations: 27.72 kB / 342.7 MB, free: 5.215 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005406/2.537, allocations: 482.5 kB / 343.2 MB, free: 4.848 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/2.537, allocations: 4 kB / 343.2 MB, free: 4.844 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/2.537, allocations: 0 / 343.2 MB, free: 4.844 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/2.538, allocations: 3.984 kB / 343.2 MB, free: 4.84 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006259/2.544, allocations: 0.8813 MB / 344.1 MB, free: 4.098 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/2.544, allocations: 3.984 kB / 344.1 MB, free: 4.094 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004994/2.544, allocations: 35.98 kB / 344.1 MB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/2.545, allocations: 165.1 kB / 344.3 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.424e-05/2.546, allocations: 0 / 344.3 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008187/2.554, allocations: 2.623 MB / 346.9 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/2.554, allocations: 4.062 kB / 346.9 MB, free: 1.508 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005783/2.56, allocations: 0.6896 MB / 347.6 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006485/2.566, allocations: 1.2 MB / 348.8 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002694/2.566, allocations: 127.6 kB / 348.9 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.326e-05/2.567, allocations: 3.906 kB / 349 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006413/2.567, allocations: 11.98 kB / 349 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.783e-05/2.567, allocations: 18.84 kB / 349 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.465e-05/2.567, allocations: 11.3 kB / 349 MB, free: 15.78 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0002739/2.568, allocations: 148.6 kB / 349.1 MB, free: 15.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002576/2.57, allocations: 84.05 kB / 349.2 MB, free: 15.57 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * 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: 1 {(1,100.0%) 8} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003557/2.571, allocations: 133.4 kB / 349.3 MB, free: 15.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001452/2.572, allocations: 378.1 kB / 349.7 MB, free: 15.15 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/2.572, allocations: 0 / 349.7 MB, free: 15.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008828/2.573, allocations: 252.7 kB / 350 MB, free: 14.94 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004042/2.573, allocations: 15.23 kB / 350 MB, free: 14.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/2.575, allocations: 475.7 kB / 350.4 MB, free: 14.49 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006718/2.576, allocations: 0.8026 MB / 351.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of SimCode: time 1.302e-06/2.576, allocations: 0 / 351.2 MB, free: 13.66 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat