Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.SphericalDoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum") translateModel(ModelicaTest.MultiBody.SphericalDoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00109/0.00109, allocations: 169.8 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.263/1.263, allocations: 170.6 MB / 183.8 MB, free: 11.43 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001553/0.001553, allocations: 110.8 kB / 223.2 MB, free: 4.051 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1994/0.1994, allocations: 37.99 MB / 300.4 MB, free: 5.344 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.025e-05/3.028e-05, allocations: 0 / 357 MB, free: 32.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09733/0.09738, allocations: 48.72 MB / 405.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3582/0.4556, allocations: 88.55 MB / 494.2 MB, free: 18.68 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001625/0.4558, allocations: 70.66 kB / 494.3 MB, free: 18.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.679/1.135, allocations: 171.7 MB / 0.6504 GB, free: 62.06 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.573e-06/1.135, allocations: 0 / 0.6504 GB, free: 62.06 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007035/1.136, allocations: 173.5 kB / 0.6506 GB, free: 62.06 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.04078/1.176, allocations: 10.03 MB / 0.6604 GB, free: 58.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.531e-05/1.177, allocations: 11.72 kB / 0.6604 GB, free: 58.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07665/1.253, allocations: 21.89 MB / 0.6818 GB, free: 58.27 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0416/1.295, allocations: 19.86 MB / 0.7012 GB, free: 56.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005892/1.295, allocations: 0.5597 MB / 0.7017 GB, free: 56.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004235/1.3, allocations: 0.7768 MB / 0.7025 GB, free: 56.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04133/1.341, allocations: 19.14 MB / 0.7212 GB, free: 44.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005214/1.342, allocations: 139.5 kB / 0.7213 GB, free: 44.55 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002545/1.344, allocations: 362.2 kB / 0.7217 GB, free: 44.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002261/1.346, allocations: 1.648 MB / 0.7233 GB, free: 42.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03317/1.38, allocations: 15.89 MB / 0.7388 GB, free: 28.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3764/1.756, allocations: 90.07 MB / 0.8267 GB, free: 28.34 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02444/1.78, allocations: 8.741 MB / 0.8353 GB, free: 27.66 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006468/1.787, allocations: 4.802 MB / 0.84 GB, free: 27.61 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001257/1.788, allocations: 1.004 MB / 0.841 GB, free: 26.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.533e-05/1.788, allocations: 71.84 kB / 0.841 GB, free: 26.71 MB / 458.7 MB Notification: Performance of pre-optimization done (n=322): time 6.252e-06/1.788, allocations: 0 / 0.841 GB, free: 26.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=397): time 0.1678/1.956, allocations: 57.57 MB / 0.8972 GB, free: 20.72 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004097/1.96, allocations: 5.124 MB / 0.9022 GB, free: 31.79 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01419/1.975, allocations: 7.483 MB / 0.9095 GB, free: 29.31 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001287/1.976, allocations: 89.09 kB / 0.9096 GB, free: 29.24 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004415/1.98, allocations: 6.11 MB / 0.9156 GB, free: 25 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002347/1.983, allocations: 1.545 MB / 0.9171 GB, free: 23.87 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001203/1.984, allocations: 223.4 kB / 0.9173 GB, free: 23.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006274/1.985, allocations: 0.7753 MB / 0.9181 GB, free: 23.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008209/1.993, allocations: 5.626 MB / 0.9236 GB, free: 18.55 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01395/2.007, allocations: 11.91 MB / 0.9352 GB, free: 4.598 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01672/2.024, allocations: 8.28 MB / 0.9433 GB, free: 14.57 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003551/2.024, allocations: 60 kB / 0.9434 GB, free: 14.52 MB / 490.7 MB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.3865/2.41, allocations: 36.34 MB / 0.9788 GB, free: 102.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001272/2.411, allocations: 98.78 kB / 0.9789 GB, free: 102.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05176/2.462, allocations: 23.73 MB / 1.002 GB, free: 102.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04882/2.511, allocations: 18.23 MB / 1.02 GB, free: 102.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01003/2.521, allocations: 2.751 MB / 1.023 GB, free: 102.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04603/2.567, allocations: 38.12 MB / 1.06 GB, free: 90.44 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01341/2.581, allocations: 1.142 MB / 1.061 GB, free: 89.92 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002613/2.583, allocations: 0.6659 MB / 1.062 GB, free: 89.8 MB / 490.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 () * 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.003068/2.586, allocations: 0.9429 MB / 1.063 GB, free: 89.39 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002465/2.589, allocations: 0.7906 MB / 1.063 GB, free: 89.39 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03012/2.619, allocations: 13.64 MB / 1.077 GB, free: 76.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02507/2.644, allocations: 12.16 MB / 1.088 GB, free: 63.99 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.001e-05/2.644, allocations: 16 kB / 1.089 GB, free: 63.97 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.563e-05/2.644, allocations: 15.94 kB / 1.089 GB, free: 63.96 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05643/2.701, allocations: 29.21 MB / 1.117 GB, free: 34.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-05/2.701, allocations: 0 / 1.117 GB, free: 34.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004574/2.705, allocations: 0.8969 MB / 1.118 GB, free: 34.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01751/2.723, allocations: 5.519 MB / 1.123 GB, free: 28.53 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001194/2.724, allocations: 107.9 kB / 1.123 GB, free: 28.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3066/3.031, allocations: 28.16 MB / 1.151 GB, free: 97.11 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002652/3.034, allocations: 4.691 MB / 1.155 GB, free: 93.03 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03464/3.068, allocations: 20.37 MB / 1.175 GB, free: 91.76 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002921/3.071, allocations: 0.8327 MB / 1.176 GB, free: 91.67 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001923/3.073, allocations: 90.69 kB / 1.176 GB, free: 91.67 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005681/3.079, allocations: 0.5037 MB / 1.177 GB, free: 91.67 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001329/3.08, allocations: 304.8 kB / 1.177 GB, free: 91.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004258/3.081, allocations: 116.5 kB / 1.177 GB, free: 91.66 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009135/3.09, allocations: 5.328 MB / 1.182 GB, free: 91.37 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.91e-07/3.09, allocations: 0 / 1.182 GB, free: 91.37 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01251/3.102, allocations: 2.782 MB / 1.185 GB, free: 91.37 MB / 490.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 () * 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.001432/3.104, allocations: 238.3 kB / 1.185 GB, free: 91.28 MB / 490.7 MB [/home/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 was selected as a continuous variable. [/home/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 was selected as a continuous variable. [/home/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 was selected as a continuous variable. [/home/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.02518/3.129, allocations: 15.52 MB / 1.2 GB, free: 87.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/3.129, allocations: 0 / 1.2 GB, free: 87.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01296/3.142, allocations: 7.361 MB / 1.208 GB, free: 84.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007113/3.149, allocations: 1.214 MB / 1.209 GB, free: 83.75 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04107/3.19, allocations: 20.51 MB / 1.229 GB, free: 76.57 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01014/3.2, allocations: 6.322 MB / 1.235 GB, free: 72.98 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01097/3.211, allocations: 3.721 MB / 1.239 GB, free: 70.53 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002868/3.214, allocations: 0.5429 MB / 1.239 GB, free: 70.05 MB / 490.7 MB Notification: Performance of SimCode: time 5.91e-07/3.214, allocations: 4 kB / 1.239 GB, free: 70.04 MB / 490.7 MB Notification: Performance of Templates: time 0.4687/3.683, allocations: 123.2 MB / 1.36 GB, free: 83.94 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum.pipe 2>&1)