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_trunk_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor") Notification: Performance of loadModel(ModelicaTest): time 2.378/2.378, allocations: 269 MB / 284.1 MB, free: 3.629 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.82e-05/2.823e-05, allocations: 0 / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1604/0.1605, allocations: 61.89 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.4483/0.6089, allocations: 75.21 MB / 486.1 MB, free: 11.84 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06643/0.6754, allocations: 17.45 MB / 0.4918 GB, free: 10.78 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02138/0.6968, allocations: 498.9 kB / 0.4923 GB, free: 10.29 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01631/0.7132, allocations: 4.203 MB / 0.4964 GB, free: 6.066 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0424/0.7556, allocations: 10 MB / 0.5061 GB, free: 12.04 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01039/0.766, allocations: 1.775 MB / 0.5079 GB, free: 10.26 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.1264/0.8925, allocations: 48.91 MB / 0.5556 GB, free: 9.316 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08367/0.9762, allocations: 36.75 MB / 0.5915 GB, free: 4.457 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005569/0.9818, allocations: 2.089 MB / 0.5936 GB, free: 2.363 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007485/0.9894, allocations: 3.065 MB / 0.5965 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005251/0.9947, allocations: 1.377 MB / 0.5979 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.002748/0.9975, allocations: 280 kB / 0.5982 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.008565/1.006, allocations: 5.486 MB / 0.6035 GB, free: 8.133 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.004402/1.011, allocations: 0.9375 MB / 0.6044 GB, free: 7.195 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.8005/1.811, allocations: 27.33 MB / 0.6311 GB, free: 66.89 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/1.811, allocations: 0 / 0.6311 GB, free: 66.89 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.156e-06/1.811, allocations: 0 / 0.6311 GB, free: 66.89 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001368/1.813, allocations: 0 / 0.6311 GB, free: 66.89 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5720 * Number of variables: 5720 Notification: Performance of Generate backend data structure: time 0.0608/1.873, allocations: 15.04 MB / 0.6458 GB, free: 58.73 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/1.873, allocations: 14.88 kB / 0.6458 GB, free: 58.73 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3559/2.229, allocations: 20.28 MB / 0.6656 GB, free: 50.37 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03427/2.264, allocations: 9.213 MB / 0.6746 GB, free: 48.06 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001375/2.265, allocations: 1.29 MB / 0.6759 GB, free: 47.41 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01073/2.276, allocations: 1.697 MB / 0.6775 GB, free: 46.29 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1389/2.415, allocations: 39.59 MB / 0.7162 GB, free: 17.47 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001008/2.416, allocations: 101.2 kB / 0.7163 GB, free: 17.41 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009334/2.425, allocations: 0.7359 MB / 0.717 GB, free: 17.24 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009312/2.435, allocations: 3.849 MB / 0.7208 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1146/2.549, allocations: 32.32 MB / 0.7523 GB, free: 7.863 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7244/3.274, allocations: 114.8 MB / 0.8644 GB, free: 172.2 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1044/3.378, allocations: 21.87 MB / 0.8858 GB, free: 169.8 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05892/3.437, allocations: 26.66 MB / 0.9118 GB, free: 162.4 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.31e-05/3.437, allocations: 77.78 kB / 0.9119 GB, free: 162.4 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=336): time 8.156e-06/3.437, allocations: 0 / 0.9119 GB, free: 162.4 MB / 0.6043 GB Notification: Performance of matching and sorting (n=450): time 2.451/5.889, allocations: 325.3 MB / 1.23 GB, free: 106.5 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/5.889, allocations: 281.2 kB / 1.23 GB, free: 106.2 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02259/5.911, allocations: 9.005 MB / 1.239 GB, free: 97.22 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 0.002788/5.914, allocations: 95.03 kB / 1.239 GB, free: 97.12 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 0.007798/5.922, allocations: 10.19 MB / 1.249 GB, free: 86.94 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.004482/5.927, allocations: 1.76 MB / 1.25 GB, free: 85.19 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004019/5.931, allocations: 326.2 kB / 1.251 GB, free: 84.88 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.001837/5.933, allocations: 1 MB / 1.252 GB, free: 83.86 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03307/5.966, allocations: 15.69 MB / 1.267 GB, free: 68.16 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03992/6.006, allocations: 25.8 MB / 1.292 GB, free: 37.34 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4485/6.454, allocations: 19.54 MB / 1.311 GB, free: 201.6 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003169/6.455, allocations: 100.2 kB / 1.311 GB, free: 201.6 MB / 0.6043 GB Notification: Performance of matching and sorting (n=2096) (initialization): time 0.101/6.556, allocations: 41.02 MB / 1.351 GB, free: 181.2 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002556/6.556, allocations: 163.4 kB / 1.352 GB, free: 181.1 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006616/6.557, allocations: 359.5 kB / 1.352 GB, free: 180.7 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003461/6.56, allocations: 0.9935 MB / 1.353 GB, free: 179.9 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03782/6.598, allocations: 5.004 MB / 1.358 GB, free: 175.9 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/6.609, allocations: 6.476 MB / 1.364 GB, free: 169.9 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04167/6.651, allocations: 2.074 MB / 1.366 GB, free: 168.6 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007058/6.658, allocations: 0.9733 MB / 1.367 GB, free: 167.6 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1640 * Number of states: 0 () * Number of discrete variables: 58 (relativeSensor.arrow.arrowLine.twoHeadedArrow,relativeSensor.arrow.headAtOrigin,relative_b1.arrow.arrowLine.twoHeadedArrow,relative_b1.arrow.headAtOrigin,relative_b2.arrow.arrowLine.twoHeadedArrow,relative_b2.arrow.headAtOrigin,relative_a2.arrow.arrowLine.twoHeadedArrow,relative_a2.arrow.headAtOrigin,relative_a1.arrow.arrowLine.twoHeadedArrow,relative_a1.arrow.headAtOrigin,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 (2040): * Single equations (assignments): 2030 * 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.03529/6.693, allocations: 7.477 MB / 1.374 GB, free: 161.1 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006563/6.7, allocations: 0.8367 MB / 1.375 GB, free: 160.7 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09416/6.794, allocations: 29.94 MB / 1.404 GB, free: 134.6 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002095/6.794, allocations: 88.5 kB / 1.405 GB, free: 134.6 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.07e-05/6.794, allocations: 7.797 kB / 1.405 GB, free: 134.6 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001035/6.794, allocations: 23.12 kB / 1.405 GB, free: 134.6 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1512/6.946, allocations: 71.64 MB / 1.475 GB, free: 61.39 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.451e-05/6.946, allocations: 7.938 kB / 1.475 GB, free: 61.38 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02815/6.974, allocations: 1.969 MB / 1.476 GB, free: 59.41 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003035/6.977, allocations: 462.1 kB / 1.477 GB, free: 58.95 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003076/6.98, allocations: 74.17 kB / 1.477 GB, free: 58.88 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01139/6.991, allocations: 5.153 MB / 1.482 GB, free: 53.51 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/6.991, allocations: 0 / 1.482 GB, free: 53.51 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5304/7.522, allocations: 50.3 MB / 1.531 GB, free: 193.7 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002778/7.525, allocations: 0.8185 MB / 1.532 GB, free: 193.5 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006036/7.531, allocations: 69.94 kB / 1.532 GB, free: 193.5 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01998/7.551, allocations: 1.571 MB / 1.534 GB, free: 193.4 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003372/7.554, allocations: 234.8 kB / 1.534 GB, free: 193.4 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002009/7.556, allocations: 118.5 kB / 1.534 GB, free: 193.4 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.01633/7.573, allocations: 6.257 MB / 1.54 GB, free: 191.3 MB / 0.6043 GB Notification: Performance of sort global known variables: time 1.032e-06/7.573, allocations: 0 / 1.54 GB, free: 191.3 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.02392/7.597, allocations: 4.165 MB / 1.544 GB, free: 190.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 (404): * Single equations (assignments): 394 * 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.003618/7.6, allocations: 303.9 kB / 1.544 GB, free: 190.8 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.08087/7.681, allocations: 34.55 MB / 1.578 GB, free: 171.8 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/7.681, allocations: 4.625 kB / 1.578 GB, free: 171.8 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.03068/7.712, allocations: 14.82 MB / 1.593 GB, free: 158.5 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01172/7.724, allocations: 1.336 MB / 1.594 GB, free: 157.4 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1212/7.845, allocations: 55.12 MB / 1.648 GB, free: 107.6 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02749/7.873, allocations: 10.95 MB / 1.658 GB, free: 96.95 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01703/7.89, allocations: 0.7064 MB / 1.659 GB, free: 96.25 MB / 0.6043 GB Notification: Performance of SimCode: time 2.155e-06/7.89, allocations: 0 / 1.659 GB, free: 96.25 MB / 0.6043 GB Notification: Performance of Templates: time 1.692/9.581, allocations: 383.4 MB / 2.034 GB, free: 136.4 MB / 0.6043 GB