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.946/1.946, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.113e-05/4.126e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4517/0.5591, allocations: 98.7 MB / 420.5 MB, free: 7.191 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.5595, allocations: 75.95 kB / 420.6 MB, free: 7.117 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.195/1.755, allocations: 248.4 MB / 0.6533 GB, free: 2.523 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.755, allocations: 4 kB / 0.6533 GB, free: 2.52 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008659/1.756, allocations: 375.9 kB / 0.6537 GB, free: 2.152 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.7752/2.531, allocations: 15.62 MB / 0.6689 GB, free: 24.73 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.76e-05/2.531, allocations: 9.812 kB / 0.6689 GB, free: 24.73 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01427/2.545, allocations: 3.059 MB / 0.6719 GB, free: 24.55 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06142/2.607, allocations: 8.288 MB / 0.68 GB, free: 23.52 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04517/2.652, allocations: 12.41 MB / 0.6921 GB, free: 22.14 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001842/2.654, allocations: 1.493 MB / 0.6936 GB, free: 22.09 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009106/2.663, allocations: 1.97 MB / 0.6955 GB, free: 22.08 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1456/2.809, allocations: 42.29 MB / 0.7368 GB, free: 13.8 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001393/2.81, allocations: 149.2 kB / 0.7369 GB, free: 13.78 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008362/2.819, allocations: 0.8823 MB / 0.7378 GB, free: 13.18 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004774/2.823, allocations: 2.388 MB / 0.7401 GB, free: 12.78 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1665/2.99, allocations: 33.98 MB / 0.7733 GB, free: 13.92 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.012/4.002, allocations: 146.7 MB / 0.9166 GB, free: 12.8 MB / 0.495 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1072/4.109, allocations: 22.42 MB / 0.9385 GB, free: 10.4 MB / 0.495 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01239/4.121, allocations: 6.741 MB / 0.9451 GB, free: 10.35 MB / 0.495 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06144/4.183, allocations: 27.34 MB / 0.9718 GB, free: 21.25 MB / 0.5107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.695e-05/4.183, allocations: 76.55 kB / 0.9719 GB, free: 21.2 MB / 0.5107 GB Notification: Performance of pre-optimization done (n=372): time 7.995e-06/4.183, allocations: 3.281 kB / 0.9719 GB, free: 21.2 MB / 0.5107 GB Notification: Performance of matching and sorting (n=486): time 2.335/6.518, allocations: 280.7 MB / 1.246 GB, free: 102.2 MB / 0.5107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/6.518, allocations: 282.4 kB / 1.246 GB, free: 101.9 MB / 0.5107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02236/6.54, allocations: 8.939 MB / 1.255 GB, free: 100.9 MB / 0.5107 GB Notification: Performance of collectPreVariables (initialization): time 0.002734/6.543, allocations: 106.2 kB / 1.255 GB, free: 100.8 MB / 0.5107 GB Notification: Performance of collectInitialEqns (initialization): time 0.008605/6.552, allocations: 10.59 MB / 1.265 GB, free: 94.29 MB / 0.5107 GB Notification: Performance of collectInitialBindings (initialization): time 0.004611/6.556, allocations: 1.893 MB / 1.267 GB, free: 93.24 MB / 0.5107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004095/6.561, allocations: 338.6 kB / 1.268 GB, free: 93.24 MB / 0.5107 GB Notification: Performance of setup shared object (initialization): time 0.001637/6.562, allocations: 1.036 MB / 1.269 GB, free: 92.89 MB / 0.5107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03403/6.596, allocations: 15.7 MB / 1.284 GB, free: 87.82 MB / 0.5107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04081/6.637, allocations: 26.26 MB / 1.31 GB, free: 66.92 MB / 0.5107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04125/6.678, allocations: 19.84 MB / 1.329 GB, free: 59.25 MB / 0.5107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004328/6.679, allocations: 109.1 kB / 1.329 GB, free: 59.25 MB / 0.5107 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.1298/6.809, allocations: 41.39 MB / 1.369 GB, free: 34.54 MB / 0.5107 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002557/6.809, allocations: 164 kB / 1.37 GB, free: 34.38 MB / 0.5107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006057/6.81, allocations: 376 kB / 1.37 GB, free: 34.01 MB / 0.5107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002536/6.812, allocations: 0.8736 MB / 1.371 GB, free: 33.22 MB / 0.5107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03996/6.852, allocations: 5.287 MB / 1.376 GB, free: 29.08 MB / 0.5107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00861/6.861, allocations: 5.666 MB / 1.382 GB, free: 23.69 MB / 0.5107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03103/6.892, allocations: 2.149 MB / 1.384 GB, free: 22.25 MB / 0.5107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005359/6.897, allocations: 1.021 MB / 1.385 GB, free: 21.25 MB / 0.5107 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.009368/6.907, allocations: 1.398 MB / 1.386 GB, free: 19.85 MB / 0.5107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.421/7.328, allocations: 0.8675 MB / 1.387 GB, free: 92.82 MB / 0.5107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08471/7.413, allocations: 29.98 MB / 1.416 GB, free: 92.58 MB / 0.5107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002357/7.413, allocations: 89.75 kB / 1.416 GB, free: 92.58 MB / 0.5107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.662e-05/7.413, allocations: 3.781 kB / 1.416 GB, free: 92.58 MB / 0.5107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001313/7.413, allocations: 29.22 kB / 1.416 GB, free: 92.58 MB / 0.5107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1715/7.585, allocations: 72.12 MB / 1.487 GB, free: 58.22 MB / 0.5107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.123e-05/7.585, allocations: 0 / 1.487 GB, free: 58.22 MB / 0.5107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02402/7.609, allocations: 2.111 MB / 1.489 GB, free: 58.2 MB / 0.5107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001711/7.611, allocations: 324.3 kB / 1.489 GB, free: 58.12 MB / 0.5107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002514/7.613, allocations: 90.23 kB / 1.489 GB, free: 58.06 MB / 0.5107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006321/7.619, allocations: 4.291 MB / 1.493 GB, free: 54.86 MB / 0.5107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/7.619, allocations: 3.375 kB / 1.493 GB, free: 54.86 MB / 0.5107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1055/7.725, allocations: 50.36 MB / 1.542 GB, free: 26.42 MB / 0.5107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01452/7.74, allocations: 3.952 MB / 1.546 GB, free: 23.31 MB / 0.5107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006607/7.746, allocations: 73.56 kB / 1.546 GB, free: 23.24 MB / 0.5107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02865/7.775, allocations: 1.637 MB / 1.548 GB, free: 22.36 MB / 0.5107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00471/7.78, allocations: 252.8 kB / 1.548 GB, free: 22.21 MB / 0.5107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002588/7.782, allocations: 131.7 kB / 1.548 GB, free: 22.09 MB / 0.5107 GB Notification: Performance of sorting global known variables: time 0.02298/7.805, allocations: 6.165 MB / 1.554 GB, free: 16.66 MB / 0.5107 GB Notification: Performance of sort global known variables: time 1.092e-06/7.805, allocations: 0 / 1.554 GB, free: 16.66 MB / 0.5107 GB Notification: Performance of remove unused functions: time 0.03152/7.837, allocations: 4.275 MB / 1.559 GB, free: 12.4 MB / 0.5107 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.5127/8.35, allocations: 51.45 MB / 1.609 GB, free: 88.68 MB / 0.5107 GB Notification: Performance of simCode: created initialization part: time 0.07259/8.422, allocations: 34.76 MB / 1.643 GB, free: 77.5 MB / 0.5107 GB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/8.422, allocations: 6.219 kB / 1.643 GB, free: 77.49 MB / 0.5107 GB Notification: Performance of simCode: created simulation system equations: time 0.03118/8.453, allocations: 14.82 MB / 1.657 GB, free: 70.59 MB / 0.5107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01239/8.466, allocations: 1.337 MB / 1.659 GB, free: 70.11 MB / 0.5107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1534/8.619, allocations: 49.69 MB / 1.707 GB, free: 45.11 MB / 0.5107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03303/8.653, allocations: 11.35 MB / 1.718 GB, free: 36.87 MB / 0.5107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03081/8.683, allocations: 7.8 MB / 1.726 GB, free: 29.59 MB / 0.5107 GB Notification: Performance of SimCode: time 1.603e-06/8.683, allocations: 0 / 1.726 GB, free: 29.59 MB / 0.5107 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.979/18.66, allocations: 487.5 MB / 2.202 GB, free: 125.6 MB / 0.5888 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