Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 2.389/2.389, allocations: 249.5 MB / 261.6 MB, free: 2.156 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.443e-05, allocations: 4 kB / 323.4 MB, free: 4.305 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3299, allocations: 58.82 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.162/0.492, allocations: 104.5 MB / 486.7 MB, free: 3.992 MB / 410.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.4923, allocations: 75.97 kB / 486.8 MB, free: 3.918 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.566/1.058, allocations: 79.19 MB / 0.5527 GB, free: 111.9 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.471e-06/1.058, allocations: 0 / 0.5527 GB, free: 111.9 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0001787/1.059, allocations: 69.09 kB / 0.5528 GB, free: 111.9 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.0104/1.069, allocations: 3.545 MB / 0.5562 GB, free: 110.2 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/1.069, allocations: 7.531 kB / 0.5562 GB, free: 110.2 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02443/1.093, allocations: 4.326 MB / 0.5605 GB, free: 110 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01325/1.107, allocations: 4.381 MB / 0.5647 GB, free: 108.7 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002961/1.107, allocations: 284.8 kB / 0.565 GB, free: 108.6 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001403/1.109, allocations: 366.9 kB / 0.5654 GB, free: 108.5 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0162/1.125, allocations: 9.008 MB / 0.5742 GB, free: 99.51 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001559/1.125, allocations: 59.45 kB / 0.5742 GB, free: 99.45 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006343/1.126, allocations: 182.8 kB / 0.5744 GB, free: 99.3 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001242/1.127, allocations: 0.9026 MB / 0.5753 GB, free: 98.4 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01449/1.141, allocations: 7.081 MB / 0.5822 GB, free: 91.32 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04342/1.185, allocations: 42.77 MB / 0.6239 GB, free: 47.37 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00579/1.191, allocations: 2.479 MB / 0.6264 GB, free: 44.74 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001649/1.192, allocations: 1.067 MB / 0.6274 GB, free: 43.66 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003731/1.193, allocations: 323 kB / 0.6277 GB, free: 43.29 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/1.193, allocations: 51.05 kB / 0.6278 GB, free: 43.23 MB / 458.8 MB Notification: Performance of pre-optimization done (n=119): time 5.765e-06/1.193, allocations: 0 / 0.6278 GB, free: 43.23 MB / 458.8 MB Notification: Performance of matching and sorting (n=133): time 0.02348/1.216, allocations: 7.499 MB / 0.6351 GB, free: 35.64 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/1.216, allocations: 196.7 kB / 0.6353 GB, free: 35.41 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006473/1.223, allocations: 3.479 MB / 0.6387 GB, free: 31.95 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000225/1.223, allocations: 41.7 kB / 0.6387 GB, free: 31.9 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002077/1.225, allocations: 2.985 MB / 0.6416 GB, free: 28.92 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005808/1.226, allocations: 0.5385 MB / 0.6422 GB, free: 28.39 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000357/1.226, allocations: 112 kB / 0.6423 GB, free: 28.28 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.00033/1.227, allocations: 0.5459 MB / 0.6428 GB, free: 27.72 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003018/1.23, allocations: 1.597 MB / 0.6444 GB, free: 26.12 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005132/1.235, allocations: 5.375 MB / 0.6496 GB, free: 18.82 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005155/1.24, allocations: 2.949 MB / 0.6525 GB, free: 15.87 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.95e-05/1.24, allocations: 36 kB / 0.6525 GB, free: 15.83 MB / 458.8 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.01464/1.255, allocations: 6.479 MB / 0.6588 GB, free: 9.352 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/1.255, allocations: 67.98 kB / 0.6589 GB, free: 9.285 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001378/1.255, allocations: 136 kB / 0.659 GB, free: 9.152 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009187/1.256, allocations: 364.6 kB / 0.6594 GB, free: 8.793 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005246/1.261, allocations: 1.341 MB / 0.6607 GB, free: 7.449 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003461/1.265, allocations: 2.72 MB / 0.6634 GB, free: 4.59 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005498/1.27, allocations: 303.5 kB / 0.6636 GB, free: 4.293 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009447/1.271, allocations: 374.8 kB / 0.664 GB, free: 3.934 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 31 (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.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 (718): * Single equations (assignments): 714 * 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.000872/1.272, allocations: 0.5547 MB / 0.6645 GB, free: 3.371 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006394/1.273, allocations: 331.8 kB / 0.6649 GB, free: 3.043 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003218/1.276, allocations: 1.565 MB / 0.6664 GB, free: 1.457 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.568e-05/1.276, allocations: 16 kB / 0.6664 GB, free: 1.441 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/1.276, allocations: 4 kB / 0.6664 GB, free: 1.438 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.826e-05/1.276, allocations: 3.984 kB / 0.6664 GB, free: 1.434 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/1.29, allocations: 5.211 MB / 0.6715 GB, free: 12.18 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.826e-05/1.29, allocations: 4 kB / 0.6715 GB, free: 12.18 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/1.292, allocations: 195.7 kB / 0.6717 GB, free: 11.98 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006689/1.292, allocations: 156.9 kB / 0.6718 GB, free: 11.83 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001404/1.293, allocations: 20 kB / 0.6719 GB, free: 11.81 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003415/1.296, allocations: 2.159 MB / 0.674 GB, free: 9.52 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.854e-06/1.296, allocations: 4 kB / 0.674 GB, free: 9.516 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006878/1.303, allocations: 3.527 MB / 0.6774 GB, free: 5.914 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001714/1.305, allocations: 0.5163 MB / 0.6779 GB, free: 5.375 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006877/1.305, allocations: 27.94 kB / 0.6779 GB, free: 5.348 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001733/1.307, allocations: 51.94 kB / 0.678 GB, free: 5.297 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/1.307, allocations: 72.42 kB / 0.6781 GB, free: 5.227 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/1.308, allocations: 51.19 kB / 0.6781 GB, free: 5.184 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.005892/1.313, allocations: 2.411 MB / 0.6805 GB, free: 2.793 MB / 474.8 MB Notification: Performance of sort global known variables: time 4.519e-06/1.314, allocations: 0 / 0.6805 GB, free: 2.793 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.006737/1.32, allocations: 0.8553 MB / 0.6813 GB, free: 1.938 MB / 474.8 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.000551/1.321, allocations: 150.5 kB / 0.6814 GB, free: 1.781 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.008829/1.33, allocations: 3.749 MB / 0.6851 GB, free: 14.05 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 7.381e-06/1.33, allocations: 0 / 0.6851 GB, free: 14.05 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001996/1.332, allocations: 0.9341 MB / 0.686 GB, free: 13.11 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/1.334, allocations: 368 kB / 0.6864 GB, free: 12.75 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01669/1.351, allocations: 6.23 MB / 0.6925 GB, free: 6.461 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006399/1.357, allocations: 3.03 MB / 0.6954 GB, free: 3.406 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.007184/1.365, allocations: 1.807 MB / 0.6972 GB, free: 1.59 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001025/1.366, allocations: 223.4 kB / 0.6974 GB, free: 1.371 MB / 490.8 MB Notification: Performance of SimCode: time 4.201e-06/1.366, allocations: 4 kB / 0.6974 GB, free: 1.367 MB / 490.8 MB Notification: Performance of Templates: time 0.3689/1.735, allocations: 26.88 MB / 0.7236 GB, free: 139.6 MB / 0.4949 GB