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.Spherical.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.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadModel(ModelicaTest): time 1.968/1.968, allocations: 209.3 MB / 224.9 MB, free: 276 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004627/0.0004628, allocations: 12 kB / 282.6 MB, free: 9.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2863, allocations: 48.7 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1332/0.4195, allocations: 88.59 MB / 419.9 MB, free: 5.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.4198, allocations: 71.97 kB / 419.9 MB, free: 5.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5785/0.9984, allocations: 82.6 MB / 0.4908 GB, free: 92.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.17e-06/0.9984, allocations: 3.141 kB / 0.4908 GB, free: 92.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002729/0.9987, allocations: 68.72 kB / 0.4908 GB, free: 92.82 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: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.03049/1.029, allocations: 4.003 MB / 0.4947 GB, free: 91.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.116e-05/1.029, allocations: 9.938 kB / 0.4947 GB, free: 91.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04807/1.077, allocations: 5.873 MB / 0.5005 GB, free: 90.8 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01549/1.093, allocations: 5.317 MB / 0.5057 GB, free: 88.24 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003278/1.093, allocations: 279.4 kB / 0.5059 GB, free: 88.14 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00191/1.095, allocations: 369.6 kB / 0.5063 GB, free: 88.05 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02446/1.12, allocations: 10.42 MB / 0.5165 GB, free: 79.67 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001423/1.12, allocations: 31.66 kB / 0.5165 GB, free: 79.64 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0015/1.121, allocations: 168.5 kB / 0.5167 GB, free: 79.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001796/1.123, allocations: 1.148 MB / 0.5178 GB, free: 78.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02227/1.146, allocations: 10.1 MB / 0.5276 GB, free: 68.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05517/1.201, allocations: 37.32 MB / 0.5641 GB, free: 30.26 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01347/1.214, allocations: 5.607 MB / 0.5696 GB, free: 24.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001626/1.216, allocations: 1.877 MB / 0.5714 GB, free: 22.21 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/1.216, allocations: 52.55 kB / 0.5715 GB, free: 22.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=224): time 7.375e-06/1.216, allocations: 4 kB / 0.5715 GB, free: 22.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=231): time 0.04269/1.259, allocations: 15.5 MB / 0.5866 GB, free: 6.441 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001126/1.26, allocations: 1.531 MB / 0.5881 GB, free: 4.762 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004236/1.264, allocations: 2.488 MB / 0.5905 GB, free: 2.262 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004839/1.265, allocations: 53.7 kB / 0.5906 GB, free: 2.203 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001763/1.266, allocations: 2.664 MB / 0.5932 GB, free: 15.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00139/1.268, allocations: 0.8506 MB / 0.594 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005194/1.268, allocations: 100 kB / 0.5941 GB, free: 14.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005454/1.269, allocations: 0.5502 MB / 0.5946 GB, free: 14.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00582/1.275, allocations: 2.599 MB / 0.5972 GB, free: 11.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009012/1.284, allocations: 5.567 MB / 0.6026 GB, free: 4.398 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008078/1.292, allocations: 3.794 MB / 0.6063 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.653e-05/1.292, allocations: 32 kB / 0.6063 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.3222/1.614, allocations: 18.89 MB / 0.6248 GB, free: 107 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001205/1.614, allocations: 49.66 kB / 0.6248 GB, free: 107 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05275/1.667, allocations: 12.01 MB / 0.6366 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05514/1.722, allocations: 10.3 MB / 0.6466 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005344/1.728, allocations: 1.245 MB / 0.6478 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03525/1.763, allocations: 17.25 MB / 0.6647 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005626/1.769, allocations: 444.9 kB / 0.6651 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001171/1.77, allocations: 315.3 kB / 0.6654 GB, free: 102.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 474 * Number of states: 0 () * Number of discrete variables: 21 (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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (649): * Single equations (assignments): 638 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.004534/1.775, allocations: 2.023 MB / 0.6674 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005583/1.775, allocations: 269.6 kB / 0.6676 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01096/1.786, allocations: 5.101 MB / 0.6726 GB, free: 99.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01006/1.796, allocations: 4.393 MB / 0.6769 GB, free: 97.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/1.796, allocations: 3.656 kB / 0.6769 GB, free: 97.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-05/1.796, allocations: 7.969 kB / 0.6769 GB, free: 97.28 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02559/1.822, allocations: 12.97 MB / 0.6896 GB, free: 84.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.391e-05/1.822, allocations: 8 kB / 0.6896 GB, free: 84.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002221/1.824, allocations: 408.4 kB / 0.69 GB, free: 84.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003537/1.828, allocations: 0.9372 MB / 0.6909 GB, free: 83.45 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004628/1.828, allocations: 48.59 kB / 0.6909 GB, free: 83.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007436/1.836, allocations: 5.558 MB / 0.6964 GB, free: 77.65 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001007/1.837, allocations: 1.481 MB / 0.6978 GB, free: 76.06 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01355/1.85, allocations: 8.334 MB / 0.706 GB, free: 67.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000743/1.851, allocations: 332.6 kB / 0.7063 GB, free: 67.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005742/1.852, allocations: 48.03 kB / 0.7063 GB, free: 67.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001812/1.854, allocations: 199.7 kB / 0.7065 GB, free: 67.12 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000402/1.854, allocations: 145.3 kB / 0.7066 GB, free: 66.99 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002348/1.854, allocations: 67.97 kB / 0.7067 GB, free: 66.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002765/1.857, allocations: 1.697 MB / 0.7084 GB, free: 65.22 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.6e-07/1.857, allocations: 4 kB / 0.7084 GB, free: 65.22 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005823/1.863, allocations: 1.097 MB / 0.7094 GB, free: 64.13 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005383/1.863, allocations: 189.1 kB / 0.7096 GB, free: 63.98 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01246/1.876, allocations: 6.549 MB / 0.716 GB, free: 57.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/1.876, allocations: 0 / 0.716 GB, free: 57.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004443/1.88, allocations: 2.529 MB / 0.7185 GB, free: 55.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002038/1.882, allocations: 348.9 kB / 0.7188 GB, free: 54.74 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02042/1.903, allocations: 12.15 MB / 0.7307 GB, free: 42.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004292/1.907, allocations: 3.246 MB / 0.7339 GB, free: 39.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001417/1.909, allocations: 255.4 kB / 0.7341 GB, free: 39.09 MB / 426.7 MB Notification: Performance of SimCode: time 1.62e-06/1.909, allocations: 0 / 0.7341 GB, free: 39.09 MB / 426.7 MB Notification: Performance of Templates: time 0.3946/2.303, allocations: 106.6 MB / 0.8382 GB, free: 96.11 MB / 442.7 MB