Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Spherical.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadModel(ModelicaTest): time 2.217/2.217, allocations: 235 MB / 248.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.836e-05/2.848e-05, allocations: 7.984 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.317, allocations: 54.86 MB / 364.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1431/0.4602, allocations: 95.24 MB / 459.8 MB, free: 1.227 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.4605, allocations: 71.97 kB / 459.8 MB, free: 1.156 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5771/1.038, allocations: 82.7 MB / 0.5298 GB, free: 111.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.44e-06/1.038, allocations: 0 / 0.5298 GB, free: 111.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001812/1.038, allocations: 65.77 kB / 0.5299 GB, free: 111.1 MB / 458.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.01591/1.054, allocations: 3.85 MB / 0.5337 GB, free: 110.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/1.054, allocations: 10.42 kB / 0.5337 GB, free: 110.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02837/1.082, allocations: 5.882 MB / 0.5394 GB, free: 109.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01688/1.099, allocations: 5.295 MB / 0.5446 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004252/1.1, allocations: 282.8 kB / 0.5448 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002081/1.102, allocations: 366.4 kB / 0.5452 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02607/1.128, allocations: 10.34 MB / 0.5553 GB, free: 107.9 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001815/1.128, allocations: 30.25 kB / 0.5553 GB, free: 107.9 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001602/1.13, allocations: 172.4 kB / 0.5555 GB, free: 107.9 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001984/1.132, allocations: 1.146 MB / 0.5566 GB, free: 107.9 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0236/1.155, allocations: 9.974 MB / 0.5663 GB, free: 106.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05712/1.212, allocations: 37.33 MB / 0.6028 GB, free: 83.36 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01327/1.226, allocations: 5.572 MB / 0.6082 GB, free: 78.36 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003595/1.229, allocations: 2.312 MB / 0.6105 GB, free: 76.25 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001618/1.231, allocations: 1.879 MB / 0.6123 GB, free: 74.17 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/1.231, allocations: 48.56 kB / 0.6124 GB, free: 74.11 MB / 458.7 MB Notification: Performance of pre-optimization done (n=224): time 8.158e-06/1.231, allocations: 0 / 0.6124 GB, free: 74.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=231): time 0.03622/1.267, allocations: 12.41 MB / 0.6245 GB, free: 63.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00108/1.268, allocations: 1.513 MB / 0.626 GB, free: 62.19 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004092/1.273, allocations: 2.472 MB / 0.6284 GB, free: 59.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004396/1.273, allocations: 61.61 kB / 0.6285 GB, free: 59.64 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001466/1.275, allocations: 2.667 MB / 0.6311 GB, free: 56.97 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009245/1.276, allocations: 0.8512 MB / 0.6319 GB, free: 56.13 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004113/1.276, allocations: 104 kB / 0.632 GB, free: 56.03 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003398/1.276, allocations: 0.5423 MB / 0.6325 GB, free: 55.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00457/1.281, allocations: 2.553 MB / 0.635 GB, free: 52.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00617/1.287, allocations: 5.52 MB / 0.6404 GB, free: 45.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006385/1.294, allocations: 3.777 MB / 0.6441 GB, free: 42.15 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.569e-05/1.294, allocations: 32 kB / 0.6441 GB, free: 42.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.06986/1.363, allocations: 18.79 MB / 0.6625 GB, free: 23.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.003e-05/1.364, allocations: 48 kB / 0.6625 GB, free: 23.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04858/1.412, allocations: 11.97 MB / 0.6742 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05346/1.466, allocations: 10.3 MB / 0.6843 GB, free: 0.9219 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005268/1.471, allocations: 1.244 MB / 0.6855 GB, free: 15.68 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2998/1.771, allocations: 15.86 MB / 0.701 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005613/1.777, allocations: 440.1 kB / 0.7014 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001235/1.778, allocations: 320.3 kB / 0.7017 GB, free: 112.9 MB / 474.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 () * 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.001285/1.779, allocations: 492.8 kB / 0.7022 GB, free: 112.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006062/1.78, allocations: 275 kB / 0.7024 GB, free: 112.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01219/1.792, allocations: 5.066 MB / 0.7074 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01061/1.803, allocations: 4.355 MB / 0.7116 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.817e-05/1.803, allocations: 2.594 kB / 0.7116 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.406e-05/1.803, allocations: 11.77 kB / 0.7116 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0287/1.831, allocations: 12.95 MB / 0.7243 GB, free: 111.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.964e-05/1.832, allocations: 7.062 kB / 0.7243 GB, free: 111.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00265/1.834, allocations: 407.7 kB / 0.7247 GB, free: 111.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003939/1.838, allocations: 0.93 MB / 0.7256 GB, free: 111.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00047/1.839, allocations: 50.97 kB / 0.7256 GB, free: 111.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007465/1.846, allocations: 5.431 MB / 0.7309 GB, free: 108.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009937/1.847, allocations: 1.459 MB / 0.7324 GB, free: 107.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01457/1.862, allocations: 8.287 MB / 0.7405 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000817/1.863, allocations: 330.1 kB / 0.7408 GB, free: 103.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007136/1.863, allocations: 45.92 kB / 0.7408 GB, free: 103.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002121/1.866, allocations: 201.6 kB / 0.741 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004658/1.866, allocations: 143.4 kB / 0.7411 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002353/1.866, allocations: 65.84 kB / 0.7412 GB, free: 103.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002919/1.869, allocations: 1.68 MB / 0.7428 GB, free: 103 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.247e-06/1.869, allocations: 0 / 0.7428 GB, free: 103 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005606/1.875, allocations: 1.1 MB / 0.7439 GB, free: 102.9 MB / 474.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 () * 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.0005122/1.875, allocations: 187.7 kB / 0.7441 GB, free: 102.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01225/1.888, allocations: 6.471 MB / 0.7504 GB, free: 100.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.752e-06/1.888, allocations: 3.312 kB / 0.7504 GB, free: 100.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004679/1.892, allocations: 2.503 MB / 0.7529 GB, free: 99.83 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/1.895, allocations: 341.6 kB / 0.7532 GB, free: 99.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01954/1.914, allocations: 8.996 MB / 0.762 GB, free: 96.37 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005509/1.92, allocations: 3.244 MB / 0.7651 GB, free: 95.14 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/1.921, allocations: 259.3 kB / 0.7654 GB, free: 95.12 MB / 474.7 MB Notification: Performance of SimCode: time 1.992e-06/1.921, allocations: 0 / 0.7654 GB, free: 95.12 MB / 474.7 MB Notification: Performance of Templates: time 0.1287/2.05, allocations: 106.5 MB / 0.8694 GB, free: 12.88 MB / 490.7 MB