Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.957/1.957, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.692e-05/1.691e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.2998, allocations: 44.49 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1427/0.4426, allocations: 74.26 MB / 368.5 MB, free: 7.617 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003262/0.4429, allocations: 71.97 kB / 368.5 MB, free: 7.547 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03944/0.4824, allocations: 6.79 MB / 375.3 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4825, allocations: 0 / 375.3 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.225e-05/0.4825, allocations: 4 kB / 375.3 MB, free: 0.7148 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001518/0.484, allocations: 0.53 MB / 375.9 MB, free: 144 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/0.4841, allocations: 8.031 kB / 375.9 MB, free: 136 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001269/0.4843, allocations: 31.62 kB / 375.9 MB, free: 104 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006582/0.4849, allocations: 267 kB / 376.2 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.04e-05/0.485, allocations: 12 kB / 376.2 MB, free: 15.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.956e-05/0.4851, allocations: 12 kB / 376.2 MB, free: 15.78 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007841/0.4859, allocations: 173 kB / 376.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007678/0.4867, allocations: 195.8 kB / 376.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.991e-05/0.4867, allocations: 4 kB / 376.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.479e-05/0.4868, allocations: 0 / 376.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/0.4868, allocations: 8 kB / 376.5 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003171/0.49, allocations: 0.9634 MB / 377.5 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006384/0.4907, allocations: 182.5 kB / 377.7 MB, free: 14.17 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003703/0.4911, allocations: 93.25 kB / 377.8 MB, free: 14.08 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.758e-05/0.4911, allocations: 3.859 kB / 377.8 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.4912, allocations: 38.56 kB / 377.8 MB, free: 14.03 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.437e-06/0.4912, allocations: 0 / 377.8 MB, free: 14.03 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.007434/0.4986, allocations: 1.096 MB / 378.9 MB, free: 12.87 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/0.4987, allocations: 55.41 kB / 379 MB, free: 12.8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003862/0.4991, allocations: 183.1 kB / 379.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.249e-05/0.4992, allocations: 29.7 kB / 379.2 MB, free: 12.58 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002171/0.4995, allocations: 246.8 kB / 379.4 MB, free: 12.34 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.4996, allocations: 114.3 kB / 379.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.426e-05/0.4997, allocations: 0 / 379.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.4999, allocations: 326.8 kB / 379.9 MB, free: 11.9 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003895/0.5003, allocations: 88.72 kB / 379.9 MB, free: 11.81 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004645/0.5008, allocations: 150.5 kB / 380.1 MB, free: 11.64 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004692/0.5013, allocations: 109.5 kB / 380.2 MB, free: 11.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.5013, allocations: 0 / 380.2 MB, free: 11.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002979/0.5043, allocations: 476.8 kB / 380.7 MB, free: 11.06 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.5043, allocations: 4 kB / 380.7 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.5044, allocations: 0 / 380.7 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001335/0.5057, allocations: 189.5 kB / 380.8 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005129/0.5062, allocations: 63.91 kB / 380.9 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006799/0.5131, allocations: 3.612 MB / 384.5 MB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004378/0.5135, allocations: 16.3 kB / 384.5 MB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.015e-05/0.5136, allocations: 12 kB / 384.5 MB, free: 6.934 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001781/0.5138, allocations: 112.7 kB / 384.7 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002321/0.5161, allocations: 442.8 kB / 385.1 MB, free: 6.371 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.5163, allocations: 27.72 kB / 385.1 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001506/0.5165, allocations: 35.39 kB / 385.2 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.5165, allocations: 4 kB / 385.2 MB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.5165, allocations: 4 kB / 385.2 MB, free: 6.301 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.5165, allocations: 4 kB / 385.2 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003121/0.5197, allocations: 0.8563 MB / 386 MB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.5197, allocations: 0 / 386 MB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003949/0.5201, allocations: 39.98 kB / 386.1 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001272/0.5214, allocations: 185.5 kB / 386.2 MB, free: 5.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.829e-05/0.5214, allocations: 0 / 386.2 MB, free: 5.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00647/0.5279, allocations: 3.624 MB / 389.9 MB, free: 1.301 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/0.528, allocations: 0 / 389.9 MB, free: 1.301 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002692/0.5307, allocations: 0.6792 MB / 390.5 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.5308, allocations: 104.9 kB / 390.6 MB, free: 480 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.915e-05/0.5309, allocations: 0 / 390.6 MB, free: 480 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003768/0.5313, allocations: 12.27 kB / 390.7 MB, free: 468 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.5314, allocations: 27.92 kB / 390.7 MB, free: 440 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.458e-05/0.5315, allocations: 11.98 kB / 390.7 MB, free: 428 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002039/0.5317, allocations: 149.6 kB / 390.8 MB, free: 280 kB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5317, allocations: 0 / 390.8 MB, free: 280 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008754/0.5326, allocations: 91.94 kB / 390.9 MB, free: 188 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003142/0.5358, allocations: 1.3 MB / 392.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.537, allocations: 0.499 MB / 392.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.537, allocations: 4.25 kB / 392.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007576/0.5378, allocations: 395.1 kB / 393.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003603/0.5382, allocations: 19.42 kB / 393.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.5399, allocations: 0.5063 MB / 393.6 MB, free: 13.34 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000468/0.5404, allocations: 0.784 MB / 394.4 MB, free: 12.53 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/0.5406, allocations: 91.41 kB / 394.5 MB, free: 12.44 MB / 346.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5406, allocations: 0 / 394.5 MB, free: 12.44 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.001/3.541, allocations: 7.027 MB / 401.5 MB, free: 5.402 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat