Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.967/1.967, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005788/0.000579, allocations: 8 kB / 283.1 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4638/0.4644, allocations: 48.7 MB / 331.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2095/0.674, allocations: 88.64 MB / 420.4 MB, free: 5.801 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/0.6744, allocations: 75.97 kB / 420.5 MB, free: 5.727 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.082/1.756, allocations: 173.8 MB / 0.5804 GB, free: 15.79 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.876e-06/1.757, allocations: 0 / 0.5804 GB, free: 15.79 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008706/1.757, allocations: 172 kB / 0.5805 GB, free: 15.62 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.07329/1.831, allocations: 11.22 MB / 0.5915 GB, free: 4.305 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/1.831, allocations: 8.031 kB / 0.5915 GB, free: 4.297 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1566/1.987, allocations: 21.87 MB / 0.6128 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3974/2.385, allocations: 19.93 MB / 0.6323 GB, free: 65.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009071/2.386, allocations: 0.559 MB / 0.6329 GB, free: 65.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004925/2.391, allocations: 0.7778 MB / 0.6336 GB, free: 65.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06414/2.455, allocations: 19.34 MB / 0.6525 GB, free: 60.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008942/2.456, allocations: 132.8 kB / 0.6526 GB, free: 60.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004149/2.46, allocations: 363.1 kB / 0.653 GB, free: 60.39 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004141/2.464, allocations: 1.648 MB / 0.6546 GB, free: 60.38 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05199/2.516, allocations: 16.12 MB / 0.6703 GB, free: 60.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1462/2.663, allocations: 90.06 MB / 0.7583 GB, free: 12.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06251/2.725, allocations: 8.773 MB / 0.7668 GB, free: 6.848 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002858/2.728, allocations: 1.005 MB / 0.7678 GB, free: 5.77 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001089/2.728, allocations: 68.62 kB / 0.7679 GB, free: 5.691 MB / 442.7 MB Notification: Performance of pre-optimization done (n=322): time 1.046e-05/2.728, allocations: 3.062 kB / 0.7679 GB, free: 5.691 MB / 442.7 MB Notification: Performance of matching and sorting (n=397): time 0.7538/3.482, allocations: 69.37 MB / 0.8356 GB, free: 89.85 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007646/3.49, allocations: 5.172 MB / 0.8407 GB, free: 85.17 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02463/3.514, allocations: 8.534 MB / 0.849 GB, free: 84.54 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001628/3.516, allocations: 89.23 kB / 0.8491 GB, free: 84.51 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005921/3.522, allocations: 5.714 MB / 0.8547 GB, free: 81.62 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003313/3.525, allocations: 1.548 MB / 0.8562 GB, free: 80.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001999/3.527, allocations: 221.3 kB / 0.8564 GB, free: 80.73 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009081/3.528, allocations: 0.7879 MB / 0.8572 GB, free: 80.39 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01416/3.543, allocations: 5.712 MB / 0.8628 GB, free: 79.32 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01939/3.562, allocations: 12.04 MB / 0.8745 GB, free: 69 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01914/3.581, allocations: 8.031 MB / 0.8824 GB, free: 66.16 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003103/3.582, allocations: 61.28 kB / 0.8824 GB, free: 66.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1424/3.724, allocations: 35.62 MB / 0.9172 GB, free: 49.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001654/3.724, allocations: 96.94 kB / 0.9173 GB, free: 49.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.103/3.827, allocations: 23.83 MB / 0.9406 GB, free: 27.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09747/3.925, allocations: 18.23 MB / 0.9584 GB, free: 9.082 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01773/3.942, allocations: 2.753 MB / 0.9611 GB, free: 6.324 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4371/4.38, allocations: 40.22 MB / 1 GB, free: 70.78 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01935/4.399, allocations: 1.142 MB / 1.001 GB, free: 70.78 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00337/4.402, allocations: 0.666 MB / 1.002 GB, free: 70.78 MB / 458.7 MB 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 (1310): * Single equations (assignments): 1286 * 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,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.01329/4.416, allocations: 3.962 MB / 1.006 GB, free: 70.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002789/4.419, allocations: 0.7842 MB / 1.007 GB, free: 70.66 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05417/4.473, allocations: 13.74 MB / 1.02 GB, free: 66.95 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04763/4.52, allocations: 12.25 MB / 1.032 GB, free: 63.14 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.954e-05/4.521, allocations: 18.34 kB / 1.032 GB, free: 63.14 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001136/4.521, allocations: 20.34 kB / 1.032 GB, free: 63.14 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09452/4.615, allocations: 29.27 MB / 1.061 GB, free: 53.01 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.68e-05/4.615, allocations: 6.016 kB / 1.061 GB, free: 53.01 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00855/4.624, allocations: 0.8947 MB / 1.062 GB, free: 52.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03255/4.657, allocations: 5.537 MB / 1.067 GB, free: 51.18 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0015/4.658, allocations: 110.4 kB / 1.067 GB, free: 51.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06106/4.719, allocations: 29.2 MB / 1.096 GB, free: 25.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003987/4.723, allocations: 4.736 MB / 1.1 GB, free: 20.13 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06228/4.786, allocations: 20.07 MB / 1.12 GB, free: 468 kB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00336/4.789, allocations: 0.8348 MB / 1.121 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003949/4.793, allocations: 90.41 kB / 1.121 GB, free: 15.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01099/4.804, allocations: 0.5065 MB / 1.121 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002338/4.806, allocations: 293 kB / 1.122 GB, free: 14.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009719/4.807, allocations: 126.9 kB / 1.122 GB, free: 14.61 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01639/4.824, allocations: 5.403 MB / 1.127 GB, free: 9.242 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.102e-06/4.824, allocations: 0 / 1.127 GB, free: 9.242 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01856/4.842, allocations: 2.776 MB / 1.13 GB, free: 6.477 MB / 474.7 MB 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.001864/4.844, allocations: 258.6 kB / 1.13 GB, free: 6.266 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.3766/5.221, allocations: 15.7 MB / 1.145 GB, free: 92.35 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.156e-06/5.221, allocations: 0 / 1.145 GB, free: 92.35 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02348/5.244, allocations: 7.435 MB / 1.153 GB, free: 90.91 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01146/5.256, allocations: 1.222 MB / 1.154 GB, free: 90.87 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07019/5.326, allocations: 28.09 MB / 1.181 GB, free: 81.44 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01571/5.342, allocations: 6.329 MB / 1.187 GB, free: 80.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004311/5.346, allocations: 0.6142 MB / 1.188 GB, free: 80.49 MB / 474.7 MB Notification: Performance of SimCode: time 1.212e-06/5.346, allocations: 0 / 1.188 GB, free: 80.49 MB / 474.7 MB Notification: Performance of Templates: time 2.02/7.367, allocations: 0.5666 GB / 1.755 GB, free: 90.36 MB / 0.4948 GB