Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/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_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002749/0.002749, allocations: 349.2 kB / 15.94 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.497/3.497, allocations: 341.5 MB / 358.2 MB, free: 28.75 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003558/0.003558, allocations: 221 kB / 397.9 MB, free: 6.148 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.6904/0.6904, allocations: 76.1 MB / 0.5014 GB, free: 0.8281 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00064/0.0006402, allocations: 8 kB / 0.5592 GB, free: 60.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1013, allocations: 48.71 MB / 0.6067 GB, free: 11.55 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4525/0.5539, allocations: 88.64 MB / 0.6933 GB, free: 15.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.5543, allocations: 74.16 kB / 0.6934 GB, free: 15.17 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.04/1.594, allocations: 168.3 MB / 0.8577 GB, free: 76.63 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.119e-06/1.594, allocations: 0 / 0.8577 GB, free: 76.63 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009375/1.595, allocations: 173.5 kB / 0.8579 GB, free: 76.62 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.07171/1.667, allocations: 11.03 MB / 0.8687 GB, free: 72.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/1.667, allocations: 7.531 kB / 0.8687 GB, free: 72.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1227/1.79, allocations: 16.62 MB / 0.8849 GB, free: 71.81 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05989/1.85, allocations: 17.58 MB / 0.9021 GB, free: 61.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007596/1.851, allocations: 0.557 MB / 0.9026 GB, free: 60.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004722/1.855, allocations: 0.7752 MB / 0.9034 GB, free: 60.06 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06046/1.916, allocations: 19.1 MB / 0.922 GB, free: 39.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008405/1.917, allocations: 138.7 kB / 0.9222 GB, free: 39.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003988/1.921, allocations: 364 kB / 0.9225 GB, free: 38.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004029/1.925, allocations: 1.651 MB / 0.9241 GB, free: 37.28 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05222/1.977, allocations: 15.87 MB / 0.9396 GB, free: 21.4 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5016/2.479, allocations: 89.88 MB / 1.027 GB, free: 40.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04553/2.524, allocations: 8.773 MB / 1.036 GB, free: 39.76 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01016/2.535, allocations: 4.853 MB / 1.041 GB, free: 39.71 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001926/2.537, allocations: 0.9946 MB / 1.042 GB, free: 38.86 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.898e-05/2.537, allocations: 73.16 kB / 1.042 GB, free: 38.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=322): time 7.314e-06/2.537, allocations: 0 / 1.042 GB, free: 38.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=397): time 0.3872/2.924, allocations: 68.42 MB / 1.109 GB, free: 22.26 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005065/2.929, allocations: 5.125 MB / 1.114 GB, free: 16.84 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02305/2.952, allocations: 8.538 MB / 1.122 GB, free: 9.898 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001488/2.954, allocations: 86.05 kB / 1.122 GB, free: 9.812 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007831/2.962, allocations: 6.116 MB / 1.128 GB, free: 4.613 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003499/2.965, allocations: 1.546 MB / 1.129 GB, free: 3.246 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002364/2.968, allocations: 218.2 kB / 1.13 GB, free: 3.035 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001305/2.969, allocations: 0.7822 MB / 1.13 GB, free: 2.383 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02711/2.996, allocations: 6.337 MB / 1.137 GB, free: 14.91 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3657/3.362, allocations: 12.04 MB / 1.148 GB, free: 101.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02047/3.382, allocations: 8.019 MB / 1.156 GB, free: 101.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002322/3.383, allocations: 62.34 kB / 1.156 GB, free: 101.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1469/3.53, allocations: 36.01 MB / 1.191 GB, free: 100.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00016/3.53, allocations: 98.53 kB / 1.192 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1043/3.634, allocations: 23.83 MB / 1.215 GB, free: 98.88 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09848/3.733, allocations: 18.24 MB / 1.233 GB, free: 92.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01769/3.75, allocations: 2.757 MB / 1.235 GB, free: 89.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08307/3.833, allocations: 38.29 MB / 1.273 GB, free: 50.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01895/3.852, allocations: 1.143 MB / 1.274 GB, free: 49.32 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003154/3.856, allocations: 0.6649 MB / 1.274 GB, free: 48.66 MB / 474.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.01234/3.868, allocations: 3.966 MB / 1.278 GB, free: 44.84 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003063/3.871, allocations: 0.7876 MB / 1.279 GB, free: 44.47 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05416/3.925, allocations: 13.73 MB / 1.293 GB, free: 30.73 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0466/3.972, allocations: 12.26 MB / 1.304 GB, free: 18.44 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.588e-05/3.972, allocations: 16 kB / 1.305 GB, free: 18.43 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000109/3.972, allocations: 19.92 kB / 1.305 GB, free: 18.41 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5059/4.478, allocations: 29.27 MB / 1.333 GB, free: 92.85 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.088e-05/4.478, allocations: 3.391 kB / 1.333 GB, free: 92.85 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01413/4.492, allocations: 0.8992 MB / 1.334 GB, free: 92.85 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04754/4.54, allocations: 5.536 MB / 1.339 GB, free: 92.75 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002265/4.542, allocations: 101 kB / 1.339 GB, free: 92.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07061/4.613, allocations: 28.21 MB / 1.367 GB, free: 85.04 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004025/4.617, allocations: 4.691 MB / 1.372 GB, free: 80.95 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0627/4.68, allocations: 20.05 MB / 1.391 GB, free: 75.18 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003124/4.683, allocations: 0.8298 MB / 1.392 GB, free: 75.02 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003538/4.687, allocations: 88.09 kB / 1.392 GB, free: 74.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01056/4.697, allocations: 0.5026 MB / 1.393 GB, free: 74.92 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002159/4.699, allocations: 308.9 kB / 1.393 GB, free: 74.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000925/4.7, allocations: 121.9 kB / 1.393 GB, free: 74.86 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01675/4.717, allocations: 5.402 MB / 1.398 GB, free: 73.14 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.72e-07/4.717, allocations: 4.906 kB / 1.398 GB, free: 73.14 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01681/4.734, allocations: 2.771 MB / 1.401 GB, free: 72.9 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.001787/4.736, allocations: 249.4 kB / 1.401 GB, free: 72.76 MB / 474.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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.03965/4.776, allocations: 15.7 MB / 1.417 GB, free: 66.67 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.437e-06/4.776, allocations: 0 / 1.417 GB, free: 66.67 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0224/4.798, allocations: 7.434 MB / 1.424 GB, free: 60.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01603/4.814, allocations: 1.27 MB / 1.425 GB, free: 59.06 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06451/4.879, allocations: 27.14 MB / 1.452 GB, free: 35.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01507/4.894, allocations: 6.326 MB / 1.458 GB, free: 30.55 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01763/4.911, allocations: 3.727 MB / 1.461 GB, free: 28.09 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004161/4.916, allocations: 0.5409 MB / 1.462 GB, free: 27.61 MB / 474.7 MB Notification: Performance of SimCode: time 1.703e-06/4.916, allocations: 0 / 1.462 GB, free: 27.61 MB / 474.7 MB Notification: Performance of Templates: time 0.7025/5.618, allocations: 123.3 MB / 1.582 GB, free: 62.67 MB / 474.7 MB