Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",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.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.271e-05/3.276e-05, allocations: 7.984 kB / 292.8 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1205, allocations: 50.41 MB / 343.2 MB, free: 8.969 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4516/0.5722, allocations: 80.94 MB / 424.1 MB, free: 8.387 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003323/0.5726, allocations: 87.11 kB / 424.2 MB, free: 8.387 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03717/0.6098, allocations: 11.36 MB / 435.6 MB, free: 4.629 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.6098, allocations: 0 / 435.6 MB, free: 4.629 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.6098, allocations: 3.875 kB / 435.6 MB, free: 4.629 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001573/0.6114, allocations: 0.6119 MB / 436.2 MB, free: 4.129 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.6115, allocations: 7.469 kB / 436.2 MB, free: 4.129 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.765e-05/0.6116, allocations: 73.42 kB / 436.3 MB, free: 4.078 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009317/0.6125, allocations: 102.2 kB / 436.4 MB, free: 4.039 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.6129, allocations: 263.2 kB / 436.6 MB, free: 3.805 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.6129, allocations: 25.81 kB / 436.6 MB, free: 3.805 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.219e-05/0.613, allocations: 31.72 kB / 436.7 MB, free: 3.801 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006676/0.6137, allocations: 321 kB / 437 MB, free: 3.707 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.6137, allocations: 0 / 437 MB, free: 3.707 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.286e-05/0.6138, allocations: 14.66 kB / 437 MB, free: 3.707 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.6138, allocations: 11.64 kB / 437 MB, free: 3.703 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005397/0.6144, allocations: 232.3 kB / 437.2 MB, free: 3.688 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002389/0.6168, allocations: 1.459 MB / 438.7 MB, free: 2.648 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007251/0.6175, allocations: 0.6788 MB / 439.4 MB, free: 2.051 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.6177, allocations: 105.3 kB / 439.5 MB, free: 2.039 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001038/0.6178, allocations: 81.08 kB / 439.6 MB, free: 1.945 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.6179, allocations: 41.42 kB / 439.6 MB, free: 1.902 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 2.675e-06/0.6179, allocations: 4 kB / 439.6 MB, free: 1.898 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007208/0.6186, allocations: 252.9 kB / 439.8 MB, free: 1.816 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.445e-05/0.6187, allocations: 51.41 kB / 439.9 MB, free: 1.754 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.6188, allocations: 154.8 kB / 440 MB, free: 1.652 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.6189, allocations: 32.92 kB / 440.1 MB, free: 1.621 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.875e-05/0.619, allocations: 172.8 kB / 440.2 MB, free: 1.473 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.441e-05/0.619, allocations: 86.16 kB / 440.3 MB, free: 1.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.657e-05/0.6191, allocations: 7.75 kB / 440.3 MB, free: 1.406 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.6192, allocations: 329.9 kB / 440.7 MB, free: 17.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.6194, allocations: 67.75 kB / 440.7 MB, free: 17.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.6196, allocations: 109.7 kB / 440.8 MB, free: 17.03 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.6198, allocations: 93.22 kB / 440.9 MB, free: 17.01 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.6198, allocations: 0 / 440.9 MB, free: 17.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007482/0.6206, allocations: 311.8 kB / 441.2 MB, free: 16.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.6206, allocations: 11.7 kB / 441.2 MB, free: 16.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.6206, allocations: 0 / 441.2 MB, free: 16.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004297/0.6211, allocations: 75.78 kB / 441.3 MB, free: 16.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002705/0.6213, allocations: 41.98 kB / 441.4 MB, free: 16.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00235/0.6237, allocations: 1.828 MB / 443.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.6239, allocations: 23.34 kB / 443.2 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.624, allocations: 15.3 kB / 443.2 MB, free: 15.41 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001135/0.6241, allocations: 112.5 kB / 443.3 MB, free: 15.31 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.129e-05/0.6242, allocations: 15.22 kB / 443.3 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007728/0.6249, allocations: 290.2 kB / 443.6 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.625, allocations: 3.844 kB / 443.6 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.625, allocations: 288 / 443.6 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.625, allocations: 0 / 443.6 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001276/0.6263, allocations: 0.692 MB / 444.3 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.6263, allocations: 3.938 kB / 444.3 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000204/0.6265, allocations: 23.45 kB / 444.3 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003614/0.6269, allocations: 78.81 kB / 444.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/0.6269, allocations: 7.656 kB / 444.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00226/0.6292, allocations: 1.82 MB / 446.3 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.6292, allocations: 4 kB / 446.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009023/0.6301, allocations: 450.6 kB / 446.7 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.6303, allocations: 108.2 kB / 446.8 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.91e-05/0.6303, allocations: 7.766 kB / 446.8 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001832/0.6305, allocations: 7.719 kB / 446.8 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.279e-05/0.6306, allocations: 15.5 kB / 446.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.6306, allocations: 7.594 kB / 446.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001331/0.6308, allocations: 125.1 kB / 447 MB, free: 12.91 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6308, allocations: 4.062 kB / 447 MB, free: 12.9 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006682/0.6314, allocations: 100 kB / 447.1 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: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00134/0.6328, allocations: 1.002 MB / 448.1 MB, free: 12.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007686/0.6336, allocations: 330.1 kB / 448.4 MB, free: 12.03 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.6336, allocations: 0 / 448.4 MB, free: 12.03 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004358/0.6341, allocations: 231.3 kB / 448.6 MB, free: 11.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000319/0.6344, allocations: 22.41 kB / 448.6 MB, free: 11.89 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.6364, allocations: 477.6 kB / 449.1 MB, free: 11.61 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005232/0.6369, allocations: 0.7614 MB / 449.9 MB, free: 10.88 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002613/0.6372, allocations: 25.75 kB / 449.9 MB, free: 10.87 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000186/0.6374, allocations: 71.03 kB / 450 MB, free: 10.85 MB / 346.7 MB Notification: Performance of SimCode: time 1.462e-06/0.6375, allocations: 4 kB / 450 MB, free: 10.85 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03279/0.6703, allocations: 4.716 MB / 454.7 MB, free: 8.547 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/0.6705, allocations: 194.1 kB / 454.9 MB, free: 8.328 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/3.323, allocations: 0 / 454.9 MB, free: 8.328 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat