Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.146/2.146, allocations: 225.8 MB / 239.3 MB, free: 1.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.041e-05/3.044e-05, allocations: 4 kB / 292.7 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.11, allocations: 50.41 MB / 343.2 MB, free: 8.977 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4394/0.5495, allocations: 80.94 MB / 424.1 MB, free: 8.344 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002649/0.5498, allocations: 82.58 kB / 424.2 MB, free: 8.344 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03379/0.5836, allocations: 8.37 MB / 432.5 MB, free: 5.977 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5836, allocations: 0 / 432.5 MB, free: 5.977 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.5837, allocations: 3.906 kB / 432.5 MB, free: 5.977 MB / 330.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.001268/0.5849, allocations: 0.5812 MB / 433.1 MB, free: 5.492 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.585, allocations: 7.688 kB / 433.1 MB, free: 5.492 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.764e-05/0.5851, allocations: 69.56 kB / 433.2 MB, free: 5.445 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.34e-05/0.5852, allocations: 38.72 kB / 433.2 MB, free: 5.426 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004087/0.5856, allocations: 271.6 kB / 433.5 MB, free: 5.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.334e-05/0.5857, allocations: 21.78 kB / 433.5 MB, free: 5.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.476e-05/0.5857, allocations: 31.94 kB / 433.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005867/0.5863, allocations: 258.6 kB / 433.8 MB, free: 5.105 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.5864, allocations: 0 / 433.8 MB, free: 5.105 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.113e-05/0.5864, allocations: 20.33 kB / 433.8 MB, free: 5.098 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.5864, allocations: 7.812 kB / 433.8 MB, free: 5.098 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005255/0.587, allocations: 204.8 kB / 434 MB, free: 5.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002378/0.5894, allocations: 1.136 MB / 435.2 MB, free: 4.301 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.5897, allocations: 122.7 kB / 435.3 MB, free: 4.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/0.5898, allocations: 59.67 kB / 435.3 MB, free: 4.254 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.773e-05/0.5899, allocations: 10.53 kB / 435.4 MB, free: 4.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.5899, allocations: 33.88 kB / 435.4 MB, free: 4.211 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 2.384e-06/0.5899, allocations: 0 / 435.4 MB, free: 4.211 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.002254/0.5922, allocations: 0.5009 MB / 435.9 MB, free: 4.012 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.5922, allocations: 55.59 kB / 435.9 MB, free: 3.945 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003285/0.5926, allocations: 254.4 kB / 436.2 MB, free: 3.824 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.5926, allocations: 29.42 kB / 436.2 MB, free: 3.793 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.5927, allocations: 225.7 kB / 436.4 MB, free: 3.621 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.008e-05/0.5928, allocations: 81.77 kB / 436.5 MB, free: 3.566 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.5929, allocations: 3.125 kB / 436.5 MB, free: 3.566 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.382e-05/0.5929, allocations: 339.2 kB / 436.9 MB, free: 3.242 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.5931, allocations: 70.69 kB / 436.9 MB, free: 3.242 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.5934, allocations: 156.1 kB / 437.1 MB, free: 3.121 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.5936, allocations: 101.8 kB / 437.2 MB, free: 3.098 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.5936, allocations: 3.812 kB / 437.2 MB, free: 3.098 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007198/0.5944, allocations: 323.5 kB / 437.5 MB, free: 2.992 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.5944, allocations: 10.19 kB / 437.5 MB, free: 2.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.5944, allocations: 8.188 kB / 437.5 MB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000307/0.5947, allocations: 63.5 kB / 437.6 MB, free: 2.953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005886/0.5953, allocations: 84.36 kB / 437.7 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002261/0.5976, allocations: 2.628 MB / 440.3 MB, free: 16.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004913/0.5981, allocations: 28.84 kB / 440.3 MB, free: 16.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.976e-05/0.5982, allocations: 14.72 kB / 440.3 MB, free: 16.33 MB / 346.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.0001272/0.5983, allocations: 126.8 kB / 440.5 MB, free: 16.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.12e-05/0.5984, allocations: 27.16 kB / 440.5 MB, free: 16.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.792e-05/0.5985, allocations: 37.47 kB / 440.5 MB, free: 16.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.5985, allocations: 3.844 kB / 440.5 MB, free: 16.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.5985, allocations: 0 / 440.5 MB, free: 16.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.5985, allocations: 0 / 440.5 MB, free: 16.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004609/0.599, allocations: 331.6 kB / 440.8 MB, free: 15.94 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.599, allocations: 7.875 kB / 440.9 MB, free: 15.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003743/0.5994, allocations: 45.75 kB / 440.9 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002312/0.5996, allocations: 54.61 kB / 441 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.5997, allocations: 6.781 kB / 441 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002343/0.602, allocations: 2.632 MB / 443.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.602, allocations: 0 / 443.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005752/0.6026, allocations: 321.1 kB / 443.9 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.536e-05/0.6027, allocations: 103.5 kB / 444 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.573e-05/0.6028, allocations: 0 / 444 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003705/0.6032, allocations: 19.11 kB / 444 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.022e-05/0.6033, allocations: 22.72 kB / 444 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.6033, allocations: 11.19 kB / 444.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002565/0.6036, allocations: 190 kB / 444.2 MB, free: 12.89 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6036, allocations: 0 / 444.2 MB, free: 12.89 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000564/0.6042, allocations: 73.78 kB / 444.3 MB, free: 12.89 MB / 346.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.0009019/0.6051, allocations: 0.8641 MB / 445.2 MB, free: 12.17 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007859/0.6059, allocations: 410.5 kB / 445.6 MB, free: 11.94 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6059, allocations: 4.188 kB / 445.6 MB, free: 11.93 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004521/0.6064, allocations: 299.4 kB / 445.9 MB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003383/0.6067, allocations: 33.8 kB / 445.9 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.608, allocations: 392.8 kB / 446.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004215/0.6084, allocations: 0.7907 MB / 447.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002124/0.6086, allocations: 25.66 kB / 447.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001802/0.6088, allocations: 106.2 kB / 447.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of SimCode: time 9.32e-07/0.6088, allocations: 0 / 447.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03219/0.641, allocations: 5.18 MB / 452.4 MB, free: 8.23 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003271/0.6414, allocations: 216.5 kB / 452.6 MB, free: 8.008 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.615/3.256, allocations: 0 / 452.6 MB, free: 8.008 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat