Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadModel(ModelicaTest): time 2.376/2.376, allocations: 269 MB / 284.1 MB, free: 3.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.991e-05/2.983e-05, allocations: 7.984 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.132, allocations: 61.9 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.362/0.494, allocations: 27.65 MB / 438.6 MB, free: 15.31 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02134/0.5154, allocations: 6.859 MB / 445.4 MB, free: 10.83 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007799/0.5233, allocations: 140 kB / 445.6 MB, free: 10.81 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005983/0.5293, allocations: 1.393 MB / 447 MB, free: 10.35 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01848/0.5479, allocations: 4.071 MB / 451 MB, free: 8.434 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002996/0.5509, allocations: 451.6 kB / 451.5 MB, free: 8.277 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.06078/0.6117, allocations: 23.82 MB / 475.3 MB, free: 7.234 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005271/0.6171, allocations: 2.309 MB / 477.6 MB, free: 4.898 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00165/0.6188, allocations: 0.6234 MB / 478.2 MB, free: 4.273 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002258/0.6211, allocations: 1.017 MB / 479.2 MB, free: 3.254 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002857/0.624, allocations: 0.87 MB / 480.1 MB, free: 2.383 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009395/0.625, allocations: 112 kB / 480.2 MB, free: 2.273 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002048/0.627, allocations: 1.18 MB / 481.4 MB, free: 1.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001005/0.6281, allocations: 200 kB / 481.6 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007771/0.6358, allocations: 4.349 MB / 485.9 MB, free: 12.53 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.6359, allocations: 0 / 485.9 MB, free: 12.53 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.6359, allocations: 4 kB / 485.9 MB, free: 12.53 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001905/0.6361, allocations: 0 / 485.9 MB, free: 12.53 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.009835/0.646, allocations: 3.086 MB / 489 MB, free: 9.379 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.646, allocations: 8.031 kB / 489 MB, free: 9.371 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1799/0.8259, allocations: 10.36 MB / 499.4 MB, free: 14.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007656/0.8336, allocations: 2.248 MB / 0.4899 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/0.8339, allocations: 168.1 kB / 0.4901 GB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00106/0.835, allocations: 215.8 kB / 0.4903 GB, free: 12.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01834/0.8533, allocations: 7.552 MB / 0.4976 GB, free: 4.121 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001444/0.8535, allocations: 39.66 kB / 0.4977 GB, free: 4.082 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000566/0.8541, allocations: 103.9 kB / 0.4978 GB, free: 3.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004896/0.859, allocations: 1.605 MB / 0.4993 GB, free: 2.371 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01883/0.8779, allocations: 6.366 MB / 0.5056 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05172/0.9297, allocations: 30.42 MB / 0.5353 GB, free: 12.63 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007566/0.9373, allocations: 2.178 MB / 0.5374 GB, free: 10.3 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005521/0.9379, allocations: 323.5 kB / 0.5377 GB, free: 9.934 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.487e-05/0.938, allocations: 46.94 kB / 0.5377 GB, free: 9.879 MB / 458.7 MB Notification: Performance of pre-optimization done (n=108): time 5.28e-06/0.938, allocations: 0 / 0.5377 GB, free: 9.879 MB / 458.7 MB Notification: Performance of matching and sorting (n=132): time 0.05901/0.997, allocations: 11.23 MB / 0.5487 GB, free: 14.47 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.9972, allocations: 192.5 kB / 0.5489 GB, free: 14.24 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007658/1.005, allocations: 3.388 MB / 0.5522 GB, free: 10.86 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002743/1.005, allocations: 53.88 kB / 0.5523 GB, free: 10.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002686/1.008, allocations: 2.538 MB / 0.5547 GB, free: 8.227 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008968/1.009, allocations: 0.5363 MB / 0.5553 GB, free: 7.684 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005479/1.009, allocations: 104 kB / 0.5554 GB, free: 7.582 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004631/1.01, allocations: 0.5259 MB / 0.5559 GB, free: 7.047 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004572/1.014, allocations: 1.619 MB / 0.5574 GB, free: 5.422 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007687/1.022, allocations: 4.949 MB / 0.5623 GB, free: 14.77 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007184/1.029, allocations: 2.784 MB / 0.565 GB, free: 11.99 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001024/1.03, allocations: 32 kB / 0.565 GB, free: 11.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01889/1.048, allocations: 6.434 MB / 0.5713 GB, free: 5.516 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000111/1.049, allocations: 60.25 kB / 0.5714 GB, free: 5.457 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001926/1.049, allocations: 120 kB / 0.5715 GB, free: 5.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001588/1.05, allocations: 412.5 kB / 0.5719 GB, free: 4.938 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007428/1.058, allocations: 1.197 MB / 0.573 GB, free: 3.738 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006071/1.064, allocations: 3.122 MB / 0.5761 GB, free: 496 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005303/1.069, allocations: 291.5 kB / 0.5764 GB, free: 204 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001025/1.07, allocations: 324 kB / 0.5767 GB, free: 15.88 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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.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 (643): * Single equations (assignments): 639 * 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.004369/1.075, allocations: 1.693 MB / 0.5783 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008468/1.076, allocations: 304 kB / 0.5786 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005333/1.081, allocations: 1.722 MB / 0.5803 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.526e-05/1.081, allocations: 15.98 kB / 0.5803 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/1.081, allocations: 4 kB / 0.5803 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-05/1.081, allocations: 3.984 kB / 0.5803 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0162/1.097, allocations: 5.379 MB / 0.5856 GB, free: 6.641 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.749e-05/1.097, allocations: 0 / 0.5856 GB, free: 6.641 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001993/1.099, allocations: 195.7 kB / 0.5858 GB, free: 6.449 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/1.101, allocations: 224.7 kB / 0.586 GB, free: 6.227 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002368/1.101, allocations: 27.98 kB / 0.586 GB, free: 6.199 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004699/1.106, allocations: 2.57 MB / 0.5885 GB, free: 3.496 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.106, allocations: 0 / 0.5885 GB, free: 3.496 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009334/1.115, allocations: 3.831 MB / 0.5923 GB, free: 15.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/1.116, allocations: 372.9 kB / 0.5926 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009427/1.117, allocations: 23.98 kB / 0.5926 GB, free: 15.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002471/1.12, allocations: 63.92 kB / 0.5927 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003603/1.12, allocations: 76.45 kB / 0.5928 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/1.12, allocations: 35.98 kB / 0.5928 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006069/1.126, allocations: 2.379 MB / 0.5951 GB, free: 12.65 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.182e-06/1.127, allocations: 4.062 kB / 0.5951 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005526/1.132, allocations: 0.7969 MB / 0.5959 GB, free: 11.84 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.0007201/1.133, allocations: 167.7 kB / 0.5961 GB, free: 11.67 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01015/1.143, allocations: 3.917 MB / 0.5999 GB, free: 7.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/1.143, allocations: 0 / 0.5999 GB, free: 7.77 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002625/1.146, allocations: 1.065 MB / 0.6009 GB, free: 6.691 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002788/1.149, allocations: 344.7 kB / 0.6013 GB, free: 6.352 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3877/1.536, allocations: 8.67 MB / 0.6097 GB, free: 166.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006459/1.543, allocations: 2.756 MB / 0.6124 GB, free: 165.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001468/1.544, allocations: 247.1 kB / 0.6127 GB, free: 165.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.563e-06/1.544, allocations: 0 / 0.6127 GB, free: 165.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.12/1.664, allocations: 59.51 MB / 0.6708 GB, free: 127 MB / 0.5105 GB