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.Revolute.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.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute") Notification: Performance of loadModel(ModelicaTest): time 1.947/1.947, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.972e-05/2.986e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08559/0.08565, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3504/0.4361, allocations: 89.13 MB / 415.7 MB, free: 2.703 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/0.4363, allocations: 71.39 kB / 415.7 MB, free: 2.668 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3368/0.7731, allocations: 85.6 MB / 0.4896 GB, free: 3.812 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.52e-06/0.7732, allocations: 0 / 0.4896 GB, free: 3.812 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001814/0.7733, allocations: 75.92 kB / 0.4897 GB, free: 3.738 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: 1567 * Number of variables: 1567 Notification: Performance of Generate backend data structure: time 0.01187/0.7852, allocations: 3.647 MB / 0.4932 GB, free: 28 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.7853, allocations: 12.03 kB / 0.4932 GB, free: 16 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01969/0.805, allocations: 3.512 MB / 0.4967 GB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01376/0.8188, allocations: 4.136 MB / 0.5007 GB, free: 8.309 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004261/0.8193, allocations: 295.7 kB / 0.501 GB, free: 8.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002158/0.8214, allocations: 391.8 kB / 0.5014 GB, free: 7.637 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02851/0.85, allocations: 10.21 MB / 0.5113 GB, free: 12.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001824/0.8502, allocations: 23.81 kB / 0.5114 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001867/0.8521, allocations: 179.8 kB / 0.5115 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002607/0.8547, allocations: 1.211 MB / 0.5127 GB, free: 11.56 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02592/0.8807, allocations: 9.859 MB / 0.5223 GB, free: 1.684 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3014/1.182, allocations: 35.47 MB / 0.557 GB, free: 82.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01151/1.194, allocations: 4.939 MB / 0.5618 GB, free: 80.84 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003872/1.198, allocations: 2.27 MB / 0.564 GB, free: 80.83 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001733/1.199, allocations: 1.88 MB / 0.5658 GB, free: 79.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/1.199, allocations: 50 kB / 0.5659 GB, free: 79.08 MB / 426.7 MB Notification: Performance of pre-optimization done (n=229): time 7.173e-06/1.199, allocations: 0 / 0.5659 GB, free: 79.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=235): time 0.03506/1.234, allocations: 11.24 MB / 0.5769 GB, free: 76.49 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/1.235, allocations: 71.28 kB / 0.5769 GB, free: 76.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004622/1.239, allocations: 2.342 MB / 0.5792 GB, free: 75.57 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004181/1.24, allocations: 49.67 kB / 0.5793 GB, free: 75.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001673/1.241, allocations: 2.709 MB / 0.5819 GB, free: 73.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001025/1.242, allocations: 0.8487 MB / 0.5828 GB, free: 73.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004732/1.243, allocations: 98.34 kB / 0.5828 GB, free: 73.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000385/1.243, allocations: 0.538 MB / 0.5834 GB, free: 72.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004245/1.248, allocations: 2.137 MB / 0.5855 GB, free: 71.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005907/1.254, allocations: 5.026 MB / 0.5904 GB, free: 67.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006158/1.26, allocations: 3.317 MB / 0.5936 GB, free: 66.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.147e-05/1.26, allocations: 27.09 kB / 0.5936 GB, free: 66.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.0179/1.278, allocations: 7.72 MB / 0.6012 GB, free: 64.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.483e-05/1.278, allocations: 47.44 kB / 0.6012 GB, free: 64.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001081/1.278, allocations: 98.72 kB / 0.6013 GB, free: 64.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002867/1.281, allocations: 0.8087 MB / 0.6021 GB, free: 64.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005065/1.286, allocations: 1.195 MB / 0.6033 GB, free: 63.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006481/1.292, allocations: 4.12 MB / 0.6073 GB, free: 61.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004704/1.297, allocations: 291.3 kB / 0.6076 GB, free: 61.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008119/1.298, allocations: 313.4 kB / 0.6079 GB, free: 61.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 461 * Number of states: 0 () * Number of discrete variables: 24 (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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (636): * Single equations (assignments): 629 * 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 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009621/1.299, allocations: 495.8 kB / 0.6083 GB, free: 61.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005037/1.3, allocations: 266.3 kB / 0.6086 GB, free: 61.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009145/1.309, allocations: 4.676 MB / 0.6132 GB, free: 57.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.107e-05/1.309, allocations: 43.56 kB / 0.6132 GB, free: 57.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/1.309, allocations: 4 kB / 0.6132 GB, free: 57.76 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.628e-05/1.309, allocations: 10.36 kB / 0.6132 GB, free: 57.76 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02611/1.335, allocations: 10.57 MB / 0.6235 GB, free: 48.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.017e-05/1.335, allocations: 12.84 kB / 0.6236 GB, free: 48.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002014/1.337, allocations: 364 kB / 0.6239 GB, free: 48.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002449/1.34, allocations: 0.6524 MB / 0.6245 GB, free: 48.24 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003402/1.34, allocations: 41.95 kB / 0.6246 GB, free: 48.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005272/1.345, allocations: 3.589 MB / 0.6281 GB, free: 45 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.649e-06/1.345, allocations: 11.94 kB / 0.6281 GB, free: 44.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01189/1.357, allocations: 7.613 MB / 0.6355 GB, free: 38.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/1.359, allocations: 0.6499 MB / 0.6362 GB, free: 37.42 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007919/1.36, allocations: 43.8 kB / 0.6362 GB, free: 37.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001849/1.362, allocations: 135 kB / 0.6363 GB, free: 37.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003898/1.362, allocations: 132.5 kB / 0.6365 GB, free: 37.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002188/1.362, allocations: 66.53 kB / 0.6365 GB, free: 37.15 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002867/1.365, allocations: 1.591 MB / 0.6381 GB, free: 35.74 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.126e-06/1.365, allocations: 0 / 0.6381 GB, free: 35.74 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005273/1.37, allocations: 0.9469 MB / 0.639 GB, free: 34.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 171 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005186/1.371, allocations: 179.7 kB / 0.6392 GB, free: 34.63 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008566/1.38, allocations: 5.271 MB / 0.6443 GB, free: 29.83 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.634e-06/1.38, allocations: 4.062 kB / 0.6443 GB, free: 29.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003048/1.383, allocations: 1.995 MB / 0.6463 GB, free: 28 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/1.385, allocations: 318.8 kB / 0.6466 GB, free: 27.72 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01677/1.401, allocations: 8.436 MB / 0.6548 GB, free: 20.11 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005159/1.407, allocations: 3.318 MB / 0.6581 GB, free: 16.95 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001307/1.408, allocations: 247.4 kB / 0.6583 GB, free: 16.71 MB / 426.7 MB Notification: Performance of SimCode: time 2.052e-06/1.408, allocations: 0 / 0.6583 GB, free: 16.71 MB / 426.7 MB Notification: Performance of Templates: time 0.4232/1.831, allocations: 68.33 MB / 0.725 GB, free: 101.6 MB / 442.7 MB