Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.833e-05/2.845e-05, allocations: 1.406 kB / 292.2 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 50.41 MB / 342.6 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4463/0.5531, allocations: 81.11 MB / 423.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/0.5534, allocations: 79.39 kB / 423.8 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03935/0.5928, allocations: 8.273 MB / 432.1 MB, free: 5.738 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5928, allocations: 0 / 432.1 MB, free: 5.738 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.837e-05/0.5929, allocations: 8 kB / 432.1 MB, free: 5.73 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001415/0.5943, allocations: 0.5719 MB / 432.7 MB, free: 5.133 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.5943, allocations: 8.031 kB / 432.7 MB, free: 5.125 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.5945, allocations: 70.09 kB / 432.8 MB, free: 5.066 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.5946, allocations: 35.56 kB / 432.8 MB, free: 5.031 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004862/0.5951, allocations: 263.9 kB / 433.1 MB, free: 4.758 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.75e-05/0.5951, allocations: 22.09 kB / 433.1 MB, free: 4.746 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.135e-05/0.5952, allocations: 37.94 kB / 433.1 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006925/0.5959, allocations: 251.7 kB / 433.4 MB, free: 4.555 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.596, allocations: 0 / 433.4 MB, free: 4.555 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.729e-05/0.596, allocations: 15.33 kB / 433.4 MB, free: 4.547 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.596, allocations: 8 kB / 433.4 MB, free: 4.539 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000598/0.5967, allocations: 204.8 kB / 433.6 MB, free: 4.406 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003522/0.6002, allocations: 1.126 MB / 434.7 MB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003678/0.6006, allocations: 122.7 kB / 434.8 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.6008, allocations: 53.61 kB / 434.9 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.793e-05/0.6008, allocations: 7.984 kB / 434.9 MB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.6009, allocations: 34 kB / 434.9 MB, free: 3.188 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.835e-06/0.6009, allocations: 3.938 kB / 434.9 MB, free: 3.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.002466/0.6034, allocations: 0.505 MB / 435.4 MB, free: 2.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.6034, allocations: 55.59 kB / 435.5 MB, free: 2.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003733/0.6038, allocations: 236.1 kB / 435.7 MB, free: 2.469 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.6039, allocations: 33.08 kB / 435.7 MB, free: 2.434 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.6041, allocations: 224 kB / 436 MB, free: 2.242 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.771e-05/0.6042, allocations: 68.8 kB / 436 MB, free: 2.184 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-05/0.6042, allocations: 9.5 kB / 436 MB, free: 2.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.6044, allocations: 338.5 kB / 436.4 MB, free: 1.852 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/0.6046, allocations: 62.5 kB / 436.4 MB, free: 1.812 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003017/0.6049, allocations: 169.9 kB / 436.6 MB, free: 1.633 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.6052, allocations: 92.89 kB / 436.7 MB, free: 1.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.6052, allocations: 4 kB / 436.7 MB, free: 1.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008642/0.6061, allocations: 322.8 kB / 437 MB, free: 1.309 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.6061, allocations: 11.94 kB / 437 MB, free: 1.297 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.6061, allocations: 4 kB / 437 MB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000355/0.6065, allocations: 60.61 kB / 437.1 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006335/0.6072, allocations: 79.58 kB / 437.2 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00276/0.6099, allocations: 2.637 MB / 439.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005283/0.6105, allocations: 23.67 kB / 439.8 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.6106, allocations: 15.44 kB / 439.8 MB, free: 14.35 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 35 * 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 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.6107, allocations: 131 kB / 440 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.851e-05/0.6108, allocations: 27.62 kB / 440 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.847e-05/0.6109, allocations: 32.73 kB / 440 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.6109, allocations: 3.984 kB / 440 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.6109, allocations: 4 kB / 440 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.6109, allocations: 0 / 440 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005416/0.6115, allocations: 323.4 kB / 440.3 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.6115, allocations: 0 / 440.3 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004411/0.612, allocations: 47.09 kB / 440.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002694/0.6123, allocations: 57.3 kB / 440.4 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.6123, allocations: 6.75 kB / 440.5 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002609/0.6149, allocations: 2.627 MB / 443.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.615, allocations: 0 / 443.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006922/0.6157, allocations: 324.4 kB / 443.4 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.6158, allocations: 95.89 kB / 443.5 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.481e-05/0.6159, allocations: 3.25 kB / 443.5 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004086/0.6163, allocations: 27.03 kB / 443.5 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.562e-05/0.6164, allocations: 15.97 kB / 443.5 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.127e-05/0.6164, allocations: 7.5 kB / 443.5 MB, free: 10.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002727/0.6167, allocations: 182.4 kB / 443.7 MB, free: 10.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6167, allocations: 4 kB / 443.7 MB, free: 10.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005902/0.6173, allocations: 67.44 kB / 443.8 MB, free: 10.33 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00104/0.6184, allocations: 0.8599 MB / 444.7 MB, free: 9.492 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008948/0.6193, allocations: 409.6 kB / 445.1 MB, free: 9.129 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.6193, allocations: 0 / 445.1 MB, free: 9.129 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005168/0.6198, allocations: 313.4 kB / 445.4 MB, free: 8.836 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000389/0.6202, allocations: 30.44 kB / 445.4 MB, free: 8.812 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.6217, allocations: 399.7 kB / 445.8 MB, free: 8.438 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.6221, allocations: 0.7831 MB / 446.6 MB, free: 7.629 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002434/0.6224, allocations: 26.06 kB / 446.6 MB, free: 7.602 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001928/0.6226, allocations: 98.02 kB / 446.7 MB, free: 7.574 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6226, allocations: 0 / 446.7 MB, free: 7.574 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03498/0.6576, allocations: 5.064 MB / 451.7 MB, free: 2.621 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003276/0.658, allocations: 195.9 kB / 451.9 MB, free: 2.395 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.741/3.399, allocations: 0 / 451.9 MB, free: 2.395 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat