Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.892/1.892, allocations: 209.3 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004371/0.0004373, allocations: 12 kB / 282.6 MB, free: 9.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08663/0.0871, allocations: 48.71 MB / 331.3 MB, free: 8.93 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3505/0.4376, allocations: 92.49 MB / 423.8 MB, free: 8.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.4379, allocations: 71.97 kB / 423.8 MB, free: 8.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6954/1.133, allocations: 128.4 MB / 0.5393 GB, free: 88.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.673e-06/1.133, allocations: 3.938 kB / 0.5393 GB, free: 88.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003049/1.134, allocations: 114 kB / 0.5394 GB, free: 88.41 MB / 410.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.02088/1.155, allocations: 6.683 MB / 0.546 GB, free: 84.08 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/1.155, allocations: 6.406 kB / 0.546 GB, free: 84.08 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03515/1.19, allocations: 6.454 MB / 0.5523 GB, free: 80.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02122/1.211, allocations: 8.588 MB / 0.5607 GB, free: 72.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004214/1.212, allocations: 439.4 kB / 0.5611 GB, free: 72.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002622/1.214, allocations: 0.5783 MB / 0.5617 GB, free: 71.51 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03555/1.25, allocations: 15.41 MB / 0.5767 GB, free: 55.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002782/1.25, allocations: 67.42 kB / 0.5768 GB, free: 55.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001607/1.252, allocations: 267.1 kB / 0.577 GB, free: 55.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002665/1.254, allocations: 1.689 MB / 0.5787 GB, free: 53.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03396/1.288, allocations: 14.84 MB / 0.5932 GB, free: 38.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3421/1.63, allocations: 56.24 MB / 0.6481 GB, free: 84.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02419/1.655, allocations: 8.005 MB / 0.6559 GB, free: 83.32 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002275/1.657, allocations: 2.21 MB / 0.6581 GB, free: 81.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.523e-05/1.657, allocations: 71.58 kB / 0.6581 GB, free: 81.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=367): time 1.011e-05/1.657, allocations: 0 / 0.6581 GB, free: 81.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=419): time 0.1385/1.796, allocations: 39.68 MB / 0.6969 GB, free: 76.23 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.734e-05/1.796, allocations: 116.1 kB / 0.697 GB, free: 76.13 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008572/1.804, allocations: 3.852 MB / 0.7008 GB, free: 74.83 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008375/1.805, allocations: 88.19 kB / 0.7008 GB, free: 74.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002642/1.808, allocations: 3.776 MB / 0.7045 GB, free: 71.92 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001919/1.81, allocations: 1.495 MB / 0.706 GB, free: 70.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007576/1.811, allocations: 151.6 kB / 0.7061 GB, free: 70.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005743/1.811, allocations: 0.6405 MB / 0.7068 GB, free: 70.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008663/1.82, allocations: 3.886 MB / 0.7106 GB, free: 68.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01013/1.83, allocations: 7.672 MB / 0.718 GB, free: 62.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01028/1.84, allocations: 5.425 MB / 0.7233 GB, free: 60.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.679e-05/1.841, allocations: 40.81 kB / 0.7234 GB, free: 60.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.03227/1.873, allocations: 13.91 MB / 0.737 GB, free: 51.53 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/1.873, allocations: 60 kB / 0.737 GB, free: 51.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001395/1.873, allocations: 128 kB / 0.7371 GB, free: 51.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009416/1.883, allocations: 2.633 MB / 0.7397 GB, free: 49.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008787/1.891, allocations: 1.946 MB / 0.7416 GB, free: 48.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02387/1.915, allocations: 14.07 MB / 0.7554 GB, free: 35.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007523/1.923, allocations: 476.1 kB / 0.7558 GB, free: 35.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001677/1.925, allocations: 435.2 kB / 0.7562 GB, free: 35.11 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.007103/1.932, allocations: 2.909 MB / 0.7591 GB, free: 32.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00111/1.933, allocations: 466 kB / 0.7595 GB, free: 32.14 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02309/1.956, allocations: 10.43 MB / 0.7697 GB, free: 22.08 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.752e-05/1.956, allocations: 64.31 kB / 0.7698 GB, free: 22.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.793e-05/1.956, allocations: 12 kB / 0.7698 GB, free: 22.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.786e-05/1.956, allocations: 19.92 kB / 0.7698 GB, free: 21.99 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04756/2.004, allocations: 21.04 MB / 0.7903 GB, free: 0.7305 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.276e-05/2.004, allocations: 11.98 kB / 0.7904 GB, free: 0.7188 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004646/2.009, allocations: 0.7839 MB / 0.7911 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01004/2.019, allocations: 2.413 MB / 0.7935 GB, free: 13.51 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009467/2.02, allocations: 80.69 kB / 0.7936 GB, free: 13.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02652/2.046, allocations: 12.82 MB / 0.8061 GB, free: 360 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.691e-05/2.046, allocations: 21.56 kB / 0.8061 GB, free: 340 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2921/2.338, allocations: 16.23 MB / 0.8219 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003754/2.342, allocations: 1.155 MB / 0.8231 GB, free: 111.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001442/2.344, allocations: 76.88 kB / 0.8231 GB, free: 111.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003851/2.348, allocations: 297.5 kB / 0.8234 GB, free: 111.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009887/2.349, allocations: 260.8 kB / 0.8237 GB, free: 111.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004996/2.349, allocations: 117 kB / 0.8238 GB, free: 111.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006154/2.355, allocations: 2.714 MB / 0.8264 GB, free: 111.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.202e-06/2.355, allocations: 2.531 kB / 0.8264 GB, free: 111.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009364/2.365, allocations: 1.647 MB / 0.828 GB, free: 111.5 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.001064/2.366, allocations: 244 kB / 0.8283 GB, free: 111.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01939/2.385, allocations: 9.724 MB / 0.8378 GB, free: 111.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-05/2.385, allocations: 6.875 kB / 0.8378 GB, free: 111.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008143/2.393, allocations: 4.238 MB / 0.8419 GB, free: 110.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004275/2.398, allocations: 0.6427 MB / 0.8425 GB, free: 110.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03384/2.432, allocations: 19.05 MB / 0.8611 GB, free: 101.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01006/2.442, allocations: 4.744 MB / 0.8658 GB, free: 99.89 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002657/2.444, allocations: 406.9 kB / 0.8662 GB, free: 99.87 MB / 458.7 MB Notification: Performance of SimCode: time 2.806e-06/2.444, allocations: 0 / 0.8662 GB, free: 99.87 MB / 458.7 MB Notification: Performance of Templates: time 0.4437/2.888, allocations: 136.4 MB / 0.9994 GB, free: 115.5 MB / 458.7 MB