Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadModel(ModelicaTest): time 2.478/2.478, allocations: 234.9 MB / 249.4 MB, free: 10.77 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.599e-05/2.608e-05, allocations: 4 kB / 308 MB, free: 104 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.3648, allocations: 54.86 MB / 362.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.04317/0.408, allocations: 26.75 MB / 389.6 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01929/0.4274, allocations: 6.73 MB / 396.4 MB, free: 10.23 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006207/0.4336, allocations: 135.7 kB / 396.5 MB, free: 10.1 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005077/0.4388, allocations: 1.369 MB / 397.9 MB, free: 8.727 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01669/0.4555, allocations: 3.954 MB / 401.8 MB, free: 4.762 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003022/0.4586, allocations: 459.1 kB / 402.3 MB, free: 4.312 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02555/0.4842, allocations: 8.637 MB / 410.9 MB, free: 11.67 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004956/0.4892, allocations: 2.328 MB / 413.2 MB, free: 9.309 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001621/0.4908, allocations: 0.6545 MB / 413.9 MB, free: 8.652 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002173/0.493, allocations: 1.068 MB / 414.9 MB, free: 7.582 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002532/0.4956, allocations: 0.909 MB / 415.9 MB, free: 6.672 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009466/0.4966, allocations: 124 kB / 416 MB, free: 6.551 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001943/0.4986, allocations: 1.219 MB / 417.2 MB, free: 5.328 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000901/0.4995, allocations: 204 kB / 417.4 MB, free: 5.129 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007573/0.5071, allocations: 4.559 MB / 422 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.5071, allocations: 0 / 422 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.5071, allocations: 4 kB / 422 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001684/0.5073, allocations: 0 / 422 MB, free: 0.5547 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.01098/0.5183, allocations: 3.204 MB / 425.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.5184, allocations: 8.031 kB / 425.2 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1824/0.7007, allocations: 10.38 MB / 435.6 MB, free: 2.875 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008425/0.7093, allocations: 2.447 MB / 438 MB, free: 388 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002248/0.7095, allocations: 172.3 kB / 438.2 MB, free: 212 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001022/0.7106, allocations: 223.9 kB / 438.4 MB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02018/0.7308, allocations: 7.858 MB / 446.2 MB, free: 7.504 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001567/0.731, allocations: 43.67 kB / 446.3 MB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007042/0.7317, allocations: 107.9 kB / 446.4 MB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004664/0.7364, allocations: 1.613 MB / 448 MB, free: 5.734 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02064/0.7571, allocations: 6.649 MB / 454.7 MB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3733/1.13, allocations: 31.18 MB / 485.8 MB, free: 101 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008135/1.139, allocations: 2.282 MB / 488.1 MB, free: 100.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005424/1.139, allocations: 325.6 kB / 488.4 MB, free: 100.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/1.139, allocations: 47.92 kB / 488.5 MB, free: 100 MB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 5.5e-06/1.139, allocations: 0 / 488.5 MB, free: 100 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.05841/1.198, allocations: 11.69 MB / 0.4884 GB, free: 96.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.392e-05/1.198, allocations: 191.3 kB / 0.4886 GB, free: 96.34 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006896/1.205, allocations: 3.438 MB / 0.492 GB, free: 95.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003183/1.205, allocations: 41.64 kB / 0.492 GB, free: 95.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002122/1.207, allocations: 2.674 MB / 0.4946 GB, free: 92.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007783/1.208, allocations: 0.5612 MB / 0.4952 GB, free: 92.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004367/1.208, allocations: 105.6 kB / 0.4953 GB, free: 92.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003321/1.209, allocations: 0.5321 MB / 0.4958 GB, free: 92.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004272/1.213, allocations: 1.675 MB / 0.4974 GB, free: 91.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006179/1.219, allocations: 5.071 MB / 0.5024 GB, free: 85.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006362/1.226, allocations: 2.87 MB / 0.5052 GB, free: 82.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001129/1.226, allocations: 40 kB / 0.5052 GB, free: 82.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01739/1.243, allocations: 6.72 MB / 0.5118 GB, free: 75.65 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.714e-05/1.243, allocations: 63.89 kB / 0.5119 GB, free: 75.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001471/1.244, allocations: 120 kB / 0.512 GB, free: 75.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/1.245, allocations: 424.7 kB / 0.5124 GB, free: 75.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00724/1.252, allocations: 1.232 MB / 0.5136 GB, free: 73.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005105/1.258, allocations: 3.129 MB / 0.5166 GB, free: 70.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005575/1.263, allocations: 299 kB / 0.5169 GB, free: 70.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008417/1.264, allocations: 336.6 kB / 0.5172 GB, free: 69.94 MB / 410.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.003633/1.268, allocations: 1.743 MB / 0.5189 GB, free: 68.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007317/1.268, allocations: 308 kB / 0.5192 GB, free: 67.88 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004879/1.273, allocations: 1.845 MB / 0.521 GB, free: 66.02 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.622e-05/1.273, allocations: 18.69 kB / 0.5211 GB, free: 66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/1.273, allocations: 0 / 0.5211 GB, free: 66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.476e-05/1.273, allocations: 7.984 kB / 0.5211 GB, free: 66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0146/1.288, allocations: 5.62 MB / 0.5266 GB, free: 60.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.715e-05/1.288, allocations: 0 / 0.5266 GB, free: 60.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002025/1.29, allocations: 215.7 kB / 0.5268 GB, free: 60.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001094/1.291, allocations: 232.6 kB / 0.527 GB, free: 59.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002089/1.292, allocations: 27.98 kB / 0.527 GB, free: 59.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003994/1.296, allocations: 2.57 MB / 0.5295 GB, free: 57.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.296, allocations: 8 kB / 0.5295 GB, free: 57.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008204/1.304, allocations: 3.999 MB / 0.5334 GB, free: 53.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/1.306, allocations: 0.5476 MB / 0.534 GB, free: 52.53 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008788/1.307, allocations: 17.33 kB / 0.534 GB, free: 52.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002259/1.309, allocations: 71.91 kB / 0.5341 GB, free: 52.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003181/1.309, allocations: 76.5 kB / 0.5341 GB, free: 52.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001462/1.309, allocations: 40.7 kB / 0.5342 GB, free: 52.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004897/1.314, allocations: 2.412 MB / 0.5365 GB, free: 49.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.71e-07/1.314, allocations: 4.062 kB / 0.5365 GB, free: 49.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005318/1.32, allocations: 0.8199 MB / 0.5373 GB, free: 49.11 MB / 410.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.0005737/1.32, allocations: 171.7 kB / 0.5375 GB, free: 48.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009944/1.33, allocations: 4.059 MB / 0.5415 GB, free: 44.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/1.33, allocations: 4 kB / 0.5415 GB, free: 44.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00288/1.333, allocations: 1.135 MB / 0.5426 GB, free: 43.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002735/1.336, allocations: 344.1 kB / 0.5429 GB, free: 43.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01717/1.353, allocations: 8.574 MB / 0.5513 GB, free: 34.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004514/1.358, allocations: 2.815 MB / 0.554 GB, free: 31.96 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.009241/1.367, allocations: 1.749 MB / 0.5557 GB, free: 30.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001753/1.369, allocations: 219.4 kB / 0.5559 GB, free: 29.99 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/1.369, allocations: 0 / 0.5559 GB, free: 29.99 MB / 410.7 MB Notification: Performance of Templates: time 0.1083/1.477, allocations: 28.01 MB / 0.5833 GB, free: 2.074 MB / 410.7 MB