Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.94/1.94, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.773e-05/3.781e-05, allocations: 4 kB / 292.3 MB, free: 8.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1341, allocations: 50.4 MB / 342.7 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4649/0.599, allocations: 87.79 MB / 430.4 MB, free: 6.141 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004736/0.5996, allocations: 89.81 kB / 430.5 MB, free: 6.094 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1371/0.7367, allocations: 25.63 MB / 456.2 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.7367, allocations: 3.938 kB / 456.2 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.14e-05/0.7368, allocations: 12 kB / 456.2 MB, free: 0.7852 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.005042/0.7418, allocations: 1.111 MB / 457.3 MB, free: 15.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.7419, allocations: 15.97 kB / 457.3 MB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002745/0.7422, allocations: 127.2 kB / 457.4 MB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003292/0.7455, allocations: 326.8 kB / 457.8 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000399/0.7459, allocations: 262.1 kB / 458 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.746, allocations: 62 kB / 458.1 MB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002894/0.7463, allocations: 80 kB / 458.1 MB, free: 14.72 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002414/0.7488, allocations: 0.8018 MB / 458.9 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.736e-05/0.7489, allocations: 4.344 kB / 459 MB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.749, allocations: 39.95 kB / 459 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.698e-05/0.7491, allocations: 23.94 kB / 459 MB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002307/0.7514, allocations: 0.6913 MB / 459.7 MB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007726/0.7591, allocations: 2.989 MB / 462.7 MB, free: 9.973 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.7608, allocations: 0.9505 MB / 463.6 MB, free: 8.902 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000553/0.7614, allocations: 206.5 kB / 463.8 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001677/0.7616, allocations: 93.64 kB / 463.9 MB, free: 8.586 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.661e-05/0.7617, allocations: 43.12 kB / 464 MB, free: 8.535 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 2.825e-06/0.7617, allocations: 0 / 464 MB, free: 8.535 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.009752/0.7714, allocations: 1.824 MB / 465.8 MB, free: 6.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/0.7715, allocations: 85.67 kB / 465.9 MB, free: 6.559 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005104/0.7721, allocations: 286.5 kB / 466.2 MB, free: 6.273 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.297e-05/0.7722, allocations: 37.7 kB / 466.2 MB, free: 6.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003428/0.7725, allocations: 358.6 kB / 466.6 MB, free: 5.871 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003124/0.7728, allocations: 212.9 kB / 466.8 MB, free: 5.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.035e-05/0.7729, allocations: 16 kB / 466.8 MB, free: 5.645 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.7731, allocations: 350.8 kB / 467.1 MB, free: 5.293 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006068/0.7737, allocations: 198 kB / 467.3 MB, free: 5.098 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000829/0.7746, allocations: 438.6 kB / 467.7 MB, free: 4.562 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007514/0.7753, allocations: 271.1 kB / 468 MB, free: 4.297 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.431e-06/0.7754, allocations: 4 kB / 468 MB, free: 4.293 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002108/0.7775, allocations: 0.735 MB / 468.7 MB, free: 3.543 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.7775, allocations: 11.95 kB / 468.8 MB, free: 3.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.7776, allocations: 12 kB / 468.8 MB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003576/0.7779, allocations: 65.67 kB / 468.8 MB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/0.7797, allocations: 215.7 kB / 469 MB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002835/0.7826, allocations: 2.656 MB / 471.7 MB, free: 324 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.7839, allocations: 75.98 kB / 471.8 MB, free: 248 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.7841, allocations: 39.98 kB / 471.8 MB, free: 208 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.000244/0.7843, allocations: 152.7 kB / 472 MB, free: 48 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.7845, allocations: 43.48 kB / 472 MB, free: 4 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/0.7864, allocations: 0.6026 MB / 472.6 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.7864, allocations: 8 kB / 472.6 MB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.7864, allocations: 0 / 472.6 MB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.7864, allocations: 11.88 kB / 472.6 MB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00328/0.7897, allocations: 1.297 MB / 473.9 MB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.7898, allocations: 4 kB / 473.9 MB, free: 14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001406/0.7912, allocations: 139.8 kB / 474.1 MB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003177/0.7915, allocations: 57.67 kB / 474.1 MB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.478e-05/0.7916, allocations: 15.98 kB / 474.1 MB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002592/0.7942, allocations: 2.64 MB / 476.8 MB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7943, allocations: 0 / 476.8 MB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/0.7967, allocations: 0.879 MB / 477.7 MB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003564/0.7971, allocations: 168.7 kB / 477.8 MB, free: 9.797 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.7972, allocations: 12 kB / 477.8 MB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.7983, allocations: 55.95 kB / 477.9 MB, free: 9.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001879/0.7985, allocations: 52.42 kB / 477.9 MB, free: 9.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.631e-05/0.7986, allocations: 19.98 kB / 478 MB, free: 9.66 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003802/0.7989, allocations: 222.2 kB / 478.2 MB, free: 9.449 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.799, allocations: 0 / 478.2 MB, free: 9.449 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001066/0.8, allocations: 184 kB / 478.4 MB, free: 9.27 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.002919/0.803, allocations: 1.524 MB / 479.9 MB, free: 7.711 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001892/0.8049, allocations: 0.7467 MB / 480.6 MB, free: 6.941 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.8049, allocations: 0 / 480.6 MB, free: 6.941 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.806, allocations: 479.4 kB / 481.1 MB, free: 6.457 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004947/0.8065, allocations: 36.88 kB / 481.1 MB, free: 6.422 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004285/0.8108, allocations: 0.989 MB / 482.1 MB, free: 5.402 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006447/0.8115, allocations: 0.8964 MB / 483 MB, free: 4.484 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008748/0.8124, allocations: 96.5 kB / 483.1 MB, free: 4.387 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000558/0.8129, allocations: 219.3 kB / 483.3 MB, free: 4.172 MB / 394.7 MB Notification: Performance of SimCode: time 1.363e-06/0.813, allocations: 0 / 483.3 MB, free: 4.172 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04739/0.8604, allocations: 10.85 MB / 494.2 MB, free: 9.508 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002989/0.8607, allocations: 221.9 kB / 494.4 MB, free: 9.285 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.047/3.908, allocations: 0 / 494.4 MB, free: 9.285 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.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat