Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadModel(ModelicaTest): time 2.467/2.467, allocations: 234.9 MB / 250.1 MB, free: 9.934 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.447e-05/3.446e-05, allocations: 4 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3806/0.3807, allocations: 54.86 MB / 362.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.04287/0.4236, allocations: 26.75 MB / 389.6 MB, free: 3.023 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01991/0.4436, allocations: 6.715 MB / 396.3 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006196/0.4498, allocations: 135.7 kB / 396.4 MB, free: 12.16 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005111/0.455, allocations: 1.365 MB / 397.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01546/0.4705, allocations: 3.966 MB / 401.8 MB, free: 6.809 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002769/0.4733, allocations: 463.1 kB / 402.2 MB, free: 6.355 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02619/0.4995, allocations: 8.633 MB / 410.9 MB, free: 13.71 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005198/0.5048, allocations: 2.328 MB / 413.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001649/0.5065, allocations: 0.6585 MB / 413.9 MB, free: 10.7 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002467/0.509, allocations: 1.06 MB / 414.9 MB, free: 9.633 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002825/0.5119, allocations: 0.9168 MB / 415.8 MB, free: 8.715 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001168/0.5131, allocations: 124 kB / 415.9 MB, free: 8.594 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002274/0.5154, allocations: 1.212 MB / 417.2 MB, free: 7.379 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001081/0.5165, allocations: 204 kB / 417.4 MB, free: 7.18 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007938/0.5245, allocations: 4.563 MB / 421.9 MB, free: 2.605 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.5246, allocations: 4 kB / 421.9 MB, free: 2.602 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.5246, allocations: 0 / 421.9 MB, free: 2.602 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000195/0.5248, allocations: 0 / 421.9 MB, free: 2.602 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.01087/0.5357, allocations: 3.196 MB / 425.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.5357, allocations: 12.03 kB / 425.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1834/0.7192, allocations: 10.39 MB / 435.5 MB, free: 4.922 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01143/0.7307, allocations: 2.439 MB / 438 MB, free: 2.434 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003355/0.7311, allocations: 172.3 kB / 438.1 MB, free: 2.262 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001568/0.7326, allocations: 227.9 kB / 438.4 MB, free: 2.039 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.027/0.7597, allocations: 7.862 MB / 446.2 MB, free: 9.551 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00019/0.7599, allocations: 39.69 kB / 446.3 MB, free: 9.512 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008623/0.7608, allocations: 115.8 kB / 446.4 MB, free: 9.398 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004721/0.7655, allocations: 1.605 MB / 448 MB, free: 7.785 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02142/0.787, allocations: 6.645 MB / 454.6 MB, free: 1.129 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06013/0.8472, allocations: 31.2 MB / 485.8 MB, free: 0.9766 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0112/0.8585, allocations: 2.29 MB / 488.1 MB, free: 14.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008005/0.8594, allocations: 327.7 kB / 488.4 MB, free: 14.17 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.845e-05/0.8594, allocations: 47.06 kB / 488.5 MB, free: 14.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 6.833e-06/0.8595, allocations: 0 / 488.5 MB, free: 14.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.07816/0.9376, allocations: 11.68 MB / 0.4884 GB, free: 2.254 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.9378, allocations: 200.5 kB / 0.4886 GB, free: 2.016 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3233/1.261, allocations: 3.43 MB / 0.492 GB, free: 122.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003014/1.261, allocations: 46.27 kB / 0.492 GB, free: 122.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002304/1.264, allocations: 2.618 MB / 0.4946 GB, free: 120.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008422/1.265, allocations: 0.5548 MB / 0.4951 GB, free: 120.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005258/1.265, allocations: 105.9 kB / 0.4952 GB, free: 120.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003339/1.266, allocations: 0.5405 MB / 0.4957 GB, free: 119.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004524/1.27, allocations: 1.673 MB / 0.4974 GB, free: 119.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006494/1.277, allocations: 5.066 MB / 0.5023 GB, free: 114 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006308/1.283, allocations: 2.869 MB / 0.5051 GB, free: 112.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.967e-05/1.283, allocations: 35.16 kB / 0.5052 GB, free: 112.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01663/1.3, allocations: 6.633 MB / 0.5116 GB, free: 110.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.96e-05/1.3, allocations: 55.66 kB / 0.5117 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001437/1.3, allocations: 122.7 kB / 0.5118 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/1.302, allocations: 421.7 kB / 0.5122 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006855/1.308, allocations: 1.234 MB / 0.5134 GB, free: 109.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004871/1.313, allocations: 3.141 MB / 0.5165 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005502/1.319, allocations: 291.4 kB / 0.5168 GB, free: 106.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006537/1.32, allocations: 336 kB / 0.5171 GB, free: 105.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 24 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (662): * Single equations (assignments): 658 * 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.003259/1.323, allocations: 1.736 MB / 0.5188 GB, free: 104 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007018/1.324, allocations: 311.9 kB / 0.5191 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0047/1.328, allocations: 1.842 MB / 0.5209 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-05/1.328, allocations: 21 kB / 0.5209 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.769e-06/1.328, allocations: 11.56 kB / 0.5209 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/1.328, allocations: 4.094 kB / 0.5209 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/1.342, allocations: 5.612 MB / 0.5264 GB, free: 96.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/1.342, allocations: 8.062 kB / 0.5264 GB, free: 96.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001946/1.344, allocations: 215.7 kB / 0.5266 GB, free: 95.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/1.345, allocations: 228.6 kB / 0.5268 GB, free: 95.71 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000131/1.345, allocations: 28.61 kB / 0.5268 GB, free: 95.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003883/1.349, allocations: 2.568 MB / 0.5293 GB, free: 92.99 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/1.349, allocations: 5.109 kB / 0.5294 GB, free: 92.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008073/1.357, allocations: 3.993 MB / 0.5332 GB, free: 88.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/1.359, allocations: 0.5476 MB / 0.5338 GB, free: 88.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006537/1.359, allocations: 28.84 kB / 0.5338 GB, free: 88.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002008/1.361, allocations: 67.91 kB / 0.5339 GB, free: 88.27 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/1.361, allocations: 84.52 kB / 0.534 GB, free: 88.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001423/1.362, allocations: 41.55 kB / 0.534 GB, free: 88.15 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004818/1.366, allocations: 2.415 MB / 0.5364 GB, free: 85.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.72e-07/1.367, allocations: 0 / 0.5364 GB, free: 85.75 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005467/1.372, allocations: 0.8197 MB / 0.5372 GB, free: 84.93 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * 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.0006325/1.373, allocations: 164.5 kB / 0.5373 GB, free: 84.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009105/1.382, allocations: 4.055 MB / 0.5413 GB, free: 80.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.984e-06/1.382, allocations: 0 / 0.5413 GB, free: 80.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002639/1.384, allocations: 1.144 MB / 0.5424 GB, free: 79.57 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002788/1.387, allocations: 351.5 kB / 0.5427 GB, free: 79.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02247/1.41, allocations: 8.961 MB / 0.5515 GB, free: 70.22 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006273/1.416, allocations: 2.826 MB / 0.5542 GB, free: 67.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001899/1.418, allocations: 259.4 kB / 0.5545 GB, free: 67.12 MB / 426.7 MB Notification: Performance of SimCode: time 1.272e-06/1.418, allocations: 0 / 0.5545 GB, free: 67.12 MB / 426.7 MB Notification: Performance of Templates: time 0.1358/1.554, allocations: 61.38 MB / 0.6144 GB, free: 5.695 MB / 426.7 MB