Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 2.413/2.413, allocations: 269 MB / 284.1 MB, free: 3.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.007e-05/2.994e-05, allocations: 4 kB / 349 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1286, allocations: 61.9 MB / 410.9 MB, free: 12.9 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.3712/0.4999, allocations: 33.63 MB / 444.6 MB, free: 11.11 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02475/0.5247, allocations: 7.958 MB / 452.5 MB, free: 5.898 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009547/0.5343, allocations: 170.2 kB / 452.7 MB, free: 5.875 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007135/0.5415, allocations: 1.72 MB / 454.4 MB, free: 5.316 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02088/0.5624, allocations: 4.917 MB / 459.3 MB, free: 2.484 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003238/0.5657, allocations: 472.1 kB / 459.8 MB, free: 2.184 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.06125/0.627, allocations: 23.87 MB / 483.6 MB, free: 14.88 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005676/0.6327, allocations: 2.601 MB / 486.2 MB, free: 12.25 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001736/0.6345, allocations: 0.6545 MB / 486.9 MB, free: 11.59 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002519/0.637, allocations: 1.056 MB / 488 MB, free: 10.54 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002982/0.6401, allocations: 0.8739 MB / 488.8 MB, free: 9.66 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009754/0.6411, allocations: 120 kB / 488.9 MB, free: 9.543 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002159/0.6433, allocations: 1.262 MB / 490.2 MB, free: 8.277 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001079/0.6444, allocations: 212 kB / 490.4 MB, free: 8.07 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007669/0.6521, allocations: 4.68 MB / 495.1 MB, free: 3.379 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.6522, allocations: 0 / 495.1 MB, free: 3.379 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.826e-06/0.6522, allocations: 0 / 495.1 MB, free: 3.379 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001821/0.6524, allocations: 4 kB / 495.1 MB, free: 3.375 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.01022/0.6626, allocations: 3.267 MB / 498.4 MB, free: 44 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.6627, allocations: 8.031 kB / 498.4 MB, free: 36 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1803/0.8429, allocations: 10.41 MB / 0.4969 GB, free: 5.598 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008322/0.8513, allocations: 2.338 MB / 0.4991 GB, free: 3.199 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002896/0.8516, allocations: 184.6 kB / 0.4993 GB, free: 3.016 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001307/0.8529, allocations: 239.8 kB / 0.4996 GB, free: 2.781 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02273/0.8757, allocations: 8.111 MB / 0.5075 GB, free: 10.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001974/0.876, allocations: 43.59 kB / 0.5075 GB, free: 9.984 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001211/0.8772, allocations: 119.9 kB / 0.5076 GB, free: 9.867 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005959/0.8832, allocations: 1.703 MB / 0.5093 GB, free: 8.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02191/0.9052, allocations: 6.813 MB / 0.5159 GB, free: 1.348 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05864/0.9638, allocations: 32.25 MB / 0.5474 GB, free: 92 kB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008616/0.9725, allocations: 2.418 MB / 0.5498 GB, free: 13.52 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005425/0.9731, allocations: 335.2 kB / 0.5501 GB, free: 13.14 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/0.9732, allocations: 38.56 kB / 0.5502 GB, free: 13.1 MB / 474.7 MB Notification: Performance of pre-optimization done (n=104): time 4.879e-06/0.9732, allocations: 0 / 0.5502 GB, free: 13.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=118): time 0.04037/1.014, allocations: 8.724 MB / 0.5587 GB, free: 4.207 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/1.014, allocations: 192.4 kB / 0.5589 GB, free: 3.977 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008257/1.022, allocations: 3.519 MB / 0.5623 GB, free: 480 kB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002538/1.022, allocations: 41.7 kB / 0.5623 GB, free: 432 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002983/1.025, allocations: 2.751 MB / 0.565 GB, free: 13.63 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008291/1.026, allocations: 498 kB / 0.5655 GB, free: 13.14 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005167/1.027, allocations: 104 kB / 0.5656 GB, free: 13.04 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004534/1.027, allocations: 0.5381 MB / 0.5661 GB, free: 12.49 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004368/1.032, allocations: 1.58 MB / 0.5677 GB, free: 10.91 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007869/1.039, allocations: 5.161 MB / 0.5727 GB, free: 3.918 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007057/1.047, allocations: 2.818 MB / 0.5755 GB, free: 1.102 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001109/1.047, allocations: 40 kB / 0.5755 GB, free: 1.062 MB / 490.7 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01917/1.066, allocations: 6.557 MB / 0.5819 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/1.066, allocations: 60 kB / 0.582 GB, free: 10.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001948/1.066, allocations: 128 kB / 0.5821 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001605/1.068, allocations: 429.3 kB / 0.5825 GB, free: 9.895 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007544/1.076, allocations: 1.236 MB / 0.5837 GB, free: 8.656 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006596/1.082, allocations: 3.153 MB / 0.5868 GB, free: 5.371 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00545/1.088, allocations: 291.5 kB / 0.587 GB, free: 5.086 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009561/1.089, allocations: 356 kB / 0.5874 GB, free: 4.738 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (672): * Single equations (assignments): 668 * 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.004334/1.093, allocations: 1.799 MB / 0.5891 GB, free: 2.926 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007957/1.094, allocations: 315.9 kB / 0.5894 GB, free: 2.613 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004403/1.098, allocations: 1.467 MB / 0.5909 GB, free: 1.133 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.131e-05/1.098, allocations: 16 kB / 0.5909 GB, free: 1.117 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/1.098, allocations: 4 kB / 0.5909 GB, free: 1.113 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.362e-05/1.098, allocations: 7.984 kB / 0.5909 GB, free: 1.105 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01497/1.113, allocations: 4.992 MB / 0.5958 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.288e-05/1.113, allocations: 0 / 0.5958 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001571/1.115, allocations: 163.8 kB / 0.5959 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001176/1.116, allocations: 224.6 kB / 0.5961 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/1.116, allocations: 23.94 kB / 0.5962 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005185/1.122, allocations: 2.578 MB / 0.5987 GB, free: 8.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/1.122, allocations: 4.031 kB / 0.5987 GB, free: 8.926 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008405/1.13, allocations: 3.374 MB / 0.602 GB, free: 5.504 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/1.131, allocations: 380.9 kB / 0.6024 GB, free: 5.109 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006811/1.132, allocations: 16 kB / 0.6024 GB, free: 5.094 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001754/1.134, allocations: 51.94 kB / 0.6024 GB, free: 5.043 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002316/1.134, allocations: 56.47 kB / 0.6025 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/1.134, allocations: 36 kB / 0.6025 GB, free: 4.953 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005984/1.14, allocations: 2.457 MB / 0.6049 GB, free: 2.512 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.412e-06/1.14, allocations: 64 / 0.6049 GB, free: 2.512 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005646/1.146, allocations: 0.8203 MB / 0.6057 GB, free: 1.691 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.0006849/1.147, allocations: 167 kB / 0.6059 GB, free: 1.516 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3859/1.532, allocations: 3.824 MB / 0.6096 GB, free: 168.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/1.532, allocations: 0 / 0.6096 GB, free: 168.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00259/1.535, allocations: 0.9447 MB / 0.6105 GB, free: 168.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002818/1.538, allocations: 356.3 kB / 0.6109 GB, free: 168.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02147/1.559, allocations: 8.938 MB / 0.6196 GB, free: 164.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006299/1.566, allocations: 2.88 MB / 0.6224 GB, free: 163.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001285/1.567, allocations: 257.4 kB / 0.6226 GB, free: 163.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.363e-06/1.567, allocations: 0 / 0.6226 GB, free: 163.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.1169/1.684, allocations: 61.35 MB / 0.6826 GB, free: 115.6 MB / 0.5105 GB