Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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.427/2.427, allocations: 234.9 MB / 251.1 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005998/0.0005999, allocations: 12 kB / 314.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3565, allocations: 54.85 MB / 369.8 MB, free: 12.78 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1795/0.5361, allocations: 95.38 MB / 465.2 MB, free: 13.25 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.5365, allocations: 79.91 kB / 465.3 MB, free: 13.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.028/1.565, allocations: 174 MB / 0.6242 GB, free: 7.859 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.076e-06/1.565, allocations: 0 / 0.6242 GB, free: 7.859 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008527/1.566, allocations: 180 kB / 0.6244 GB, free: 7.684 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: 2554 * Number of variables: 2554 Notification: Performance of Generate backend data structure: time 0.07205/1.638, allocations: 11.21 MB / 0.6354 GB, free: 12.38 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/1.638, allocations: 8.031 kB / 0.6354 GB, free: 12.37 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1866/1.824, allocations: 21.9 MB / 0.6568 GB, free: 6.426 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07617/1.901, allocations: 19.95 MB / 0.6762 GB, free: 2.375 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008839/1.901, allocations: 0.5576 MB / 0.6768 GB, free: 1.816 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004545/1.906, allocations: 0.7844 MB / 0.6775 GB, free: 1.031 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4724/2.378, allocations: 19.33 MB / 0.6964 GB, free: 74.92 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009067/2.379, allocations: 135.2 kB / 0.6966 GB, free: 74.92 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004071/2.384, allocations: 364.8 kB / 0.6969 GB, free: 74.92 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006191/2.39, allocations: 1.641 MB / 0.6985 GB, free: 74.9 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05696/2.447, allocations: 16.12 MB / 0.7143 GB, free: 74.85 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1624/2.609, allocations: 90.07 MB / 0.8022 GB, free: 13.2 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05712/2.667, allocations: 8.776 MB / 0.8108 GB, free: 10.75 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001908/2.668, allocations: 1.001 MB / 0.8118 GB, free: 9.875 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.382e-05/2.669, allocations: 74.59 kB / 0.8118 GB, free: 9.805 MB / 474.7 MB Notification: Performance of pre-optimization done (n=322): time 7.594e-06/2.669, allocations: 0 / 0.8118 GB, free: 9.805 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.8628/3.531, allocations: 68.71 MB / 0.8789 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004837/3.536, allocations: 5.181 MB / 0.884 GB, free: 97.02 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02201/3.558, allocations: 8.536 MB / 0.8923 GB, free: 96.39 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001415/3.56, allocations: 89.62 kB / 0.8924 GB, free: 96.36 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005787/3.566, allocations: 5.712 MB / 0.898 GB, free: 93.59 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003118/3.569, allocations: 1.546 MB / 0.8995 GB, free: 92.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002546/3.571, allocations: 221.9 kB / 0.8997 GB, free: 92.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001355/3.573, allocations: 0.7801 MB / 0.9005 GB, free: 92.37 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01877/3.592, allocations: 5.724 MB / 0.9061 GB, free: 92.34 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01809/3.61, allocations: 12.05 MB / 0.9178 GB, free: 84.33 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01807/3.628, allocations: 8.024 MB / 0.9257 GB, free: 82.68 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002375/3.628, allocations: 64.56 kB / 0.9257 GB, free: 82.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1427/3.771, allocations: 35.83 MB / 0.9607 GB, free: 75.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001909/3.771, allocations: 100.5 kB / 0.9608 GB, free: 75.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1061/3.877, allocations: 23.99 MB / 0.9842 GB, free: 64.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1005/3.978, allocations: 18.41 MB / 1.002 GB, free: 45.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01683/3.995, allocations: 2.717 MB / 1.005 GB, free: 43.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1084/4.103, allocations: 41.05 MB / 1.045 GB, free: 1.406 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02823/4.132, allocations: 1.146 MB / 1.046 GB, free: 268 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003436/4.135, allocations: 0.6621 MB / 1.047 GB, free: 15.6 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.4934/4.629, allocations: 3.963 MB / 1.051 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003908/4.632, allocations: 0.7798 MB / 1.051 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08116/4.714, allocations: 13.73 MB / 1.065 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.07282/4.787, allocations: 12.25 MB / 1.077 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001335/4.787, allocations: 18 kB / 1.077 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001286/4.787, allocations: 22.14 kB / 1.077 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1141/4.901, allocations: 29.28 MB / 1.105 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.786e-05/4.901, allocations: 3.094 kB / 1.105 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00859/4.91, allocations: 0.8936 MB / 1.106 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03321/4.943, allocations: 5.525 MB / 1.112 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001568/4.945, allocations: 110.2 kB / 1.112 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0642/5.009, allocations: 29.2 MB / 1.14 GB, free: 86.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004605/5.014, allocations: 4.75 MB / 1.145 GB, free: 82.05 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06292/5.077, allocations: 20.06 MB / 1.164 GB, free: 67.19 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003056/5.08, allocations: 0.8307 MB / 1.165 GB, free: 66.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00384/5.084, allocations: 93.5 kB / 1.165 GB, free: 66.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01054/5.094, allocations: 0.5045 MB / 1.166 GB, free: 66.26 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002123/5.096, allocations: 307 kB / 1.166 GB, free: 66.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007009/5.097, allocations: 121.2 kB / 1.166 GB, free: 66 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01421/5.111, allocations: 5.408 MB / 1.172 GB, free: 61.62 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.21e-07/5.111, allocations: 0 / 1.172 GB, free: 61.62 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01636/5.128, allocations: 2.781 MB / 1.174 GB, free: 58.85 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.001783/5.129, allocations: 251.7 kB / 1.175 GB, free: 58.64 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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.03989/5.169, allocations: 15.98 MB / 1.19 GB, free: 44.86 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/5.169, allocations: 3.156 kB / 1.19 GB, free: 44.86 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02257/5.192, allocations: 7.431 MB / 1.197 GB, free: 38.27 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0113/5.203, allocations: 1.22 MB / 1.199 GB, free: 37.29 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08078/5.284, allocations: 28.13 MB / 1.226 GB, free: 9.668 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02341/5.308, allocations: 6.323 MB / 1.232 GB, free: 3.359 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006333/5.314, allocations: 0.6086 MB / 1.233 GB, free: 2.75 MB / 0.5105 GB Notification: Performance of SimCode: time 2.004e-06/5.314, allocations: 0 / 1.233 GB, free: 2.75 MB / 0.5105 GB Notification: Performance of Templates: time 2.176/7.491, allocations: 0.567 GB / 1.8 GB, free: 35.5 MB / 0.5573 GB