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 2.004/2.004, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.987e-05/2.991e-05, allocations: 4 kB / 255.5 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09182/0.09187, allocations: 44.49 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3968/0.4887, allocations: 74.93 MB / 374.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.489, allocations: 70.22 kB / 374.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02964/0.5187, allocations: 6.858 MB / 381.8 MB, free: 11.78 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.5187, allocations: 1.312 kB / 381.8 MB, free: 11.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.785e-05/0.5187, allocations: 9.562 kB / 381.8 MB, free: 11.77 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.00109/0.5198, allocations: 0.5199 MB / 382.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.5199, allocations: 13.16 kB / 382.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.889e-05/0.52, allocations: 67.86 kB / 382.4 MB, free: 11.31 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.047e-05/0.5201, allocations: 31.66 kB / 382.4 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004024/0.5205, allocations: 260.2 kB / 382.7 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/0.5205, allocations: 25.86 kB / 382.7 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.96e-05/0.5206, allocations: 24.31 kB / 382.7 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005701/0.5212, allocations: 229.2 kB / 383 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.5212, allocations: 0 / 383 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.897e-05/0.5213, allocations: 12.88 kB / 383 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.5213, allocations: 10.31 kB / 383 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005102/0.5218, allocations: 183.1 kB / 383.2 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002232/0.5241, allocations: 1.021 MB / 384.2 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004814/0.5246, allocations: 186.1 kB / 384.4 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002748/0.5249, allocations: 98.78 kB / 384.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.801e-05/0.5249, allocations: 6.266 kB / 384.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.525, allocations: 41.03 kB / 384.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.615e-06/0.525, allocations: 0 / 384.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.006094/0.5311, allocations: 1.222 MB / 385.7 MB, free: 10.03 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.5312, allocations: 62.27 kB / 385.8 MB, free: 9.965 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/0.5315, allocations: 204.7 kB / 386 MB, free: 9.863 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.5315, allocations: 29.89 kB / 386 MB, free: 9.832 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.5317, allocations: 244 kB / 386.3 MB, free: 9.633 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.913e-05/0.5318, allocations: 116.1 kB / 386.4 MB, free: 9.559 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-05/0.5318, allocations: 8.625 kB / 386.4 MB, free: 9.559 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.551e-05/0.5319, allocations: 320.6 kB / 386.7 MB, free: 9.246 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002805/0.5322, allocations: 97.55 kB / 386.8 MB, free: 9.246 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003089/0.5325, allocations: 148.1 kB / 386.9 MB, free: 9.191 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003253/0.5328, allocations: 119.2 kB / 387.1 MB, free: 9.184 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.5328, allocations: 0 / 387.1 MB, free: 9.184 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002462/0.5353, allocations: 0.4942 MB / 387.6 MB, free: 9.102 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.5354, allocations: 7.125 kB / 387.6 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.5354, allocations: 1.344 kB / 387.6 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.5368, allocations: 194.1 kB / 387.7 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004941/0.5373, allocations: 60.62 kB / 387.8 MB, free: 9.066 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005853/0.5432, allocations: 3.766 MB / 391.6 MB, free: 6.332 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004773/0.5437, allocations: 7.219 kB / 391.6 MB, free: 6.332 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.77e-05/0.5437, allocations: 21.36 kB / 391.6 MB, free: 6.328 MB / 314.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.0001274/0.5439, allocations: 122.6 kB / 391.7 MB, free: 6.219 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.566e-05/0.5439, allocations: 31.2 kB / 391.8 MB, free: 6.199 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.5441, allocations: 41.73 kB / 391.8 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.5441, allocations: 8.156 kB / 391.8 MB, free: 6.188 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.5441, allocations: 0 / 391.8 MB, free: 6.188 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.5441, allocations: 3.234 kB / 391.8 MB, free: 6.188 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003194/0.5473, allocations: 0.9374 MB / 392.7 MB, free: 21.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.5474, allocations: 0 / 392.7 MB, free: 21.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003708/0.5477, allocations: 41.67 kB / 392.8 MB, free: 21.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001238/0.549, allocations: 186.4 kB / 393 MB, free: 21.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.526e-05/0.549, allocations: 16.66 kB / 393 MB, free: 21.81 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006118/0.5552, allocations: 3.736 MB / 396.7 MB, free: 19.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5552, allocations: 0 / 396.7 MB, free: 19.09 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002596/0.5578, allocations: 0.713 MB / 397.4 MB, free: 18.87 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.558, allocations: 98.66 kB / 397.5 MB, free: 18.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.521e-05/0.558, allocations: 11.09 kB / 397.5 MB, free: 18.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003807/0.5584, allocations: 19.91 kB / 397.6 MB, free: 18.76 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.5586, allocations: 28.62 kB / 397.6 MB, free: 18.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.034e-05/0.5586, allocations: 14.59 kB / 397.6 MB, free: 18.76 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002136/0.5588, allocations: 160.2 kB / 397.8 MB, free: 18.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5588, allocations: 0 / 397.8 MB, free: 18.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008584/0.5597, allocations: 104.6 kB / 397.9 MB, free: 18.68 MB / 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.00304/0.5628, allocations: 1.337 MB / 399.2 MB, free: 17.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.564, allocations: 0.5116 MB / 399.7 MB, free: 17.63 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.564, allocations: 7.875 kB / 399.7 MB, free: 17.62 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006703/0.5647, allocations: 402.4 kB / 400.1 MB, free: 17.39 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003447/0.565, allocations: 19.73 kB / 400.1 MB, free: 17.39 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.5666, allocations: 0.5449 MB / 400.7 MB, free: 17.11 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.567, allocations: 0.782 MB / 401.5 MB, free: 16.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.5672, allocations: 94.02 kB / 401.5 MB, free: 16.4 MB / 330.7 MB Notification: Performance of SimCode: time 8.71e-07/0.5672, allocations: 0 / 401.5 MB, free: 16.4 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.687/3.254, allocations: 7.073 MB / 408.6 MB, free: 15.73 MB / 330.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