Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.9/1.9, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.16e-05/2.171e-05, allocations: 0 / 219.6 MB, free: 6.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2891, allocations: 38.76 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1451/0.4343, allocations: 78.53 MB / 336.9 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003555/0.4347, allocations: 83.95 kB / 337 MB, free: 15.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0927/0.5274, allocations: 21.1 MB / 358.1 MB, free: 9.969 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.5275, allocations: 0 / 358.1 MB, free: 9.969 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.546e-05/0.5276, allocations: 24 kB / 358.1 MB, free: 9.945 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.004563/0.5322, allocations: 1.241 MB / 359.3 MB, free: 8.652 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.951e-05/0.5323, allocations: 16.03 kB / 359.3 MB, free: 8.637 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006152/0.5329, allocations: 131.1 kB / 359.5 MB, free: 8.508 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001863/0.5348, allocations: 0.6406 MB / 360.1 MB, free: 7.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.535, allocations: 57.92 kB / 360.2 MB, free: 7.766 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002654/0.5353, allocations: 52 kB / 360.2 MB, free: 7.715 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002344/0.5376, allocations: 0.7186 MB / 360.9 MB, free: 6.996 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002338/0.54, allocations: 0.7901 MB / 361.7 MB, free: 6.191 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.351e-05/0.5401, allocations: 15.89 kB / 361.7 MB, free: 6.176 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/0.5402, allocations: 0 / 361.7 MB, free: 6.176 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.233e-05/0.5402, allocations: 24 kB / 361.8 MB, free: 6.152 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009788/0.55, allocations: 3.661 MB / 365.4 MB, free: 2.301 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003329/0.5534, allocations: 0.8031 MB / 366.2 MB, free: 1.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009434/0.5544, allocations: 366.1 kB / 366.6 MB, free: 1.121 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.76e-05/0.5545, allocations: 8.562 kB / 366.6 MB, free: 1.113 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.949e-05/0.5546, allocations: 43.12 kB / 366.6 MB, free: 1.062 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 3.356e-06/0.5546, allocations: 0 / 366.6 MB, free: 1.062 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.2408/0.7955, allocations: 1.387 MB / 368 MB, free: 84.67 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.7956, allocations: 86.77 kB / 368.1 MB, free: 84.58 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001896/0.7975, allocations: 0.685 MB / 368.8 MB, free: 84.46 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001963/0.7977, allocations: 26.23 kB / 368.8 MB, free: 84.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005042/0.7982, allocations: 0.5113 MB / 369.3 MB, free: 84.28 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000323/0.7986, allocations: 274.4 kB / 369.6 MB, free: 84.13 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.878e-05/0.7987, allocations: 3.062 kB / 369.6 MB, free: 84.13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.7989, allocations: 400.7 kB / 370 MB, free: 83.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000874/0.7998, allocations: 284.4 kB / 370.3 MB, free: 83.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008584/0.8006, allocations: 440.1 kB / 370.7 MB, free: 83.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008255/0.8015, allocations: 316.8 kB / 371 MB, free: 83.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.792e-06/0.8015, allocations: 4.219 kB / 371 MB, free: 83.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002367/0.8039, allocations: 0.8334 MB / 371.8 MB, free: 83.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.469e-05/0.804, allocations: 39.53 kB / 371.9 MB, free: 83.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.804, allocations: 4 kB / 371.9 MB, free: 83.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.624e-05/0.804, allocations: 9.156 kB / 371.9 MB, free: 83.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002761/0.8068, allocations: 346.1 kB / 372.2 MB, free: 83.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.395e-05/0.8069, allocations: 16.16 kB / 372.2 MB, free: 83.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/0.8087, allocations: 102.5 kB / 372.3 MB, free: 83.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.8088, allocations: 39.7 kB / 372.4 MB, free: 83.53 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002559/0.8091, allocations: 121.5 kB / 372.5 MB, free: 83.43 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00172/0.8108, allocations: 0.6219 MB / 373.1 MB, free: 83.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002939/0.8111, allocations: 93.8 kB / 373.2 MB, free: 83.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009585/0.8121, allocations: 331.7 kB / 373.5 MB, free: 83.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/0.8122, allocations: 8.562 kB / 373.6 MB, free: 83.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.8122, allocations: 2.031 kB / 373.6 MB, free: 83.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.8122, allocations: 4.969 kB / 373.6 MB, free: 83.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005948/0.8182, allocations: 2.671 MB / 376.2 MB, free: 82.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/0.8182, allocations: 7.75 kB / 376.2 MB, free: 82.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001881/0.8201, allocations: 266 kB / 376.5 MB, free: 82.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.713e-05/0.8202, allocations: 24.98 kB / 376.5 MB, free: 82.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.365e-05/0.8202, allocations: 20.22 kB / 376.5 MB, free: 82.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.768e-05/0.8203, allocations: 18.48 kB / 376.6 MB, free: 82.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.411e-05/0.8203, allocations: 17 kB / 376.6 MB, free: 82.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001922/0.8222, allocations: 1.634 MB / 378.2 MB, free: 81.1 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003471/0.8226, allocations: 189 kB / 378.4 MB, free: 80.96 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002116/0.8228, allocations: 20.55 kB / 378.4 MB, free: 80.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/0.8242, allocations: 69.75 kB / 378.5 MB, free: 80.96 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.8244, allocations: 96.06 kB / 378.6 MB, free: 80.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.761e-05/0.8245, allocations: 35.94 kB / 378.6 MB, free: 80.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009659/0.8254, allocations: 0.5213 MB / 379.1 MB, free: 80.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8255, allocations: 0 / 379.1 MB, free: 80.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001637/0.8271, allocations: 194.1 kB / 379.3 MB, free: 80.86 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003092/0.8302, allocations: 5.448 MB / 384.8 MB, free: 75.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.8319, allocations: 0.7178 MB / 385.5 MB, free: 75.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.267e-05/0.832, allocations: 3.906 kB / 385.5 MB, free: 75.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008924/0.8329, allocations: 380.3 kB / 385.9 MB, free: 75.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/0.8344, allocations: 154.9 kB / 386 MB, free: 75.11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004462/0.8389, allocations: 1.626 MB / 387.6 MB, free: 74.13 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006277/0.8395, allocations: 1.054 MB / 388.7 MB, free: 73.41 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001015/0.8406, allocations: 127.1 kB / 388.8 MB, free: 73.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007728/0.8414, allocations: 383.2 kB / 389.2 MB, free: 73.09 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.8414, allocations: 0 / 389.2 MB, free: 73.09 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07627/0.9177, allocations: 16.9 MB / 406.1 MB, free: 65 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002343/0.918, allocations: 220.7 kB / 406.3 MB, free: 64.7 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.063/3.981, allocations: 0 / 406.3 MB, free: 64.7 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat