Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.SphericalDoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum") translateModel(ModelicaTest.MultiBody.SphericalDoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001658/0.001658, allocations: 182.2 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.541/1.541, allocations: 194.3 MB / 207.5 MB, free: 3.375 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001688/0.001688, allocations: 120.1 kB / 252.6 MB, free: 4.836 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2108/0.2108, allocations: 39.94 MB / 337.5 MB, free: 464 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.762e-05/4.765e-05, allocations: 4 kB / 400.3 MB, free: 69.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1373, allocations: 54.85 MB / 455.1 MB, free: 15 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4676/0.605, allocations: 95.31 MB / 0.5375 GB, free: 12.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/0.6054, allocations: 72.47 kB / 0.5376 GB, free: 12.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7747/1.38, allocations: 171.9 MB / 0.7055 GB, free: 84.69 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.908e-06/1.38, allocations: 0 / 0.7055 GB, free: 84.69 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0009225/1.381, allocations: 179.4 kB / 0.7057 GB, free: 84.68 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.04787/1.429, allocations: 10.03 MB / 0.7154 GB, free: 81.45 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/1.429, allocations: 6.938 kB / 0.7155 GB, free: 81.45 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07852/1.508, allocations: 21.92 MB / 0.7369 GB, free: 80.8 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04864/1.556, allocations: 19.89 MB / 0.7563 GB, free: 79.34 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005909/1.557, allocations: 0.5575 MB / 0.7568 GB, free: 79.05 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00471/1.562, allocations: 0.7821 MB / 0.7576 GB, free: 78.54 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04892/1.611, allocations: 19.14 MB / 0.7763 GB, free: 58.86 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007823/1.611, allocations: 130.6 kB / 0.7764 GB, free: 58.79 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003455/1.615, allocations: 369.1 kB / 0.7768 GB, free: 58.46 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00272/1.618, allocations: 1.641 MB / 0.7784 GB, free: 56.85 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03423/1.652, allocations: 15.89 MB / 0.7939 GB, free: 41.02 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5614/2.213, allocations: 90.06 MB / 0.8818 GB, free: 33.9 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0276/2.241, allocations: 8.732 MB / 0.8904 GB, free: 33.22 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006654/2.248, allocations: 4.81 MB / 0.8951 GB, free: 33.17 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001327/2.249, allocations: 1.005 MB / 0.896 GB, free: 32.32 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.094e-05/2.249, allocations: 70.73 kB / 0.8961 GB, free: 32.28 MB / 490.7 MB Notification: Performance of pre-optimization done (n=322): time 8.235e-06/2.249, allocations: 0 / 0.8961 GB, free: 32.28 MB / 490.7 MB Notification: Performance of matching and sorting (n=397): time 0.1814/2.431, allocations: 57.58 MB / 0.9523 GB, free: 26.05 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00413/2.435, allocations: 5.134 MB / 0.9573 GB, free: 37.11 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01582/2.451, allocations: 7.476 MB / 0.9646 GB, free: 34.64 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001736/2.452, allocations: 86.2 kB / 0.9647 GB, free: 34.57 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005633/2.458, allocations: 6.113 MB / 0.9707 GB, free: 30.27 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002938/2.461, allocations: 1.549 MB / 0.9722 GB, free: 28.93 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00132/2.462, allocations: 223 kB / 0.9724 GB, free: 28.72 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006268/2.463, allocations: 0.7807 MB / 0.9732 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008802/2.472, allocations: 5.628 MB / 0.9787 GB, free: 23.02 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01862/2.491, allocations: 11.92 MB / 0.9903 GB, free: 9.059 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01517/2.506, allocations: 8.003 MB / 0.9981 GB, free: 2.461 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002461/2.506, allocations: 63.95 kB / 0.9982 GB, free: 2.398 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1014/2.607, allocations: 36.67 MB / 1.034 GB, free: 5.043 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001584/2.608, allocations: 107.9 kB / 1.034 GB, free: 4.938 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4708/3.078, allocations: 23.9 MB / 1.057 GB, free: 134.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05712/3.136, allocations: 18.4 MB / 1.075 GB, free: 134.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01128/3.147, allocations: 2.72 MB / 1.078 GB, free: 134.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05197/3.199, allocations: 38.85 MB / 1.116 GB, free: 125.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01939/3.218, allocations: 1.145 MB / 1.117 GB, free: 125.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004291/3.223, allocations: 0.6637 MB / 1.118 GB, free: 125.8 MB / 0.5417 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 () * 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.004289/3.227, allocations: 0.9375 MB / 1.119 GB, free: 125.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003181/3.23, allocations: 0.7872 MB / 1.119 GB, free: 125.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03046/3.261, allocations: 13.65 MB / 1.133 GB, free: 122.3 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02616/3.287, allocations: 12.16 MB / 1.145 GB, free: 118.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-05/3.287, allocations: 19.55 kB / 1.145 GB, free: 118.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000134/3.287, allocations: 19.31 kB / 1.145 GB, free: 118.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0682/3.355, allocations: 29.18 MB / 1.173 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.399e-05/3.356, allocations: 6.875 kB / 1.173 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004774/3.36, allocations: 0.8968 MB / 1.174 GB, free: 103 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01718/3.378, allocations: 5.515 MB / 1.179 GB, free: 97.69 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001919/3.38, allocations: 107.9 kB / 1.18 GB, free: 97.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0339/3.413, allocations: 28.18 MB / 1.207 GB, free: 68.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002745/3.416, allocations: 4.683 MB / 1.212 GB, free: 63.93 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03714/3.453, allocations: 20.38 MB / 1.232 GB, free: 43.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003455/3.457, allocations: 0.8323 MB / 1.232 GB, free: 42.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003658/3.461, allocations: 91.97 kB / 1.232 GB, free: 42.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007711/3.468, allocations: 0.5033 MB / 1.233 GB, free: 42.36 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002191/3.471, allocations: 297.1 kB / 1.233 GB, free: 42.07 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006016/3.471, allocations: 120.9 kB / 1.233 GB, free: 41.95 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01272/3.484, allocations: 5.326 MB / 1.239 GB, free: 36.66 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.61e-07/3.484, allocations: 0 / 1.239 GB, free: 36.66 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01522/3.499, allocations: 2.796 MB / 1.241 GB, free: 33.88 MB / 0.5417 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 () * 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,54.7%) 13,(8,59.4%) 13,(8,54.7%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001426/3.501, allocations: 243.2 kB / 1.242 GB, free: 33.68 MB / 0.5417 GB [/home/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 was selected as a continuous variable. [/home/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 was selected as a continuous variable. [/home/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 was selected as a continuous variable. [/home/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.3731/3.874, allocations: 15.79 MB / 1.257 GB, free: 133.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/3.874, allocations: 2.156 kB / 1.257 GB, free: 133.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02089/3.895, allocations: 7.35 MB / 1.264 GB, free: 132 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01352/3.908, allocations: 1.221 MB / 1.265 GB, free: 132 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05182/3.96, allocations: 20.5 MB / 1.285 GB, free: 128.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01388/3.974, allocations: 6.33 MB / 1.292 GB, free: 127.3 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01229/3.986, allocations: 3.719 MB / 1.295 GB, free: 127 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00304/3.989, allocations: 0.545 MB / 1.296 GB, free: 126.9 MB / 0.5417 GB Notification: Performance of SimCode: time 1.653e-06/3.99, allocations: 0 / 1.296 GB, free: 126.9 MB / 0.5417 GB Notification: Performance of Templates: time 0.2091/4.199, allocations: 124.4 MB / 1.417 GB, free: 47.23 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe 2>&1)