Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 2.474/2.474, allocations: 234.9 MB / 250.1 MB, free: 9.941 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.113e-05/3.105e-05, allocations: 0 / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4193/0.4194, allocations: 54.86 MB / 362.8 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.05223/0.4717, allocations: 32.74 MB / 395.6 MB, free: 13.05 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02286/0.4946, allocations: 7.833 MB / 403.4 MB, free: 5.191 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007264/0.5019, allocations: 163.6 kB / 403.6 MB, free: 5.031 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006083/0.508, allocations: 1.692 MB / 405.3 MB, free: 3.332 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01916/0.5273, allocations: 4.796 MB / 410.1 MB, free: 14.52 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003183/0.5305, allocations: 475.1 kB / 410.5 MB, free: 14.06 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.02666/0.5572, allocations: 8.723 MB / 419.3 MB, free: 5.328 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005571/0.5628, allocations: 2.656 MB / 421.9 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001656/0.5646, allocations: 0.7051 MB / 422.6 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002625/0.5672, allocations: 1.161 MB / 423.8 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002821/0.5701, allocations: 0.9285 MB / 424.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.5711, allocations: 132 kB / 424.8 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002115/0.5733, allocations: 1.356 MB / 426.2 MB, free: 14.35 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009888/0.5743, allocations: 224 kB / 426.4 MB, free: 14.13 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00812/0.5824, allocations: 5.047 MB / 431.5 MB, free: 9.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.5825, allocations: 0 / 431.5 MB, free: 9.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.416e-06/0.5825, allocations: 3.938 kB / 431.5 MB, free: 9.066 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001984/0.5827, allocations: 0 / 431.5 MB, free: 9.066 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.01193/0.5947, allocations: 3.472 MB / 434.9 MB, free: 5.531 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.5947, allocations: 12.03 kB / 434.9 MB, free: 5.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2563/0.8511, allocations: 10.46 MB / 445.4 MB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008969/0.8601, allocations: 2.584 MB / 448 MB, free: 8.395 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003063/0.8605, allocations: 192.9 kB / 448.2 MB, free: 8.203 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001666/0.8622, allocations: 255.8 kB / 448.4 MB, free: 7.953 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02318/0.8854, allocations: 8.728 MB / 457.1 MB, free: 14.58 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001547/0.8856, allocations: 35.69 kB / 457.2 MB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008883/0.8865, allocations: 127.9 kB / 457.3 MB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004935/0.8915, allocations: 1.766 MB / 459.1 MB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02237/0.9139, allocations: 7.366 MB / 466.4 MB, free: 5.273 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06384/0.9778, allocations: 33.97 MB / 0.4887 GB, free: 2.266 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3117/1.29, allocations: 2.517 MB / 0.4911 GB, free: 123 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005749/1.29, allocations: 325.2 kB / 0.4915 GB, free: 122.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.981e-05/1.29, allocations: 52.59 kB / 0.4915 GB, free: 122.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 5.33e-06/1.29, allocations: 0 / 0.4915 GB, free: 122.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.04501/1.335, allocations: 9.179 MB / 0.5005 GB, free: 119.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.266e-05/1.335, allocations: 196.2 kB / 0.5007 GB, free: 119 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01062/1.346, allocations: 3.634 MB / 0.5042 GB, free: 117.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003292/1.346, allocations: 46.78 kB / 0.5042 GB, free: 117.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003008/1.35, allocations: 2.896 MB / 0.5071 GB, free: 115.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009621/1.351, allocations: 0.5421 MB / 0.5076 GB, free: 114.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007003/1.351, allocations: 113 kB / 0.5077 GB, free: 114.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005242/1.352, allocations: 0.5482 MB / 0.5082 GB, free: 114.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01932/1.371, allocations: 1.674 MB / 0.5099 GB, free: 113.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02126/1.392, allocations: 5.446 MB / 0.5152 GB, free: 107.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008873/1.401, allocations: 2.978 MB / 0.5181 GB, free: 104.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001394/1.402, allocations: 36 kB / 0.5181 GB, free: 104.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=748) (initialization): time 0.02401/1.426, allocations: 6.919 MB / 0.5249 GB, free: 97.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001401/1.426, allocations: 64 kB / 0.525 GB, free: 97.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002236/1.426, allocations: 136 kB / 0.5251 GB, free: 97.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001873/1.428, allocations: 432.7 kB / 0.5255 GB, free: 97.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008911/1.437, allocations: 1.326 MB / 0.5268 GB, free: 95.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005285/1.442, allocations: 3.161 MB / 0.5299 GB, free: 92.44 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005752/1.448, allocations: 307.4 kB / 0.5302 GB, free: 92.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/1.449, allocations: 373.6 kB / 0.5305 GB, free: 91.77 MB / 426.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.004229/1.453, allocations: 1.896 MB / 0.5324 GB, free: 89.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000776/1.454, allocations: 319.8 kB / 0.5327 GB, free: 89.55 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004607/1.459, allocations: 1.695 MB / 0.5343 GB, free: 87.84 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-05/1.459, allocations: 17.33 kB / 0.5344 GB, free: 87.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/1.459, allocations: 4 kB / 0.5344 GB, free: 87.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.56e-05/1.459, allocations: 13.44 kB / 0.5344 GB, free: 87.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01439/1.473, allocations: 5.435 MB / 0.5397 GB, free: 82.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/1.473, allocations: 3.938 kB / 0.5397 GB, free: 82.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001704/1.475, allocations: 187.9 kB / 0.5399 GB, free: 82.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001042/1.476, allocations: 220.6 kB / 0.5401 GB, free: 81.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001776/1.476, allocations: 27.89 kB / 0.5401 GB, free: 81.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003953/1.48, allocations: 2.575 MB / 0.5426 GB, free: 79.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.48, allocations: 4.031 kB / 0.5426 GB, free: 79.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007655/1.488, allocations: 3.72 MB / 0.5463 GB, free: 75.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/1.49, allocations: 0.5396 MB / 0.5468 GB, free: 74.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000902/1.491, allocations: 25.09 kB / 0.5468 GB, free: 74.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002201/1.493, allocations: 59.98 kB / 0.5469 GB, free: 74.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002806/1.493, allocations: 69.17 kB / 0.5469 GB, free: 74.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001314/1.493, allocations: 36.94 kB / 0.547 GB, free: 74.64 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005397/1.499, allocations: 2.554 MB / 0.5495 GB, free: 72.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.132e-06/1.499, allocations: 0 / 0.5495 GB, free: 72.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005856/1.505, allocations: 0.8656 MB / 0.5503 GB, free: 71.24 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.0006864/1.505, allocations: 166.4 kB / 0.5505 GB, free: 71.08 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009218/1.515, allocations: 4.05 MB / 0.5544 GB, free: 67.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/1.515, allocations: 3.938 kB / 0.5544 GB, free: 67.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002247/1.517, allocations: 1.01 MB / 0.5554 GB, free: 66.03 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002788/1.52, allocations: 371.3 kB / 0.5558 GB, free: 65.67 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0198/1.54, allocations: 9.517 MB / 0.5651 GB, free: 56.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005284/1.545, allocations: 3.026 MB / 0.568 GB, free: 53.04 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001308/1.546, allocations: 279.4 kB / 0.5683 GB, free: 52.77 MB / 426.7 MB Notification: Performance of SimCode: time 2.034e-06/1.546, allocations: 0 / 0.5683 GB, free: 52.77 MB / 426.7 MB Notification: Performance of Templates: time 0.1225/1.669, allocations: 65 MB / 0.6318 GB, free: 3.695 MB / 442.7 MB