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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.152/2.152, allocations: 235.1 MB / 243 MB, free: 9.5 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.769e-05/2.775e-05, allocations: 4 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3104, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1506/0.4611, allocations: 94.64 MB / 452.7 MB, free: 160 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.4613, allocations: 67.97 kB / 452.7 MB, free: 92 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8502/1.312, allocations: 168.8 MB / 0.607 GB, free: 6.996 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.215e-06/1.312, allocations: 0 / 0.607 GB, free: 6.996 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007222/1.312, allocations: 176 kB / 0.6072 GB, free: 6.824 MB / 442.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.04804/1.36, allocations: 10.03 MB / 0.6169 GB, free: 12.71 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/1.36, allocations: 16.03 kB / 0.617 GB, free: 12.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6653/2.026, allocations: 21.92 MB / 0.6384 GB, free: 61.89 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05379/2.08, allocations: 19.85 MB / 0.6577 GB, free: 61.26 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003867/2.08, allocations: 239.8 kB / 0.658 GB, free: 61.26 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002964/2.083, allocations: 476.6 kB / 0.6584 GB, free: 61.24 MB / 458.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02221/2.105, allocations: 10.38 MB / 0.6686 GB, free: 61.21 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03378/2.139, allocations: 16.21 MB / 0.6844 GB, free: 56.47 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005595/2.14, allocations: 140.5 kB / 0.6845 GB, free: 56.45 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002399/2.142, allocations: 56.88 kB / 0.6846 GB, free: 56.45 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003095/2.145, allocations: 1.645 MB / 0.6862 GB, free: 56.44 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1137/2.259, allocations: 87.68 MB / 0.7718 GB, free: 6.477 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01122/2.27, allocations: 6.061 MB / 0.7777 GB, free: 0.7695 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.03006/2.3, allocations: 5.957 MB / 0.7836 GB, free: 15.74 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001774/2.302, allocations: 1.001 MB / 0.7845 GB, free: 14.65 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.904e-05/2.302, allocations: 78.06 kB / 0.7846 GB, free: 14.57 MB / 490.8 MB Notification: Performance of pre-optimization done (n=322): time 8.565e-06/2.302, allocations: 4 kB / 0.7846 GB, free: 14.57 MB / 490.8 MB Notification: Performance of matching and sorting (n=396): time 0.4745/2.777, allocations: 54.85 MB / 0.8382 GB, free: 98.75 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/2.777, allocations: 486.3 kB / 0.8386 GB, free: 98.21 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0148/2.792, allocations: 6.753 MB / 0.8452 GB, free: 97.63 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001099/2.793, allocations: 28.67 kB / 0.8453 GB, free: 97.6 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004683/2.798, allocations: 5.771 MB / 0.8509 GB, free: 94.79 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002399/2.8, allocations: 1.5 MB / 0.8524 GB, free: 93.9 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001462/2.802, allocations: 0 / 0.8524 GB, free: 93.9 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0008739/2.802, allocations: 0.7979 MB / 0.8531 GB, free: 93.56 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01053/2.813, allocations: 5.497 MB / 0.8585 GB, free: 93.54 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01414/2.827, allocations: 11.86 MB / 0.8701 GB, free: 85.35 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01436/2.842, allocations: 7.86 MB / 0.8778 GB, free: 85.28 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002143/2.842, allocations: 63.69 kB / 0.8778 GB, free: 85.28 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1475) (initialization): time 0.1018/2.944, allocations: 34.5 MB / 0.9115 GB, free: 81.09 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001682/2.944, allocations: 100.6 kB / 0.9116 GB, free: 81.09 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06952/3.013, allocations: 23.84 MB / 0.9349 GB, free: 72.26 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06378/3.077, allocations: 18.46 MB / 0.9529 GB, free: 55.84 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01097/3.088, allocations: 2.779 MB / 0.9556 GB, free: 53.07 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05838/3.147, allocations: 36.42 MB / 0.9912 GB, free: 15.94 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01441/3.161, allocations: 0.9531 MB / 0.9921 GB, free: 14.99 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002683/3.164, allocations: 0.6873 MB / 0.9928 GB, free: 14.3 MB / 0.4949 GB 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 (1327): * Single equations (assignments): 1303 * 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,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.003056/3.167, allocations: 0.6737 MB / 0.9935 GB, free: 13.62 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001916/3.169, allocations: 0.7521 MB / 0.9942 GB, free: 12.86 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.341/3.51, allocations: 13.45 MB / 1.007 GB, free: 87.29 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03356/3.543, allocations: 12.03 MB / 1.019 GB, free: 87.01 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.399e-05/3.544, allocations: 18.67 kB / 1.019 GB, free: 87 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001115/3.544, allocations: 15.14 kB / 1.019 GB, free: 87 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07266/3.616, allocations: 28.02 MB / 1.046 GB, free: 85.69 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-05/3.616, allocations: 3.594 kB / 1.046 GB, free: 85.69 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006051/3.622, allocations: 0.8917 MB / 1.047 GB, free: 85.69 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02476/3.647, allocations: 5.474 MB / 1.053 GB, free: 85.59 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001255/3.649, allocations: 54.67 kB / 1.053 GB, free: 85.59 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04527/3.694, allocations: 26.82 MB / 1.079 GB, free: 74.92 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003279/3.697, allocations: 4.501 MB / 1.083 GB, free: 70.77 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04704/3.744, allocations: 20.13 MB / 1.103 GB, free: 63.57 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002452/3.747, allocations: 0.791 MB / 1.104 GB, free: 63.44 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002489/3.749, allocations: 29.33 kB / 1.104 GB, free: 63.43 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00706/3.756, allocations: 458.6 kB / 1.104 GB, free: 63.43 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001707/3.758, allocations: 301.7 kB / 1.105 GB, free: 63.39 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006783/3.759, allocations: 119.1 kB / 1.105 GB, free: 63.37 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01067/3.77, allocations: 4.676 MB / 1.109 GB, free: 61.74 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.401e-06/3.77, allocations: 0 / 1.109 GB, free: 61.74 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01522/3.785, allocations: 2.624 MB / 1.112 GB, free: 60.41 MB / 0.4949 GB 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.001286/3.786, allocations: 189 kB / 1.112 GB, free: 60.27 MB / 0.4949 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.02932/3.815, allocations: 15.43 MB / 1.127 GB, free: 46.91 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.542e-06/3.816, allocations: 0 / 1.127 GB, free: 46.91 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01531/3.831, allocations: 7.269 MB / 1.134 GB, free: 40.47 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007385/3.838, allocations: 1.073 MB / 1.135 GB, free: 39.61 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04702/3.885, allocations: 21.28 MB / 1.156 GB, free: 21.28 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01288/3.898, allocations: 6.331 MB / 1.162 GB, free: 16.65 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003193/3.901, allocations: 0.5969 MB / 1.163 GB, free: 16.05 MB / 0.4949 GB Notification: Performance of SimCode: time 1.936e-06/3.901, allocations: 0 / 1.163 GB, free: 16.05 MB / 0.4949 GB Notification: Performance of Templates: time 1.715/5.617, allocations: 0.5636 GB / 1.726 GB, free: 45.61 MB / 0.5418 GB