Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 2.451/2.451, allocations: 270.1 MB / 283.6 MB, free: 3.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.094e-05/3.103e-05, allocations: 9.906 kB / 348.4 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1101, allocations: 61.89 MB / 410.3 MB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4357/0.5459, allocations: 105.7 MB / 0.5039 GB, free: 14.36 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.5461, allocations: 79.95 kB / 0.5039 GB, free: 14.28 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3022/0.8483, allocations: 75.8 MB / 0.578 GB, free: 2.004 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.911e-06/0.8484, allocations: 0 / 0.578 GB, free: 2.004 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001711/0.8486, allocations: 64 kB / 0.578 GB, free: 1.941 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.01026/0.8588, allocations: 3.353 MB / 0.5813 GB, free: 14.53 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.8589, allocations: 15.97 kB / 0.5813 GB, free: 14.51 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02288/0.8818, allocations: 4.273 MB / 0.5855 GB, free: 10.23 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01537/0.8972, allocations: 4.127 MB / 0.5895 GB, free: 6.035 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003545/0.8976, allocations: 258.8 kB / 0.5898 GB, free: 5.781 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00134/0.899, allocations: 347.8 kB / 0.5901 GB, free: 5.441 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01913/0.9181, allocations: 8.453 MB / 0.5983 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001791/0.9183, allocations: 59.47 kB / 0.5984 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000701/0.919, allocations: 171.9 kB / 0.5986 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001511/0.9206, allocations: 0.8255 MB / 0.5994 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01604/0.9366, allocations: 6.573 MB / 0.6058 GB, free: 4.379 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3792/1.316, allocations: 40.95 MB / 0.6458 GB, free: 96.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006133/1.322, allocations: 2.381 MB / 0.6481 GB, free: 95.63 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001834/1.324, allocations: 1.007 MB / 0.6491 GB, free: 95.6 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004018/1.324, allocations: 324.1 kB / 0.6494 GB, free: 95.32 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/1.324, allocations: 50.61 kB / 0.6494 GB, free: 95.27 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=104): time 5.036e-06/1.324, allocations: 4.969 kB / 0.6495 GB, free: 95.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=118): time 0.02313/1.348, allocations: 6.97 MB / 0.6563 GB, free: 93.02 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.617e-05/1.348, allocations: 193.2 kB / 0.6564 GB, free: 92.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006989/1.355, allocations: 3.345 MB / 0.6597 GB, free: 92.48 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002115/1.355, allocations: 43.52 kB / 0.6597 GB, free: 92.45 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002105/1.357, allocations: 2.82 MB / 0.6625 GB, free: 91.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000607/1.358, allocations: 0.4943 MB / 0.663 GB, free: 90.84 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003579/1.358, allocations: 110.1 kB / 0.6631 GB, free: 90.84 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000351/1.358, allocations: 0.5321 MB / 0.6636 GB, free: 90.53 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002967/1.361, allocations: 1.505 MB / 0.6651 GB, free: 90.51 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004948/1.366, allocations: 5.083 MB / 0.67 GB, free: 85.81 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005064/1.371, allocations: 2.78 MB / 0.6728 GB, free: 85.08 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001187/1.372, allocations: 40.66 kB / 0.6728 GB, free: 85.08 MB / 0.5105 GB Notification: Performance of matching and sorting (n=709) (initialization): time 0.01447/1.386, allocations: 6.119 MB / 0.6788 GB, free: 83.22 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/1.386, allocations: 60.47 kB / 0.6788 GB, free: 83.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001365/1.386, allocations: 127.2 kB / 0.679 GB, free: 83.22 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009111/1.387, allocations: 358.9 kB / 0.6793 GB, free: 83.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004772/1.392, allocations: 1.244 MB / 0.6805 GB, free: 83.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00597/1.398, allocations: 2.722 MB / 0.6832 GB, free: 81.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009226/1.407, allocations: 288.9 kB / 0.6834 GB, free: 81.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001513/1.409, allocations: 343.4 kB / 0.6838 GB, free: 80.98 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[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],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (674): * Single equations (assignments): 670 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001478/1.411, allocations: 0.5354 MB / 0.6843 GB, free: 80.54 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001237/1.412, allocations: 319.2 kB / 0.6846 GB, free: 80.36 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006752/1.419, allocations: 1.339 MB / 0.6859 GB, free: 79.84 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.073e-05/1.419, allocations: 13.75 kB / 0.6859 GB, free: 79.84 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-05/1.419, allocations: 0 / 0.6859 GB, free: 79.84 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.214e-05/1.419, allocations: 9.953 kB / 0.6859 GB, free: 79.84 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/1.434, allocations: 4.778 MB / 0.6906 GB, free: 78.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/1.434, allocations: 0 / 0.6906 GB, free: 78.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001205/1.436, allocations: 166.2 kB / 0.6908 GB, free: 78 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006777/1.436, allocations: 160.1 kB / 0.6909 GB, free: 77.96 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001252/1.437, allocations: 17.38 kB / 0.6909 GB, free: 77.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002716/1.439, allocations: 2.147 MB / 0.693 GB, free: 76.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.439, allocations: 0 / 0.693 GB, free: 76.31 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005396/1.445, allocations: 3.175 MB / 0.6961 GB, free: 74.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/1.446, allocations: 362.6 kB / 0.6965 GB, free: 74.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000531/1.446, allocations: 21.25 kB / 0.6965 GB, free: 74.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/1.448, allocations: 52.84 kB / 0.6965 GB, free: 74.49 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/1.448, allocations: 69.86 kB / 0.6966 GB, free: 74.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/1.448, allocations: 31.5 kB / 0.6966 GB, free: 74.47 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004805/1.453, allocations: 2.312 MB / 0.6989 GB, free: 73.67 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.338e-06/1.453, allocations: 0 / 0.6989 GB, free: 73.67 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006032/1.459, allocations: 0.7894 MB / 0.6997 GB, free: 73.57 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004401/1.46, allocations: 159.7 kB / 0.6998 GB, free: 73.46 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006944/1.467, allocations: 3.518 MB / 0.7032 GB, free: 72.24 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.971e-06/1.467, allocations: 0 / 0.7032 GB, free: 72.24 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001475/1.468, allocations: 0.8808 MB / 0.7041 GB, free: 71.87 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00238/1.471, allocations: 355.9 kB / 0.7044 GB, free: 71.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/1.484, allocations: 5.807 MB / 0.7101 GB, free: 69.56 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003985/1.488, allocations: 2.873 MB / 0.7129 GB, free: 68.38 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005549/1.493, allocations: 1.721 MB / 0.7146 GB, free: 68.24 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008598/1.494, allocations: 214.5 kB / 0.7148 GB, free: 68.23 MB / 0.5105 GB Notification: Performance of SimCode: time 1.723e-06/1.494, allocations: 0 / 0.7148 GB, free: 68.23 MB / 0.5105 GB Notification: Performance of Templates: time 0.07484/1.569, allocations: 25.56 MB / 0.7398 GB, free: 52.41 MB / 0.5105 GB