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.SphericalDoublePendulum.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.SphericalDoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Spherical1.phi.1.|Spherical1.phi.2.|Spherical1.phi.3.|Spherical1.phi_d.1.|Spherical1.phi_d.2.|Spherical1.phi_d.3.|Spherical2.phi.1.|Spherical2.phi.2.|Spherical2.phi.3.|Spherical2.phi_d.1.|Spherical2.phi_d.2.|Spherical2.phi_d.3.|Spherical3.Q.1.|Spherical3.Q.2.|Spherical3.Q.3.|Spherical3.Q.4.|Spherical3.w_rel.1.|Spherical3.w_rel.2.|Spherical3.w_rel.3.|Spherical4.Q.1.|Spherical4.Q.2.|Spherical4.Q.3.|Spherical4.Q.4.|Spherical4.w_rel.1.|Spherical4.w_rel.2.|Spherical4.w_rel.3.|boxBody5.body.Q.1.|boxBody5.body.Q.2.|boxBody5.body.Q.3.|boxBody5.body.Q.4.|boxBody5.body.w_a.1.|boxBody5.body.w_a.2.|boxBody5.body.w_a.3.|boxBody6.body.Q.1.|boxBody6.body.Q.2.|boxBody6.body.Q.3.|boxBody6.body.Q.4.|boxBody6.body.w_a.1.|boxBody6.body.w_a.2.|boxBody6.body.w_a.3.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadModel(ModelicaTest): time 2.333/2.333, allocations: 234.9 MB / 250.5 MB, free: 9.453 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004323/0.0004325, allocations: 16 kB / 314.4 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2803, allocations: 54.86 MB / 369.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1466/0.4269, allocations: 95.4 MB / 464.7 MB, free: 11.14 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.4272, allocations: 75.91 kB / 464.7 MB, free: 11.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.832/1.259, allocations: 171.8 MB / 0.6216 GB, free: 11.67 MB / 458.7 MB Notification: Performance of FrontEnd: time 7.084e-06/1.259, allocations: 0 / 0.6216 GB, free: 11.67 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007252/1.26, allocations: 179.9 kB / 0.6218 GB, free: 11.5 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: 2554 * Number of variables: 2554 Notification: Performance of Generate backend data structure: time 0.05235/1.312, allocations: 11.21 MB / 0.6327 GB, free: 196 kB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/1.312, allocations: 16.03 kB / 0.6327 GB, free: 180 kB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.676/1.988, allocations: 21.88 MB / 0.6541 GB, free: 55.6 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05382/2.042, allocations: 19.96 MB / 0.6736 GB, free: 54.93 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006261/2.043, allocations: 0.5567 MB / 0.6741 GB, free: 54.92 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003309/2.046, allocations: 0.7753 MB / 0.6749 GB, free: 54.9 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04747/2.094, allocations: 19.28 MB / 0.6937 GB, free: 50.13 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005527/2.094, allocations: 138.5 kB / 0.6938 GB, free: 50.12 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002672/2.097, allocations: 367.3 kB / 0.6942 GB, free: 50.11 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003086/2.1, allocations: 1.635 MB / 0.6958 GB, free: 50.1 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04116/2.141, allocations: 16.12 MB / 0.7115 GB, free: 47.95 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.122/2.263, allocations: 90.07 MB / 0.7995 GB, free: 112 kB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0344/2.298, allocations: 8.838 MB / 0.8081 GB, free: 9.062 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001758/2.3, allocations: 1.006 MB / 0.8091 GB, free: 7.906 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.523e-05/2.3, allocations: 68.56 kB / 0.8092 GB, free: 7.828 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=322): time 9.083e-06/2.3, allocations: 3.656 kB / 0.8092 GB, free: 7.828 MB / 0.4949 GB Notification: Performance of matching and sorting (n=397): time 0.5662/2.866, allocations: 67.17 MB / 0.8748 GB, free: 88.69 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003835/2.87, allocations: 5.182 MB / 0.8798 GB, free: 84.02 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01679/2.887, allocations: 7.55 MB / 0.8872 GB, free: 83.43 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.00112/2.888, allocations: 90.34 kB / 0.8873 GB, free: 83.4 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004756/2.893, allocations: 5.719 MB / 0.8929 GB, free: 80.66 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002395/2.895, allocations: 1.538 MB / 0.8944 GB, free: 79.78 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001575/2.897, allocations: 217.3 kB / 0.8946 GB, free: 79.78 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0009337/2.898, allocations: 0.7855 MB / 0.8953 GB, free: 79.45 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01177/2.91, allocations: 5.724 MB / 0.9009 GB, free: 78.61 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01529/2.925, allocations: 12.01 MB / 0.9127 GB, free: 68.28 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01525/2.94, allocations: 8.035 MB / 0.9205 GB, free: 65.32 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002085/2.94, allocations: 61.78 kB / 0.9206 GB, free: 65.32 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.099/3.039, allocations: 35.83 MB / 0.9556 GB, free: 42.89 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001708/3.04, allocations: 96.94 kB / 0.9557 GB, free: 42.79 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0688/3.108, allocations: 23.99 MB / 0.9791 GB, free: 19.54 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06455/3.173, allocations: 18.41 MB / 0.9971 GB, free: 1.062 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01187/3.185, allocations: 2.721 MB / 0.9997 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3874/3.572, allocations: 41.04 MB / 1.04 GB, free: 85.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01515/3.588, allocations: 1.147 MB / 1.041 GB, free: 85.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002665/3.59, allocations: 0.6672 MB / 1.042 GB, free: 85.93 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 996 * Number of states: 0 () * Number of discrete variables: 63 (Spherical6.sphereColor[3],Spherical6.sphereColor[2],Spherical6.sphereColor[1],Spherical5.sphereColor[3],Spherical5.sphereColor[2],Spherical5.sphereColor[1],boxBody6.color[3],boxBody6.color[2],boxBody6.color[1],boxBody6.body.sphereColor[3],boxBody6.body.sphereColor[2],boxBody6.body.sphereColor[1],boxBody5.color[3],boxBody5.color[2],boxBody5.color[1],boxBody5.body.sphereColor[3],boxBody5.body.sphereColor[2],boxBody5.body.sphereColor[1],Spherical4.sphereColor[3],Spherical4.sphereColor[2],Spherical4.sphereColor[1],Spherical3.sphereColor[3],Spherical3.sphereColor[2],Spherical3.sphereColor[1],boxBody4.color[3],boxBody4.color[2],boxBody4.color[1],boxBody4.body.sphereColor[3],boxBody4.body.sphereColor[2],boxBody4.body.sphereColor[1],boxBody3.color[3],boxBody3.color[2],boxBody3.color[1],boxBody3.body.sphereColor[3],boxBody3.body.sphereColor[2],boxBody3.body.sphereColor[1],Spherical2.sphereColor[3],Spherical2.sphereColor[2],Spherical2.sphereColor[1],Spherical1.sphereColor[3],Spherical1.sphereColor[2],Spherical1.sphereColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1304): * Single equations (assignments): 1280 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,59.4%) 13,(8,59.4%) 13} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.01072/3.601, allocations: 3.968 MB / 1.045 GB, free: 85.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002108/3.603, allocations: 0.7822 MB / 1.046 GB, free: 85.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0517/3.655, allocations: 13.73 MB / 1.06 GB, free: 84.36 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05976/3.715, allocations: 12.25 MB / 1.072 GB, free: 80.55 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001169/3.715, allocations: 19.8 kB / 1.072 GB, free: 80.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001304/3.715, allocations: 18.38 kB / 1.072 GB, free: 80.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09905/3.814, allocations: 29.29 MB / 1.1 GB, free: 70.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.351e-05/3.814, allocations: 3.156 kB / 1.1 GB, free: 70.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005969/3.82, allocations: 0.8964 MB / 1.101 GB, free: 70.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02491/3.845, allocations: 5.522 MB / 1.106 GB, free: 69.45 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001183/3.846, allocations: 109.5 kB / 1.107 GB, free: 69.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04783/3.894, allocations: 29.21 MB / 1.135 GB, free: 49.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003491/3.898, allocations: 4.732 MB / 1.14 GB, free: 44.42 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04528/3.943, allocations: 20.52 MB / 1.16 GB, free: 26.23 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00275/3.946, allocations: 0.8346 MB / 1.161 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002862/3.949, allocations: 90.81 kB / 1.161 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007431/3.956, allocations: 0.507 MB / 1.161 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001792/3.958, allocations: 301 kB / 1.161 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008923/3.959, allocations: 120.9 kB / 1.162 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01283/3.972, allocations: 5.407 MB / 1.167 GB, free: 19.01 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.244e-06/3.972, allocations: 0 / 1.167 GB, free: 19.01 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01525/3.987, allocations: 2.791 MB / 1.17 GB, free: 16.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[6],$STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],Spherical1.phi[1],Spherical1.phi[2],Spherical1.phi[3],Spherical1.phi_d[1],Spherical1.phi_d[2],Spherical1.phi_d[3],Spherical2.phi[1],Spherical2.phi[2],Spherical2.phi[3],Spherical2.phi_d[1],Spherical2.phi_d[2],Spherical2.phi_d[3],Spherical3.w_rel[1],Spherical3.w_rel[2],Spherical3.w_rel[3],Spherical4.w_rel[1],Spherical4.w_rel[2],Spherical4.w_rel[3],boxBody5.body.w_a[1],boxBody5.body.w_a[2],boxBody5.body.w_a[3],boxBody6.body.w_a[1],boxBody6.body.w_a[2],boxBody6.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 (296): * Single equations (assignments): 281 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {8,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,54.7%) 13,(8,54.7%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001352/3.989, allocations: 253.5 kB / 1.17 GB, free: 16.03 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical2.phi_d[1] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical2.phi_d[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical1.phi_d[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical1.phi_d[1] has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.0359/4.024, allocations: 15.98 MB / 1.185 GB, free: 0.4922 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.573e-06/4.025, allocations: 0 / 1.185 GB, free: 0.4922 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.3429/4.367, allocations: 7.43 MB / 1.193 GB, free: 113.1 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008366/4.376, allocations: 1.222 MB / 1.194 GB, free: 113 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05691/4.433, allocations: 28.08 MB / 1.221 GB, free: 103.8 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01344/4.446, allocations: 6.33 MB / 1.227 GB, free: 102.8 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003412/4.45, allocations: 0.6066 MB / 1.228 GB, free: 102.8 MB / 0.5262 GB Notification: Performance of SimCode: time 2.178e-06/4.45, allocations: 4 kB / 1.228 GB, free: 102.8 MB / 0.5262 GB Notification: Performance of Templates: time 1.7/6.15, allocations: 0.567 GB / 1.795 GB, free: 141.6 MB / 0.5574 GB