Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004093/0.004099, allocations: 363.1 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.96/3.96, allocations: 388.9 MB / 405.6 MB, free: 47.9 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.005341/0.00534, allocations: 232.7 kB / 451 MB, free: 2.379 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.8604/0.8604, allocations: 80.01 MB / 0.5627 GB, free: 5.984 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006404/0.0006407, allocations: 11.94 kB / 0.6265 GB, free: 4.551 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1207, allocations: 54.88 MB / 0.6801 GB, free: 13.53 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5413/0.662, allocations: 95.4 MB / 0.7733 GB, free: 24.83 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/0.6623, allocations: 73.47 kB / 0.7733 GB, free: 24.76 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.158/1.82, allocations: 168.5 MB / 0.9379 GB, free: 83.52 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.036e-06/1.82, allocations: 0 / 0.9379 GB, free: 83.52 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0009503/1.821, allocations: 175.2 kB / 0.938 GB, free: 83.51 MB / 474.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.07328/1.894, allocations: 11.01 MB / 0.9488 GB, free: 79.73 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/1.894, allocations: 17.61 kB / 0.9488 GB, free: 79.72 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1473/2.042, allocations: 16.65 MB / 0.9651 GB, free: 77.26 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05611/2.098, allocations: 17.61 MB / 0.9823 GB, free: 67.5 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007293/2.099, allocations: 0.5562 MB / 0.9828 GB, free: 66.98 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004407/2.103, allocations: 0.7854 MB / 0.9836 GB, free: 66.23 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05862/2.162, allocations: 19.09 MB / 1.002 GB, free: 45.48 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008004/2.163, allocations: 138.8 kB / 1.002 GB, free: 45.34 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00427/2.167, allocations: 363.3 kB / 1.003 GB, free: 45.02 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004096/2.171, allocations: 1.646 MB / 1.004 GB, free: 43.38 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05149/2.223, allocations: 15.87 MB / 1.02 GB, free: 27.5 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5569/2.78, allocations: 89.87 MB / 1.108 GB, free: 48.66 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04413/2.824, allocations: 8.781 MB / 1.116 GB, free: 48 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01022/2.834, allocations: 4.849 MB / 1.121 GB, free: 47.95 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001878/2.836, allocations: 1.001 MB / 1.122 GB, free: 47.1 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.876e-05/2.836, allocations: 77.55 kB / 1.122 GB, free: 47.05 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=322): time 8.116e-06/2.836, allocations: 1.969 kB / 1.122 GB, free: 47.05 MB / 0.4949 GB Notification: Performance of matching and sorting (n=397): time 0.3977/3.234, allocations: 68.42 MB / 1.189 GB, free: 34.1 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005318/3.239, allocations: 5.128 MB / 1.194 GB, free: 29.15 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02326/3.263, allocations: 8.538 MB / 1.202 GB, free: 25.74 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001489/3.264, allocations: 83.81 kB / 1.202 GB, free: 25.66 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006934/3.271, allocations: 6.116 MB / 1.208 GB, free: 20.34 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003229/3.274, allocations: 1.541 MB / 1.21 GB, free: 18.98 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002454/3.277, allocations: 223 kB / 1.21 GB, free: 18.77 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001218/3.278, allocations: 0.7822 MB / 1.211 GB, free: 18.11 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01479/3.293, allocations: 5.726 MB / 1.216 GB, free: 13.25 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02049/3.314, allocations: 12.04 MB / 1.228 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02199/3.336, allocations: 8.032 MB / 1.236 GB, free: 8.238 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002173/3.336, allocations: 60 kB / 1.236 GB, free: 8.18 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.5564/3.892, allocations: 36.2 MB / 1.271 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001886/3.893, allocations: 103.7 kB / 1.271 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1123/4.005, allocations: 23.97 MB / 1.295 GB, free: 119.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1053/4.11, allocations: 18.42 MB / 1.313 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01795/4.128, allocations: 2.721 MB / 1.315 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09024/4.218, allocations: 39.03 MB / 1.353 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01969/4.238, allocations: 1.141 MB / 1.355 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00335/4.242, allocations: 0.6728 MB / 1.355 GB, free: 105.4 MB / 0.5261 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.01315/4.255, allocations: 3.964 MB / 1.359 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002979/4.258, allocations: 0.7879 MB / 1.36 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05589/4.314, allocations: 13.73 MB / 1.373 GB, free: 95.79 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04819/4.362, allocations: 12.26 MB / 1.385 GB, free: 84.44 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-05/4.362, allocations: 16.69 kB / 1.385 GB, free: 84.42 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001257/4.362, allocations: 19.94 kB / 1.385 GB, free: 84.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1003/4.463, allocations: 29.27 MB / 1.414 GB, free: 55.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.812e-05/4.463, allocations: 0 / 1.414 GB, free: 55.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008822/4.472, allocations: 0.8931 MB / 1.415 GB, free: 54.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03326/4.505, allocations: 5.533 MB / 1.42 GB, free: 48.85 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001523/4.507, allocations: 110.2 kB / 1.42 GB, free: 48.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06109/4.568, allocations: 28.22 MB / 1.448 GB, free: 20.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.4061/4.974, allocations: 4.686 MB / 1.452 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06807/5.042, allocations: 20.05 MB / 1.472 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003361/5.045, allocations: 0.8357 MB / 1.473 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003922/5.049, allocations: 85.27 kB / 1.473 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01143/5.061, allocations: 0.509 MB / 1.473 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00225/5.063, allocations: 303.4 kB / 1.474 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007432/5.064, allocations: 121.2 kB / 1.474 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01491/5.079, allocations: 5.406 MB / 1.479 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.302e-06/5.079, allocations: 0 / 1.479 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01891/5.098, allocations: 2.784 MB / 1.482 GB, free: 117.2 MB / 0.5261 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.001919/5.1, allocations: 254.7 kB / 1.482 GB, free: 117.1 MB / 0.5261 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/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.04342/5.143, allocations: 15.96 MB / 1.498 GB, free: 115 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/5.143, allocations: 2.281 kB / 1.498 GB, free: 115 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02431/5.168, allocations: 7.444 MB / 1.505 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01625/5.184, allocations: 1.283 MB / 1.506 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07148/5.255, allocations: 27.15 MB / 1.533 GB, free: 98.49 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01696/5.272, allocations: 6.325 MB / 1.539 GB, free: 96.59 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.02274/5.295, allocations: 3.716 MB / 1.542 GB, free: 96.29 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006845/5.302, allocations: 0.5453 MB / 1.543 GB, free: 96.28 MB / 0.5261 GB Notification: Performance of SimCode: time 1.884e-06/5.302, allocations: 1.203 kB / 1.543 GB, free: 96.28 MB / 0.5261 GB Notification: Performance of Templates: time 0.7326/6.035, allocations: 124.6 MB / 1.665 GB, free: 103.5 MB / 0.5261 GB