Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 2.147/2.147, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.511e-05/3.536e-05, allocations: 4 kB / 304.9 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3252, allocations: 54.85 MB / 359.8 MB, free: 2.664 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1531/0.4784, allocations: 98.35 MB / 458.1 MB, free: 14.61 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.4786, allocations: 75.97 kB / 458.2 MB, free: 14.54 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5721/1.051, allocations: 78.9 MB / 0.5245 GB, free: 103.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.716e-06/1.051, allocations: 0 / 0.5245 GB, free: 103.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002055/1.051, allocations: 72.59 kB / 0.5246 GB, free: 103.2 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: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.01159/1.063, allocations: 3.528 MB / 0.528 GB, free: 102.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/1.063, allocations: 9.438 kB / 0.528 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0236/1.086, allocations: 4.324 MB / 0.5323 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01455/1.101, allocations: 4.367 MB / 0.5365 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004179/1.101, allocations: 278.3 kB / 0.5368 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001729/1.103, allocations: 375 kB / 0.5371 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0206/1.124, allocations: 8.988 MB / 0.5459 GB, free: 99.32 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001967/1.124, allocations: 55.97 kB / 0.546 GB, free: 99.32 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008675/1.125, allocations: 187.2 kB / 0.5461 GB, free: 99.32 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001507/1.126, allocations: 0.8986 MB / 0.547 GB, free: 99.31 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01558/1.142, allocations: 7.081 MB / 0.5539 GB, free: 99.29 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04565/1.188, allocations: 42.66 MB / 0.5956 GB, free: 66.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005798/1.194, allocations: 2.478 MB / 0.598 GB, free: 65.49 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001658/1.195, allocations: 1.064 MB / 0.5991 GB, free: 65.04 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003571/1.196, allocations: 329.7 kB / 0.5994 GB, free: 64.74 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/1.196, allocations: 42.88 kB / 0.5994 GB, free: 64.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 5.157e-06/1.196, allocations: 0 / 0.5994 GB, free: 64.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.0226/1.218, allocations: 7.477 MB / 0.6067 GB, free: 61.23 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/1.218, allocations: 191.9 kB / 0.6069 GB, free: 61.02 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005802/1.224, allocations: 3.459 MB / 0.6103 GB, free: 59.73 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002179/1.224, allocations: 48.36 kB / 0.6103 GB, free: 59.69 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001825/1.226, allocations: 2.906 MB / 0.6132 GB, free: 57.37 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005793/1.227, allocations: 0.5454 MB / 0.6137 GB, free: 56.99 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003422/1.227, allocations: 117.2 kB / 0.6138 GB, free: 56.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003231/1.228, allocations: 0.547 MB / 0.6143 GB, free: 56.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002952/1.231, allocations: 1.598 MB / 0.6159 GB, free: 55.97 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00477/1.235, allocations: 5.354 MB / 0.6211 GB, free: 50.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00507/1.24, allocations: 2.933 MB / 0.624 GB, free: 49.11 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.142e-05/1.241, allocations: 36.38 kB / 0.624 GB, free: 49.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01419/1.255, allocations: 6.346 MB / 0.6302 GB, free: 43.82 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/1.255, allocations: 66.69 kB / 0.6303 GB, free: 43.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001484/1.255, allocations: 140 kB / 0.6304 GB, free: 43.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009364/1.256, allocations: 364.6 kB / 0.6308 GB, free: 43.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005106/1.261, allocations: 1.324 MB / 0.6321 GB, free: 42.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003454/1.265, allocations: 2.734 MB / 0.6347 GB, free: 39.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006062/1.271, allocations: 305 kB / 0.635 GB, free: 39.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00104/1.272, allocations: 368 kB / 0.6354 GB, free: 38.88 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (715): * Single equations (assignments): 711 * 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.0008742/1.273, allocations: 0.5513 MB / 0.6359 GB, free: 38.32 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006852/1.273, allocations: 331.6 kB / 0.6362 GB, free: 37.99 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003263/1.277, allocations: 1.557 MB / 0.6377 GB, free: 36.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.551e-05/1.277, allocations: 16 kB / 0.6378 GB, free: 36.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/1.277, allocations: 4.625 kB / 0.6378 GB, free: 36.66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.848e-05/1.277, allocations: 3.422 kB / 0.6378 GB, free: 36.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01127/1.288, allocations: 5.211 MB / 0.6429 GB, free: 32.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/1.288, allocations: 0 / 0.6429 GB, free: 32.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/1.289, allocations: 194.4 kB / 0.643 GB, free: 32.22 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006125/1.29, allocations: 156.4 kB / 0.6432 GB, free: 32.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/1.29, allocations: 24.03 kB / 0.6432 GB, free: 32.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002505/1.293, allocations: 2.147 MB / 0.6453 GB, free: 29.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/1.293, allocations: 3.938 kB / 0.6453 GB, free: 29.98 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005278/1.298, allocations: 3.528 MB / 0.6488 GB, free: 26.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00149/1.3, allocations: 0.5192 MB / 0.6493 GB, free: 26.21 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004569/1.3, allocations: 26.38 kB / 0.6493 GB, free: 26.19 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/1.301, allocations: 59.12 kB / 0.6494 GB, free: 26.14 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/1.302, allocations: 69.08 kB / 0.6494 GB, free: 26.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001191/1.302, allocations: 43.59 kB / 0.6495 GB, free: 26.07 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004331/1.306, allocations: 2.396 MB / 0.6518 GB, free: 23.96 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.143e-06/1.306, allocations: 0 / 0.6518 GB, free: 23.96 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006049/1.312, allocations: 0.8492 MB / 0.6526 GB, free: 23.12 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.0004162/1.313, allocations: 154.1 kB / 0.6528 GB, free: 22.97 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007173/1.32, allocations: 3.726 MB / 0.6564 GB, free: 19.59 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.832e-06/1.32, allocations: 256 / 0.6564 GB, free: 19.59 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001538/1.322, allocations: 0.9447 MB / 0.6573 GB, free: 18.71 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002185/1.324, allocations: 359.2 kB / 0.6577 GB, free: 18.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/1.338, allocations: 6.63 MB / 0.6642 GB, free: 12.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004183/1.342, allocations: 3.032 MB / 0.6671 GB, free: 10.16 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001032/1.343, allocations: 269.8 kB / 0.6674 GB, free: 9.91 MB / 458.7 MB Notification: Performance of SimCode: time 1.728e-06/1.343, allocations: 0 / 0.6674 GB, free: 9.91 MB / 458.7 MB Notification: Performance of Templates: time 0.4275/1.771, allocations: 63.38 MB / 0.7293 GB, free: 103.7 MB / 490.7 MB