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.SphericalDoublePendulum.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadModel(ModelicaTest): time 1.899/1.899, allocations: 209.4 MB / 217.3 MB, free: 4.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.537e-05/1.543e-05, allocations: 0 / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.287, allocations: 48.7 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.4206, allocations: 87.88 MB / 407.9 MB, free: 8.543 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.4209, allocations: 67.97 kB / 408 MB, free: 8.477 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7909/1.212, allocations: 168.6 MB / 0.5631 GB, free: 11.54 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.857e-06/1.212, allocations: 0 / 0.5631 GB, free: 11.54 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007034/1.213, allocations: 176 kB / 0.5632 GB, free: 11.37 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: 2554 * Number of variables: 2554 Notification: Performance of Generate backend data structure: time 0.04725/1.26, allocations: 10.02 MB / 0.573 GB, free: 1.266 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/1.26, allocations: 16.02 kB / 0.573 GB, free: 1.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3639/1.624, allocations: 21.88 MB / 0.5944 GB, free: 54.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05472/1.679, allocations: 19.84 MB / 0.6138 GB, free: 53.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004075/1.679, allocations: 241.3 kB / 0.614 GB, free: 53.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003159/1.682, allocations: 480.7 kB / 0.6145 GB, free: 53.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02286/1.705, allocations: 10.38 MB / 0.6246 GB, free: 53.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03504/1.74, allocations: 16.22 MB / 0.6405 GB, free: 48.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006824/1.741, allocations: 134.5 kB / 0.6406 GB, free: 48.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002791/1.744, allocations: 52.47 kB / 0.6406 GB, free: 48.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003164/1.747, allocations: 1.643 MB / 0.6422 GB, free: 48.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1248/1.872, allocations: 88.02 MB / 0.7282 GB, free: 14.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01121/1.883, allocations: 6.062 MB / 0.7341 GB, free: 8.301 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008568/1.892, allocations: 4.706 MB / 0.7387 GB, free: 3.934 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00175/1.893, allocations: 1.008 MB / 0.7397 GB, free: 2.852 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.617e-05/1.894, allocations: 83.45 kB / 0.7398 GB, free: 2.766 MB / 442.7 MB Notification: Performance of pre-optimization done (n=322): time 8.147e-06/1.894, allocations: 0 / 0.7398 GB, free: 2.766 MB / 442.7 MB Notification: Performance of matching and sorting (n=396): time 0.5466/2.44, allocations: 55.36 MB / 0.7938 GB, free: 93.31 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/2.44, allocations: 487.3 kB / 0.7943 GB, free: 92.77 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01591/2.456, allocations: 6.752 MB / 0.8009 GB, free: 92.19 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001153/2.457, allocations: 25.7 kB / 0.8009 GB, free: 92.16 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004923/2.462, allocations: 5.774 MB / 0.8066 GB, free: 89.09 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002682/2.465, allocations: 1.503 MB / 0.808 GB, free: 88.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001783/2.467, allocations: 3.812 kB / 0.808 GB, free: 88.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001166/2.468, allocations: 0.7888 MB / 0.8088 GB, free: 87.87 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01095/2.479, allocations: 5.486 MB / 0.8142 GB, free: 87.84 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01443/2.494, allocations: 11.85 MB / 0.8257 GB, free: 79.01 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01465/2.508, allocations: 7.843 MB / 0.8334 GB, free: 76.51 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002073/2.509, allocations: 64.97 kB / 0.8335 GB, free: 76.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=1475) (initialization): time 0.1054/2.614, allocations: 34.3 MB / 0.8669 GB, free: 66.88 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001683/2.614, allocations: 103.5 kB / 0.867 GB, free: 66.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.07053/2.685, allocations: 23.68 MB / 0.8902 GB, free: 48.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07087/2.756, allocations: 18.3 MB / 0.908 GB, free: 29.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01132/2.767, allocations: 2.815 MB / 0.9108 GB, free: 27.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3982/3.165, allocations: 35.7 MB / 0.9457 GB, free: 75.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01498/3.18, allocations: 0.9462 MB / 0.9466 GB, free: 75.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003/3.183, allocations: 0.679 MB / 0.9472 GB, free: 75.84 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1020 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1333): * Single equations (assignments): 1309 * 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 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,54.7%) 13,(8,54.7%) 13,(8,59.4%) 13} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.003925/3.187, allocations: 0.6732 MB / 0.9479 GB, free: 75.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002144/3.189, allocations: 0.7608 MB / 0.9486 GB, free: 75.72 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03834/3.228, allocations: 13.45 MB / 0.9618 GB, free: 75.35 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03315/3.261, allocations: 12.02 MB / 0.9735 GB, free: 75.06 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.936e-05/3.261, allocations: 15.69 kB / 0.9735 GB, free: 75.06 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001064/3.261, allocations: 16.69 kB / 0.9735 GB, free: 75.06 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07183/3.333, allocations: 28.02 MB / 1.001 GB, free: 66.87 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-05/3.333, allocations: 3.844 kB / 1.001 GB, free: 66.87 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005698/3.339, allocations: 0.8939 MB / 1.002 GB, free: 66.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02384/3.363, allocations: 5.476 MB / 1.007 GB, free: 65.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001167/3.364, allocations: 52.98 kB / 1.007 GB, free: 65.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04516/3.409, allocations: 26.85 MB / 1.033 GB, free: 51.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003197/3.412, allocations: 4.497 MB / 1.038 GB, free: 46.84 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04228/3.455, allocations: 20.12 MB / 1.057 GB, free: 30.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002426/3.457, allocations: 0.7937 MB / 1.058 GB, free: 29.52 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002497/3.46, allocations: 27.55 kB / 1.058 GB, free: 29.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007083/3.467, allocations: 459.5 kB / 1.059 GB, free: 29.26 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001773/3.469, allocations: 297.2 kB / 1.059 GB, free: 28.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001082/3.47, allocations: 119.9 kB / 1.059 GB, free: 28.86 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01027/3.48, allocations: 4.671 MB / 1.064 GB, free: 24.21 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.162e-06/3.48, allocations: 3.969 kB / 1.064 GB, free: 24.21 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01436/3.494, allocations: 2.613 MB / 1.066 GB, free: 21.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 36 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (295): * Single equations (assignments): 280 * 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,59.4%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001183/3.496, allocations: 189 kB / 1.066 GB, free: 21.45 MB / 458.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical2.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical2.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical1.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical1.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.02883/3.525, allocations: 15.19 MB / 1.081 GB, free: 6.629 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.661e-06/3.525, allocations: 0 / 1.081 GB, free: 6.629 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01567/3.54, allocations: 7.281 MB / 1.088 GB, free: 15.25 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007625/3.548, allocations: 1.072 MB / 1.089 GB, free: 14.21 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3202/3.868, allocations: 21.27 MB / 1.11 GB, free: 95.91 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01409/3.882, allocations: 6.318 MB / 1.116 GB, free: 94.97 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003373/3.886, allocations: 0.5977 MB / 1.117 GB, free: 94.96 MB / 474.7 MB Notification: Performance of SimCode: time 2.451e-06/3.886, allocations: 0 / 1.117 GB, free: 94.96 MB / 474.7 MB Notification: Performance of Templates: time 1.627/5.513, allocations: 0.5632 GB / 1.68 GB, free: 116.6 MB / 0.4948 GB