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.969/1.969, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004461/0.0004462, allocations: 15.98 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2852, allocations: 48.7 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1402/0.4254, allocations: 89.22 MB / 420.5 MB, free: 5.195 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.4257, allocations: 79.95 kB / 420.6 MB, free: 5.117 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5506/0.9764, allocations: 85.51 MB / 0.4942 GB, free: 92.37 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.722e-06/0.9764, allocations: 0 / 0.4942 GB, free: 92.37 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001455/0.9766, allocations: 66.91 kB / 0.4943 GB, free: 92.37 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.01062/0.9872, allocations: 3.785 MB / 0.498 GB, free: 90.3 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.9873, allocations: 12.83 kB / 0.498 GB, free: 90.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01882/1.006, allocations: 3.504 MB / 0.5014 GB, free: 90 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01213/1.018, allocations: 4.168 MB / 0.5055 GB, free: 88 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000347/1.019, allocations: 298.2 kB / 0.5058 GB, free: 87.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002415/1.021, allocations: 387.1 kB / 0.5061 GB, free: 87.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02525/1.046, allocations: 10.3 MB / 0.5162 GB, free: 80.09 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001753/1.047, allocations: 31.75 kB / 0.5162 GB, free: 80.06 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001816/1.048, allocations: 176.5 kB / 0.5164 GB, free: 79.92 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001937/1.05, allocations: 1.203 MB / 0.5176 GB, free: 78.72 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02172/1.072, allocations: 10.01 MB / 0.5273 GB, free: 68.69 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0552/1.127, allocations: 35.47 MB / 0.562 GB, free: 32.56 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01067/1.138, allocations: 4.949 MB / 0.5668 GB, free: 27.38 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00162/1.14, allocations: 1.885 MB / 0.5687 GB, free: 25.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/1.14, allocations: 52.55 kB / 0.5687 GB, free: 25.12 MB / 394.7 MB Notification: Performance of pre-optimization done (n=229): time 6.798e-06/1.14, allocations: 0 / 0.5687 GB, free: 25.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=235): time 0.03877/1.179, allocations: 14.37 MB / 0.5827 GB, free: 10.59 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/1.179, allocations: 77.41 kB / 0.5828 GB, free: 10.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003865/1.183, allocations: 2.354 MB / 0.5851 GB, free: 8.129 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003759/1.183, allocations: 57.7 kB / 0.5852 GB, free: 8.066 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001502/1.185, allocations: 2.699 MB / 0.5878 GB, free: 5.363 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009889/1.186, allocations: 0.8474 MB / 0.5886 GB, free: 4.523 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004128/1.186, allocations: 100 kB / 0.5887 GB, free: 4.426 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003573/1.186, allocations: 0.534 MB / 0.5892 GB, free: 3.883 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003869/1.19, allocations: 2.181 MB / 0.5914 GB, free: 1.695 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007368/1.198, allocations: 5.065 MB / 0.5963 GB, free: 11.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007038/1.205, allocations: 3.307 MB / 0.5996 GB, free: 7.891 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.432e-05/1.205, allocations: 32 kB / 0.5996 GB, free: 7.859 MB / 410.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01973/1.225, allocations: 7.793 MB / 0.6072 GB, free: 56 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.474e-05/1.225, allocations: 48 kB / 0.6072 GB, free: 8 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001682/1.225, allocations: 100 kB / 0.6073 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003091/1.228, allocations: 0.8048 MB / 0.6081 GB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005344/1.233, allocations: 1.193 MB / 0.6093 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008191/1.242, allocations: 4.239 MB / 0.6134 GB, free: 9.535 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004664/1.246, allocations: 287.8 kB / 0.6137 GB, free: 9.254 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001081/1.247, allocations: 304 kB / 0.614 GB, free: 8.957 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 () * Number of clocked 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.005286/1.253, allocations: 2.046 MB / 0.616 GB, free: 6.898 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000623/1.253, allocations: 260.6 kB / 0.6162 GB, free: 6.641 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01132/1.265, allocations: 4.701 MB / 0.6208 GB, free: 1.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.913e-05/1.265, allocations: 51.92 kB / 0.6209 GB, free: 1.859 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/1.265, allocations: 11.89 kB / 0.6209 GB, free: 1.848 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-05/1.265, allocations: 8.344 kB / 0.6209 GB, free: 1.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2667/1.532, allocations: 10.59 MB / 0.6312 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.891e-05/1.532, allocations: 8.062 kB / 0.6312 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00214/1.534, allocations: 361.6 kB / 0.6316 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00263/1.536, allocations: 0.6596 MB / 0.6322 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004255/1.537, allocations: 44.91 kB / 0.6323 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006181/1.543, allocations: 3.687 MB / 0.6359 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.08e-05/1.543, allocations: 10.41 kB / 0.6359 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01362/1.557, allocations: 7.663 MB / 0.6434 GB, free: 106.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001777/1.559, allocations: 0.6413 MB / 0.644 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005591/1.559, allocations: 46.19 kB / 0.644 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001602/1.561, allocations: 130.4 kB / 0.6442 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003966/1.561, allocations: 137.4 kB / 0.6443 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002248/1.561, allocations: 61.69 kB / 0.6444 GB, free: 106.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003013/1.564, allocations: 1.626 MB / 0.6459 GB, free: 105.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.78e-07/1.565, allocations: 0 / 0.6459 GB, free: 105.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00562/1.57, allocations: 0.9467 MB / 0.6469 GB, free: 105.6 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 () * Number of clocked 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.0005802/1.571, allocations: 182.9 kB / 0.647 GB, free: 105.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009499/1.58, allocations: 5.329 MB / 0.6522 GB, free: 104 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.981e-06/1.58, allocations: 3.344 kB / 0.6523 GB, free: 104 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003734/1.584, allocations: 2.02 MB / 0.6542 GB, free: 103.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/1.586, allocations: 309.7 kB / 0.6545 GB, free: 103.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02069/1.607, allocations: 11.72 MB / 0.666 GB, free: 97.24 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005998/1.613, allocations: 3.315 MB / 0.6692 GB, free: 95.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001338/1.614, allocations: 249.9 kB / 0.6694 GB, free: 95.97 MB / 426.7 MB Notification: Performance of SimCode: time 2.045e-06/1.614, allocations: 2 kB / 0.6694 GB, free: 95.97 MB / 426.7 MB Notification: Performance of Templates: time 0.1348/1.749, allocations: 68.35 MB / 0.7362 GB, free: 38.3 MB / 426.7 MB