Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",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 2.214/2.214, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3567/2.57, allocations: 46.83 MB / 249.4 MB, free: 5.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09471/2.665, allocations: 44.5 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3258/2.991, allocations: 78.17 MB / 372.1 MB, free: 7.09 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003114/2.991, allocations: 82.94 kB / 372.2 MB, free: 7.086 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.1505/3.142, allocations: 39.21 MB / 411.4 MB, free: 4.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/3.142, allocations: 8 kB / 411.4 MB, free: 4.242 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009897/3.143, allocations: 276.4 kB / 411.7 MB, free: 3.969 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006442/3.15, allocations: 1.862 MB / 413.5 MB, free: 2.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/3.15, allocations: 50.47 kB / 413.6 MB, free: 2.371 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003033/3.15, allocations: 35.89 kB / 413.6 MB, free: 2.336 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001001/3.151, allocations: 273.4 kB / 413.9 MB, free: 2.164 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009335/3.152, allocations: 326.7 kB / 414.2 MB, free: 1.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/3.152, allocations: 3.938 kB / 414.2 MB, free: 1.906 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.459e-05/3.152, allocations: 0 / 414.2 MB, free: 1.906 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/3.152, allocations: 8 kB / 414.2 MB, free: 1.898 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009153/3.161, allocations: 3.001 MB / 417.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006837/3.162, allocations: 186 kB / 417.4 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004226/3.162, allocations: 139.5 kB / 417.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.175e-05/3.163, allocations: 4 kB / 417.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.416e-05/3.163, allocations: 42.48 kB / 417.6 MB, free: 15.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 3.306e-06/3.163, allocations: 0 / 417.6 MB, free: 15.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.007187/3.17, allocations: 2.023 MB / 419.6 MB, free: 13.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/3.17, allocations: 85.55 kB / 419.7 MB, free: 13.28 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01972/3.19, allocations: 4.673 MB / 424.3 MB, free: 9.891 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001335/3.19, allocations: 29.64 kB / 424.4 MB, free: 9.855 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001026/3.191, allocations: 499.9 kB / 424.9 MB, free: 9.477 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/3.191, allocations: 161.1 kB / 425 MB, free: 9.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.28e-05/3.191, allocations: 0 / 425 MB, free: 9.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/3.191, allocations: 327.5 kB / 425.3 MB, free: 9.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004844/3.192, allocations: 132.3 kB / 425.5 MB, free: 8.941 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005273/3.192, allocations: 199.8 kB / 425.7 MB, free: 8.781 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005583/3.193, allocations: 153.6 kB / 425.8 MB, free: 8.691 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/3.193, allocations: 0 / 425.8 MB, free: 8.691 MB / 330.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002642/3.196, allocations: 0.7014 MB / 426.5 MB, free: 8.105 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/3.196, allocations: 7.984 kB / 426.5 MB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/3.196, allocations: 3.984 kB / 426.5 MB, free: 8.094 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009062/3.197, allocations: 138.6 kB / 426.7 MB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/3.198, allocations: 105.6 kB / 426.8 MB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/3.199, allocations: 0.7756 MB / 427.5 MB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/3.201, allocations: 4 kB / 427.5 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.709e-05/3.201, allocations: 26.73 kB / 427.6 MB, free: 7.16 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002757/3.201, allocations: 124.8 kB / 427.7 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001161/3.203, allocations: 268.4 kB / 428 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003151/3.206, allocations: 0.712 MB / 428.7 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.83e-05/3.206, allocations: 11.91 kB / 428.7 MB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/3.206, allocations: 4 kB / 428.7 MB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/3.206, allocations: 15.8 kB / 428.7 MB, free: 6.184 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004654/3.211, allocations: 1.605 MB / 430.3 MB, free: 4.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/3.211, allocations: 4 kB / 430.3 MB, free: 4.977 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001235/3.212, allocations: 95.81 kB / 430.4 MB, free: 4.887 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005382/3.212, allocations: 93.36 kB / 430.5 MB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.536e-05/3.212, allocations: 7.938 kB / 430.5 MB, free: 4.809 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/3.214, allocations: 0.6481 MB / 431.2 MB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/3.214, allocations: 4.062 kB / 431.2 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00292/3.217, allocations: 1.015 MB / 432.2 MB, free: 3.32 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003801/3.22, allocations: 1.618 MB / 433.8 MB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002487/3.223, allocations: 0.6646 MB / 434.5 MB, free: 1.367 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005762/3.224, allocations: 3.906 kB / 434.5 MB, free: 1.363 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/3.225, allocations: 20.61 kB / 434.5 MB, free: 1.344 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/3.225, allocations: 27.77 kB / 434.5 MB, free: 1.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.996e-05/3.225, allocations: 15.36 kB / 434.5 MB, free: 1.309 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.01145/3.237, allocations: 3.629 MB / 438.1 MB, free: 13.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003221/3.24, allocations: 304 kB / 438.4 MB, free: 13.43 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001247/3.241, allocations: 328.6 kB / 438.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001489/3.243, allocations: 410.6 kB / 439.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/3.243, allocations: 0 / 439.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006829/3.243, allocations: 201.9 kB / 439.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002059/3.245, allocations: 150.9 kB / 439.5 MB, free: 12.42 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01676/3.262, allocations: 4.798 MB / 444.3 MB, free: 7.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004412/3.267, allocations: 2 MB / 446.3 MB, free: 5.531 MB / 346.7 MB Notification: Performance of SimCode: time 1.723e-06/3.267, allocations: 0 / 446.3 MB, free: 5.531 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat