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 2.057/2.057, allocations: 209.3 MB / 223.8 MB, free: 440 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.678e-05/4.691e-05, allocations: 8 kB / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3575/0.3576, allocations: 48.69 MB / 324.9 MB, free: 3.367 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.05198/0.4097, allocations: 32.73 MB / 357.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02407/0.4338, allocations: 7.793 MB / 365.4 MB, free: 6.887 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008265/0.4421, allocations: 163.6 kB / 365.6 MB, free: 6.727 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006654/0.4488, allocations: 1.695 MB / 367.2 MB, free: 5.023 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01937/0.4682, allocations: 4.799 MB / 372 MB, free: 216 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003109/0.4714, allocations: 495.3 kB / 372.5 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02658/0.498, allocations: 8.722 MB / 381.3 MB, free: 6.996 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005753/0.5038, allocations: 2.65 MB / 383.9 MB, free: 4.316 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001547/0.5054, allocations: 0.7013 MB / 384.6 MB, free: 3.613 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002465/0.5079, allocations: 1.169 MB / 385.8 MB, free: 2.441 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002784/0.5107, allocations: 0.9207 MB / 386.7 MB, free: 1.52 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009479/0.5117, allocations: 131.9 kB / 386.8 MB, free: 1.391 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002201/0.5139, allocations: 1.344 MB / 388.2 MB, free: 44 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001149/0.5151, allocations: 220 kB / 388.4 MB, free: 15.82 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008497/0.5236, allocations: 5.058 MB / 393.4 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.5237, allocations: 4 kB / 393.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.278e-06/0.5237, allocations: 0 / 393.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002263/0.524, allocations: 4 kB / 393.4 MB, free: 10.75 MB / 330.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.01176/0.5357, allocations: 3.472 MB / 396.9 MB, free: 7.215 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.5358, allocations: 8.031 kB / 396.9 MB, free: 7.207 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1992/0.735, allocations: 10.46 MB / 407.4 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008718/0.7438, allocations: 2.572 MB / 410 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002915/0.7441, allocations: 196.9 kB / 410.1 MB, free: 9.898 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001378/0.7455, allocations: 251.9 kB / 410.4 MB, free: 9.652 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02287/0.7684, allocations: 8.728 MB / 419.1 MB, free: 284 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001682/0.7687, allocations: 43.62 kB / 419.2 MB, free: 240 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001024/0.7697, allocations: 123.9 kB / 419.3 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005225/0.7749, allocations: 1.778 MB / 421.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02289/0.7979, allocations: 7.362 MB / 428.4 MB, free: 6.965 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06561/0.8635, allocations: 33.95 MB / 462.4 MB, free: 3.984 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00883/0.8724, allocations: 2.535 MB / 464.9 MB, free: 1.305 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005807/0.8731, allocations: 327.9 kB / 465.2 MB, free: 0.9297 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.019e-05/0.8732, allocations: 51 kB / 465.3 MB, free: 0.8711 MB / 394.7 MB Notification: Performance of pre-optimization done (n=119): time 4.419e-06/0.8732, allocations: 0 / 465.3 MB, free: 0.8711 MB / 394.7 MB Notification: Performance of matching and sorting (n=133): time 0.04197/0.9151, allocations: 9.183 MB / 474.5 MB, free: 7.543 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/0.9153, allocations: 192.6 kB / 474.6 MB, free: 7.309 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009069/0.9244, allocations: 3.63 MB / 478.3 MB, free: 3.695 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003005/0.9248, allocations: 45.7 kB / 478.3 MB, free: 3.645 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003452/0.9282, allocations: 2.956 MB / 481.3 MB, free: 0.6445 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009854/0.9293, allocations: 0.5403 MB / 481.8 MB, free: 100 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2764/1.206, allocations: 110.6 kB / 481.9 MB, free: 129.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0008031/1.207, allocations: 0.5446 MB / 482.5 MB, free: 128.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005103/1.212, allocations: 1.674 MB / 484.1 MB, free: 128.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007768/1.22, allocations: 5.446 MB / 489.6 MB, free: 122.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00762/1.227, allocations: 2.961 MB / 492.6 MB, free: 121.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001793/1.227, allocations: 43.06 kB / 492.6 MB, free: 121.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=748) (initialization): time 0.02255/1.25, allocations: 7.021 MB / 499.6 MB, free: 119.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000174/1.25, allocations: 62.31 kB / 499.7 MB, free: 119.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003369/1.251, allocations: 136 kB / 499.8 MB, free: 119.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001949/1.253, allocations: 435.9 kB / 0.4885 GB, free: 119.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008244/1.261, allocations: 1.322 MB / 0.4898 GB, free: 119 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005732/1.267, allocations: 3.171 MB / 0.4929 GB, free: 117 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006027/1.273, allocations: 302.6 kB / 0.4932 GB, free: 116.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/1.274, allocations: 375.8 kB / 0.4935 GB, free: 116.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 616 * 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 (713): * Single equations (assignments): 709 * 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.004447/1.278, allocations: 1.888 MB / 0.4954 GB, free: 115.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007726/1.279, allocations: 322.9 kB / 0.4957 GB, free: 115.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004581/1.284, allocations: 1.703 MB / 0.4974 GB, free: 115.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-05/1.284, allocations: 18.83 kB / 0.4974 GB, free: 115.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/1.284, allocations: 0 / 0.4974 GB, free: 115.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.002e-05/1.284, allocations: 7.531 kB / 0.4974 GB, free: 115.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01479/1.299, allocations: 5.432 MB / 0.5027 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-05/1.299, allocations: 2.656 kB / 0.5027 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00174/1.301, allocations: 188.9 kB / 0.5029 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/1.302, allocations: 229.6 kB / 0.5031 GB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001812/1.302, allocations: 27.39 kB / 0.5031 GB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003941/1.306, allocations: 2.567 MB / 0.5056 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/1.306, allocations: 0 / 0.5056 GB, free: 111 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007708/1.314, allocations: 3.734 MB / 0.5093 GB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001703/1.315, allocations: 0.5366 MB / 0.5098 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006891/1.316, allocations: 20.88 kB / 0.5098 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001913/1.318, allocations: 59.94 kB / 0.5099 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003964/1.318, allocations: 81.34 kB / 0.51 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001948/1.319, allocations: 36 kB / 0.51 GB, free: 106.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005676/1.324, allocations: 2.542 MB / 0.5125 GB, free: 104.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.324, allocations: 0 / 0.5125 GB, free: 104.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006236/1.331, allocations: 0.8633 MB / 0.5133 GB, free: 103.5 MB / 410.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.0006981/1.331, allocations: 167.4 kB / 0.5135 GB, free: 103.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009711/1.341, allocations: 4.055 MB / 0.5174 GB, free: 99.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/1.341, allocations: 0 / 0.5174 GB, free: 99.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002274/1.343, allocations: 1.003 MB / 0.5184 GB, free: 98.34 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003053/1.347, allocations: 368.4 kB / 0.5188 GB, free: 97.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02001/1.367, allocations: 9.109 MB / 0.5277 GB, free: 88.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005286/1.372, allocations: 3.022 MB / 0.5306 GB, free: 85.77 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.007656/1.38, allocations: 1.814 MB / 0.5324 GB, free: 83.94 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001101/1.381, allocations: 227.3 kB / 0.5326 GB, free: 83.72 MB / 410.7 MB Notification: Performance of SimCode: time 1.423e-06/1.381, allocations: 0 / 0.5326 GB, free: 83.72 MB / 410.7 MB Notification: Performance of Templates: time 0.08307/1.464, allocations: 28.42 MB / 0.5604 GB, free: 55.43 MB / 410.7 MB