Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointSSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR") Notification: Performance of loadModel(ModelicaTest): time 2.153/2.153, allocations: 235 MB / 247.6 MB, free: 14.6 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.663e-05/3.679e-05, allocations: 8.922 kB / 304.9 MB, free: 5.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3223, allocations: 54.85 MB / 359.8 MB, free: 2.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1674/0.4897, allocations: 109.5 MB / 469.2 MB, free: 3.539 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/0.49, allocations: 76.73 kB / 469.3 MB, free: 3.465 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8217/1.312, allocations: 154.3 MB / 0.609 GB, free: 81.07 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.156e-06/1.312, allocations: 0 / 0.609 GB, free: 81.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003275/1.312, allocations: 140 kB / 0.6091 GB, free: 80.94 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: 2561 * Number of variables: 2561 Notification: Performance of Generate backend data structure: time 0.01978/1.332, allocations: 6.542 MB / 0.6155 GB, free: 74.31 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/1.332, allocations: 12.03 kB / 0.6155 GB, free: 74.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03563/1.368, allocations: 6.671 MB / 0.622 GB, free: 67.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02284/1.391, allocations: 8.368 MB / 0.6302 GB, free: 59.18 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007301/1.391, allocations: 0.5216 MB / 0.6307 GB, free: 58.66 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003768/1.395, allocations: 0.7028 MB / 0.6314 GB, free: 57.95 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04863/1.444, allocations: 18.59 MB / 0.6495 GB, free: 38.02 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004311/1.444, allocations: 87.17 kB / 0.6496 GB, free: 37.94 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003214/1.448, allocations: 335.8 kB / 0.6499 GB, free: 37.61 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002953/1.45, allocations: 1.723 MB / 0.6516 GB, free: 35.88 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03951/1.49, allocations: 15.95 MB / 0.6672 GB, free: 19.92 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4032/1.893, allocations: 74.11 MB / 0.7396 GB, free: 48.57 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01984/1.913, allocations: 6.083 MB / 0.7455 GB, free: 47.33 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005633/1.919, allocations: 2.7 MB / 0.7481 GB, free: 47.28 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02992/1.949, allocations: 13.92 MB / 0.7617 GB, free: 42.94 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/1.949, allocations: 60.47 kB / 0.7618 GB, free: 42.9 MB / 474.7 MB Notification: Performance of pre-optimization done (n=284): time 8.035e-06/1.949, allocations: 2.75 kB / 0.7618 GB, free: 42.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=344): time 0.08478/2.034, allocations: 19.28 MB / 0.7806 GB, free: 38.87 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.576e-05/2.034, allocations: 187.8 kB / 0.7808 GB, free: 38.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01069/2.045, allocations: 5.156 MB / 0.7858 GB, free: 37.51 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006016/2.045, allocations: 72.33 kB / 0.7859 GB, free: 37.45 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003352/2.049, allocations: 4.852 MB / 0.7906 GB, free: 33.63 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001492/2.05, allocations: 1.278 MB / 0.7919 GB, free: 32.7 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00091/2.051, allocations: 185.7 kB / 0.7921 GB, free: 32.55 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006385/2.052, allocations: 0.7159 MB / 0.7928 GB, free: 32.07 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00691/2.059, allocations: 3.139 MB / 0.7958 GB, free: 30.99 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01013/2.069, allocations: 8.534 MB / 0.8042 GB, free: 22.65 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009847/2.079, allocations: 5.188 MB / 0.8092 GB, free: 21.11 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001449/2.079, allocations: 52.44 kB / 0.8093 GB, free: 21.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03144/2.11, allocations: 11.79 MB / 0.8208 GB, free: 17.57 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001436/2.111, allocations: 89.84 kB / 0.8209 GB, free: 17.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002099/2.111, allocations: 195.1 kB / 0.8211 GB, free: 17.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005458/2.116, allocations: 1.316 MB / 0.8223 GB, free: 17.33 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009703/2.126, allocations: 2.182 MB / 0.8245 GB, free: 16.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01312/2.139, allocations: 7.105 MB / 0.8314 GB, free: 10.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009472/2.149, allocations: 0.5526 MB / 0.832 GB, free: 9.711 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001902/2.151, allocations: 0.5487 MB / 0.8325 GB, free: 9.168 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 876 * Number of states: 0 () * Number of discrete variables: 43 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[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 (1152): * Single equations (assignments): 1145 * 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%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002278/2.153, allocations: 0.8078 MB / 0.8333 GB, free: 8.359 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001191/2.154, allocations: 0.5298 MB / 0.8338 GB, free: 7.824 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/2.169, allocations: 5.269 MB / 0.8389 GB, free: 3.418 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.62e-05/2.169, allocations: 37.41 kB / 0.839 GB, free: 3.383 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-05/2.169, allocations: 8 kB / 0.839 GB, free: 3.375 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.963e-05/2.169, allocations: 15.7 kB / 0.839 GB, free: 3.375 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04052/2.21, allocations: 14.03 MB / 0.8527 GB, free: 7.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.961e-05/2.21, allocations: 12 kB / 0.8527 GB, free: 7.719 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003232/2.213, allocations: 0.5337 MB / 0.8532 GB, free: 7.285 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004653/2.218, allocations: 0.9132 MB / 0.8541 GB, free: 6.629 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006318/2.219, allocations: 72.86 kB / 0.8542 GB, free: 6.562 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01229/2.231, allocations: 5.414 MB / 0.8595 GB, free: 1.66 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.095e-05/2.231, allocations: 19.88 kB / 0.8595 GB, free: 1.641 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02154/2.253, allocations: 10.13 MB / 0.8694 GB, free: 7.875 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003428/2.256, allocations: 0.9441 MB / 0.8703 GB, free: 6.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001524/2.258, allocations: 68.2 kB / 0.8704 GB, free: 6.918 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003872/2.261, allocations: 197.6 kB / 0.8706 GB, free: 6.785 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008831/2.262, allocations: 213.9 kB / 0.8708 GB, free: 6.641 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000403/2.263, allocations: 102.7 kB / 0.8709 GB, free: 6.543 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009605/2.272, allocations: 3.562 MB / 0.8743 GB, free: 3.434 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.237e-06/2.272, allocations: 0 / 0.8743 GB, free: 3.434 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01159/2.284, allocations: 1.658 MB / 0.876 GB, free: 1.797 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 (267): * Single equations (assignments): 260 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001164/2.285, allocations: 261.7 kB / 0.8762 GB, free: 1.559 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01759/2.303, allocations: 7.331 MB / 0.8834 GB, free: 10.86 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.381e-05/2.303, allocations: 4.562 kB / 0.8834 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005689/2.309, allocations: 2.316 MB / 0.8856 GB, free: 8.715 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004468/2.313, allocations: 0.6409 MB / 0.8863 GB, free: 8.168 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3222/2.635, allocations: 13.62 MB / 0.8996 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01305/2.649, allocations: 5.319 MB / 0.9048 GB, free: 134.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002336/2.651, allocations: 451.2 kB / 0.9052 GB, free: 134.3 MB / 0.5105 GB Notification: Performance of SimCode: time 1.87e-06/2.651, allocations: 1.641 kB / 0.9052 GB, free: 134.3 MB / 0.5105 GB Notification: Performance of Templates: time 0.1765/2.827, allocations: 119.7 MB / 1.022 GB, free: 68.04 MB / 0.5105 GB