Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.504/2.504, allocations: 270 MB / 283.6 MB, free: 3.113 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.061e-05/5.07e-05, allocations: 7.219 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1365, allocations: 61.88 MB / 410.4 MB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5505/0.687, allocations: 91.76 MB / 0.4904 GB, free: 12.29 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003035/0.6874, allocations: 81.08 kB / 0.4904 GB, free: 12.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02617/0.7136, allocations: 5.786 MB / 0.4961 GB, free: 6.398 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.7136, allocations: 0 / 0.4961 GB, free: 6.398 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.902e-05/0.7137, allocations: 8 kB / 0.4961 GB, free: 6.391 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001559/0.7153, allocations: 0.6039 MB / 0.4967 GB, free: 5.742 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.7153, allocations: 8.031 kB / 0.4967 GB, free: 5.734 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001286/0.7155, allocations: 86.47 kB / 0.4968 GB, free: 5.641 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.7156, allocations: 40.91 kB / 0.4968 GB, free: 5.602 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004752/0.7161, allocations: 274.6 kB / 0.4971 GB, free: 5.293 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.043e-05/0.7161, allocations: 28.78 kB / 0.4971 GB, free: 5.266 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.672e-05/0.7162, allocations: 39.98 kB / 0.4971 GB, free: 5.227 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008591/0.7171, allocations: 310.1 kB / 0.4974 GB, free: 4.918 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.7172, allocations: 0 / 0.4974 GB, free: 4.918 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.368e-05/0.7172, allocations: 16 kB / 0.4975 GB, free: 4.902 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.44e-05/0.7172, allocations: 8 kB / 0.4975 GB, free: 4.895 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008118/0.7181, allocations: 269.5 kB / 0.4977 GB, free: 4.633 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00346/0.7215, allocations: 1.356 MB / 0.499 GB, free: 3.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000721/0.7223, allocations: 254.8 kB / 0.4993 GB, free: 2.922 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000367/0.7227, allocations: 149.4 kB / 0.4994 GB, free: 2.773 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.459e-05/0.7227, allocations: 8.266 kB / 0.4994 GB, free: 2.766 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.7228, allocations: 42.83 kB / 0.4995 GB, free: 2.715 MB / 410.7 MB Notification: Performance of pre-optimization done (n=34): time 2.274e-06/0.7228, allocations: 0 / 0.4995 GB, free: 2.715 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007572/0.7235, allocations: 255.8 kB / 0.4997 GB, free: 2.461 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.7236, allocations: 55.41 kB / 0.4998 GB, free: 2.395 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003669/0.724, allocations: 231.1 kB / 0.5 GB, free: 2.172 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.467e-05/0.724, allocations: 29.7 kB / 0.5 GB, free: 2.137 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.7242, allocations: 204 kB / 0.5002 GB, free: 1.934 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.7244, allocations: 114.2 kB / 0.5003 GB, free: 1.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.7244, allocations: 8 kB / 0.5003 GB, free: 1.812 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.7246, allocations: 346.8 kB / 0.5007 GB, free: 1.465 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002919/0.7249, allocations: 84.88 kB / 0.5008 GB, free: 1.379 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003568/0.7252, allocations: 154.7 kB / 0.5009 GB, free: 1.199 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003473/0.7256, allocations: 117.5 kB / 0.501 GB, free: 1.086 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.7256, allocations: 0 / 0.501 GB, free: 1.086 MB / 410.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000853/0.7265, allocations: 327.1 kB / 0.5013 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.7265, allocations: 8.219 kB / 0.5013 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.7265, allocations: 4 kB / 0.5013 GB, free: 0.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.7266, allocations: 7.984 kB / 0.5013 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009094/0.7275, allocations: 99.88 kB / 0.5014 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.42e-05/0.7275, allocations: 4 kB / 0.5014 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000477/0.728, allocations: 47.52 kB / 0.5015 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.551e-05/0.7281, allocations: 19.92 kB / 0.5015 GB, free: 0.5742 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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 prepare postOptimizeDAE: time 0.0001488/0.7282, allocations: 131.7 kB / 0.5016 GB, free: 452 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.673e-05/0.7283, allocations: 35.58 kB / 0.5017 GB, free: 416 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007983/0.7291, allocations: 288.5 kB / 0.5019 GB, free: 120 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.7292, allocations: 4 kB / 0.5019 GB, free: 116 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.7292, allocations: 0 / 0.5019 GB, free: 116 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.7292, allocations: 0 / 0.5019 GB, free: 116 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007182/0.7299, allocations: 405.1 kB / 0.5023 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.7299, allocations: 4 kB / 0.5023 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008038/0.7307, allocations: 87.88 kB / 0.5024 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.158e-05/0.7308, allocations: 7.953 kB / 0.5024 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/0.7308, allocations: 4 kB / 0.5024 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.7308, allocations: 4 kB / 0.5024 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.7308, allocations: 0 / 0.5024 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.7319, allocations: 487.6 kB / 0.5029 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.7322, allocations: 132.6 kB / 0.503 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.96e-05/0.7323, allocations: 16.02 kB / 0.503 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004118/0.7327, allocations: 12 kB / 0.5031 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.502e-05/0.7328, allocations: 19.97 kB / 0.5031 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.302e-05/0.7328, allocations: 11.98 kB / 0.5031 GB, free: 14.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002994/0.7332, allocations: 187.1 kB / 0.5033 GB, free: 14.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7332, allocations: 0 / 0.5033 GB, free: 14.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005711/0.7337, allocations: 91.84 kB / 0.5033 GB, free: 14.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (position.s,position.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 35 * 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.001446/0.7352, allocations: 1.013 MB / 0.5043 GB, free: 13.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000733/0.736, allocations: 239.7 kB / 0.5046 GB, free: 13.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.736, allocations: 4 kB / 0.5046 GB, free: 13.31 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003628/0.7363, allocations: 116.5 kB / 0.5047 GB, free: 13.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/0.7367, allocations: 28.95 kB / 0.5047 GB, free: 13.17 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.7389, allocations: 0.6277 MB / 0.5053 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004574/0.7393, allocations: 0.7913 MB / 0.5061 GB, free: 11.69 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000356/0.7397, allocations: 42.94 kB / 0.5061 GB, free: 11.64 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002769/0.74, allocations: 107.4 kB / 0.5062 GB, free: 11.54 MB / 426.7 MB Notification: Performance of SimCode: time 1.042e-06/0.74, allocations: 0 / 0.5062 GB, free: 11.54 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03637/0.7764, allocations: 5.153 MB / 0.5113 GB, free: 6.488 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002702/0.7767, allocations: 150.4 kB / 0.5114 GB, free: 6.266 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.729/3.506, allocations: 0 / 0.5114 GB, free: 6.266 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat does not exist to compare? outputFormat=mat