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.159/2.159, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.456e-05, allocations: 4 kB / 304.9 MB, free: 5.676 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3282, allocations: 54.86 MB / 359.8 MB, free: 2.664 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.4827, allocations: 98.92 MB / 458.7 MB, free: 14.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.483, allocations: 73.19 kB / 458.8 MB, free: 14 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2913/0.7744, allocations: 72.92 MB / 0.5192 GB, free: 4.586 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.877e-06/0.7744, allocations: 0 / 0.5192 GB, free: 4.586 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001863/0.7746, allocations: 64 kB / 0.5193 GB, free: 4.523 MB / 458.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.01025/0.7849, allocations: 3.263 MB / 0.5225 GB, free: 1.199 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.7849, allocations: 12.03 kB / 0.5225 GB, free: 1.188 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2806/1.066, allocations: 4.238 MB / 0.5266 GB, free: 106.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01322/1.079, allocations: 4.204 MB / 0.5307 GB, free: 106.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003199/1.079, allocations: 249.8 kB / 0.531 GB, free: 106.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001349/1.081, allocations: 327.8 kB / 0.5313 GB, free: 106.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.018/1.099, allocations: 8.177 MB / 0.5393 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002014/1.099, allocations: 59.27 kB / 0.5393 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009046/1.1, allocations: 168.8 kB / 0.5395 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001369/1.101, allocations: 0.8103 MB / 0.5403 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01547/1.117, allocations: 6.423 MB / 0.5465 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04165/1.158, allocations: 39.76 MB / 0.5854 GB, free: 73.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005979/1.164, allocations: 2.234 MB / 0.5875 GB, free: 72.66 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001733/1.166, allocations: 1.058 MB / 0.5886 GB, free: 72.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003883/1.167, allocations: 335 kB / 0.5889 GB, free: 71.91 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/1.167, allocations: 45.78 kB / 0.5889 GB, free: 71.87 MB / 458.7 MB Notification: Performance of pre-optimization done (n=117): time 5.296e-06/1.167, allocations: 2.031 kB / 0.5889 GB, free: 71.87 MB / 458.7 MB Notification: Performance of matching and sorting (n=141): time 0.03265/1.199, allocations: 9.399 MB / 0.5981 GB, free: 68.11 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/1.199, allocations: 206.3 kB / 0.5983 GB, free: 67.88 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006248/1.206, allocations: 3.254 MB / 0.6015 GB, free: 66.67 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002324/1.206, allocations: 42.14 kB / 0.6015 GB, free: 66.63 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001816/1.208, allocations: 2.634 MB / 0.6041 GB, free: 64.52 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006296/1.208, allocations: 0.5579 MB / 0.6047 GB, free: 64.12 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003693/1.209, allocations: 106.8 kB / 0.6048 GB, free: 64.04 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003218/1.209, allocations: 0.5335 MB / 0.6053 GB, free: 63.64 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00311/1.212, allocations: 1.596 MB / 0.6068 GB, free: 63.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005194/1.217, allocations: 4.973 MB / 0.6117 GB, free: 57.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005108/1.223, allocations: 2.829 MB / 0.6145 GB, free: 56.79 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.285e-05/1.223, allocations: 36.28 kB / 0.6145 GB, free: 56.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01394/1.237, allocations: 6.086 MB / 0.6204 GB, free: 54 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.832e-05/1.237, allocations: 58.34 kB / 0.6205 GB, free: 53.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001324/1.237, allocations: 132 kB / 0.6206 GB, free: 53.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009251/1.238, allocations: 346.2 kB / 0.6209 GB, free: 53.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005035/1.243, allocations: 1.243 MB / 0.6222 GB, free: 52.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003347/1.246, allocations: 2.701 MB / 0.6248 GB, free: 49.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005267/1.252, allocations: 290.6 kB / 0.6251 GB, free: 49.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009309/1.253, allocations: 333.1 kB / 0.6254 GB, free: 49.25 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * 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 (664): * Single equations (assignments): 660 * 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.0008269/1.253, allocations: 0.5157 MB / 0.6259 GB, free: 48.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006464/1.254, allocations: 308 kB / 0.6262 GB, free: 48.42 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/1.258, allocations: 1.693 MB / 0.6278 GB, free: 47 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-05/1.258, allocations: 17.41 kB / 0.6279 GB, free: 46.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/1.258, allocations: 4.625 kB / 0.6279 GB, free: 46.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.011e-05/1.258, allocations: 12.02 kB / 0.6279 GB, free: 46.97 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01183/1.27, allocations: 5.37 MB / 0.6331 GB, free: 42.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.521e-05/1.27, allocations: 4 kB / 0.6331 GB, free: 42.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001414/1.271, allocations: 220.2 kB / 0.6333 GB, free: 42.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006136/1.272, allocations: 153.6 kB / 0.6335 GB, free: 42.24 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/1.272, allocations: 27.95 kB / 0.6335 GB, free: 42.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002528/1.274, allocations: 2.148 MB / 0.6356 GB, free: 40.11 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/1.274, allocations: 6.125 kB / 0.6356 GB, free: 40.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005991/1.28, allocations: 3.762 MB / 0.6393 GB, free: 36.66 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0015/1.282, allocations: 0.5248 MB / 0.6398 GB, free: 36.15 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004992/1.283, allocations: 29.97 kB / 0.6398 GB, free: 36.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/1.284, allocations: 65.28 kB / 0.6399 GB, free: 36.08 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000219/1.284, allocations: 79.86 kB / 0.64 GB, free: 36.03 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/1.285, allocations: 40 kB / 0.64 GB, free: 35.99 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004422/1.289, allocations: 2.268 MB / 0.6422 GB, free: 34 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.267e-06/1.289, allocations: 0 / 0.6422 GB, free: 34 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005501/1.295, allocations: 0.8035 MB / 0.643 GB, free: 33.2 MB / 458.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.0004215/1.295, allocations: 151.6 kB / 0.6431 GB, free: 33.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007004/1.302, allocations: 3.753 MB / 0.6468 GB, free: 29.63 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.302, allocations: 0 / 0.6468 GB, free: 29.63 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001744/1.304, allocations: 1.046 MB / 0.6478 GB, free: 28.67 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002137/1.306, allocations: 343.3 kB / 0.6482 GB, free: 28.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01339/1.319, allocations: 6.272 MB / 0.6543 GB, free: 22.79 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004232/1.324, allocations: 2.83 MB / 0.657 GB, free: 20.61 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00113/1.325, allocations: 261.5 kB / 0.6573 GB, free: 20.37 MB / 458.7 MB Notification: Performance of SimCode: time 1.776e-06/1.325, allocations: 0 / 0.6573 GB, free: 20.37 MB / 458.7 MB Notification: Performance of Templates: time 0.3664/1.691, allocations: 59.79 MB / 0.7157 GB, free: 124.3 MB / 490.7 MB