Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.018/2.018, allocations: 209.3 MB / 221.5 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.791e-05/3.808e-05, allocations: 4 kB / 273.2 MB, free: 160 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1042, allocations: 48.7 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.428/0.5323, allocations: 91.53 MB / 413.4 MB, free: 14.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/0.5326, allocations: 79.95 kB / 413.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3881/0.9207, allocations: 78.84 MB / 492.3 MB, free: 14.59 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.9208, allocations: 4 kB / 492.3 MB, free: 14.58 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002955/0.9211, allocations: 71.98 kB / 492.4 MB, free: 14.51 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.01757/0.9387, allocations: 3.529 MB / 495.9 MB, free: 10.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.374e-05/0.9388, allocations: 12.03 kB / 495.9 MB, free: 10.92 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003098/0.9419, allocations: 0.6923 MB / 496.6 MB, free: 10.21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03322/0.9752, allocations: 4.324 MB / 0.4892 GB, free: 5.879 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01801/0.9933, allocations: 4.369 MB / 0.4935 GB, free: 1.445 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004516/0.9938, allocations: 283.3 kB / 0.4937 GB, free: 1.168 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002171/0.9959, allocations: 367.8 kB / 0.4941 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3154/1.311, allocations: 9.023 MB / 0.5029 GB, free: 96.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002155/1.312, allocations: 56.31 kB / 0.5029 GB, free: 96.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009956/1.313, allocations: 183.3 kB / 0.5031 GB, free: 96.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00208/1.315, allocations: 0.8989 MB / 0.504 GB, free: 96.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02156/1.336, allocations: 7.24 MB / 0.5111 GB, free: 96.77 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05484/1.391, allocations: 42.65 MB / 0.5527 GB, free: 66.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007652/1.399, allocations: 2.492 MB / 0.5552 GB, free: 65.63 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002168/1.401, allocations: 1.067 MB / 0.5562 GB, free: 65.18 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004869/1.402, allocations: 334.3 kB / 0.5565 GB, free: 64.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/1.402, allocations: 50.02 kB / 0.5566 GB, free: 64.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 5.891e-06/1.402, allocations: 0 / 0.5566 GB, free: 64.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.02931/1.431, allocations: 7.481 MB / 0.5639 GB, free: 61.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.526e-05/1.431, allocations: 196.5 kB / 0.5641 GB, free: 61.35 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007187/1.438, allocations: 3.458 MB / 0.5674 GB, free: 60.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003241/1.439, allocations: 49.61 kB / 0.5675 GB, free: 60.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002419/1.441, allocations: 2.957 MB / 0.5704 GB, free: 57.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007425/1.442, allocations: 0.545 MB / 0.5709 GB, free: 57.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005137/1.443, allocations: 110.9 kB / 0.571 GB, free: 57.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003811/1.443, allocations: 0.5552 MB / 0.5715 GB, free: 57.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003739/1.447, allocations: 1.592 MB / 0.5731 GB, free: 56.56 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00617/1.453, allocations: 5.378 MB / 0.5784 GB, free: 50.85 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006195/1.459, allocations: 2.93 MB / 0.5812 GB, free: 49.78 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001246/1.459, allocations: 38.97 kB / 0.5812 GB, free: 49.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01731/1.477, allocations: 6.835 MB / 0.5879 GB, free: 47.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/1.477, allocations: 65 kB / 0.588 GB, free: 47.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001824/1.477, allocations: 135.4 kB / 0.5881 GB, free: 47.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/1.478, allocations: 372.2 kB / 0.5885 GB, free: 47.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007545/1.486, allocations: 1.324 MB / 0.5898 GB, free: 47.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004209/1.49, allocations: 2.742 MB / 0.5924 GB, free: 45.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006042/1.496, allocations: 295.4 kB / 0.5927 GB, free: 45.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001204/1.497, allocations: 373.2 kB / 0.5931 GB, free: 44.96 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (715): * Single equations (assignments): 711 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001052/1.498, allocations: 0.5481 MB / 0.5936 GB, free: 44.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007918/1.499, allocations: 325.3 kB / 0.5939 GB, free: 44.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004146/1.503, allocations: 1.559 MB / 0.5954 GB, free: 43.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.652e-05/1.503, allocations: 13.56 kB / 0.5955 GB, free: 43.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/1.503, allocations: 3.031 kB / 0.5955 GB, free: 43.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.007e-05/1.503, allocations: 9.234 kB / 0.5955 GB, free: 43.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01445/1.518, allocations: 5.211 MB / 0.6006 GB, free: 40.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/1.518, allocations: 7.875 kB / 0.6006 GB, free: 40.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/1.52, allocations: 193.9 kB / 0.6008 GB, free: 39.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007762/1.521, allocations: 159.5 kB / 0.6009 GB, free: 39.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001759/1.521, allocations: 23.89 kB / 0.6009 GB, free: 39.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003152/1.524, allocations: 2.147 MB / 0.603 GB, free: 37.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/1.524, allocations: 4 kB / 0.603 GB, free: 37.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007042/1.531, allocations: 3.523 MB / 0.6065 GB, free: 34.42 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/1.533, allocations: 0.5226 MB / 0.607 GB, free: 33.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008197/1.534, allocations: 24 kB / 0.607 GB, free: 33.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002353/1.536, allocations: 52.59 kB / 0.6071 GB, free: 33.86 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003679/1.537, allocations: 75.91 kB / 0.6071 GB, free: 33.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/1.537, allocations: 41.12 kB / 0.6072 GB, free: 33.77 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005956/1.543, allocations: 2.398 MB / 0.6095 GB, free: 31.67 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.543, allocations: 0 / 0.6095 GB, free: 31.67 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006175/1.549, allocations: 0.8437 MB / 0.6103 GB, free: 30.83 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007466/1.557, allocations: 4.606 MB / 0.6148 GB, free: 26.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0087/1.565, allocations: 3.917 MB / 0.6187 GB, free: 22.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/1.565, allocations: 0 / 0.6187 GB, free: 22.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002083/1.567, allocations: 0.9531 MB / 0.6196 GB, free: 22.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002883/1.57, allocations: 358.3 kB / 0.6199 GB, free: 21.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02338/1.594, allocations: 7.425 MB / 0.6272 GB, free: 15.24 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005736/1.6, allocations: 3.032 MB / 0.6301 GB, free: 12.92 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00785/1.607, allocations: 1.814 MB / 0.6319 GB, free: 11.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003707/1.611, allocations: 1.635 MB / 0.6335 GB, free: 10.26 MB / 426.7 MB Notification: Performance of SimCode: time 2.094e-06/1.611, allocations: 0 / 0.6335 GB, free: 10.26 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4634/2.075, allocations: 65.75 MB / 0.6977 GB, free: 100.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001976/2.075, allocations: 168 kB / 0.6979 GB, free: 100.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.834/6.909, allocations: 0 / 0.6979 GB, free: 100.5 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat