Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 2.117/2.117, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.86e-05/2.868e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3162, allocations: 54.85 MB / 364.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1562/0.4725, allocations: 105.7 MB / 470.2 MB, free: 6.793 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.4727, allocations: 72.56 kB / 470.3 MB, free: 6.723 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7986/1.271, allocations: 135.8 MB / 0.5919 GB, free: 99.39 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.29e-06/1.271, allocations: 0 / 0.5919 GB, free: 99.39 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000408/1.272, allocations: 129.9 kB / 0.592 GB, free: 99.39 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02211/1.294, allocations: 7.041 MB / 0.5989 GB, free: 94.81 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/1.294, allocations: 8.031 kB / 0.5989 GB, free: 94.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03854/1.333, allocations: 7.56 MB / 0.6063 GB, free: 87.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02623/1.359, allocations: 9.794 MB / 0.6158 GB, free: 77.48 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005133/1.359, allocations: 493.4 kB / 0.6163 GB, free: 77.04 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002757/1.362, allocations: 0.6485 MB / 0.6169 GB, free: 76.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03881/1.401, allocations: 16.56 MB / 0.6331 GB, free: 58.46 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003637/1.401, allocations: 103 kB / 0.6332 GB, free: 58.36 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001841/1.403, allocations: 311.8 kB / 0.6335 GB, free: 58.06 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002551/1.406, allocations: 1.576 MB / 0.635 GB, free: 56.48 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03313/1.439, allocations: 13.48 MB / 0.6482 GB, free: 42.97 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4346/1.874, allocations: 74.23 MB / 0.7207 GB, free: 58.95 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03117/1.905, allocations: 7.654 MB / 0.7282 GB, free: 58.24 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007223/1.912, allocations: 3.91 MB / 0.732 GB, free: 58.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03605/1.948, allocations: 18.63 MB / 0.7502 GB, free: 53.75 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/1.948, allocations: 72.19 kB / 0.7503 GB, free: 53.71 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 7.731e-06/1.948, allocations: 0 / 0.7503 GB, free: 53.71 MB / 474.7 MB Notification: Performance of matching and sorting (n=361): time 0.1682/2.117, allocations: 40.4 MB / 0.7897 GB, free: 43.34 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.289e-05/2.117, allocations: 270.3 kB / 0.79 GB, free: 43.05 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01066/2.127, allocations: 5.294 MB / 0.7951 GB, free: 38.46 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007735/2.128, allocations: 83.3 kB / 0.7952 GB, free: 38.38 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003192/2.131, allocations: 4.555 MB / 0.7997 GB, free: 34.24 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001666/2.133, allocations: 1.33 MB / 0.801 GB, free: 33.06 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008844/2.134, allocations: 185.7 kB / 0.8011 GB, free: 32.88 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005469/2.135, allocations: 0.6962 MB / 0.8018 GB, free: 32.29 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007438/2.142, allocations: 3.661 MB / 0.8054 GB, free: 28.98 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01049/2.153, allocations: 8.837 MB / 0.814 GB, free: 18.33 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/2.163, allocations: 5.58 MB / 0.8195 GB, free: 13.74 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001536/2.163, allocations: 52 kB / 0.8195 GB, free: 13.69 MB / 474.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.0425/2.206, allocations: 16.16 MB / 0.8353 GB, free: 0.9688 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001394/2.206, allocations: 87.12 kB / 0.8354 GB, free: 0.8867 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002043/2.206, allocations: 180 kB / 0.8356 GB, free: 0.7109 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01856/2.225, allocations: 4.148 MB / 0.8396 GB, free: 12.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009741/2.235, allocations: 2.027 MB / 0.8416 GB, free: 10.85 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04885/2.284, allocations: 21.76 MB / 0.8628 GB, free: 4.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00974/2.293, allocations: 0.5423 MB / 0.8634 GB, free: 4.297 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002155/2.296, allocations: 0.5378 MB / 0.8639 GB, free: 3.762 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.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 (1077): * Single equations (assignments): 1072 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002808/2.298, allocations: 0.7927 MB / 0.8647 GB, free: 2.961 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001528/2.3, allocations: 0.5747 MB / 0.8652 GB, free: 2.379 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03076/2.331, allocations: 9.657 MB / 0.8747 GB, free: 8.664 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.235e-05/2.331, allocations: 36 kB / 0.8747 GB, free: 8.629 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-05/2.331, allocations: 23.95 kB / 0.8747 GB, free: 8.605 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.299e-05/2.331, allocations: 15.94 kB / 0.8747 GB, free: 8.59 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05769/2.389, allocations: 19.03 MB / 0.8933 GB, free: 5.461 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.687e-05/2.389, allocations: 4 kB / 0.8933 GB, free: 5.457 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003655/2.392, allocations: 0.4992 MB / 0.8938 GB, free: 4.957 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01683/2.409, allocations: 3.619 MB / 0.8973 GB, free: 1.332 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007894/2.41, allocations: 63.98 kB / 0.8974 GB, free: 1.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3364/2.747, allocations: 18.69 MB / 0.9156 GB, free: 169.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.894e-06/2.747, allocations: 4.625 kB / 0.9156 GB, free: 169.1 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0365/2.783, allocations: 14.05 MB / 0.9294 GB, free: 168.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003651/2.787, allocations: 1.108 MB / 0.9304 GB, free: 168.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001539/2.788, allocations: 61.23 kB / 0.9305 GB, free: 168.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007817/2.796, allocations: 237.2 kB / 0.9307 GB, free: 168.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001987/2.798, allocations: 221.1 kB / 0.9309 GB, free: 168.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008997/2.799, allocations: 87.88 kB / 0.931 GB, free: 168.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01519/2.814, allocations: 3.709 MB / 0.9346 GB, free: 168.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.757e-06/2.815, allocations: 0 / 0.9346 GB, free: 168.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02041/2.835, allocations: 1.844 MB / 0.9365 GB, free: 168.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (264): * Single equations (assignments): 259 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001539/2.837, allocations: 231.5 kB / 0.9367 GB, free: 168 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03412/2.871, allocations: 9.43 MB / 0.9459 GB, free: 167.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/2.871, allocations: 4.094 kB / 0.9459 GB, free: 167.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01102/2.882, allocations: 3.674 MB / 0.9495 GB, free: 166.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004694/2.887, allocations: 0.7153 MB / 0.9502 GB, free: 166.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03322/2.92, allocations: 13.82 MB / 0.9637 GB, free: 161.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01007/2.93, allocations: 5.003 MB / 0.9685 GB, free: 159.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002109/2.932, allocations: 445.8 kB / 0.969 GB, free: 159.9 MB / 0.5417 GB Notification: Performance of SimCode: time 1.818e-06/2.932, allocations: 3.875 kB / 0.969 GB, free: 159.9 MB / 0.5417 GB Notification: Performance of Templates: time 0.5735/3.506, allocations: 145.7 MB / 1.111 GB, free: 173.6 MB / 0.5417 GB