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.2_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor") Notification: Performance of loadModel(ModelicaTest): time 2.364/2.364, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.301e-05/3.311e-05, allocations: 4 kB / 308 MB, free: 15.98 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3785/0.3786, allocations: 54.86 MB / 362.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.1175/0.4962, allocations: 73.75 MB / 436.6 MB, free: 3.91 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.05196/0.5482, allocations: 17.21 MB / 453.8 MB, free: 2.648 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01943/0.5677, allocations: 491 kB / 454.3 MB, free: 2.168 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0153/0.583, allocations: 4.149 MB / 458.4 MB, free: 14 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04171/0.6248, allocations: 9.797 MB / 468.2 MB, free: 4.176 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01034/0.6353, allocations: 1.775 MB / 470 MB, free: 2.398 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.05736/0.6927, allocations: 18.66 MB / 488.7 MB, free: 15.72 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.4947/1.187, allocations: 36.89 MB / 0.5132 GB, free: 17.24 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006179/1.194, allocations: 2.213 MB / 0.5154 GB, free: 17.24 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009677/1.203, allocations: 3.338 MB / 0.5187 GB, free: 17.23 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006721/1.21, allocations: 1.481 MB / 0.5201 GB, free: 17.23 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003487/1.214, allocations: 304.3 kB / 0.5204 GB, free: 17.23 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0101/1.224, allocations: 5.711 MB / 0.526 GB, free: 17.23 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006312/1.23, allocations: 0.972 MB / 0.5269 GB, free: 17.23 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04147/1.272, allocations: 28.25 MB / 0.5545 GB, free: 14.35 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/1.272, allocations: 4 kB / 0.5545 GB, free: 14.35 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.446e-06/1.272, allocations: 0 / 0.5545 GB, free: 14.35 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001161/1.273, allocations: 0 / 0.5545 GB, free: 14.35 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5962 * Number of variables: 5962 Notification: Performance of Generate backend data structure: time 0.05719/1.33, allocations: 15.58 MB / 0.5697 GB, free: 204 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/1.33, allocations: 12.03 kB / 0.5697 GB, free: 192 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3631/1.693, allocations: 20.38 MB / 0.5896 GB, free: 12.49 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03265/1.726, allocations: 9.741 MB / 0.5992 GB, free: 6.117 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001731/1.728, allocations: 1.318 MB / 0.6004 GB, free: 5.371 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008771/1.737, allocations: 1.727 MB / 0.6021 GB, free: 4.227 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1724/1.909, allocations: 41.15 MB / 0.6423 GB, free: 6.32 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009291/1.91, allocations: 96.39 kB / 0.6424 GB, free: 6.266 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006749/1.917, allocations: 0.7592 MB / 0.6431 GB, free: 6.086 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009984/1.927, allocations: 4.053 MB / 0.6471 GB, free: 2.793 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1242/2.051, allocations: 33.74 MB / 0.6801 GB, free: 5.699 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8971/2.948, allocations: 119.1 MB / 0.7963 GB, free: 97 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1059/3.054, allocations: 22.29 MB / 0.8181 GB, free: 74.24 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06078/3.115, allocations: 27.48 MB / 0.845 GB, free: 46.43 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.907e-05/3.115, allocations: 80.88 kB / 0.845 GB, free: 46.34 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=372): time 9.307e-06/3.115, allocations: 0 / 0.845 GB, free: 46.34 MB / 0.5262 GB Notification: Performance of matching and sorting (n=486): time 3.214/6.329, allocations: 327.3 MB / 1.165 GB, free: 127.8 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/6.329, allocations: 285.5 kB / 1.165 GB, free: 127.4 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02211/6.351, allocations: 9.325 MB / 1.174 GB, free: 118.1 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.002757/6.354, allocations: 99.03 kB / 1.174 GB, free: 118 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.007665/6.362, allocations: 10.57 MB / 1.184 GB, free: 107.5 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.004632/6.366, allocations: 1.891 MB / 1.186 GB, free: 105.6 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004223/6.371, allocations: 343.2 kB / 1.187 GB, free: 105.3 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.001772/6.373, allocations: 1.03 MB / 1.188 GB, free: 104.2 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03416/6.407, allocations: 15.98 MB / 1.203 GB, free: 88.23 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04081/6.448, allocations: 26.51 MB / 1.229 GB, free: 56.56 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04235/6.49, allocations: 19.99 MB / 1.249 GB, free: 36.56 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003367/6.49, allocations: 112 kB / 1.249 GB, free: 36.45 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2202) (initialization): time 0.5133/7.004, allocations: 42 MB / 1.29 GB, free: 140.3 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002663/7.004, allocations: 167.9 kB / 1.29 GB, free: 140.3 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006103/7.005, allocations: 370.9 kB / 1.29 GB, free: 140.3 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00335/7.008, allocations: 1.015 MB / 1.291 GB, free: 140.2 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03913/7.047, allocations: 5.213 MB / 1.296 GB, free: 140.1 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/7.058, allocations: 6.527 MB / 1.303 GB, free: 136.2 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02932/7.088, allocations: 2.104 MB / 1.305 GB, free: 135.9 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005126/7.093, allocations: 1.019 MB / 1.306 GB, free: 135.8 MB / 0.5263 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.0227/7.116, allocations: 7.73 MB / 1.313 GB, free: 132.5 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004306/7.12, allocations: 0.8727 MB / 1.314 GB, free: 132.4 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07506/7.195, allocations: 30.47 MB / 1.344 GB, free: 115.9 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002166/7.195, allocations: 91.48 kB / 1.344 GB, free: 115.9 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-05/7.195, allocations: 4 kB / 1.344 GB, free: 115.9 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001263/7.195, allocations: 34.09 kB / 1.344 GB, free: 115.8 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1502/7.346, allocations: 72.8 MB / 1.415 GB, free: 44.26 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-05/7.346, allocations: 4 kB / 1.415 GB, free: 44.25 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02399/7.37, allocations: 2.045 MB / 1.417 GB, free: 42.22 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002877/7.373, allocations: 454.5 kB / 1.418 GB, free: 41.77 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003273/7.376, allocations: 90.58 kB / 1.418 GB, free: 41.69 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01205/7.388, allocations: 5.146 MB / 1.423 GB, free: 36.33 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/7.388, allocations: 4 kB / 1.423 GB, free: 36.32 MB / 0.5263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.131/7.519, allocations: 51.07 MB / 1.473 GB, free: 1.672 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.4041/7.923, allocations: 3.977 MB / 1.476 GB, free: 165.9 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006004/7.929, allocations: 76.39 kB / 1.477 GB, free: 165.9 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02084/7.95, allocations: 1.59 MB / 1.478 GB, free: 165.9 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003537/7.954, allocations: 255.7 kB / 1.478 GB, free: 165.9 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002752/7.957, allocations: 132.4 kB / 1.478 GB, free: 165.9 MB / 0.5419 GB Notification: Performance of sorting global known variables: time 0.0177/7.974, allocations: 6.484 MB / 1.485 GB, free: 165.6 MB / 0.5419 GB Notification: Performance of sort global known variables: time 1.343e-06/7.975, allocations: 0 / 1.485 GB, free: 165.6 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.02468/7.999, allocations: 4.305 MB / 1.489 GB, free: 165.4 MB / 0.5419 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.003633/8.003, allocations: 303.7 kB / 1.489 GB, free: 165.3 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0757/8.079, allocations: 35.26 MB / 1.524 GB, free: 150.4 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/8.079, allocations: 8.438 kB / 1.524 GB, free: 150.4 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.03231/8.111, allocations: 15.06 MB / 1.538 GB, free: 136.9 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01201/8.123, allocations: 1.329 MB / 1.54 GB, free: 135.8 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1363/8.259, allocations: 56.66 MB / 1.595 GB, free: 84.44 MB / 0.5419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03038/8.29, allocations: 11.32 MB / 1.606 GB, free: 73.3 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01787/8.308, allocations: 0.7594 MB / 1.607 GB, free: 72.54 MB / 0.5419 GB Notification: Performance of SimCode: time 1.483e-06/8.308, allocations: 0 / 1.607 GB, free: 72.54 MB / 0.5419 GB Notification: Performance of Templates: time 1.56/9.868, allocations: 395.7 MB / 1.993 GB, free: 84.25 MB / 0.5575 GB