Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.497/2.497, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.021e-05/4.029e-05, allocations: 0 / 323.5 MB, free: 4.234 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4253/0.4254, allocations: 58.84 MB / 382.3 MB, free: 10.2 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2117/0.6371, allocations: 111.9 MB / 494.2 MB, free: 12.45 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.6374, allocations: 71.97 kB / 494.3 MB, free: 12.38 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 1.949/2.586, allocations: 249.8 MB / 0.7266 GB, free: 30.62 MB / 0.4949 GB Notification: Performance of FrontEnd: time 4.088e-06/2.586, allocations: 3.25 kB / 0.7266 GB, free: 30.62 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 0.0008959/2.587, allocations: 368.2 kB / 0.727 GB, free: 30.62 MB / 0.4949 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5965 * Number of variables: 5965 Notification: Performance of Generate backend data structure: time 0.06277/2.65, allocations: 15.64 MB / 0.7423 GB, free: 27.51 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/2.65, allocations: 11.06 kB / 0.7423 GB, free: 27.51 MB / 0.4949 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01358/2.664, allocations: 3.059 MB / 0.7453 GB, free: 27.32 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05893/2.723, allocations: 8.303 MB / 0.7534 GB, free: 26.29 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04198/2.765, allocations: 12.41 MB / 0.7655 GB, free: 24.9 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001799/2.766, allocations: 1.496 MB / 0.7669 GB, free: 24.86 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008607/2.775, allocations: 1.976 MB / 0.7689 GB, free: 24.84 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1371/2.912, allocations: 42.06 MB / 0.81 GB, free: 18.36 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001329/2.914, allocations: 154.6 kB / 0.8101 GB, free: 18.34 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007955/2.922, allocations: 0.8839 MB / 0.811 GB, free: 18.34 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004677/2.926, allocations: 2.388 MB / 0.8133 GB, free: 18.3 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1119/3.038, allocations: 33.04 MB / 0.8456 GB, free: 9.566 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7499/3.788, allocations: 147.3 MB / 0.9894 GB, free: 29.27 MB / 0.5731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1356/3.924, allocations: 22.4 MB / 1.011 GB, free: 26.9 MB / 0.5731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01206/3.936, allocations: 6.736 MB / 1.018 GB, free: 26.86 MB / 0.5731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06068/3.997, allocations: 27.33 MB / 1.045 GB, free: 22.36 MB / 0.5731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.127e-05/3.997, allocations: 73.48 kB / 1.045 GB, free: 22.31 MB / 0.5731 GB Notification: Performance of pre-optimization done (n=372): time 1.031e-05/3.997, allocations: 0 / 1.045 GB, free: 22.31 MB / 0.5731 GB Notification: Performance of matching and sorting (n=486): time 2.004/6, allocations: 281.1 MB / 1.319 GB, free: 104.5 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/6.001, allocations: 284.9 kB / 1.319 GB, free: 104.2 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02275/6.023, allocations: 8.974 MB / 1.328 GB, free: 95.42 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 0.002724/6.026, allocations: 102.6 kB / 1.328 GB, free: 95.32 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 0.008844/6.035, allocations: 10.83 MB / 1.339 GB, free: 84.54 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.00461/6.04, allocations: 1.893 MB / 1.341 GB, free: 82.66 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004541/6.044, allocations: 339.1 kB / 1.341 GB, free: 82.34 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.002413/6.047, allocations: 1.029 MB / 1.342 GB, free: 81.3 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03437/6.081, allocations: 15.7 MB / 1.357 GB, free: 65.58 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5052/6.586, allocations: 26.18 MB / 1.383 GB, free: 113.2 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04312/6.63, allocations: 19.84 MB / 1.402 GB, free: 113.2 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005634/6.63, allocations: 105.6 kB / 1.402 GB, free: 113.2 MB / 0.6043 GB Notification: Performance of matching and sorting (n=2209) (initialization): time 0.1022/6.732, allocations: 40.62 MB / 1.442 GB, free: 109.8 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004126/6.733, allocations: 169.8 kB / 1.442 GB, free: 109.8 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006544/6.734, allocations: 374.6 kB / 1.443 GB, free: 109.8 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002831/6.736, allocations: 0.8746 MB / 1.443 GB, free: 109.7 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04154/6.778, allocations: 5.293 MB / 1.449 GB, free: 109.2 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008597/6.787, allocations: 5.66 MB / 1.454 GB, free: 105.5 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03064/6.817, allocations: 2.15 MB / 1.456 GB, free: 105.2 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005207/6.823, allocations: 1.025 MB / 1.457 GB, free: 105.1 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1717 * Number of states: 0 () * Number of discrete variables: 48 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (2153): * Single equations (assignments): 2143 * 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.009404/6.832, allocations: 1.405 MB / 1.459 GB, free: 104 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004217/6.836, allocations: 0.8698 MB / 1.459 GB, free: 104 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07098/6.907, allocations: 29.98 MB / 1.489 GB, free: 90.54 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002/6.908, allocations: 90.89 kB / 1.489 GB, free: 90.53 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.16e-05/6.908, allocations: 3.438 kB / 1.489 GB, free: 90.53 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001245/6.908, allocations: 25.73 kB / 1.489 GB, free: 90.53 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1634/7.071, allocations: 72.14 MB / 1.559 GB, free: 40.8 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.115e-05/7.071, allocations: 11.83 kB / 1.559 GB, free: 40.79 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03491/7.106, allocations: 2.11 MB / 1.561 GB, free: 39.48 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002629/7.109, allocations: 312 kB / 1.562 GB, free: 39.25 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003478/7.112, allocations: 86.38 kB / 1.562 GB, free: 39.17 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009641/7.122, allocations: 4.292 MB / 1.566 GB, free: 35.02 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/7.122, allocations: 7.281 kB / 1.566 GB, free: 35.01 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6043/7.726, allocations: 52.65 MB / 1.617 GB, free: 113.3 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01898/7.745, allocations: 3.953 MB / 1.621 GB, free: 113.2 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005586/7.751, allocations: 77.7 kB / 1.621 GB, free: 113.2 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02524/7.776, allocations: 1.63 MB / 1.623 GB, free: 113.2 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003351/7.78, allocations: 263.3 kB / 1.623 GB, free: 113.2 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002056/7.782, allocations: 127.8 kB / 1.623 GB, free: 113.2 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.01609/7.798, allocations: 6.178 MB / 1.629 GB, free: 112.9 MB / 0.6043 GB Notification: Performance of sort global known variables: time 9.72e-07/7.798, allocations: 0 / 1.629 GB, free: 112.9 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.02565/7.824, allocations: 4.274 MB / 1.634 GB, free: 112.9 MB / 0.6043 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.1198/7.943, allocations: 51.28 MB / 1.684 GB, free: 93.27 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.08526/8.029, allocations: 34.25 MB / 1.717 GB, free: 79.47 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.259e-05/8.029, allocations: 4.531 kB / 1.717 GB, free: 79.47 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.03073/8.06, allocations: 14.79 MB / 1.731 GB, free: 68.83 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0119/8.072, allocations: 1.331 MB / 1.733 GB, free: 67.77 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1393/8.211, allocations: 47.69 MB / 1.779 GB, free: 25.97 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03066/8.242, allocations: 11.36 MB / 1.79 GB, free: 17.71 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 0.04352/8.285, allocations: 8.036 MB / 1.798 GB, free: 13.97 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.5686/8.854, allocations: 8.729 MB / 1.807 GB, free: 110.6 MB / 0.6043 GB Notification: Performance of SimCode: time 1.893e-06/8.854, allocations: 0 / 1.807 GB, free: 110.6 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.112/9.966, allocations: 272 MB / 2.072 GB, free: 74.99 MB / 0.6043 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002381/9.967, allocations: 180.3 kB / 2.073 GB, free: 74.77 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/21.99, allocations: 0 / 2.073 GB, free: 74.77 MB / 0.6043 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat