Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.044/2.044, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.22e-05/4.228e-05, allocations: 4 kB / 292.2 MB, free: 8.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1495, allocations: 50.42 MB / 342.7 MB, free: 5.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4203/0.5699, allocations: 83.26 MB / 425.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003253/0.5703, allocations: 89.08 kB / 426 MB, free: 10.94 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0992/0.6695, allocations: 26.2 MB / 452.2 MB, free: 4.871 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.6695, allocations: 4 kB / 452.2 MB, free: 4.867 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.553e-05/0.6696, allocations: 12 kB / 452.2 MB, free: 4.855 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.005012/0.6746, allocations: 1.087 MB / 453.3 MB, free: 3.719 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.6747, allocations: 12.03 kB / 453.3 MB, free: 3.707 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004466/0.6751, allocations: 156.1 kB / 453.5 MB, free: 3.547 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002537/0.6777, allocations: 250.8 kB / 453.7 MB, free: 3.301 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004058/0.6781, allocations: 254 kB / 454 MB, free: 3.012 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.6782, allocations: 74 kB / 454 MB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003582/0.6786, allocations: 99.91 kB / 454.1 MB, free: 2.844 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003082/0.6817, allocations: 0.9033 MB / 455 MB, free: 1.926 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.173e-05/0.6818, allocations: 0 / 455 MB, free: 1.926 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.682, allocations: 43.95 kB / 455.1 MB, free: 1.883 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.207e-05/0.682, allocations: 24 kB / 455.1 MB, free: 1.859 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0024/0.6844, allocations: 0.7459 MB / 455.9 MB, free: 1.113 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009644/0.6941, allocations: 3.407 MB / 459.3 MB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004706/0.6989, allocations: 1.387 MB / 460.7 MB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001622/0.7005, allocations: 365.4 kB / 461 MB, free: 11.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002882/0.7009, allocations: 101.9 kB / 461.1 MB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.37e-05/0.701, allocations: 47.34 kB / 461.2 MB, free: 11.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 5.691e-06/0.701, allocations: 0 / 461.2 MB, free: 11.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=87): time 0.003343/0.7043, allocations: 0.6708 MB / 461.8 MB, free: 10.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.585e-05/0.7045, allocations: 93.92 kB / 461.9 MB, free: 10.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009236/0.7054, allocations: 322.8 kB / 462.2 MB, free: 10.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001814/0.7057, allocations: 41.7 kB / 462.3 MB, free: 10.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004481/0.7061, allocations: 382.7 kB / 462.7 MB, free: 9.926 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005865/0.7067, allocations: 295.8 kB / 462.9 MB, free: 9.633 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.7069, allocations: 20 kB / 463 MB, free: 9.613 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000332/0.7072, allocations: 366.7 kB / 463.3 MB, free: 9.246 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.7085, allocations: 254.6 kB / 463.6 MB, free: 9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.71, allocations: 461 kB / 464 MB, free: 8.473 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001528/0.7116, allocations: 328.8 kB / 464.3 MB, free: 8.148 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.321e-05/0.7117, allocations: 0 / 464.3 MB, free: 8.148 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.004186/0.7159, allocations: 0.9335 MB / 465.3 MB, free: 7.199 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.411e-05/0.716, allocations: 4 kB / 465.3 MB, free: 7.195 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.847e-05/0.716, allocations: 8.469 kB / 465.3 MB, free: 7.188 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008562/0.7169, allocations: 119.3 kB / 465.4 MB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002373/0.7193, allocations: 203.7 kB / 465.6 MB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008547/0.7279, allocations: 5.548 MB / 471.1 MB, free: 0.7734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/0.7295, allocations: 110.9 kB / 471.3 MB, free: 0.6641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001643/0.7297, allocations: 43.98 kB / 471.3 MB, free: 0.6211 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 116 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000379/0.7301, allocations: 160.7 kB / 471.5 MB, free: 468 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002754/0.7304, allocations: 55.34 kB / 471.5 MB, free: 412 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00379/0.7342, allocations: 0.8275 MB / 472.3 MB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-05/0.7343, allocations: 8 kB / 472.3 MB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/0.7344, allocations: 4 kB / 472.3 MB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.98e-05/0.7344, allocations: 11.94 kB / 472.4 MB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009917/0.7443, allocations: 2.714 MB / 475.1 MB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.77e-05/0.7444, allocations: 8 kB / 475.1 MB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001585/0.746, allocations: 139.8 kB / 475.2 MB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007411/0.7468, allocations: 111.9 kB / 475.3 MB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.871e-05/0.7469, allocations: 24 kB / 475.3 MB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005279/0.7522, allocations: 5.303 MB / 480.7 MB, free: 6.398 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.417e-05/0.7523, allocations: 11.94 kB / 480.7 MB, free: 6.387 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003802/0.7561, allocations: 1.742 MB / 482.4 MB, free: 4.328 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003729/0.7565, allocations: 160.2 kB / 482.6 MB, free: 4.152 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000203/0.7567, allocations: 20 kB / 482.6 MB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.7579, allocations: 27.98 kB / 482.6 MB, free: 4.105 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002751/0.7582, allocations: 88.23 kB / 482.7 MB, free: 4.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.7583, allocations: 32 kB / 482.7 MB, free: 3.988 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000723/0.7591, allocations: 274.1 kB / 483 MB, free: 3.723 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.7591, allocations: 3.938 kB / 483 MB, free: 3.719 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002059/0.7612, allocations: 268.4 kB / 483.3 MB, free: 3.457 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 1 (referenceSensor.port.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 74 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 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.006579/0.7678, allocations: 4.551 MB / 487.8 MB, free: 14.65 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002653/0.7705, allocations: 1.088 MB / 488.9 MB, free: 13.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-05/0.7705, allocations: 5.438 kB / 488.9 MB, free: 13.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.772, allocations: 0.7481 MB / 489.7 MB, free: 12.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007304/0.7728, allocations: 57.27 kB / 489.7 MB, free: 12.67 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004302/0.7771, allocations: 1.287 MB / 491 MB, free: 11.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007104/0.7779, allocations: 0.9319 MB / 491.9 MB, free: 10.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009824/0.7789, allocations: 109.2 kB / 492 MB, free: 10.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00061/0.7795, allocations: 251.3 kB / 492.3 MB, free: 9.938 MB / 410.7 MB Notification: Performance of SimCode: time 1.382e-06/0.7795, allocations: 0 / 492.3 MB, free: 9.938 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05543/0.8349, allocations: 12.65 MB / 0.4931 GB, free: 13.4 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000287/0.8353, allocations: 200.2 kB / 0.4933 GB, free: 13.17 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.912/3.747, allocations: 0 / 0.4933 GB, free: 13.17 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat does not exist to compare? outputFormat=mat