Running command: translateModel(ModelicaTest.MultiBody.Sensors.RelativeSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|relative_a1.r_rel.3.|relative_a1.v_rel.3.|relative_a1.a_rel.3.|relative_a1.angles.3.|relative_a1.w_rel.3.|relative_a2.r_rel.3.|relative_a2.v_rel.3.|relative_a2.a_rel.3.|relative_a2.angles.3.|relative_a2.w_rel.3.|relative_a2.z_rel.3.|relative_b2.r_rel.3.|relative_b2.v_rel.3.|relative_b2.angles.3.|relative_b2.w_rel.3.|relative_b2.z_rel.3.|relative_b1.r_rel.3.|relative_b1.v_rel.3.|relative_b1.a_rel.3.|relative_b1.angles.3.|relative_b1.w_rel.3.|relative_b1.z_rel.3.|relativeSensor.r_rel.3.|relativeSensor.angles.3.|relative_a1.r_rel.2.|relative_a1.v_rel.2.|relative_a1.a_rel.2.|relative_a1.angles.2.|relative_a1.w_rel.2.|relative_a2.r_rel.2.|relative_a2.v_rel.2.|relative_a2.a_rel.2.|relative_a2.angles.2.|relative_a2.w_rel.2.|relative_a2.z_rel.2.|relative_b2.r_rel.2.|relative_b2.v_rel.2.|relative_b2.angles.2.|relative_b2.w_rel.2.|relative_b2.z_rel.2.|relative_b1.r_rel.2.|relative_b1.v_rel.2.|relative_b1.a_rel.2.|relative_b1.angles.2.|relative_b1.w_rel.2.|relative_b1.z_rel.2.|relativeSensor.r_rel.2.|relativeSensor.angles.2.|relative_a1.r_rel.1.|relative_a1.v_rel.1.|relative_a1.a_rel.1.|relative_a1.angles.1.|relative_a1.w_rel.1.|relative_a2.r_rel.1.|relative_a2.v_rel.1.|relative_a2.a_rel.1.|relative_a2.angles.1.|relative_a2.w_rel.1.|relative_a2.z_rel.1.|relative_b2.r_rel.1.|relative_b2.v_rel.1.|relative_b2.angles.1.|relative_b2.w_rel.1.|relative_b2.z_rel.1.|relative_b1.r_rel.1.|relative_b1.v_rel.1.|relative_b1.a_rel.1.|relative_b1.angles.1.|relative_b1.w_rel.1.|relative_b1.z_rel.1.|relativeSensor.r_rel.1.|relativeSensor.angles.1.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor") Notification: Performance of loadModel(ModelicaTest): time 2.063/2.063, allocations: 209.3 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.722e-05/3.717e-05, allocations: 4 kB / 276.2 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3517, allocations: 48.69 MB / 324.8 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.1161/0.4679, allocations: 73.73 MB / 398.6 MB, free: 5.668 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0528/0.5208, allocations: 17.17 MB / 415.7 MB, free: 4.453 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01966/0.5405, allocations: 487 kB / 416.2 MB, free: 3.977 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0154/0.5559, allocations: 4.152 MB / 420.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04087/0.5968, allocations: 9.797 MB / 430.2 MB, free: 5.98 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00979/0.6067, allocations: 1.794 MB / 432 MB, free: 4.184 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.05585/0.6626, allocations: 18.66 MB / 450.6 MB, free: 1.504 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.4031/1.066, allocations: 36.87 MB / 487.5 MB, free: 26.17 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006507/1.072, allocations: 2.205 MB / 489.7 MB, free: 26.17 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009004/1.081, allocations: 3.344 MB / 493 MB, free: 26.17 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006658/1.088, allocations: 1.478 MB / 494.5 MB, free: 26.17 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004019/1.092, allocations: 307.8 kB / 494.8 MB, free: 26.17 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.009047/1.101, allocations: 5.706 MB / 0.4888 GB, free: 26.17 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005549/1.107, allocations: 0.9745 MB / 0.4897 GB, free: 26.17 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03443/1.141, allocations: 28.24 MB / 0.5173 GB, free: 14.14 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/1.141, allocations: 0 / 0.5173 GB, free: 14.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.374e-06/1.141, allocations: 0 / 0.5173 GB, free: 14.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001325/1.143, allocations: 0 / 0.5173 GB, free: 14.14 MB / 410.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.05283/1.196, allocations: 15.57 MB / 0.5325 GB, free: 5.594 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/1.196, allocations: 12.69 kB / 0.5325 GB, free: 5.594 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.353/1.549, allocations: 20.38 MB / 0.5524 GB, free: 6.348 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0355/1.584, allocations: 9.739 MB / 0.562 GB, free: 15.98 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001976/1.586, allocations: 1.316 MB / 0.5632 GB, free: 15.24 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008755/1.595, allocations: 1.737 MB / 0.5649 GB, free: 14.08 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.151/1.746, allocations: 41.13 MB / 0.6051 GB, free: 196 kB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008961/1.747, allocations: 103.4 kB / 0.6052 GB, free: 136 kB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007667/1.755, allocations: 0.7583 MB / 0.6059 GB, free: 15.95 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01087/1.766, allocations: 4.061 MB / 0.6099 GB, free: 12.65 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1308/1.896, allocations: 33.72 MB / 0.6428 GB, free: 3.32 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.552/2.448, allocations: 119.1 MB / 0.7591 GB, free: 108.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.11/2.559, allocations: 22.28 MB / 0.7809 GB, free: 91.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0602/2.619, allocations: 27.49 MB / 0.8077 GB, free: 63.48 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.055e-05/2.619, allocations: 84.97 kB / 0.8078 GB, free: 63.38 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=372): time 9.228e-06/2.619, allocations: 0 / 0.8078 GB, free: 63.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=486): time 2.853/5.472, allocations: 327.3 MB / 1.127 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/5.472, allocations: 286.4 kB / 1.128 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02324/5.495, allocations: 9.323 MB / 1.137 GB, free: 124.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002911/5.498, allocations: 98.56 kB / 1.137 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.008522/5.507, allocations: 10.57 MB / 1.147 GB, free: 114 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004885/5.511, allocations: 1.894 MB / 1.149 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004443/5.516, allocations: 337.7 kB / 1.149 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001746/5.518, allocations: 1.034 MB / 1.15 GB, free: 110.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03465/5.552, allocations: 15.98 MB / 1.166 GB, free: 94.72 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04183/5.594, allocations: 26.52 MB / 1.192 GB, free: 63.04 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04226/5.637, allocations: 19.99 MB / 1.211 GB, free: 43.05 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003262/5.637, allocations: 112 kB / 1.212 GB, free: 42.94 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2202) (initialization): time 0.5258/6.163, allocations: 42.01 MB / 1.253 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004336/6.163, allocations: 165.5 kB / 1.253 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000877/6.164, allocations: 376.2 kB / 1.253 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004081/6.168, allocations: 1.009 MB / 1.254 GB, free: 140.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04083/6.209, allocations: 5.211 MB / 1.259 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01285/6.222, allocations: 6.529 MB / 1.266 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04349/6.266, allocations: 2.111 MB / 1.268 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006453/6.272, allocations: 1.02 MB / 1.269 GB, free: 135.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1710 * 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 (2146): * Single equations (assignments): 2136 * 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.02891/6.301, allocations: 7.72 MB / 1.276 GB, free: 132.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004251/6.306, allocations: 0.8714 MB / 1.277 GB, free: 132.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07487/6.38, allocations: 30.47 MB / 1.307 GB, free: 107 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000201/6.381, allocations: 88.61 kB / 1.307 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.177e-05/6.381, allocations: 4 kB / 1.307 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001281/6.381, allocations: 27.44 kB / 1.307 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1538/6.535, allocations: 72.8 MB / 1.378 GB, free: 32.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.048e-05/6.535, allocations: 4.875 kB / 1.378 GB, free: 32.39 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0233/6.558, allocations: 2.047 MB / 1.38 GB, free: 30.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002351/6.56, allocations: 457.2 kB / 1.38 GB, free: 29.88 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0027/6.563, allocations: 87.98 kB / 1.38 GB, free: 29.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009122/6.572, allocations: 5.148 MB / 1.385 GB, free: 24.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/6.572, allocations: 8.016 kB / 1.385 GB, free: 24.42 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5003/7.073, allocations: 51.07 MB / 1.435 GB, free: 136.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01528/7.088, allocations: 3.978 MB / 1.439 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006394/7.095, allocations: 78.28 kB / 1.439 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02134/7.116, allocations: 1.596 MB / 1.441 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003652/7.12, allocations: 248.7 kB / 1.441 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002768/7.122, allocations: 130 kB / 1.441 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0182/7.141, allocations: 6.485 MB / 1.448 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.553e-06/7.141, allocations: 0 / 1.448 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02548/7.166, allocations: 4.306 MB / 1.452 GB, free: 132.1 MB / 0.4948 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.003755/7.17, allocations: 308 kB / 1.452 GB, free: 131.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.07466/7.245, allocations: 35.26 MB / 1.487 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/7.245, allocations: 4.625 kB / 1.487 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.03253/7.277, allocations: 15.07 MB / 1.501 GB, free: 91.26 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01199/7.289, allocations: 1.339 MB / 1.503 GB, free: 90.17 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1315/7.421, allocations: 56.65 MB / 1.558 GB, free: 34.29 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0299/7.451, allocations: 11.32 MB / 1.569 GB, free: 22.92 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02012/7.471, allocations: 0.7533 MB / 1.57 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of SimCode: time 1.863e-06/7.471, allocations: 0 / 1.57 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of Templates: time 1.563/9.034, allocations: 395.6 MB / 1.956 GB, free: 3.188 MB / 0.5417 GB