Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.632/2.632, allocations: 234.9 MB / 251.1 MB, free: 9.781 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006287/0.0006289, allocations: 16 kB / 314.9 MB, free: 9.828 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3711/0.3718, allocations: 54.86 MB / 369.8 MB, free: 12.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1924/0.5643, allocations: 95.31 MB / 465.1 MB, free: 13.36 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/0.5646, allocations: 87.89 kB / 465.2 MB, free: 13.28 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6764/1.241, allocations: 83.15 MB / 0.5355 GB, free: 99.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.875e-06/1.241, allocations: 0 / 0.5355 GB, free: 99.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002073/1.241, allocations: 67.5 kB / 0.5356 GB, free: 99.06 MB / 426.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.02685/1.268, allocations: 4.001 MB / 0.5395 GB, free: 95.03 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/1.268, allocations: 8.031 kB / 0.5395 GB, free: 95.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04588/1.314, allocations: 5.869 MB / 0.5452 GB, free: 89.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01948/1.334, allocations: 5.326 MB / 0.5504 GB, free: 83.83 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003207/1.334, allocations: 281.5 kB / 0.5507 GB, free: 83.59 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002548/1.337, allocations: 369.2 kB / 0.551 GB, free: 83.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03018/1.367, allocations: 10.45 MB / 0.5612 GB, free: 72.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001703/1.367, allocations: 31.66 kB / 0.5613 GB, free: 72.37 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001605/1.369, allocations: 174.3 kB / 0.5614 GB, free: 72.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002075/1.371, allocations: 1.147 MB / 0.5625 GB, free: 71.09 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02793/1.399, allocations: 10.1 MB / 0.5724 GB, free: 60.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06981/1.469, allocations: 37.33 MB / 0.6089 GB, free: 22.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0176/1.486, allocations: 5.577 MB / 0.6143 GB, free: 16.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002103/1.488, allocations: 1.876 MB / 0.6161 GB, free: 14.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.858e-05/1.488, allocations: 56.55 kB / 0.6162 GB, free: 14.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=224): time 6.232e-06/1.489, allocations: 0 / 0.6162 GB, free: 14.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.05608/1.545, allocations: 15.49 MB / 0.6313 GB, free: 14.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001785/1.546, allocations: 1.531 MB / 0.6328 GB, free: 13.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005948/1.552, allocations: 2.782 MB / 0.6355 GB, free: 10.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006188/1.553, allocations: 53.7 kB / 0.6356 GB, free: 10.45 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002921/1.556, allocations: 2.672 MB / 0.6382 GB, free: 7.734 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001605/1.558, allocations: 0.8442 MB / 0.639 GB, free: 6.879 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007437/1.558, allocations: 112 kB / 0.6391 GB, free: 6.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005453/1.559, allocations: 0.5423 MB / 0.6397 GB, free: 6.219 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007499/1.567, allocations: 2.603 MB / 0.6422 GB, free: 3.605 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01077/1.577, allocations: 5.59 MB / 0.6477 GB, free: 12.55 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009709/1.587, allocations: 3.794 MB / 0.6514 GB, free: 8.746 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001356/1.587, allocations: 32 kB / 0.6514 GB, free: 8.715 MB / 458.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.1241/1.711, allocations: 18.89 MB / 0.6698 GB, free: 5.797 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001102/1.712, allocations: 50.5 kB / 0.6699 GB, free: 5.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4393/2.151, allocations: 12 MB / 0.6816 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0903/2.241, allocations: 10.3 MB / 0.6917 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007564/2.249, allocations: 1.243 MB / 0.6929 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04758/2.296, allocations: 17.25 MB / 0.7097 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006565/2.303, allocations: 450.3 kB / 0.7102 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001194/2.304, allocations: 316.8 kB / 0.7105 GB, free: 125.3 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 () * 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.005435/2.31, allocations: 2.013 MB / 0.7124 GB, free: 124.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006595/2.31, allocations: 268.8 kB / 0.7127 GB, free: 124.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01429/2.325, allocations: 5.102 MB / 0.7177 GB, free: 123 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01321/2.338, allocations: 4.386 MB / 0.7219 GB, free: 121.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.212e-05/2.338, allocations: 6.625 kB / 0.722 GB, free: 121.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-05/2.338, allocations: 11.58 kB / 0.722 GB, free: 121.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07536/2.413, allocations: 12.96 MB / 0.7346 GB, free: 109 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.155e-05/2.414, allocations: 8 kB / 0.7346 GB, free: 109 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00478/2.418, allocations: 406.5 kB / 0.735 GB, free: 108.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007278/2.426, allocations: 0.9416 MB / 0.7359 GB, free: 107.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007477/2.427, allocations: 54.86 kB / 0.736 GB, free: 107.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01169/2.438, allocations: 5.549 MB / 0.7414 GB, free: 101.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001179/2.439, allocations: 1.475 MB / 0.7428 GB, free: 100.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01852/2.458, allocations: 7.7 MB / 0.7504 GB, free: 92.67 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009062/2.459, allocations: 333.9 kB / 0.7507 GB, free: 92.41 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009949/2.46, allocations: 43.02 kB / 0.7507 GB, free: 92.37 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002883/2.463, allocations: 199.7 kB / 0.7509 GB, free: 92.18 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005497/2.463, allocations: 143.7 kB / 0.7511 GB, free: 92.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002506/2.464, allocations: 67.98 kB / 0.7511 GB, free: 91.98 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003585/2.467, allocations: 1.701 MB / 0.7528 GB, free: 90.27 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.51e-07/2.467, allocations: 0 / 0.7528 GB, free: 90.27 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006624/2.474, allocations: 1.103 MB / 0.7539 GB, free: 89.18 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 () * 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.0008713/2.475, allocations: 192.6 kB / 0.754 GB, free: 89.02 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01669/2.492, allocations: 6.55 MB / 0.7604 GB, free: 82.51 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.558e-05/2.492, allocations: 0 / 0.7604 GB, free: 82.51 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006113/2.498, allocations: 2.526 MB / 0.7629 GB, free: 79.95 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002737/2.501, allocations: 347.8 kB / 0.7632 GB, free: 79.62 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03349/2.534, allocations: 12.18 MB / 0.7751 GB, free: 67.55 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01008/2.544, allocations: 3.247 MB / 0.7783 GB, free: 64.28 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002657/2.547, allocations: 255.4 kB / 0.7785 GB, free: 64.03 MB / 474.7 MB Notification: Performance of SimCode: time 1.462e-06/2.547, allocations: 8 kB / 0.7785 GB, free: 64.02 MB / 474.7 MB Notification: Performance of Templates: time 0.6013/3.148, allocations: 106.6 MB / 0.8826 GB, free: 138 MB / 490.7 MB