Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 2.473/2.473, allocations: 270 MB / 283.6 MB, free: 1.926 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.542e-05/3.563e-05, allocations: 0 / 348.4 MB, free: 2.828 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3666, allocations: 61.88 MB / 410.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.5288, allocations: 105.7 MB / 0.5038 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.5291, allocations: 75.95 kB / 0.5039 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5492/1.078, allocations: 75.79 MB / 0.5779 GB, free: 64.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.501e-06/1.078, allocations: 4 kB / 0.5779 GB, free: 64.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001639/1.079, allocations: 63.94 kB / 0.578 GB, free: 64.37 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.009452/1.088, allocations: 3.361 MB / 0.5813 GB, free: 60.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/1.088, allocations: 8.031 kB / 0.5813 GB, free: 60.94 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02229/1.11, allocations: 4.277 MB / 0.5855 GB, free: 56.65 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01212/1.123, allocations: 4.116 MB / 0.5895 GB, free: 52.47 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002696/1.123, allocations: 266.8 kB / 0.5897 GB, free: 52.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00146/1.124, allocations: 343.8 kB / 0.5901 GB, free: 51.88 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01762/1.142, allocations: 8.456 MB / 0.5983 GB, free: 42.45 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001694/1.142, allocations: 59.45 kB / 0.5984 GB, free: 42.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009437/1.143, allocations: 171.9 kB / 0.5985 GB, free: 42.22 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00122/1.144, allocations: 0.8255 MB / 0.5994 GB, free: 41.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01431/1.159, allocations: 6.577 MB / 0.6058 GB, free: 34.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04571/1.204, allocations: 40.94 MB / 0.6458 GB, free: 8.445 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006792/1.211, allocations: 2.392 MB / 0.6481 GB, free: 5.902 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001991/1.213, allocations: 0.9991 MB / 0.6491 GB, free: 4.891 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005045/1.214, allocations: 323.2 kB / 0.6494 GB, free: 4.52 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.5e-05/1.214, allocations: 42.5 kB / 0.6494 GB, free: 4.469 MB / 458.7 MB Notification: Performance of pre-optimization done (n=104): time 5.708e-06/1.214, allocations: 0 / 0.6494 GB, free: 4.469 MB / 458.7 MB Notification: Performance of matching and sorting (n=118): time 0.02504/1.239, allocations: 6.988 MB / 0.6562 GB, free: 13.38 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/1.239, allocations: 192.5 kB / 0.6564 GB, free: 13.15 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007811/1.247, allocations: 3.343 MB / 0.6597 GB, free: 9.82 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002165/1.247, allocations: 41.7 kB / 0.6597 GB, free: 9.773 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003208/1.25, allocations: 2.825 MB / 0.6625 GB, free: 6.906 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007511/1.251, allocations: 490 kB / 0.663 GB, free: 6.422 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004638/1.252, allocations: 108 kB / 0.6631 GB, free: 6.316 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005244/1.252, allocations: 0.5451 MB / 0.6636 GB, free: 5.766 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003583/1.256, allocations: 1.506 MB / 0.6651 GB, free: 4.254 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007502/1.263, allocations: 5.071 MB / 0.67 GB, free: 13.36 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006086/1.27, allocations: 2.79 MB / 0.6727 GB, free: 10.57 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001148/1.27, allocations: 39.94 kB / 0.6728 GB, free: 10.53 MB / 490.7 MB Notification: Performance of matching and sorting (n=709) (initialization): time 0.01684/1.287, allocations: 6.122 MB / 0.6788 GB, free: 4.402 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001286/1.287, allocations: 60 kB / 0.6788 GB, free: 4.344 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001899/1.287, allocations: 128 kB / 0.6789 GB, free: 4.219 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/1.288, allocations: 360.6 kB / 0.6793 GB, free: 3.863 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005764/1.294, allocations: 1.248 MB / 0.6805 GB, free: 2.613 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004596/1.298, allocations: 2.72 MB / 0.6832 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005332/1.304, allocations: 283.4 kB / 0.6834 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001121/1.305, allocations: 356 kB / 0.6838 GB, free: 15.13 MB / 0.4948 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.001152/1.306, allocations: 0.5291 MB / 0.6843 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007836/1.307, allocations: 311.9 kB / 0.6846 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003396/1.31, allocations: 1.342 MB / 0.6859 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-05/1.31, allocations: 16 kB / 0.6859 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.809e-06/1.31, allocations: 0 / 0.6859 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.88e-05/1.31, allocations: 7.984 kB / 0.6859 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01271/1.323, allocations: 4.779 MB / 0.6906 GB, free: 8.062 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-05/1.323, allocations: 7.984 kB / 0.6906 GB, free: 8.055 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/1.324, allocations: 171.7 kB / 0.6907 GB, free: 7.887 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007035/1.325, allocations: 152.7 kB / 0.6909 GB, free: 7.734 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001207/1.325, allocations: 16 kB / 0.6909 GB, free: 7.719 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003417/1.329, allocations: 2.144 MB / 0.693 GB, free: 5.441 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/1.329, allocations: 3.938 kB / 0.693 GB, free: 5.438 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006271/1.335, allocations: 3.173 MB / 0.6961 GB, free: 2.219 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/1.336, allocations: 364.9 kB / 0.6965 GB, free: 1.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000487/1.337, allocations: 24.02 kB / 0.6965 GB, free: 1.816 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/1.338, allocations: 47.95 kB / 0.6965 GB, free: 1.77 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/1.338, allocations: 64.41 kB / 0.6966 GB, free: 1.707 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/1.338, allocations: 32 kB / 0.6966 GB, free: 1.676 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005748/1.344, allocations: 2.308 MB / 0.6989 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.24e-06/1.344, allocations: 4 kB / 0.6989 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006214/1.351, allocations: 0.7929 MB / 0.6996 GB, free: 14.59 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.0004485/1.351, allocations: 159 kB / 0.6998 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008155/1.359, allocations: 3.526 MB / 0.7032 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.654e-06/1.359, allocations: 1.562 kB / 0.7032 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001784/1.361, allocations: 0.8628 MB / 0.7041 GB, free: 10.04 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002272/1.363, allocations: 363.7 kB / 0.7044 GB, free: 9.688 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/1.379, allocations: 5.822 MB / 0.7101 GB, free: 3.812 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00544/1.384, allocations: 2.872 MB / 0.7129 GB, free: 0.9141 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.3403/1.725, allocations: 1.716 MB / 0.7146 GB, free: 138.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/1.726, allocations: 211.8 kB / 0.7148 GB, free: 138.9 MB / 0.5105 GB Notification: Performance of SimCode: time 1.794e-06/1.726, allocations: 0.5938 kB / 0.7148 GB, free: 138.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.07746/1.803, allocations: 25.56 MB / 0.7398 GB, free: 138.1 MB / 0.5105 GB