Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.071/2.071, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.252e-05/4.264e-05, allocations: 11.56 kB / 292.8 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1093, allocations: 50.4 MB / 343.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4485/0.5579, allocations: 87.8 MB / 431 MB, free: 6.195 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004197/0.5584, allocations: 94.05 kB / 431.1 MB, free: 6.141 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1342/0.6926, allocations: 25.63 MB / 456.7 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.6926, allocations: 3.938 kB / 456.7 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.52e-05/0.6927, allocations: 12 kB / 456.7 MB, free: 0.8398 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.00763/0.7003, allocations: 1.107 MB / 457.8 MB, free: 15.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.747e-05/0.7004, allocations: 8.031 kB / 457.8 MB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004635/0.7009, allocations: 135.2 kB / 458 MB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005377/0.7063, allocations: 322.8 kB / 458.3 MB, free: 15.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005948/0.707, allocations: 258.1 kB / 458.5 MB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/0.7072, allocations: 70 kB / 458.6 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004373/0.7076, allocations: 76 kB / 458.7 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003289/0.7109, allocations: 0.8095 MB / 459.5 MB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.306e-05/0.711, allocations: 352 / 459.5 MB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001902/0.7112, allocations: 39.95 kB / 459.5 MB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-05/0.7113, allocations: 20 kB / 459.5 MB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003194/0.7145, allocations: 0.6874 MB / 460.2 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01046/0.725, allocations: 2.993 MB / 463.2 MB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002351/0.7274, allocations: 0.9524 MB / 464.2 MB, free: 8.961 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008425/0.7282, allocations: 206.5 kB / 464.4 MB, free: 8.758 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002165/0.7285, allocations: 97.64 kB / 464.5 MB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.764e-05/0.7286, allocations: 39.06 kB / 464.5 MB, free: 8.594 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 5.009e-06/0.7286, allocations: 3.938 kB / 464.5 MB, free: 8.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.0151/0.7437, allocations: 1.824 MB / 466.3 MB, free: 6.711 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.358e-05/0.7438, allocations: 85.67 kB / 466.4 MB, free: 6.609 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001502/0.7453, allocations: 282.5 kB / 466.7 MB, free: 6.328 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.7455, allocations: 37.7 kB / 466.7 MB, free: 6.285 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004205/0.7459, allocations: 362.6 kB / 467.1 MB, free: 5.922 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003567/0.7463, allocations: 212.9 kB / 467.3 MB, free: 5.711 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.7464, allocations: 16 kB / 467.3 MB, free: 5.695 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002274/0.7467, allocations: 354.8 kB / 467.6 MB, free: 5.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.7477, allocations: 198 kB / 467.8 MB, free: 5.145 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/0.7491, allocations: 434.6 kB / 468.3 MB, free: 4.613 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.7503, allocations: 271.1 kB / 468.5 MB, free: 4.348 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.7503, allocations: 0 / 468.5 MB, free: 4.348 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003286/0.7536, allocations: 0.7347 MB / 469.3 MB, free: 3.602 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/0.7537, allocations: 11.95 kB / 469.3 MB, free: 3.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.646e-05/0.7537, allocations: 8 kB / 469.3 MB, free: 3.582 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005113/0.7543, allocations: 69.95 kB / 469.4 MB, free: 3.508 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002631/0.7569, allocations: 219.6 kB / 469.6 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003723/0.7607, allocations: 2.656 MB / 472.2 MB, free: 380 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002051/0.7628, allocations: 75.92 kB / 472.3 MB, free: 304 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000156/0.7629, allocations: 43.97 kB / 472.3 MB, free: 260 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.0003325/0.7633, allocations: 144.7 kB / 472.5 MB, free: 108 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/0.7635, allocations: 43.48 kB / 472.5 MB, free: 64 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00293/0.7665, allocations: 0.6026 MB / 473.1 MB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/0.7665, allocations: 8 kB / 473.1 MB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/0.7666, allocations: 4 kB / 473.1 MB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.073e-05/0.7666, allocations: 11.88 kB / 473.1 MB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004706/0.7713, allocations: 1.289 MB / 474.4 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.908e-06/0.7714, allocations: 3.984 kB / 474.4 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00211/0.7735, allocations: 143.8 kB / 474.6 MB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004313/0.7739, allocations: 61.61 kB / 474.6 MB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.772e-05/0.7741, allocations: 15.98 kB / 474.7 MB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003646/0.7777, allocations: 2.644 MB / 477.3 MB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.7778, allocations: 128 / 477.3 MB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003633/0.7814, allocations: 0.879 MB / 478.2 MB, free: 10.03 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005244/0.782, allocations: 168.5 kB / 478.3 MB, free: 9.848 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.7822, allocations: 12 kB / 478.4 MB, free: 9.836 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001722/0.7839, allocations: 60.02 kB / 478.4 MB, free: 9.777 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002878/0.7843, allocations: 44.48 kB / 478.5 MB, free: 9.734 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.974e-05/0.7844, allocations: 19.98 kB / 478.5 MB, free: 9.715 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004701/0.7848, allocations: 218.2 kB / 478.7 MB, free: 9.504 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.7849, allocations: 3.938 kB / 478.7 MB, free: 9.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001678/0.7865, allocations: 184 kB / 478.9 MB, free: 9.32 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (core.port_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.005164/0.7918, allocations: 1.529 MB / 480.4 MB, free: 7.758 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002823/0.7946, allocations: 0.7408 MB / 481.1 MB, free: 6.996 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.7947, allocations: 4.062 kB / 481.1 MB, free: 6.992 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00144/0.7961, allocations: 481.5 kB / 481.6 MB, free: 6.504 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006732/0.7968, allocations: 29.22 kB / 481.6 MB, free: 6.473 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005608/0.8025, allocations: 0.981 MB / 482.6 MB, free: 5.461 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008061/0.8033, allocations: 0.8964 MB / 483.5 MB, free: 4.543 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001278/0.8046, allocations: 96.5 kB / 483.6 MB, free: 4.445 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007418/0.8054, allocations: 231.3 kB / 483.8 MB, free: 4.219 MB / 394.7 MB Notification: Performance of SimCode: time 1.252e-06/0.8054, allocations: 0 / 483.8 MB, free: 4.219 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05162/0.857, allocations: 10.84 MB / 494.7 MB, free: 9.562 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003438/0.8575, allocations: 221.1 kB / 494.9 MB, free: 9.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.036/3.893, allocations: 4 kB / 494.9 MB, free: 9.336 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat