Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 1.854/1.854, allocations: 209.3 MB / 221.9 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.382e-05/3.402e-05, allocations: 4 kB / 273.1 MB, free: 3.668 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08716/0.08722, allocations: 48.7 MB / 321.8 MB, free: 2.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3627/0.4499, allocations: 91.54 MB / 413.3 MB, free: 3.113 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002086/0.4502, allocations: 70.66 kB / 413.4 MB, free: 3.105 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3141/0.7643, allocations: 78.86 MB / 492.2 MB, free: 12.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.41e-06/0.7643, allocations: 0 / 492.2 MB, free: 12.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002109/0.7645, allocations: 68 kB / 492.3 MB, free: 12.26 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: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.01182/0.7764, allocations: 3.53 MB / 495.8 MB, free: 8.668 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.7764, allocations: 8.031 kB / 495.8 MB, free: 8.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02458/0.801, allocations: 4.328 MB / 0.4884 GB, free: 4.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01471/0.8158, allocations: 4.349 MB / 0.4927 GB, free: 15.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004415/0.8163, allocations: 279.3 kB / 0.4929 GB, free: 15.63 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001706/0.818, allocations: 371.7 kB / 0.4933 GB, free: 15.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02283/0.8408, allocations: 8.993 MB / 0.5021 GB, free: 5.293 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002252/0.8411, allocations: 55.55 kB / 0.5021 GB, free: 5.238 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001337/0.8424, allocations: 187.9 kB / 0.5023 GB, free: 5.055 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001875/0.8443, allocations: 0.8923 MB / 0.5032 GB, free: 4.164 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01851/0.8629, allocations: 7.081 MB / 0.5101 GB, free: 13.08 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3643/1.227, allocations: 42.64 MB / 0.5517 GB, free: 65.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006684/1.234, allocations: 2.487 MB / 0.5542 GB, free: 64.46 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00193/1.236, allocations: 1.06 MB / 0.5552 GB, free: 64.43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004179/1.236, allocations: 323.3 kB / 0.5555 GB, free: 64.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/1.236, allocations: 47.28 kB / 0.5556 GB, free: 64.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 5.667e-06/1.236, allocations: 3.656 kB / 0.5556 GB, free: 64.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.02498/1.261, allocations: 7.472 MB / 0.5629 GB, free: 61.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/1.262, allocations: 198.6 kB / 0.563 GB, free: 61.51 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006731/1.268, allocations: 3.455 MB / 0.5664 GB, free: 61.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002189/1.269, allocations: 46.55 kB / 0.5665 GB, free: 61.15 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001923/1.27, allocations: 2.908 MB / 0.5693 GB, free: 59.65 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005985/1.271, allocations: 0.5417 MB / 0.5698 GB, free: 59.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004111/1.272, allocations: 114.2 kB / 0.5699 GB, free: 59.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003515/1.272, allocations: 0.5546 MB / 0.5705 GB, free: 59.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003145/1.275, allocations: 1.588 MB / 0.572 GB, free: 59.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005069/1.28, allocations: 5.356 MB / 0.5773 GB, free: 54.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005269/1.285, allocations: 2.935 MB / 0.5801 GB, free: 54.07 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000116/1.286, allocations: 38.31 kB / 0.5802 GB, free: 54.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01456/1.3, allocations: 6.348 MB / 0.5864 GB, free: 53.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/1.3, allocations: 66 kB / 0.5864 GB, free: 53.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000149/1.3, allocations: 138.5 kB / 0.5866 GB, free: 53.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009501/1.301, allocations: 363.1 kB / 0.5869 GB, free: 53.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005346/1.307, allocations: 1.322 MB / 0.5882 GB, free: 53.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003429/1.31, allocations: 2.742 MB / 0.5909 GB, free: 51.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005675/1.316, allocations: 302.8 kB / 0.5912 GB, free: 51.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001051/1.317, allocations: 368.1 kB / 0.5915 GB, free: 51.75 MB / 426.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.001029/1.318, allocations: 0.5508 MB / 0.5921 GB, free: 51.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007112/1.319, allocations: 320.3 kB / 0.5924 GB, free: 51.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003389/1.322, allocations: 1.561 MB / 0.5939 GB, free: 50.49 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.26e-05/1.322, allocations: 18.72 kB / 0.5939 GB, free: 50.49 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/1.322, allocations: 3.469 kB / 0.5939 GB, free: 50.49 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.046e-05/1.322, allocations: 5.906 kB / 0.5939 GB, free: 50.49 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/1.335, allocations: 5.203 MB / 0.599 GB, free: 48.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/1.335, allocations: 7.391 kB / 0.599 GB, free: 48.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/1.336, allocations: 200.3 kB / 0.5992 GB, free: 48.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006171/1.337, allocations: 149.2 kB / 0.5993 GB, free: 48.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001449/1.337, allocations: 27.31 kB / 0.5994 GB, free: 48.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002532/1.339, allocations: 2.147 MB / 0.6015 GB, free: 46.78 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.644e-06/1.34, allocations: 3.594 kB / 0.6015 GB, free: 46.78 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005526/1.345, allocations: 3.523 MB / 0.6049 GB, free: 45.02 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/1.347, allocations: 0.523 MB / 0.6054 GB, free: 44.67 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007082/1.347, allocations: 21.22 kB / 0.6054 GB, free: 44.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001789/1.349, allocations: 52.19 kB / 0.6055 GB, free: 44.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002368/1.349, allocations: 79.22 kB / 0.6056 GB, free: 44.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/1.35, allocations: 37.98 kB / 0.6056 GB, free: 44.62 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00504/1.355, allocations: 2.4 MB / 0.6079 GB, free: 43.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.25e-06/1.355, allocations: 3.844 kB / 0.6079 GB, free: 43.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006257/1.361, allocations: 0.8469 MB / 0.6088 GB, free: 43.68 MB / 426.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.0004557/1.361, allocations: 152.8 kB / 0.6089 GB, free: 43.56 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007143/1.369, allocations: 3.732 MB / 0.6126 GB, free: 42.27 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/1.369, allocations: 4.25 kB / 0.6126 GB, free: 42.27 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001546/1.37, allocations: 0.9351 MB / 0.6135 GB, free: 41.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/1.372, allocations: 364.2 kB / 0.6138 GB, free: 41.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/1.386, allocations: 6.617 MB / 0.6203 GB, free: 39.06 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003918/1.39, allocations: 3.028 MB / 0.6232 GB, free: 36.74 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/1.391, allocations: 273.5 kB / 0.6235 GB, free: 36.48 MB / 426.7 MB Notification: Performance of SimCode: time 1.86e-06/1.391, allocations: 0 / 0.6235 GB, free: 36.48 MB / 426.7 MB Notification: Performance of Templates: time 0.3375/1.729, allocations: 63.35 MB / 0.6854 GB, free: 105.9 MB / 442.7 MB