Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR") Notification: Performance of loadModel(ModelicaTest): time 2.156/2.156, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.112e-05/3.126e-05, allocations: 4 kB / 304.9 MB, free: 5.668 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.328, allocations: 54.85 MB / 359.8 MB, free: 2.672 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1719/0.5, allocations: 110.8 MB / 470.6 MB, free: 2.141 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/0.5002, allocations: 75.95 kB / 470.6 MB, free: 2.066 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8784/1.379, allocations: 171.9 MB / 0.6275 GB, free: 62.12 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.185e-06/1.379, allocations: 0 / 0.6275 GB, free: 62.12 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003927/1.379, allocations: 152 kB / 0.6276 GB, free: 61.98 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: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.02396/1.403, allocations: 7.694 MB / 0.6351 GB, free: 54.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/1.403, allocations: 12.03 kB / 0.6351 GB, free: 54.19 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03608/1.439, allocations: 6.944 MB / 0.6419 GB, free: 47.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02608/1.465, allocations: 9.842 MB / 0.6515 GB, free: 37.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000696/1.466, allocations: 0.5656 MB / 0.6521 GB, free: 36.73 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003669/1.47, allocations: 0.7613 MB / 0.6528 GB, free: 35.97 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0504/1.52, allocations: 20.44 MB / 0.6728 GB, free: 14.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004084/1.521, allocations: 99.11 kB / 0.6729 GB, free: 14 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003211/1.524, allocations: 359.8 kB / 0.6732 GB, free: 13.65 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003351/1.527, allocations: 1.958 MB / 0.6751 GB, free: 11.69 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04701/1.574, allocations: 17.63 MB / 0.6923 GB, free: 10.04 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7057/2.28, allocations: 82.17 MB / 0.7726 GB, free: 31.32 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02292/2.303, allocations: 7.293 MB / 0.7797 GB, free: 30.06 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007117/2.31, allocations: 3.923 MB / 0.7835 GB, free: 30.02 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03955/2.35, allocations: 18.21 MB / 0.8013 GB, free: 21.12 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.871e-05/2.35, allocations: 70.78 kB / 0.8014 GB, free: 21.05 MB / 474.8 MB Notification: Performance of pre-optimization done (n=332): time 7.302e-06/2.35, allocations: 0 / 0.8014 GB, free: 21.05 MB / 474.8 MB Notification: Performance of matching and sorting (n=413): time 0.109/2.459, allocations: 26.07 MB / 0.8268 GB, free: 12.95 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/2.459, allocations: 197.5 kB / 0.827 GB, free: 12.76 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01209/2.471, allocations: 5.682 MB / 0.8326 GB, free: 10.8 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007803/2.472, allocations: 85.7 kB / 0.8327 GB, free: 10.73 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003845/2.476, allocations: 5.242 MB / 0.8378 GB, free: 6.66 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001863/2.478, allocations: 1.52 MB / 0.8393 GB, free: 5.543 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00102/2.479, allocations: 207.1 kB / 0.8395 GB, free: 5.383 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0006668/2.479, allocations: 0.7555 MB / 0.8402 GB, free: 4.883 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008449/2.488, allocations: 4.021 MB / 0.8441 GB, free: 2.496 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02333/2.511, allocations: 10.26 MB / 0.8542 GB, free: 7.816 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0138/2.525, allocations: 6.244 MB / 0.8602 GB, free: 2.688 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000209/2.525, allocations: 57.78 kB / 0.8603 GB, free: 2.633 MB / 490.8 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.04328/2.569, allocations: 14.84 MB / 0.8748 GB, free: 6.211 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001844/2.569, allocations: 92 kB / 0.8749 GB, free: 6.121 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003464/2.569, allocations: 204 kB / 0.8751 GB, free: 5.922 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01041/2.58, allocations: 2.34 MB / 0.8774 GB, free: 4.223 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01195/2.592, allocations: 2.436 MB / 0.8797 GB, free: 2.117 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03127/2.623, allocations: 11.81 MB / 0.8913 GB, free: 8.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01101/2.634, allocations: 0.6814 MB / 0.8919 GB, free: 8.281 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002322/2.636, allocations: 0.5933 MB / 0.8925 GB, free: 7.695 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 931 * Number of states: 0 () * Number of discrete variables: 46 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1269): * Single equations (assignments): 1262 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002711/2.639, allocations: 0.8699 MB / 0.8934 GB, free: 6.824 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001575/2.641, allocations: 0.5973 MB / 0.894 GB, free: 6.223 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3201/2.961, allocations: 8.076 MB / 0.9018 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001229/2.961, allocations: 62.52 kB / 0.9019 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-05/2.961, allocations: 9.938 kB / 0.9019 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-05/2.961, allocations: 19.03 kB / 0.9019 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05255/3.014, allocations: 18.71 MB / 0.9202 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.118e-05/3.014, allocations: 11.72 kB / 0.9202 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004068/3.018, allocations: 0.6418 MB / 0.9208 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008741/3.027, allocations: 1.878 MB / 0.9227 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008022/3.027, allocations: 78.61 kB / 0.9228 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02075/3.048, allocations: 9.885 MB / 0.9324 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.637e-05/3.048, allocations: 18.69 kB / 0.9324 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02818/3.076, allocations: 14.16 MB / 0.9462 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003736/3.08, allocations: 1.161 MB / 0.9474 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001771/3.082, allocations: 79.06 kB / 0.9475 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004652/3.087, allocations: 261.8 kB / 0.9477 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00106/3.088, allocations: 262.4 kB / 0.948 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004945/3.088, allocations: 114.3 kB / 0.9481 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009229/3.098, allocations: 3.934 MB / 0.9519 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.413e-06/3.098, allocations: 0 / 0.9519 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01204/3.11, allocations: 1.931 MB / 0.9538 GB, free: 111.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (324): * Single equations (assignments): 317 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001246/3.111, allocations: 275.2 kB / 0.9541 GB, free: 111 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01868/3.13, allocations: 9.307 MB / 0.9631 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/3.13, allocations: 3.625 kB / 0.9632 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007157/3.137, allocations: 3.237 MB / 0.9663 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005108/3.142, allocations: 0.7178 MB / 0.967 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03697/3.179, allocations: 15.47 MB / 0.9821 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01221/3.191, allocations: 5.759 MB / 0.9877 GB, free: 98.89 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002823/3.194, allocations: 492.4 kB / 0.9882 GB, free: 98.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.815e-06/3.194, allocations: 0 / 0.9882 GB, free: 98.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.488/3.682, allocations: 133.9 MB / 1.119 GB, free: 118.2 MB / 0.5105 GB