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.264/2.264, allocations: 235 MB / 247.2 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.919e-05/2.933e-05, allocations: 4.938 kB / 304.9 MB, free: 5.168 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3267, allocations: 54.85 MB / 359.8 MB, free: 3.137 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1525/0.4792, allocations: 98.93 MB / 458.7 MB, free: 13.97 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.4795, allocations: 72.56 kB / 458.8 MB, free: 13.9 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2913/0.7708, allocations: 72.93 MB / 0.5192 GB, free: 4.488 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.466e-06/0.7709, allocations: 0 / 0.5192 GB, free: 4.488 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001898/0.7711, allocations: 64 kB / 0.5193 GB, free: 4.426 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.01042/0.7815, allocations: 3.255 MB / 0.5225 GB, free: 1.109 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.7816, allocations: 12.03 kB / 0.5225 GB, free: 1.098 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.279/1.061, allocations: 4.238 MB / 0.5266 GB, free: 107.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01312/1.074, allocations: 4.208 MB / 0.5307 GB, free: 107.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000267/1.074, allocations: 248.7 kB / 0.531 GB, free: 107.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001124/1.075, allocations: 332 kB / 0.5313 GB, free: 107.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01617/1.091, allocations: 8.175 MB / 0.5393 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001718/1.092, allocations: 58.75 kB / 0.5393 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006265/1.092, allocations: 166 kB / 0.5395 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001295/1.094, allocations: 0.8146 MB / 0.5403 GB, free: 104.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01468/1.108, allocations: 6.424 MB / 0.5466 GB, free: 104.5 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04089/1.149, allocations: 39.75 MB / 0.5854 GB, free: 74.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005808/1.155, allocations: 2.24 MB / 0.5876 GB, free: 73.02 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001736/1.157, allocations: 1.057 MB / 0.5886 GB, free: 72.57 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003927/1.157, allocations: 330.5 kB / 0.5889 GB, free: 72.27 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/1.157, allocations: 45.34 kB / 0.589 GB, free: 72.23 MB / 458.7 MB Notification: Performance of pre-optimization done (n=117): time 5.201e-06/1.157, allocations: 0 / 0.589 GB, free: 72.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=141): time 0.03234/1.19, allocations: 9.408 MB / 0.5982 GB, free: 68.46 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/1.19, allocations: 195.7 kB / 0.5983 GB, free: 68.24 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005757/1.195, allocations: 3.253 MB / 0.6015 GB, free: 67.03 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002328/1.196, allocations: 42.27 kB / 0.6016 GB, free: 66.99 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001747/1.198, allocations: 2.698 MB / 0.6042 GB, free: 64.89 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005386/1.198, allocations: 0.5547 MB / 0.6047 GB, free: 64.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003039/1.198, allocations: 107.1 kB / 0.6048 GB, free: 64.41 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003118/1.199, allocations: 0.5285 MB / 0.6054 GB, free: 64.02 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002917/1.202, allocations: 1.593 MB / 0.6069 GB, free: 63.49 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004748/1.206, allocations: 4.969 MB / 0.6118 GB, free: 58.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005183/1.212, allocations: 2.836 MB / 0.6145 GB, free: 57.17 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.199e-05/1.212, allocations: 35.91 kB / 0.6146 GB, free: 57.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01387/1.226, allocations: 6.187 MB / 0.6206 GB, free: 53.95 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.996e-05/1.226, allocations: 58.5 kB / 0.6207 GB, free: 53.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001216/1.226, allocations: 128.8 kB / 0.6208 GB, free: 53.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008931/1.227, allocations: 352.8 kB / 0.6211 GB, free: 53.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004948/1.232, allocations: 1.237 MB / 0.6223 GB, free: 52.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003355/1.235, allocations: 2.708 MB / 0.625 GB, free: 49.78 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00512/1.24, allocations: 288.3 kB / 0.6252 GB, free: 49.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008791/1.241, allocations: 333.2 kB / 0.6256 GB, free: 49.2 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.0008057/1.242, allocations: 0.5247 MB / 0.6261 GB, free: 48.67 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006299/1.243, allocations: 311.8 kB / 0.6264 GB, free: 48.37 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003455/1.246, allocations: 1.687 MB / 0.628 GB, free: 46.94 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.884e-05/1.246, allocations: 16 kB / 0.628 GB, free: 46.93 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/1.246, allocations: 0 / 0.628 GB, free: 46.93 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.896e-05/1.246, allocations: 10.61 kB / 0.628 GB, free: 46.92 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01122/1.258, allocations: 5.371 MB / 0.6333 GB, free: 42.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/1.258, allocations: 4.844 kB / 0.6333 GB, free: 42.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001421/1.259, allocations: 216.2 kB / 0.6335 GB, free: 42.31 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006073/1.26, allocations: 158.1 kB / 0.6337 GB, free: 42.19 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001419/1.26, allocations: 27.89 kB / 0.6337 GB, free: 42.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002533/1.262, allocations: 2.146 MB / 0.6358 GB, free: 40.06 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.31e-06/1.262, allocations: 4.062 kB / 0.6358 GB, free: 40.05 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00589/1.268, allocations: 3.763 MB / 0.6395 GB, free: 36.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001438/1.27, allocations: 0.5326 MB / 0.64 GB, free: 36.09 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004827/1.27, allocations: 24.75 kB / 0.64 GB, free: 36.06 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001594/1.272, allocations: 66.8 kB / 0.6401 GB, free: 36.02 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/1.272, allocations: 79.73 kB / 0.6401 GB, free: 35.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/1.272, allocations: 36 kB / 0.6402 GB, free: 35.93 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004189/1.277, allocations: 2.271 MB / 0.6424 GB, free: 33.94 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.277, allocations: 3.562 kB / 0.6424 GB, free: 33.94 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005428/1.282, allocations: 0.8089 MB / 0.6432 GB, free: 33.14 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.0004232/1.282, allocations: 151 kB / 0.6433 GB, free: 32.99 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006972/1.289, allocations: 3.748 MB / 0.647 GB, free: 29.57 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.736e-06/1.289, allocations: 0 / 0.647 GB, free: 29.57 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001724/1.291, allocations: 1.046 MB / 0.648 GB, free: 28.61 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002043/1.293, allocations: 342.6 kB / 0.6483 GB, free: 28.32 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/1.307, allocations: 5.885 MB / 0.6541 GB, free: 23.05 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004878/1.311, allocations: 2.826 MB / 0.6568 GB, free: 20.88 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005771/1.317, allocations: 1.742 MB / 0.6585 GB, free: 19.79 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009616/1.318, allocations: 218.6 kB / 0.6588 GB, free: 19.58 MB / 458.7 MB Notification: Performance of SimCode: time 2.535e-06/1.318, allocations: 4 kB / 0.6588 GB, free: 19.57 MB / 458.7 MB Notification: Performance of Templates: time 0.07525/1.394, allocations: 26.35 MB / 0.6845 GB, free: 10.07 MB / 474.7 MB