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.Revolute.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.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 2.153/2.153, allocations: 209.2 MB / 225.4 MB, free: 1.551 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007074/0.0007076, allocations: 15.98 kB / 283.1 MB, free: 9.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1466, allocations: 48.7 MB / 331.8 MB, free: 9.027 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5073/0.654, allocations: 89.22 MB / 421 MB, free: 12.01 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/0.6544, allocations: 75.97 kB / 421.1 MB, free: 11.94 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6483/1.303, allocations: 86 MB / 0.4952 GB, free: 92.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.506e-06/1.303, allocations: 0 / 0.4952 GB, free: 92.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000211/1.303, allocations: 74.91 kB / 0.4953 GB, free: 92.65 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: 1567 * Number of variables: 1567 Notification: Performance of Generate backend data structure: time 0.01594/1.319, allocations: 3.782 MB / 0.499 GB, free: 90.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/1.319, allocations: 7.875 kB / 0.499 GB, free: 90.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02669/1.346, allocations: 3.513 MB / 0.5024 GB, free: 90.63 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01832/1.364, allocations: 4.167 MB / 0.5065 GB, free: 90.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006756/1.365, allocations: 299.3 kB / 0.5068 GB, free: 90.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003796/1.369, allocations: 392.2 kB / 0.5071 GB, free: 90.13 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03741/1.406, allocations: 10.32 MB / 0.5172 GB, free: 88.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003199/1.407, allocations: 26.41 kB / 0.5172 GB, free: 88.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003301/1.41, allocations: 176.8 kB / 0.5174 GB, free: 88.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003146/1.413, allocations: 1.213 MB / 0.5186 GB, free: 88.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0284/1.442, allocations: 10 MB / 0.5284 GB, free: 86.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07401/1.516, allocations: 35.47 MB / 0.563 GB, free: 64.94 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01464/1.53, allocations: 4.961 MB / 0.5679 GB, free: 60.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002361/1.533, allocations: 1.878 MB / 0.5697 GB, free: 58.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.246e-05/1.533, allocations: 52.56 kB / 0.5697 GB, free: 58.28 MB / 410.7 MB Notification: Performance of pre-optimization done (n=229): time 7.344e-06/1.533, allocations: 3.938 kB / 0.5697 GB, free: 58.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=235): time 0.05616/1.589, allocations: 14.56 MB / 0.584 GB, free: 45.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/1.589, allocations: 77.36 kB / 0.584 GB, free: 45.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005388/1.595, allocations: 2.652 MB / 0.5866 GB, free: 42.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006084/1.595, allocations: 61.06 kB / 0.5867 GB, free: 42.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001942/1.597, allocations: 2.687 MB / 0.5893 GB, free: 39.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001188/1.598, allocations: 0.8526 MB / 0.5901 GB, free: 38.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006126/1.599, allocations: 100 kB / 0.5902 GB, free: 38.89 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004178/1.6, allocations: 0.5418 MB / 0.5908 GB, free: 38.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005149/1.605, allocations: 2.185 MB / 0.5929 GB, free: 36.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007182/1.612, allocations: 5.073 MB / 0.5978 GB, free: 29.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007167/1.619, allocations: 3.327 MB / 0.6011 GB, free: 26.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.94e-05/1.619, allocations: 28 kB / 0.6011 GB, free: 26.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.02054/1.64, allocations: 7.79 MB / 0.6087 GB, free: 18.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.984e-05/1.64, allocations: 48 kB / 0.6088 GB, free: 18.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001219/1.64, allocations: 100 kB / 0.6089 GB, free: 18.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003945/1.644, allocations: 0.801 MB / 0.6097 GB, free: 17.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00735/1.651, allocations: 1.193 MB / 0.6108 GB, free: 16.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008813/1.66, allocations: 4.235 MB / 0.615 GB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00529/1.666, allocations: 295.7 kB / 0.6152 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001271/1.667, allocations: 310.8 kB / 0.6155 GB, free: 11.38 MB / 410.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.005819/1.673, allocations: 2.045 MB / 0.6175 GB, free: 9.324 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000652/1.674, allocations: 260.6 kB / 0.6178 GB, free: 9.066 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01314/1.687, allocations: 4.698 MB / 0.6224 GB, free: 4.34 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001437/1.687, allocations: 47.98 kB / 0.6224 GB, free: 4.293 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/1.687, allocations: 7.953 kB / 0.6224 GB, free: 4.285 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.125e-05/1.687, allocations: 7.969 kB / 0.6224 GB, free: 4.277 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03209/1.719, allocations: 10.61 MB / 0.6328 GB, free: 9.559 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.012e-05/1.719, allocations: 12.86 kB / 0.6328 GB, free: 9.547 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003298/1.722, allocations: 355.5 kB / 0.6331 GB, free: 9.199 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003881/1.726, allocations: 0.663 MB / 0.6338 GB, free: 8.535 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005743/1.727, allocations: 40 kB / 0.6338 GB, free: 8.496 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008575/1.736, allocations: 3.677 MB / 0.6374 GB, free: 4.684 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.207e-05/1.736, allocations: 16 kB / 0.6374 GB, free: 4.668 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3083/2.044, allocations: 7.092 MB / 0.6444 GB, free: 96.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002466/2.047, allocations: 0.6473 MB / 0.645 GB, free: 95.95 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001209/2.048, allocations: 41.38 kB / 0.645 GB, free: 95.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00284/2.051, allocations: 134 kB / 0.6452 GB, free: 95.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008113/2.052, allocations: 138.2 kB / 0.6453 GB, free: 95.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002963/2.052, allocations: 66.25 kB / 0.6454 GB, free: 95.95 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004875/2.057, allocations: 1.614 MB / 0.6469 GB, free: 95.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.21e-07/2.057, allocations: 0 / 0.6469 GB, free: 95.81 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00728/2.064, allocations: 0.9447 MB / 0.6479 GB, free: 95.81 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.0009858/2.065, allocations: 184.1 kB / 0.648 GB, free: 95.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01372/2.079, allocations: 5.332 MB / 0.6532 GB, free: 95.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.309e-05/2.079, allocations: 1.438 kB / 0.6532 GB, free: 95.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005164/2.084, allocations: 2.013 MB / 0.6552 GB, free: 95.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00278/2.087, allocations: 312.5 kB / 0.6555 GB, free: 95.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02759/2.115, allocations: 11.76 MB / 0.667 GB, free: 91.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007737/2.122, allocations: 3.312 MB / 0.6702 GB, free: 90.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001837/2.124, allocations: 252.1 kB / 0.6705 GB, free: 90.36 MB / 426.7 MB Notification: Performance of SimCode: time 1.032e-06/2.124, allocations: 0 / 0.6705 GB, free: 90.36 MB / 426.7 MB Notification: Performance of Templates: time 0.1278/2.252, allocations: 68.35 MB / 0.7372 GB, free: 55.29 MB / 426.7 MB