Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadModel(ModelicaTest): time 1.909/1.909, allocations: 209.3 MB / 224.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.319e-05/3.333e-05, allocations: 4 kB / 276.1 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3563, allocations: 48.7 MB / 324.8 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.04257/0.3989, allocations: 26.73 MB / 351.6 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02083/0.4198, allocations: 6.694 MB / 358.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0074/0.4273, allocations: 135.9 kB / 358.4 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00548/0.4328, allocations: 1.372 MB / 359.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01643/0.4493, allocations: 3.965 MB / 363.7 MB, free: 8.297 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002897/0.4522, allocations: 467 kB / 364.2 MB, free: 8.004 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02578/0.4781, allocations: 8.65 MB / 372.8 MB, free: 15.5 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005167/0.4833, allocations: 2.331 MB / 375.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001716/0.4851, allocations: 0.6546 MB / 375.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002702/0.4878, allocations: 1.064 MB / 376.9 MB, free: 11.41 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003051/0.4909, allocations: 0.9129 MB / 377.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009767/0.492, allocations: 124 kB / 377.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002016/0.494, allocations: 1.219 MB / 379.1 MB, free: 9.156 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001049/0.4951, allocations: 204 kB / 379.3 MB, free: 8.957 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007418/0.5025, allocations: 4.556 MB / 383.9 MB, free: 4.387 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.5026, allocations: 0 / 383.9 MB, free: 4.387 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.5026, allocations: 0 / 383.9 MB, free: 4.387 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001807/0.5028, allocations: 0 / 383.9 MB, free: 4.387 MB / 314.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.0105/0.5133, allocations: 3.208 MB / 387.1 MB, free: 1.113 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.073e-05/0.5134, allocations: 8.031 kB / 387.1 MB, free: 1.105 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1831/0.6965, allocations: 10.37 MB / 397.5 MB, free: 6.711 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008133/0.7047, allocations: 2.455 MB / 399.9 MB, free: 4.207 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002316/0.705, allocations: 168.3 kB / 400.1 MB, free: 4.039 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001192/0.7062, allocations: 227.8 kB / 400.3 MB, free: 3.816 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01934/0.7255, allocations: 7.862 MB / 408.2 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001489/0.7257, allocations: 43.59 kB / 408.2 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005723/0.7263, allocations: 115.9 kB / 408.3 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004561/0.7309, allocations: 1.605 MB / 409.9 MB, free: 9.566 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02051/0.7514, allocations: 6.648 MB / 416.6 MB, free: 2.914 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05631/0.8078, allocations: 31.21 MB / 447.8 MB, free: 2.754 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008165/0.816, allocations: 2.284 MB / 450.1 MB, free: 328 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000608/0.8167, allocations: 319.8 kB / 450.4 MB, free: 15.95 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.102e-05/0.8168, allocations: 47.12 kB / 450.4 MB, free: 15.9 MB / 394.7 MB Notification: Performance of pre-optimization done (n=117): time 4.909e-06/0.8168, allocations: 4 kB / 450.4 MB, free: 15.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.06296/0.8798, allocations: 11.68 MB / 462.1 MB, free: 4.031 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.8799, allocations: 192.6 kB / 462.3 MB, free: 3.801 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008438/0.8884, allocations: 3.433 MB / 465.8 MB, free: 384 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003186/0.8887, allocations: 41.7 kB / 465.8 MB, free: 336 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002917/0.8917, allocations: 2.616 MB / 468.4 MB, free: 13.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009911/0.8927, allocations: 0.5556 MB / 469 MB, free: 13.11 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005394/0.8933, allocations: 108 kB / 469.1 MB, free: 13.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004583/0.8937, allocations: 0.534 MB / 469.6 MB, free: 12.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004859/0.8986, allocations: 1.677 MB / 471.3 MB, free: 10.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008079/0.9067, allocations: 5.068 MB / 476.4 MB, free: 3.988 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007457/0.9143, allocations: 2.871 MB / 479.2 MB, free: 1.117 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001048/0.9144, allocations: 36 kB / 479.3 MB, free: 1.082 MB / 410.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.2934/1.208, allocations: 6.627 MB / 485.9 MB, free: 122.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001196/1.208, allocations: 57.09 kB / 485.9 MB, free: 122.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002668/1.208, allocations: 120.4 kB / 486.1 MB, free: 122.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001674/1.21, allocations: 418.4 kB / 486.5 MB, free: 122.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007791/1.218, allocations: 1.233 MB / 487.7 MB, free: 122.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005922/1.224, allocations: 3.131 MB / 490.8 MB, free: 120.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005628/1.229, allocations: 295.3 kB / 491.1 MB, free: 120.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001144/1.231, allocations: 334.2 kB / 491.4 MB, free: 120.4 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.004665/1.235, allocations: 1.738 MB / 493.2 MB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008396/1.236, allocations: 308.2 kB / 493.5 MB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005754/1.242, allocations: 1.854 MB / 495.3 MB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-05/1.242, allocations: 16.83 kB / 495.4 MB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/1.242, allocations: 3.719 kB / 495.4 MB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-05/1.242, allocations: 5.719 kB / 495.4 MB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01672/1.259, allocations: 5.618 MB / 0.4892 GB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.802e-05/1.259, allocations: 1.281 kB / 0.4892 GB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002128/1.261, allocations: 208.6 kB / 0.4894 GB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001144/1.262, allocations: 239.2 kB / 0.4897 GB, free: 116.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002287/1.262, allocations: 27.25 kB / 0.4897 GB, free: 116.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004127/1.267, allocations: 2.571 MB / 0.4922 GB, free: 114.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/1.267, allocations: 3.938 kB / 0.4922 GB, free: 114.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009185/1.276, allocations: 3.992 MB / 0.4961 GB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002152/1.278, allocations: 0.5485 MB / 0.4966 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001113/1.279, allocations: 20.98 kB / 0.4967 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002626/1.282, allocations: 76.45 kB / 0.4967 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003717/1.282, allocations: 71.95 kB / 0.4968 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001499/1.282, allocations: 40.09 kB / 0.4968 GB, free: 112.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00541/1.288, allocations: 2.414 MB / 0.4992 GB, free: 111.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.62e-07/1.288, allocations: 0 / 0.4992 GB, free: 111.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00574/1.294, allocations: 0.8311 MB / 0.5 GB, free: 111.8 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.0006617/1.294, allocations: 158 kB / 0.5002 GB, free: 111.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009412/1.304, allocations: 4.064 MB / 0.5041 GB, free: 108.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/1.304, allocations: 0 / 0.5041 GB, free: 108.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002617/1.307, allocations: 1.137 MB / 0.5052 GB, free: 107.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002491/1.309, allocations: 345.3 kB / 0.5056 GB, free: 107.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01829/1.327, allocations: 8.958 MB / 0.5143 GB, free: 98.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004573/1.332, allocations: 2.824 MB / 0.5171 GB, free: 95.63 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001407/1.333, allocations: 263.4 kB / 0.5173 GB, free: 95.37 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/1.334, allocations: 0 / 0.5173 GB, free: 95.37 MB / 410.7 MB Notification: Performance of Templates: time 0.1095/1.443, allocations: 61.38 MB / 0.5773 GB, free: 33.95 MB / 410.7 MB