Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) 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 2.303/2.303, allocations: 209.2 MB / 225.4 MB, free: 0.6055 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004464/0.0004465, allocations: 12 kB / 283.1 MB, free: 9.68 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3645, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1699/0.5344, allocations: 92.49 MB / 424.3 MB, free: 1.914 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.5347, allocations: 87.95 kB / 424.4 MB, free: 1.828 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8111/1.346, allocations: 129.9 MB / 0.5413 GB, free: 56.22 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.346, allocations: 0 / 0.5413 GB, free: 56.22 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000361/1.346, allocations: 116 kB / 0.5414 GB, free: 56.11 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: 2208 * Number of variables: 2208 Notification: Performance of Generate backend data structure: time 0.02861/1.375, allocations: 6.676 MB / 0.5479 GB, free: 49.35 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/1.375, allocations: 8.031 kB / 0.548 GB, free: 49.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04819/1.423, allocations: 6.454 MB / 0.5543 GB, free: 42.87 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02794/1.451, allocations: 8.588 MB / 0.5626 GB, free: 34.22 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005672/1.452, allocations: 435.4 kB / 0.5631 GB, free: 33.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004016/1.456, allocations: 0.5816 MB / 0.5636 GB, free: 33.21 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0496/1.505, allocations: 15.46 MB / 0.5787 GB, free: 17.04 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000447/1.506, allocations: 63.39 kB / 0.5788 GB, free: 16.97 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003782/1.51, allocations: 263.8 kB / 0.579 GB, free: 16.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004109/1.514, allocations: 1.691 MB / 0.5807 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04498/1.559, allocations: 14.84 MB / 0.5952 GB, free: 176 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4414/2, allocations: 56.25 MB / 0.6501 GB, free: 59.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0311/2.032, allocations: 8.018 MB / 0.6579 GB, free: 58.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002971/2.035, allocations: 2.212 MB / 0.6601 GB, free: 56.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.918e-05/2.035, allocations: 64.05 kB / 0.6602 GB, free: 56.76 MB / 426.7 MB Notification: Performance of pre-optimization done (n=367): time 7.884e-06/2.035, allocations: 0 / 0.6602 GB, free: 56.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=419): time 0.1869/2.222, allocations: 40.56 MB / 0.6998 GB, free: 51.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.664e-05/2.222, allocations: 116.6 kB / 0.6999 GB, free: 51.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01057/2.232, allocations: 4.348 MB / 0.7041 GB, free: 49.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001305/2.234, allocations: 80.95 kB / 0.7042 GB, free: 49.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003313/2.237, allocations: 3.783 MB / 0.7079 GB, free: 47.15 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002635/2.24, allocations: 1.492 MB / 0.7094 GB, free: 46.03 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001623/2.241, allocations: 154.2 kB / 0.7095 GB, free: 45.91 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007929/2.242, allocations: 0.6413 MB / 0.7101 GB, free: 45.46 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00985/2.252, allocations: 3.887 MB / 0.7139 GB, free: 44.22 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01273/2.265, allocations: 7.699 MB / 0.7214 GB, free: 38 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01285/2.278, allocations: 5.437 MB / 0.7268 GB, free: 34.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001496/2.278, allocations: 36 kB / 0.7268 GB, free: 34.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.08747/2.365, allocations: 13.88 MB / 0.7403 GB, free: 23.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001579/2.366, allocations: 64 kB / 0.7404 GB, free: 22.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002959/2.366, allocations: 128 kB / 0.7405 GB, free: 22.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01762/2.384, allocations: 2.624 MB / 0.7431 GB, free: 21.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01411/2.398, allocations: 1.942 MB / 0.745 GB, free: 19.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03145/2.429, allocations: 14.06 MB / 0.7587 GB, free: 7.371 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009841/2.439, allocations: 478.7 kB / 0.7592 GB, free: 7.004 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002215/2.441, allocations: 433.2 kB / 0.7596 GB, free: 6.602 MB / 426.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 () * Number of clocked 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.009244/2.451, allocations: 2.906 MB / 0.7624 GB, free: 4.086 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00189/2.453, allocations: 470 kB / 0.7629 GB, free: 3.621 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03778/2.49, allocations: 10.4 MB / 0.773 GB, free: 9.648 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001485/2.491, allocations: 61.16 kB / 0.7731 GB, free: 9.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.634e-05/2.491, allocations: 8 kB / 0.7731 GB, free: 9.582 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001091/2.491, allocations: 19.92 kB / 0.7731 GB, free: 9.562 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07176/2.563, allocations: 21.04 MB / 0.7937 GB, free: 4.305 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.829e-05/2.563, allocations: 14.62 kB / 0.7937 GB, free: 4.293 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007667/2.57, allocations: 0.7839 MB / 0.7944 GB, free: 3.508 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01426/2.585, allocations: 2.4 MB / 0.7968 GB, free: 1.102 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001307/2.586, allocations: 81.16 kB / 0.7969 GB, free: 1.023 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3504/2.936, allocations: 12.8 MB / 0.8094 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.557e-05/2.936, allocations: 24.14 kB / 0.8094 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04434/2.981, allocations: 14.85 MB / 0.8239 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004569/2.985, allocations: 1.159 MB / 0.825 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002418/2.988, allocations: 78.33 kB / 0.8251 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006272/2.994, allocations: 293 kB / 0.8254 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001744/2.996, allocations: 258.8 kB / 0.8256 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007958/2.997, allocations: 114.2 kB / 0.8257 GB, free: 107.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007537/3.004, allocations: 2.71 MB / 0.8284 GB, free: 107 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.42e-07/3.004, allocations: 3.375 kB / 0.8284 GB, free: 107 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01107/3.015, allocations: 1.644 MB / 0.83 GB, free: 107 MB / 458.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 () * Number of clocked 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.001789/3.017, allocations: 251.1 kB / 0.8302 GB, free: 106.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0243/3.042, allocations: 9.709 MB / 0.8397 GB, free: 104 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.937e-05/3.042, allocations: 3.875 kB / 0.8397 GB, free: 104 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01143/3.053, allocations: 4.25 MB / 0.8439 GB, free: 102.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006362/3.06, allocations: 0.6324 MB / 0.8445 GB, free: 102.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04935/3.109, allocations: 19.09 MB / 0.8631 GB, free: 92.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01239/3.121, allocations: 4.748 MB / 0.8678 GB, free: 91.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003525/3.125, allocations: 402.6 kB / 0.8682 GB, free: 91.36 MB / 458.7 MB Notification: Performance of SimCode: time 1.733e-06/3.125, allocations: 3.391 kB / 0.8682 GB, free: 91.36 MB / 458.7 MB Notification: Performance of Templates: time 0.5765/3.702, allocations: 136.4 MB / 1.001 GB, free: 105.7 MB / 458.7 MB