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.969/1.969, allocations: 209.3 MB / 221.5 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.46e-05/3.472e-05, allocations: 0 / 273.2 MB, free: 140 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1112, allocations: 48.7 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4544/0.5657, allocations: 98.7 MB / 420.6 MB, free: 6.754 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.566, allocations: 71.97 kB / 420.7 MB, free: 6.684 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.19/1.756, allocations: 248.4 MB / 0.6534 GB, free: 2.043 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.424e-06/1.756, allocations: 0 / 0.6534 GB, free: 2.043 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.00082/1.757, allocations: 367.9 kB / 0.6537 GB, free: 1.684 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.7843/2.542, allocations: 15.62 MB / 0.669 GB, free: 24.48 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/2.542, allocations: 8.719 kB / 0.669 GB, free: 24.48 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01581/2.557, allocations: 3.066 MB / 0.672 GB, free: 24.29 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06294/2.62, allocations: 8.286 MB / 0.6801 GB, free: 23.26 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06092/2.681, allocations: 12.41 MB / 0.6922 GB, free: 21.88 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002752/2.684, allocations: 1.494 MB / 0.6936 GB, free: 21.84 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01243/2.697, allocations: 1.974 MB / 0.6956 GB, free: 21.82 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1862/2.883, allocations: 42.04 MB / 0.7366 GB, free: 13.81 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001538/2.885, allocations: 156.1 kB / 0.7368 GB, free: 13.79 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009077/2.894, allocations: 0.8844 MB / 0.7376 GB, free: 13.18 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004831/2.899, allocations: 2.378 MB / 0.74 GB, free: 12.79 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1207/3.019, allocations: 33.2 MB / 0.7724 GB, free: 14.01 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6824/3.702, allocations: 146.7 MB / 0.9157 GB, free: 15.64 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1139/3.816, allocations: 22.39 MB / 0.9375 GB, free: 13.27 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01323/3.829, allocations: 6.738 MB / 0.9441 GB, free: 13.22 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07868/3.908, allocations: 27.33 MB / 0.9708 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001345/3.908, allocations: 77.73 kB / 0.9709 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=372): time 1.549e-05/3.908, allocations: 0 / 0.9709 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of matching and sorting (n=486): time 2.469/6.377, allocations: 280.7 MB / 1.245 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/6.377, allocations: 279.9 kB / 1.245 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03127/6.408, allocations: 8.949 MB / 1.254 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.003346/6.412, allocations: 98.39 kB / 1.254 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.01241/6.424, allocations: 10.81 MB / 1.265 GB, free: 97.08 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.005745/6.43, allocations: 1.89 MB / 1.266 GB, free: 96.04 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01359/6.444, allocations: 339.2 kB / 1.267 GB, free: 96.04 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00267/6.446, allocations: 1.028 MB / 1.268 GB, free: 95.69 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05415/6.5, allocations: 15.7 MB / 1.283 GB, free: 91.48 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05779/6.558, allocations: 26.16 MB / 1.309 GB, free: 70.62 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04078/6.599, allocations: 19.83 MB / 1.328 GB, free: 62.96 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004543/6.6, allocations: 109 kB / 1.328 GB, free: 62.96 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.09807/6.698, allocations: 40.6 MB / 1.368 GB, free: 40.32 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002945/6.698, allocations: 174.1 kB / 1.368 GB, free: 40.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006892/6.699, allocations: 379.3 kB / 1.368 GB, free: 39.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002826/6.702, allocations: 0.8615 MB / 1.369 GB, free: 39.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04278/6.744, allocations: 5.29 MB / 1.374 GB, free: 34.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00931/6.754, allocations: 5.661 MB / 1.38 GB, free: 29.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03185/6.786, allocations: 2.147 MB / 1.382 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005162/6.791, allocations: 1.024 MB / 1.383 GB, free: 27.01 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.009381/6.8, allocations: 1.394 MB / 1.384 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005755/6.806, allocations: 0.8716 MB / 1.385 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6152/7.421, allocations: 30.37 MB / 1.415 GB, free: 94.14 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002255/7.422, allocations: 92.7 kB / 1.415 GB, free: 94.14 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.283e-05/7.422, allocations: 4.594 kB / 1.415 GB, free: 94.14 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001408/7.422, allocations: 21.52 kB / 1.415 GB, free: 94.14 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1599/7.582, allocations: 72.13 MB / 1.485 GB, free: 61.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.525e-05/7.582, allocations: 5.969 kB / 1.485 GB, free: 61.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02406/7.606, allocations: 2.116 MB / 1.487 GB, free: 61.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001703/7.608, allocations: 313.3 kB / 1.488 GB, free: 61.71 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002524/7.61, allocations: 81.69 kB / 1.488 GB, free: 61.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006568/7.617, allocations: 4.297 MB / 1.492 GB, free: 58.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/7.617, allocations: 1.969 kB / 1.492 GB, free: 58.46 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1047/7.722, allocations: 50.36 MB / 1.541 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01381/7.735, allocations: 3.952 MB / 1.545 GB, free: 27.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005691/7.741, allocations: 81.64 kB / 1.545 GB, free: 27.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02162/7.763, allocations: 1.629 MB / 1.547 GB, free: 26.92 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003456/7.766, allocations: 260.1 kB / 1.547 GB, free: 26.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002543/7.769, allocations: 128.3 kB / 1.547 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01681/7.786, allocations: 6.159 MB / 1.553 GB, free: 21.21 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.02e-07/7.786, allocations: 0 / 1.553 GB, free: 21.21 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02825/7.814, allocations: 4.278 MB / 1.557 GB, free: 16.96 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.5207/8.335, allocations: 51.38 MB / 1.608 GB, free: 90.65 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.07306/8.408, allocations: 34.23 MB / 1.641 GB, free: 79.96 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.916e-05/8.408, allocations: 3.406 kB / 1.641 GB, free: 79.95 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03059/8.439, allocations: 14.79 MB / 1.655 GB, free: 73.08 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01221/8.451, allocations: 1.348 MB / 1.657 GB, free: 72.59 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1489/8.6, allocations: 47.64 MB / 1.703 GB, free: 50.59 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03374/8.634, allocations: 11.35 MB / 1.714 GB, free: 42.33 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.04013/8.674, allocations: 7.39 MB / 1.722 GB, free: 37.32 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02617/8.7, allocations: 7.673 MB / 1.729 GB, free: 30.18 MB / 0.5105 GB Notification: Performance of SimCode: time 2.074e-06/8.7, allocations: 0 / 1.729 GB, free: 30.18 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.414/10.11, allocations: 271.7 MB / 1.994 GB, free: 62.66 MB / 0.5262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002555/10.11, allocations: 180.3 kB / 1.994 GB, free: 62.44 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/22.4, allocations: 0 / 1.994 GB, free: 62.44 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