Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.978/1.978, allocations: 209.3 MB / 221.5 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.265e-05/4.324e-05, allocations: 4 kB / 273.1 MB, free: 172 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1071, allocations: 48.71 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4551/0.5623, allocations: 98.69 MB / 420.5 MB, free: 6.809 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/0.5626, allocations: 75.95 kB / 420.6 MB, free: 6.734 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.181/1.744, allocations: 248.4 MB / 0.6533 GB, free: 2.117 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.926e-06/1.744, allocations: 0 / 0.6533 GB, free: 2.117 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001376/1.745, allocations: 375.9 kB / 0.6537 GB, free: 1.75 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.7839/2.529, allocations: 15.62 MB / 0.6689 GB, free: 24.65 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.193e-05/2.529, allocations: 8.969 kB / 0.6689 GB, free: 24.65 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01637/2.546, allocations: 3.063 MB / 0.6719 GB, free: 24.46 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06391/2.61, allocations: 8.292 MB / 0.68 GB, free: 23.43 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04887/2.659, allocations: 12.41 MB / 0.6922 GB, free: 22.05 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002089/2.661, allocations: 1.495 MB / 0.6936 GB, free: 22.01 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01151/2.672, allocations: 1.966 MB / 0.6955 GB, free: 22 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1774/2.85, allocations: 42.29 MB / 0.7368 GB, free: 13.82 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001618/2.851, allocations: 153.3 kB / 0.737 GB, free: 13.8 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009402/2.861, allocations: 0.8863 MB / 0.7378 GB, free: 13.2 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005065/2.866, allocations: 2.382 MB / 0.7402 GB, free: 12.8 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.13/2.996, allocations: 34 MB / 0.7734 GB, free: 13.91 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7371/3.733, allocations: 146.7 MB / 0.9166 GB, free: 14.61 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1103/3.844, allocations: 22.43 MB / 0.9385 GB, free: 12.21 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01326/3.857, allocations: 6.727 MB / 0.9451 GB, free: 12.16 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06888/3.926, allocations: 27.34 MB / 0.9718 GB, free: 23.32 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.799e-05/3.926, allocations: 78.52 kB / 0.9719 GB, free: 23.28 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=372): time 9.077e-06/3.926, allocations: 2.906 kB / 0.9719 GB, free: 23.28 MB / 0.5105 GB Notification: Performance of matching and sorting (n=486): time 2.423/6.35, allocations: 280.7 MB / 1.246 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/6.35, allocations: 279.8 kB / 1.246 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02323/6.373, allocations: 8.952 MB / 1.255 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002684/6.376, allocations: 107.2 kB / 1.255 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.009114/6.385, allocations: 10.8 MB / 1.266 GB, free: 97.67 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004439/6.389, allocations: 1.899 MB / 1.267 GB, free: 96.62 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004196/6.394, allocations: 338 kB / 1.268 GB, free: 96.62 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.002169/6.396, allocations: 1.03 MB / 1.269 GB, free: 96.28 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03426/6.43, allocations: 15.7 MB / 1.284 GB, free: 91.48 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04212/6.472, allocations: 26.26 MB / 1.31 GB, free: 70.59 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04243/6.515, allocations: 19.83 MB / 1.329 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004382/6.515, allocations: 108.6 kB / 1.329 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.1072/6.623, allocations: 41.64 MB / 1.37 GB, free: 38.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003547/6.623, allocations: 168 kB / 1.37 GB, free: 37.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007268/6.624, allocations: 377.4 kB / 1.37 GB, free: 37.56 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002777/6.627, allocations: 0.8705 MB / 1.371 GB, free: 36.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03981/6.666, allocations: 5.287 MB / 1.376 GB, free: 32.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008844/6.675, allocations: 5.656 MB / 1.382 GB, free: 27.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03126/6.707, allocations: 2.153 MB / 1.384 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005401/6.712, allocations: 1.018 MB / 1.385 GB, free: 24.78 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.4103/7.122, allocations: 1.392 MB / 1.386 GB, free: 93.59 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004725/7.127, allocations: 0.8736 MB / 1.387 GB, free: 93.59 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07816/7.205, allocations: 29.98 MB / 1.417 GB, free: 93.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002106/7.206, allocations: 92.58 kB / 1.417 GB, free: 93.34 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.858e-05/7.206, allocations: 3.375 kB / 1.417 GB, free: 93.34 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001186/7.206, allocations: 26.23 kB / 1.417 GB, free: 93.34 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.156/7.362, allocations: 72.14 MB / 1.487 GB, free: 58.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-05/7.362, allocations: 0.5625 kB / 1.487 GB, free: 58.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02362/7.386, allocations: 2.115 MB / 1.489 GB, free: 58.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001655/7.387, allocations: 314.9 kB / 1.49 GB, free: 58.72 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002421/7.39, allocations: 88.3 kB / 1.49 GB, free: 58.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00631/7.396, allocations: 4.29 MB / 1.494 GB, free: 55.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/7.396, allocations: 3.781 kB / 1.494 GB, free: 55.46 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1068/7.503, allocations: 50.36 MB / 1.543 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01476/7.518, allocations: 3.949 MB / 1.547 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005652/7.523, allocations: 78.23 kB / 1.547 GB, free: 23.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02131/7.545, allocations: 1.637 MB / 1.548 GB, free: 22.48 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003787/7.549, allocations: 259.4 kB / 1.549 GB, free: 22.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002608/7.551, allocations: 123.3 kB / 1.549 GB, free: 22.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01823/7.57, allocations: 6.166 MB / 1.555 GB, free: 16.77 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.102e-06/7.57, allocations: 0 / 1.555 GB, free: 16.77 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02694/7.597, allocations: 4.276 MB / 1.559 GB, free: 12.51 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.5789/8.175, allocations: 52.03 MB / 1.61 GB, free: 91 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.09584/8.271, allocations: 34.77 MB / 1.644 GB, free: 79.98 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.909e-05/8.271, allocations: 4.531 kB / 1.644 GB, free: 79.97 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.04742/8.319, allocations: 14.82 MB / 1.658 GB, free: 73.07 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01204/8.331, allocations: 1.335 MB / 1.66 GB, free: 72.59 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1591/8.49, allocations: 47.67 MB / 1.706 GB, free: 49.36 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03468/8.525, allocations: 11.35 MB / 1.717 GB, free: 41.11 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.03697/8.562, allocations: 7.391 MB / 1.724 GB, free: 36.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02717/8.589, allocations: 7.67 MB / 1.732 GB, free: 28.95 MB / 0.5105 GB Notification: Performance of SimCode: time 2.264e-06/8.589, allocations: 0 / 1.732 GB, free: 28.95 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.355/9.944, allocations: 275.6 MB / 2.001 GB, free: 67.3 MB / 0.5262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/9.944, allocations: 177.6 kB / 2.001 GB, free: 67.08 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/21.43, allocations: 0 / 2.001 GB, free: 67.08 MB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat