Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadModel(ModelicaTest): time 1.867/1.867, allocations: 209.3 MB / 221.9 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.428e-05/4.449e-05, allocations: 4 kB / 273.1 MB, free: 3.652 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1252, allocations: 48.69 MB / 321.7 MB, free: 2.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3699/0.4952, allocations: 92.4 MB / 414.2 MB, free: 2.852 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002104/0.4955, allocations: 77.09 kB / 414.2 MB, free: 2.836 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7136/1.209, allocations: 128.5 MB / 0.53 GB, free: 78.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.338e-06/1.209, allocations: 3.469 kB / 0.53 GB, free: 78.27 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003244/1.209, allocations: 116.7 kB / 0.5301 GB, free: 78.26 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2208 * Number of variables: 2208 Notification: Performance of Generate backend data structure: time 0.02162/1.231, allocations: 6.237 MB / 0.5362 GB, free: 76.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/1.231, allocations: 9.156 kB / 0.5362 GB, free: 76.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0351/1.266, allocations: 6.456 MB / 0.5425 GB, free: 75.65 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02381/1.29, allocations: 8.567 MB / 0.5509 GB, free: 74.88 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005817/1.291, allocations: 438 kB / 0.5513 GB, free: 74.87 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003254/1.294, allocations: 0.5748 MB / 0.5519 GB, free: 74.86 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04028/1.334, allocations: 15.23 MB / 0.5668 GB, free: 72.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003867/1.335, allocations: 56.16 kB / 0.5668 GB, free: 72.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002957/1.338, allocations: 260.5 kB / 0.5671 GB, free: 72.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003273/1.341, allocations: 1.704 MB / 0.5687 GB, free: 72.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03683/1.378, allocations: 14.45 MB / 0.5828 GB, free: 72.37 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09178/1.47, allocations: 56.26 MB / 0.6378 GB, free: 33.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02129/1.491, allocations: 7.936 MB / 0.6455 GB, free: 26.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006944/1.498, allocations: 4.692 MB / 0.6501 GB, free: 21.92 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001855/1.5, allocations: 2.208 MB / 0.6523 GB, free: 19.48 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/1.5, allocations: 71.58 kB / 0.6523 GB, free: 19.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=367): time 8.953e-06/1.5, allocations: 0 / 0.6523 GB, free: 19.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=419): time 0.1147/1.615, allocations: 33.39 MB / 0.6849 GB, free: 5.898 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/1.615, allocations: 120 kB / 0.6851 GB, free: 5.762 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007939/1.623, allocations: 3.811 MB / 0.6888 GB, free: 1.938 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008459/1.624, allocations: 85.7 kB / 0.6889 GB, free: 1.848 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2491/1.873, allocations: 3.781 MB / 0.6925 GB, free: 87 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002008/1.875, allocations: 1.492 MB / 0.694 GB, free: 86.28 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008891/1.876, allocations: 148 kB / 0.6941 GB, free: 86.28 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006662/1.877, allocations: 0.6401 MB / 0.6948 GB, free: 85.96 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008566/1.885, allocations: 3.825 MB / 0.6985 GB, free: 85.94 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01124/1.896, allocations: 7.563 MB / 0.7059 GB, free: 81.21 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01132/1.908, allocations: 5.417 MB / 0.7112 GB, free: 81.14 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001977/1.908, allocations: 35.34 kB / 0.7112 GB, free: 81.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.03397/1.942, allocations: 13.42 MB / 0.7243 GB, free: 80.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001482/1.942, allocations: 60.22 kB / 0.7244 GB, free: 80.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001837/1.942, allocations: 130.2 kB / 0.7245 GB, free: 80.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009978/1.952, allocations: 2.627 MB / 0.7271 GB, free: 80.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009385/1.962, allocations: 1.944 MB / 0.729 GB, free: 80.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02385/1.986, allocations: 13.61 MB / 0.7423 GB, free: 77.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007992/1.994, allocations: 479.7 kB / 0.7427 GB, free: 77.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001866/1.996, allocations: 430.9 kB / 0.7431 GB, free: 77.36 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 594 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (920): * Single equations (assignments): 912 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002353/1.998, allocations: 0.6634 MB / 0.7438 GB, free: 76.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001099/1.999, allocations: 465.3 kB / 0.7442 GB, free: 76.65 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02556/2.025, allocations: 10.36 MB / 0.7543 GB, free: 73.37 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001095/2.025, allocations: 72.64 kB / 0.7544 GB, free: 73.36 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.129e-05/2.025, allocations: 9.844 kB / 0.7544 GB, free: 73.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.96e-05/2.025, allocations: 16.69 kB / 0.7544 GB, free: 73.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05093/2.076, allocations: 20.95 MB / 0.7749 GB, free: 66.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.297e-05/2.076, allocations: 12.31 kB / 0.7749 GB, free: 66.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004615/2.081, allocations: 0.7865 MB / 0.7757 GB, free: 66.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009788/2.091, allocations: 2.413 MB / 0.778 GB, free: 65.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009459/2.092, allocations: 80.16 kB / 0.7781 GB, free: 65.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02005/2.112, allocations: 12.36 MB / 0.7902 GB, free: 55.19 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.285e-05/2.112, allocations: 19.88 kB / 0.7902 GB, free: 55.17 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02946/2.141, allocations: 16.13 MB / 0.8059 GB, free: 40.72 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00349/2.145, allocations: 1.153 MB / 0.8071 GB, free: 39.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00126/2.146, allocations: 83.08 kB / 0.8071 GB, free: 39.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003478/2.149, allocations: 299.4 kB / 0.8074 GB, free: 39.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008525/2.15, allocations: 262.4 kB / 0.8077 GB, free: 39.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004535/2.151, allocations: 119.7 kB / 0.8078 GB, free: 39.12 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004817/2.156, allocations: 2.666 MB / 0.8104 GB, free: 36.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.236e-06/2.156, allocations: 2.625 kB / 0.8104 GB, free: 36.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008832/2.165, allocations: 1.655 MB / 0.812 GB, free: 35.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001001/2.166, allocations: 230.4 kB / 0.8122 GB, free: 34.91 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01672/2.182, allocations: 9.376 MB / 0.8214 GB, free: 26.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/2.182, allocations: 0 / 0.8214 GB, free: 26.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007324/2.19, allocations: 4.145 MB / 0.8254 GB, free: 22.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003891/2.194, allocations: 0.6376 MB / 0.8261 GB, free: 22.24 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02809/2.222, allocations: 13.97 MB / 0.8397 GB, free: 9.727 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008086/2.23, allocations: 4.742 MB / 0.8443 GB, free: 4.961 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00259/2.233, allocations: 403.3 kB / 0.8447 GB, free: 4.566 MB / 442.7 MB Notification: Performance of SimCode: time 1.78e-06/2.233, allocations: 4 kB / 0.8447 GB, free: 4.562 MB / 442.7 MB Notification: Performance of Templates: time 0.4542/2.687, allocations: 135.2 MB / 0.9768 GB, free: 30.81 MB / 458.7 MB