Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 2.318/2.318, allocations: 270 MB / 282.7 MB, free: 1.793 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.242e-05/3.247e-05, allocations: 0 / 347 MB, free: 3.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3194, allocations: 61.88 MB / 408.8 MB, free: 10.78 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1606/0.4801, allocations: 105.7 MB / 0.5025 GB, free: 0.9531 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/0.4804, allocations: 79.91 kB / 0.5025 GB, free: 0.875 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5452/1.026, allocations: 75.78 MB / 0.5765 GB, free: 64.35 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.702e-06/1.026, allocations: 0 / 0.5765 GB, free: 64.35 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001463/1.026, allocations: 64 kB / 0.5766 GB, free: 64.29 MB / 442.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.008624/1.034, allocations: 3.361 MB / 0.5799 GB, free: 60.87 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/1.035, allocations: 11.97 kB / 0.5799 GB, free: 60.86 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02265/1.057, allocations: 4.277 MB / 0.5841 GB, free: 56.57 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0116/1.069, allocations: 4.112 MB / 0.5881 GB, free: 52.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002111/1.069, allocations: 270.7 kB / 0.5883 GB, free: 52.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008308/1.07, allocations: 347.8 kB / 0.5887 GB, free: 51.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01371/1.084, allocations: 8.456 MB / 0.5969 GB, free: 42.36 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001382/1.084, allocations: 51.47 kB / 0.597 GB, free: 42.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005671/1.084, allocations: 175.9 kB / 0.5972 GB, free: 42.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001138/1.086, allocations: 0.8254 MB / 0.598 GB, free: 41.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01255/1.098, allocations: 6.573 MB / 0.6044 GB, free: 34.72 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04059/1.139, allocations: 40.96 MB / 0.6444 GB, free: 8.348 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006436/1.145, allocations: 2.385 MB / 0.6467 GB, free: 5.812 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001815/1.147, allocations: 1.003 MB / 0.6477 GB, free: 4.797 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004597/1.148, allocations: 323.2 kB / 0.648 GB, free: 4.426 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.651e-05/1.148, allocations: 50.48 kB / 0.648 GB, free: 4.367 MB / 458.7 MB Notification: Performance of pre-optimization done (n=104): time 5.016e-06/1.148, allocations: 0 / 0.648 GB, free: 4.367 MB / 458.7 MB Notification: Performance of matching and sorting (n=118): time 0.02338/1.171, allocations: 6.978 MB / 0.6549 GB, free: 13.29 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/1.171, allocations: 196.5 kB / 0.655 GB, free: 13.06 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006317/1.178, allocations: 3.343 MB / 0.6583 GB, free: 9.727 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001599/1.178, allocations: 41.7 kB / 0.6583 GB, free: 9.68 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002569/1.18, allocations: 2.766 MB / 0.661 GB, free: 6.875 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006241/1.181, allocations: 498 kB / 0.6615 GB, free: 6.383 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002951/1.181, allocations: 108 kB / 0.6616 GB, free: 6.277 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005073/1.182, allocations: 0.5459 MB / 0.6622 GB, free: 5.723 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0031/1.185, allocations: 1.506 MB / 0.6636 GB, free: 4.211 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006537/1.191, allocations: 5.075 MB / 0.6686 GB, free: 13.31 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005552/1.197, allocations: 2.79 MB / 0.6713 GB, free: 10.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.35e-05/1.197, allocations: 36 kB / 0.6713 GB, free: 10.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=709) (initialization): time 0.01459/1.212, allocations: 6.013 MB / 0.6772 GB, free: 4.473 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/1.212, allocations: 64.95 kB / 0.6773 GB, free: 4.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001651/1.212, allocations: 128 kB / 0.6774 GB, free: 4.285 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009936/1.213, allocations: 352.6 kB / 0.6777 GB, free: 3.938 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005167/1.218, allocations: 1.251 MB / 0.679 GB, free: 2.684 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00592/1.224, allocations: 2.716 MB / 0.6816 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006247/1.231, allocations: 287.4 kB / 0.6819 GB, free: 15.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000889/1.231, allocations: 344 kB / 0.6822 GB, free: 15.21 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[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],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 (674): * Single equations (assignments): 670 * 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.0009967/1.232, allocations: 0.5369 MB / 0.6827 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006261/1.233, allocations: 319.8 kB / 0.683 GB, free: 14.35 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003223/1.236, allocations: 1.33 MB / 0.6843 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.598e-05/1.236, allocations: 20 kB / 0.6844 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/1.236, allocations: 4 kB / 0.6844 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.722e-05/1.236, allocations: 7.969 kB / 0.6844 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/1.248, allocations: 4.781 MB / 0.689 GB, free: 8.129 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.481e-06/1.248, allocations: 0 / 0.689 GB, free: 8.129 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/1.249, allocations: 167.8 kB / 0.6892 GB, free: 7.965 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006464/1.25, allocations: 153.1 kB / 0.6893 GB, free: 7.812 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.699e-05/1.25, allocations: 23.92 kB / 0.6894 GB, free: 7.789 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003312/1.253, allocations: 2.14 MB / 0.6915 GB, free: 5.516 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.255e-06/1.253, allocations: 3.984 kB / 0.6915 GB, free: 5.512 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005919/1.259, allocations: 3.165 MB / 0.6946 GB, free: 2.297 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009093/1.26, allocations: 364.9 kB / 0.6949 GB, free: 1.918 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004076/1.26, allocations: 23.95 kB / 0.6949 GB, free: 1.895 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/1.262, allocations: 55.98 kB / 0.695 GB, free: 1.84 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/1.262, allocations: 60.42 kB / 0.695 GB, free: 1.781 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/1.262, allocations: 31.98 kB / 0.6951 GB, free: 1.75 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004687/1.267, allocations: 2.312 MB / 0.6973 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.2e-07/1.267, allocations: 0 / 0.6973 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005198/1.272, allocations: 0.7968 MB / 0.6981 GB, free: 14.66 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.0004204/1.272, allocations: 159 kB / 0.6983 GB, free: 14.49 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007791/1.28, allocations: 3.53 MB / 0.7017 GB, free: 10.98 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/1.28, allocations: 0 / 0.7017 GB, free: 10.98 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001694/1.282, allocations: 0.8683 MB / 0.7025 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/1.284, allocations: 358 kB / 0.7029 GB, free: 9.758 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01473/1.299, allocations: 6.215 MB / 0.709 GB, free: 3.48 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004834/1.304, allocations: 2.876 MB / 0.7118 GB, free: 0.5781 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/1.305, allocations: 251.4 kB / 0.712 GB, free: 340 kB / 0.5105 GB Notification: Performance of SimCode: time 1.816e-06/1.305, allocations: 0 / 0.712 GB, free: 340 kB / 0.5105 GB Notification: Performance of Templates: time 0.3741/1.679, allocations: 59.89 MB / 0.7705 GB, free: 117.5 MB / 0.5105 GB