Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.87/1.87, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.027e-05/4.032e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1025, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4353/0.5379, allocations: 98.7 MB / 420.6 MB, free: 7.051 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/0.5382, allocations: 74.58 kB / 420.6 MB, free: 6.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.183/1.721, allocations: 248.4 MB / 0.6533 GB, free: 2.301 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.984e-06/1.721, allocations: 0 / 0.6533 GB, free: 2.301 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007734/1.722, allocations: 371.9 kB / 0.6537 GB, free: 1.938 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: 5960 * Number of variables: 5960 Notification: Performance of Generate backend data structure: time 0.7/2.422, allocations: 15.62 MB / 0.6689 GB, free: 24.5 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.293e-05/2.422, allocations: 9.281 kB / 0.669 GB, free: 24.5 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01549/2.438, allocations: 3.068 MB / 0.6719 GB, free: 24.32 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06213/2.5, allocations: 8.286 MB / 0.68 GB, free: 23.29 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04421/2.544, allocations: 12.4 MB / 0.6922 GB, free: 21.91 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001904/2.546, allocations: 1.497 MB / 0.6936 GB, free: 21.86 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009588/2.556, allocations: 1.968 MB / 0.6955 GB, free: 21.85 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1599/2.716, allocations: 42.05 MB / 0.7366 GB, free: 13.79 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00147/2.717, allocations: 150.2 kB / 0.7367 GB, free: 13.77 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00914/2.727, allocations: 0.8848 MB / 0.7376 GB, free: 13.17 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005184/2.732, allocations: 2.382 MB / 0.7399 GB, free: 12.77 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1166/2.848, allocations: 33.2 MB / 0.7723 GB, free: 14 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6371/3.486, allocations: 146.8 MB / 0.9157 GB, free: 31.83 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1077/3.593, allocations: 22.39 MB / 0.9375 GB, free: 29.45 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01221/3.606, allocations: 6.731 MB / 0.9441 GB, free: 29.41 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0627/3.668, allocations: 27.33 MB / 0.9708 GB, free: 24.58 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.352e-05/3.668, allocations: 75.52 kB / 0.9709 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=372): time 1.23e-05/3.668, allocations: 3.938 kB / 0.9709 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of matching and sorting (n=486): time 2.333/6.001, allocations: 280.7 MB / 1.245 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/6.002, allocations: 285.8 kB / 1.245 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02441/6.026, allocations: 8.945 MB / 1.254 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002602/6.029, allocations: 98.56 kB / 1.254 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.008632/6.037, allocations: 10.59 MB / 1.264 GB, free: 97.03 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004633/6.042, allocations: 1.892 MB / 1.266 GB, free: 95.98 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004386/6.046, allocations: 343.3 kB / 1.267 GB, free: 95.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.002383/6.049, allocations: 1.035 MB / 1.268 GB, free: 95.63 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03379/6.083, allocations: 15.7 MB / 1.283 GB, free: 91.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04154/6.124, allocations: 26.17 MB / 1.308 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0581/6.182, allocations: 19.83 MB / 1.328 GB, free: 62.97 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005792/6.183, allocations: 107.7 kB / 1.328 GB, free: 62.97 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.1173/6.3, allocations: 40.35 MB / 1.367 GB, free: 40.83 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002856/6.301, allocations: 167.9 kB / 1.368 GB, free: 40.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005731/6.301, allocations: 380 kB / 1.368 GB, free: 40.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002469/6.304, allocations: 0.8618 MB / 1.369 GB, free: 39.52 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.045/6.349, allocations: 5.294 MB / 1.374 GB, free: 35.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008265/6.357, allocations: 5.654 MB / 1.379 GB, free: 29.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03087/6.388, allocations: 2.152 MB / 1.382 GB, free: 28.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005117/6.393, allocations: 1.025 MB / 1.383 GB, free: 27.52 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1714 * Number of states: 0 () * Number of discrete variables: 45 (relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (2150): * Single equations (assignments): 2140 * Array equations: 8 * 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: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008472/6.402, allocations: 1.394 MB / 1.384 GB, free: 26.12 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003915/6.406, allocations: 0.8676 MB / 1.385 GB, free: 25.24 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4758/6.882, allocations: 30.25 MB / 1.414 GB, free: 94.26 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002321/6.882, allocations: 93.69 kB / 1.414 GB, free: 94.26 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.332e-05/6.882, allocations: 7.125 kB / 1.414 GB, free: 94.26 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000138/6.882, allocations: 26 kB / 1.414 GB, free: 94.26 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1551/7.037, allocations: 72.13 MB / 1.485 GB, free: 61.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.85e-05/7.037, allocations: 3.844 kB / 1.485 GB, free: 61.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02345/7.061, allocations: 2.11 MB / 1.487 GB, free: 61.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00164/7.062, allocations: 315.2 kB / 1.487 GB, free: 61.75 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002477/7.065, allocations: 80.12 kB / 1.487 GB, free: 61.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006265/7.071, allocations: 4.295 MB / 1.491 GB, free: 58.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/7.071, allocations: 1.969 kB / 1.491 GB, free: 58.48 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1024/7.174, allocations: 50.36 MB / 1.541 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01382/7.188, allocations: 3.953 MB / 1.545 GB, free: 27.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005587/7.193, allocations: 74.42 kB / 1.545 GB, free: 27.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02122/7.214, allocations: 1.637 MB / 1.546 GB, free: 26.93 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003342/7.218, allocations: 254.2 kB / 1.546 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002289/7.22, allocations: 132.4 kB / 1.547 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01648/7.237, allocations: 6.162 MB / 1.553 GB, free: 21.22 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.542e-06/7.237, allocations: 0 / 1.553 GB, free: 21.22 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02753/7.264, allocations: 4.277 MB / 1.557 GB, free: 16.97 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (444): * Single equations (assignments): 434 * Array equations: 8 * 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: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4988/7.763, allocations: 51.38 MB / 1.607 GB, free: 90.63 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.06946/7.833, allocations: 34.24 MB / 1.64 GB, free: 79.87 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-05/7.833, allocations: 3.812 kB / 1.64 GB, free: 79.86 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02957/7.862, allocations: 14.79 MB / 1.655 GB, free: 72.99 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01226/7.875, allocations: 1.32 MB / 1.656 GB, free: 72.51 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1564/8.031, allocations: 49.67 MB / 1.705 GB, free: 48.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04033/8.071, allocations: 11.35 MB / 1.716 GB, free: 40.65 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03788/8.109, allocations: 7.8 MB / 1.723 GB, free: 33.38 MB / 0.5105 GB Notification: Performance of SimCode: time 2.114e-06/8.109, allocations: 3.375 kB / 1.723 GB, free: 33.38 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.472/17.58, allocations: 484.4 MB / 2.196 GB, free: 119.4 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat