Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadModel(ModelicaTest): time 2.386/2.386, allocations: 270.1 MB / 283.6 MB, free: 3.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.772e-05/3.787e-05, allocations: 8 kB / 348.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1097, allocations: 61.89 MB / 410.3 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.455/0.5647, allocations: 106.2 MB / 0.5044 GB, free: 13.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/0.565, allocations: 80.58 kB / 0.5045 GB, free: 13.82 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3235/0.8885, allocations: 72.03 MB / 0.5748 GB, free: 5.312 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.317e-06/0.8886, allocations: 0 / 0.5748 GB, free: 5.312 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001768/0.8888, allocations: 56 kB / 0.5749 GB, free: 5.258 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.009808/0.8986, allocations: 3.179 MB / 0.578 GB, free: 2.02 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.8986, allocations: 12.02 kB / 0.578 GB, free: 2.008 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0228/0.9215, allocations: 4.219 MB / 0.5821 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01331/0.9348, allocations: 4.009 MB / 0.586 GB, free: 9.703 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002937/0.9351, allocations: 238.2 kB / 0.5862 GB, free: 9.469 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/0.9363, allocations: 323.8 kB / 0.5866 GB, free: 9.152 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01761/0.9539, allocations: 7.911 MB / 0.5943 GB, free: 296 kB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001723/0.9541, allocations: 59.41 kB / 0.5943 GB, free: 236 kB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006711/0.9548, allocations: 163.9 kB / 0.5945 GB, free: 72 kB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001419/0.9562, allocations: 0.7858 MB / 0.5953 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01545/0.9717, allocations: 6.166 MB / 0.6013 GB, free: 9.105 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4309/1.403, allocations: 38.98 MB / 0.6394 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005777/1.408, allocations: 2.139 MB / 0.6414 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001781/1.41, allocations: 1.019 MB / 0.6424 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004174/1.411, allocations: 325.2 kB / 0.6427 GB, free: 99.91 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/1.411, allocations: 42.47 kB / 0.6428 GB, free: 99.87 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=108): time 5.913e-06/1.411, allocations: 1.25 kB / 0.6428 GB, free: 99.87 MB / 0.5105 GB Notification: Performance of matching and sorting (n=132): time 0.03317/1.444, allocations: 9.006 MB / 0.6516 GB, free: 97.54 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.086e-05/1.444, allocations: 192.6 kB / 0.6518 GB, free: 97.32 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005933/1.45, allocations: 3.212 MB / 0.6549 GB, free: 97 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002207/1.45, allocations: 43.92 kB / 0.6549 GB, free: 96.96 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001748/1.452, allocations: 2.623 MB / 0.6575 GB, free: 95.74 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005288/1.453, allocations: 0.5206 MB / 0.658 GB, free: 95.46 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002789/1.453, allocations: 104.1 kB / 0.6581 GB, free: 95.46 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003112/1.453, allocations: 0.5275 MB / 0.6586 GB, free: 95.14 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003028/1.456, allocations: 1.545 MB / 0.6601 GB, free: 95.13 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004669/1.461, allocations: 4.855 MB / 0.6649 GB, free: 90.77 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004868/1.466, allocations: 2.757 MB / 0.6676 GB, free: 90.55 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-05/1.466, allocations: 36.28 kB / 0.6676 GB, free: 90.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=680) (initialization): time 0.01404/1.48, allocations: 6.036 MB / 0.6735 GB, free: 88.75 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.674e-05/1.48, allocations: 53.22 kB / 0.6736 GB, free: 88.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/1.48, allocations: 121.7 kB / 0.6737 GB, free: 88.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008945/1.481, allocations: 349.3 kB / 0.674 GB, free: 88.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005103/1.486, allocations: 1.197 MB / 0.6752 GB, free: 88.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00355/1.49, allocations: 2.695 MB / 0.6778 GB, free: 86.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005523/1.495, allocations: 285.5 kB / 0.6781 GB, free: 86.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001023/1.497, allocations: 323.4 kB / 0.6784 GB, free: 86.53 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 29 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (645): * Single equations (assignments): 641 * 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.0009417/1.497, allocations: 0.5066 MB / 0.6789 GB, free: 86.11 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007223/1.498, allocations: 306.4 kB / 0.6792 GB, free: 85.94 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003474/1.502, allocations: 1.579 MB / 0.6807 GB, free: 85.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.757e-05/1.502, allocations: 15.62 kB / 0.6807 GB, free: 85.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/1.502, allocations: 3.469 kB / 0.6807 GB, free: 85.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.27e-05/1.502, allocations: 12.05 kB / 0.6807 GB, free: 85.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01201/1.514, allocations: 5.129 MB / 0.6857 GB, free: 83.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/1.514, allocations: 0 / 0.6857 GB, free: 83.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/1.515, allocations: 196.7 kB / 0.6859 GB, free: 83.23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006357/1.516, allocations: 161.9 kB / 0.6861 GB, free: 83.19 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001478/1.516, allocations: 21.67 kB / 0.6861 GB, free: 83.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002696/1.519, allocations: 2.146 MB / 0.6882 GB, free: 81.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.722e-06/1.519, allocations: 7.578 kB / 0.6882 GB, free: 81.54 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005711/1.525, allocations: 3.601 MB / 0.6917 GB, free: 79.82 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/1.526, allocations: 362.6 kB / 0.6921 GB, free: 79.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005115/1.526, allocations: 23.38 kB / 0.6921 GB, free: 79.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/1.528, allocations: 57.3 kB / 0.6922 GB, free: 79.51 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001935/1.528, allocations: 77.5 kB / 0.6922 GB, free: 79.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/1.528, allocations: 41.06 kB / 0.6923 GB, free: 79.48 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004189/1.533, allocations: 2.229 MB / 0.6944 GB, free: 78.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.083e-06/1.533, allocations: 0 / 0.6944 GB, free: 78.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005613/1.538, allocations: 0.7832 MB / 0.6952 GB, free: 78.6 MB / 0.5105 GB 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 (102): * Single equations (assignments): 98 * 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.0004328/1.539, allocations: 152.8 kB / 0.6954 GB, free: 78.48 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006811/1.546, allocations: 3.616 MB / 0.6989 GB, free: 77.22 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.705e-06/1.546, allocations: 0 / 0.6989 GB, free: 77.22 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001676/1.547, allocations: 1.009 MB / 0.6999 GB, free: 76.79 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002245/1.55, allocations: 340.1 kB / 0.7002 GB, free: 76.63 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0117/1.561, allocations: 5.711 MB / 0.7058 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003468/1.565, allocations: 2.743 MB / 0.7085 GB, free: 73.37 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005436/1.57, allocations: 1.685 MB / 0.7101 GB, free: 73.23 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000875/1.571, allocations: 216.4 kB / 0.7103 GB, free: 73.21 MB / 0.5105 GB Notification: Performance of SimCode: time 1.936e-06/1.571, allocations: 0 / 0.7103 GB, free: 73.21 MB / 0.5105 GB Notification: Performance of Templates: time 0.0881/1.659, allocations: 25.74 MB / 0.7354 GB, free: 56.82 MB / 0.5105 GB