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.936/1.936, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.384e-05/3.403e-05, allocations: 4 kB / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09219/0.09226, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.396/0.4883, allocations: 74.92 MB / 374.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/0.4887, allocations: 71.38 kB / 374.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0317/0.5204, allocations: 6.838 MB / 381.8 MB, free: 11.74 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5204, allocations: 3.938 kB / 381.8 MB, free: 11.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.177e-05/0.5205, allocations: 8.703 kB / 381.8 MB, free: 11.73 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.001194/0.5217, allocations: 0.5245 MB / 382.3 MB, free: 11.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.5218, allocations: 8.875 kB / 382.3 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001385/0.5219, allocations: 64.34 kB / 382.4 MB, free: 11.28 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.522, allocations: 36.94 kB / 382.4 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004908/0.5225, allocations: 263.1 kB / 382.7 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.5226, allocations: 25.84 kB / 382.7 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.459e-05/0.5226, allocations: 29.17 kB / 382.7 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006358/0.5233, allocations: 235.5 kB / 382.9 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.5233, allocations: 0 / 382.9 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.365e-05/0.5234, allocations: 10.12 kB / 383 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.5234, allocations: 6.594 kB / 383 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000556/0.524, allocations: 186.1 kB / 383.1 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002549/0.5265, allocations: 1.019 MB / 384.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005536/0.5272, allocations: 194.7 kB / 384.4 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002941/0.5275, allocations: 105.5 kB / 384.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.429e-05/0.5275, allocations: 2.75 kB / 384.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.5276, allocations: 31.94 kB / 384.5 MB, free: 10.37 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.246e-06/0.5276, allocations: 0 / 384.5 MB, free: 10.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.006475/0.5341, allocations: 1.229 MB / 385.7 MB, free: 9.984 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.5342, allocations: 59.23 kB / 385.8 MB, free: 9.918 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003533/0.5345, allocations: 203.8 kB / 386 MB, free: 9.816 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.66e-05/0.5346, allocations: 29.52 kB / 386 MB, free: 9.785 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.5347, allocations: 240.5 kB / 386.2 MB, free: 9.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.5349, allocations: 115.3 kB / 386.4 MB, free: 9.516 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.849e-05/0.5349, allocations: 8.5 kB / 386.4 MB, free: 9.516 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.98e-05/0.535, allocations: 326.4 kB / 386.7 MB, free: 9.203 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/0.5353, allocations: 99.56 kB / 386.8 MB, free: 9.199 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003276/0.5356, allocations: 152.2 kB / 386.9 MB, free: 9.141 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000338/0.536, allocations: 112.6 kB / 387 MB, free: 9.137 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.536, allocations: 0 / 387 MB, free: 9.137 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002516/0.5385, allocations: 0.5032 MB / 387.5 MB, free: 9.051 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.5386, allocations: 6.906 kB / 387.5 MB, free: 9.051 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.5386, allocations: 2.656 kB / 387.5 MB, free: 9.051 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001542/0.5402, allocations: 192.1 kB / 387.7 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005292/0.5408, allocations: 53.92 kB / 387.8 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006418/0.5472, allocations: 3.761 MB / 391.5 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005107/0.5478, allocations: 15.8 kB / 391.6 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.161e-05/0.5478, allocations: 25.36 kB / 391.6 MB, free: 6.281 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.0003787/0.5482, allocations: 118.7 kB / 391.7 MB, free: 22.17 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.97e-05/0.5483, allocations: 27.33 kB / 391.7 MB, free: 22.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001371/0.5485, allocations: 41.64 kB / 391.8 MB, free: 22.15 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.5485, allocations: 4.125 kB / 391.8 MB, free: 22.15 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/0.5485, allocations: 0 / 391.8 MB, free: 22.15 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.5485, allocations: 0 / 391.8 MB, free: 22.15 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003122/0.5517, allocations: 0.9419 MB / 392.7 MB, free: 21.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.5517, allocations: 0 / 392.7 MB, free: 21.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003989/0.5521, allocations: 47.06 kB / 392.8 MB, free: 21.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001265/0.5534, allocations: 183.7 kB / 392.9 MB, free: 21.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.253e-05/0.5535, allocations: 7.453 kB / 392.9 MB, free: 21.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006665/0.5602, allocations: 3.753 MB / 396.7 MB, free: 19.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.5602, allocations: 80 / 396.7 MB, free: 19.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002716/0.563, allocations: 0.7096 MB / 397.4 MB, free: 18.83 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.5632, allocations: 98.89 kB / 397.5 MB, free: 18.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.849e-05/0.5632, allocations: 11.66 kB / 397.5 MB, free: 18.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003855/0.5636, allocations: 13.95 kB / 397.5 MB, free: 18.72 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.5638, allocations: 30.64 kB / 397.6 MB, free: 18.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.223e-05/0.5638, allocations: 14.06 kB / 397.6 MB, free: 18.72 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002186/0.5641, allocations: 158.7 kB / 397.7 MB, free: 18.64 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5641, allocations: 288 / 397.7 MB, free: 18.64 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008346/0.5649, allocations: 103.5 kB / 397.8 MB, free: 18.64 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.003199/0.5682, allocations: 1.351 MB / 399.2 MB, free: 17.81 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.5694, allocations: 0.5281 MB / 399.7 MB, free: 17.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.5695, allocations: 0 / 399.7 MB, free: 17.57 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007944/0.5703, allocations: 430.5 kB / 400.1 MB, free: 17.31 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.5707, allocations: 24.88 kB / 400.2 MB, free: 17.31 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.5724, allocations: 0.529 MB / 400.7 MB, free: 17.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.5729, allocations: 0.7883 MB / 401.5 MB, free: 16.33 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.5731, allocations: 94.89 kB / 401.6 MB, free: 16.32 MB / 330.7 MB Notification: Performance of SimCode: time 9.12e-07/0.5731, allocations: 0 / 401.6 MB, free: 16.32 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.891/3.464, allocations: 7.082 MB / 408.6 MB, free: 15.66 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