Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.926/1.926, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.956e-05/4.967e-05, allocations: 7.984 kB / 292.3 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1527, allocations: 50.41 MB / 342.7 MB, free: 5.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4434/0.5963, allocations: 87.68 MB / 430.3 MB, free: 6.285 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003267/0.5966, allocations: 94.36 kB / 430.4 MB, free: 6.234 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.11/0.7066, allocations: 25.52 MB / 456 MB, free: 1.023 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.967e-06/0.7067, allocations: 4 kB / 456 MB, free: 1.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.378e-05/0.7067, allocations: 19.94 kB / 456 MB, free: 1 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.005177/0.7119, allocations: 1.1 MB / 457.1 MB, free: 15.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.712, allocations: 12.03 kB / 457.1 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003209/0.7123, allocations: 131.2 kB / 457.2 MB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003239/0.7156, allocations: 314.9 kB / 457.5 MB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.7159, allocations: 263.4 kB / 457.8 MB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.837e-05/0.716, allocations: 58 kB / 457.8 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002164/0.7163, allocations: 87.91 kB / 457.9 MB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002204/0.7185, allocations: 0.8018 MB / 458.7 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.872e-05/0.7186, allocations: 352 / 458.7 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001288/0.7187, allocations: 35.95 kB / 458.8 MB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.951e-05/0.7187, allocations: 23.98 kB / 458.8 MB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002062/0.7208, allocations: 0.6874 MB / 459.5 MB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007255/0.7281, allocations: 2.977 MB / 462.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/0.7298, allocations: 0.9594 MB / 463.4 MB, free: 9.152 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005915/0.7304, allocations: 210.5 kB / 463.6 MB, free: 8.945 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001624/0.7306, allocations: 97.66 kB / 463.7 MB, free: 8.828 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.7306, allocations: 35.12 kB / 463.7 MB, free: 8.785 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 3.697e-06/0.7307, allocations: 0 / 463.7 MB, free: 8.785 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.009686/0.7404, allocations: 1.828 MB / 465.6 MB, free: 6.906 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.951e-05/0.7405, allocations: 93.61 kB / 465.7 MB, free: 6.797 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004534/0.7409, allocations: 263.2 kB / 465.9 MB, free: 6.531 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.731e-05/0.741, allocations: 37.7 kB / 466 MB, free: 6.488 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002967/0.7413, allocations: 358.7 kB / 466.3 MB, free: 6.129 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002418/0.7416, allocations: 212.9 kB / 466.5 MB, free: 5.918 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.683e-05/0.7417, allocations: 16 kB / 466.5 MB, free: 5.902 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.7418, allocations: 350.8 kB / 466.9 MB, free: 5.551 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006391/0.7425, allocations: 198 kB / 467.1 MB, free: 5.355 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008524/0.7434, allocations: 434.5 kB / 467.5 MB, free: 4.824 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007578/0.7441, allocations: 267.3 kB / 467.8 MB, free: 4.562 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.7442, allocations: 4 kB / 467.8 MB, free: 4.559 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002119/0.7463, allocations: 0.7348 MB / 468.5 MB, free: 3.816 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.2e-05/0.7463, allocations: 11.95 kB / 468.5 MB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.7464, allocations: 8 kB / 468.5 MB, free: 3.797 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000348/0.7467, allocations: 65.72 kB / 468.6 MB, free: 3.727 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001817/0.7486, allocations: 215.7 kB / 468.8 MB, free: 3.516 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002859/0.7515, allocations: 2.656 MB / 471.4 MB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.7529, allocations: 75.84 kB / 471.5 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/0.753, allocations: 40.06 kB / 471.6 MB, free: 488 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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.0002765/0.7533, allocations: 160.7 kB / 471.7 MB, free: 320 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.7535, allocations: 43.48 kB / 471.8 MB, free: 276 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002002/0.7555, allocations: 0.5947 MB / 472.4 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.7555, allocations: 8 kB / 472.4 MB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.7555, allocations: 0 / 472.4 MB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/0.7556, allocations: 11.94 kB / 472.4 MB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003243/0.7588, allocations: 1.286 MB / 473.7 MB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.7589, allocations: 0 / 473.7 MB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001438/0.7603, allocations: 155.8 kB / 473.8 MB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004514/0.7608, allocations: 53.67 kB / 473.9 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.761, allocations: 12 kB / 473.9 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004475/0.7655, allocations: 2.648 MB / 476.5 MB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.7655, allocations: 0 / 476.5 MB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004089/0.7696, allocations: 0.8791 MB / 477.4 MB, free: 10.26 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000416/0.7701, allocations: 164.5 kB / 477.6 MB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.7702, allocations: 8 kB / 477.6 MB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.7713, allocations: 59.94 kB / 477.6 MB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/0.7715, allocations: 56.55 kB / 477.7 MB, free: 9.957 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.348e-05/0.7715, allocations: 16 kB / 477.7 MB, free: 9.941 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003397/0.7719, allocations: 202.2 kB / 477.9 MB, free: 9.742 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.7719, allocations: 0 / 477.9 MB, free: 9.742 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001044/0.773, allocations: 188 kB / 478.1 MB, free: 9.559 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * 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.003621/0.7766, allocations: 1.509 MB / 479.6 MB, free: 8.016 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002822/0.7795, allocations: 0.7467 MB / 480.3 MB, free: 7.246 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/0.7795, allocations: 1.938 kB / 480.3 MB, free: 7.246 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.7811, allocations: 473.6 kB / 480.8 MB, free: 6.762 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006561/0.7818, allocations: 36.77 kB / 480.8 MB, free: 6.727 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005751/0.7875, allocations: 0.9887 MB / 481.8 MB, free: 5.711 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007938/0.7884, allocations: 0.8964 MB / 482.7 MB, free: 4.789 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001276/0.7897, allocations: 92.52 kB / 482.8 MB, free: 4.695 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007592/0.7905, allocations: 227.3 kB / 483 MB, free: 4.473 MB / 394.7 MB Notification: Performance of SimCode: time 1.543e-06/0.7905, allocations: 3.938 kB / 483 MB, free: 4.469 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04626/0.8368, allocations: 10.7 MB / 493.7 MB, free: 9.902 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00027/0.8371, allocations: 223.6 kB / 494 MB, free: 9.664 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.961/3.798, allocations: 0 / 494 MB, free: 9.664 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat