Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 1.921/1.921, allocations: 209.3 MB / 221.5 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.72e-05/3.73e-05, allocations: 3.984 kB / 273.1 MB, free: 3.156 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08643/0.08649, allocations: 48.68 MB / 321.8 MB, free: 2.383 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3626/0.4491, allocations: 91.54 MB / 413.3 MB, free: 3.18 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.4493, allocations: 76.61 kB / 413.4 MB, free: 3.168 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.345/0.7943, allocations: 78.86 MB / 492.2 MB, free: 11.88 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.039e-06/0.7944, allocations: 4 kB / 492.2 MB, free: 11.88 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002039/0.7946, allocations: 72 kB / 492.3 MB, free: 11.81 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.01115/0.8057, allocations: 3.533 MB / 495.9 MB, free: 8.219 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.8058, allocations: 12.03 kB / 495.9 MB, free: 8.207 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02313/0.8289, allocations: 4.32 MB / 0.4885 GB, free: 3.875 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0142/0.8432, allocations: 4.353 MB / 0.4927 GB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004021/0.8436, allocations: 283.2 kB / 0.493 GB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001658/0.8453, allocations: 371.8 kB / 0.4933 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02146/0.8668, allocations: 8.981 MB / 0.5021 GB, free: 4.852 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000183/0.867, allocations: 55.5 kB / 0.5022 GB, free: 4.797 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008759/0.8679, allocations: 183.9 kB / 0.5023 GB, free: 4.617 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001615/0.8695, allocations: 0.8962 MB / 0.5032 GB, free: 3.723 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01786/0.8874, allocations: 7.085 MB / 0.5101 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2988/1.186, allocations: 42.64 MB / 0.5518 GB, free: 65.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006188/1.192, allocations: 2.475 MB / 0.5542 GB, free: 64.66 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00182/1.194, allocations: 1.061 MB / 0.5552 GB, free: 64.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003676/1.195, allocations: 327 kB / 0.5555 GB, free: 64.35 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/1.195, allocations: 45.61 kB / 0.5556 GB, free: 64.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 4.62e-06/1.195, allocations: 0 / 0.5556 GB, free: 64.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.02428/1.219, allocations: 7.473 MB / 0.5629 GB, free: 61.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.965e-05/1.219, allocations: 205.4 kB / 0.5631 GB, free: 61.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005557/1.225, allocations: 3.46 MB / 0.5665 GB, free: 61.38 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000207/1.225, allocations: 42.11 kB / 0.5665 GB, free: 61.35 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001823/1.227, allocations: 2.964 MB / 0.5694 GB, free: 59.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005413/1.227, allocations: 0.5447 MB / 0.5699 GB, free: 59.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003173/1.228, allocations: 113.6 kB / 0.57 GB, free: 59.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003353/1.228, allocations: 0.544 MB / 0.5706 GB, free: 59.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002984/1.231, allocations: 1.593 MB / 0.5721 GB, free: 59.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004657/1.236, allocations: 5.351 MB / 0.5773 GB, free: 54.36 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005842/1.242, allocations: 2.934 MB / 0.5802 GB, free: 54.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.598e-05/1.242, allocations: 38.78 kB / 0.5802 GB, free: 54.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01386/1.256, allocations: 6.458 MB / 0.5865 GB, free: 53.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.675e-05/1.256, allocations: 63.34 kB / 0.5866 GB, free: 53.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001351/1.256, allocations: 135.6 kB / 0.5867 GB, free: 53.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008861/1.257, allocations: 370 kB / 0.5871 GB, free: 53.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005041/1.262, allocations: 1.331 MB / 0.5884 GB, free: 53.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003229/1.265, allocations: 2.731 MB / 0.5911 GB, free: 51.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005205/1.27, allocations: 302.3 kB / 0.5913 GB, free: 51.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007593/1.271, allocations: 368 kB / 0.5917 GB, free: 51.75 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (715): * Single equations (assignments): 711 * 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.000824/1.272, allocations: 0.5564 MB / 0.5922 GB, free: 51.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005661/1.273, allocations: 326.9 kB / 0.5926 GB, free: 51.11 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003067/1.276, allocations: 1.547 MB / 0.5941 GB, free: 50.49 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.16e-05/1.276, allocations: 23.31 kB / 0.5941 GB, free: 50.49 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/1.276, allocations: 3.969 kB / 0.5941 GB, free: 50.49 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.636e-05/1.276, allocations: 3.234 kB / 0.5941 GB, free: 50.49 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/1.287, allocations: 5.2 MB / 0.5992 GB, free: 48.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/1.287, allocations: 7.219 kB / 0.5992 GB, free: 48.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/1.288, allocations: 194.4 kB / 0.5994 GB, free: 48.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000569/1.288, allocations: 154.2 kB / 0.5995 GB, free: 48.44 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/1.289, allocations: 22.47 kB / 0.5995 GB, free: 48.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002422/1.291, allocations: 2.159 MB / 0.6016 GB, free: 46.78 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.084e-06/1.291, allocations: 0 / 0.6016 GB, free: 46.78 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005181/1.296, allocations: 3.523 MB / 0.6051 GB, free: 45.02 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/1.298, allocations: 0.5225 MB / 0.6056 GB, free: 44.67 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004933/1.298, allocations: 22.83 kB / 0.6056 GB, free: 44.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/1.3, allocations: 55.64 kB / 0.6057 GB, free: 44.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/1.3, allocations: 74.98 kB / 0.6057 GB, free: 44.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/1.3, allocations: 39.77 kB / 0.6058 GB, free: 44.62 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004372/1.304, allocations: 2.398 MB / 0.6081 GB, free: 43.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.68e-07/1.305, allocations: 2.188 kB / 0.6081 GB, free: 43.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005868/1.31, allocations: 0.8423 MB / 0.6089 GB, free: 43.68 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (102): * Single equations (assignments): 98 * 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.0003941/1.311, allocations: 155 kB / 0.6091 GB, free: 43.57 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007041/1.318, allocations: 3.729 MB / 0.6127 GB, free: 42.28 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.066e-06/1.318, allocations: 3.625 kB / 0.6127 GB, free: 42.28 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001545/1.319, allocations: 0.9451 MB / 0.6137 GB, free: 41.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002092/1.322, allocations: 366.7 kB / 0.614 GB, free: 41.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0129/1.335, allocations: 6.185 MB / 0.62 GB, free: 39.26 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004548/1.339, allocations: 3.032 MB / 0.623 GB, free: 36.93 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005865/1.345, allocations: 1.808 MB / 0.6248 GB, free: 35.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008981/1.346, allocations: 227.2 kB / 0.625 GB, free: 35.59 MB / 426.7 MB Notification: Performance of SimCode: time 2.765e-06/1.346, allocations: 0 / 0.625 GB, free: 35.59 MB / 426.7 MB Notification: Performance of Templates: time 0.07525/1.421, allocations: 26.75 MB / 0.6511 GB, free: 16.86 MB / 426.7 MB