Running command: translateModel(ModelicaTest.MultiBody.SphericalDoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum") Notification: Performance of loadModel(ModelicaTest): time 2.347/2.347, allocations: 270 MB / 282.7 MB, free: 1.93 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.232e-05, allocations: 0 / 347 MB, free: 3.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3235, allocations: 61.88 MB / 408.8 MB, free: 10.81 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1607/0.4842, allocations: 103.3 MB / 0.5001 GB, free: 3.367 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.4845, allocations: 67.97 kB / 0.5002 GB, free: 3.301 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9399/1.424, allocations: 175 MB / 0.6711 GB, free: 15.22 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.088e-06/1.425, allocations: 0 / 0.6711 GB, free: 15.22 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007221/1.425, allocations: 180 kB / 0.6713 GB, free: 15.05 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2557 * Number of variables: 2557 Notification: Performance of Generate backend data structure: time 0.04707/1.472, allocations: 10.01 MB / 0.681 GB, free: 4.961 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/1.472, allocations: 12.03 kB / 0.6811 GB, free: 4.949 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1086/1.581, allocations: 21.92 MB / 0.7025 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7357/2.317, allocations: 18.94 MB / 0.721 GB, free: 83.51 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006078/2.317, allocations: 0.5592 MB / 0.7215 GB, free: 83.49 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00323/2.321, allocations: 0.7839 MB / 0.7223 GB, free: 83.49 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04736/2.368, allocations: 19.06 MB / 0.7409 GB, free: 78.75 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005246/2.369, allocations: 142 kB / 0.741 GB, free: 78.75 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002114/2.371, allocations: 363.3 kB / 0.7414 GB, free: 78.75 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002961/2.374, allocations: 1.651 MB / 0.743 GB, free: 78.73 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04092/2.415, allocations: 15.58 MB / 0.7582 GB, free: 78.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1279/2.543, allocations: 90.03 MB / 0.8461 GB, free: 17.67 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03361/2.576, allocations: 8.712 MB / 0.8546 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007325/2.584, allocations: 4.8 MB / 0.8593 GB, free: 10.24 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001436/2.585, allocations: 1.005 MB / 0.8603 GB, free: 9.164 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.166e-05/2.585, allocations: 67.91 kB / 0.8604 GB, free: 9.09 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=322): time 8.432e-06/2.585, allocations: 0 / 0.8604 GB, free: 9.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=397): time 0.235/2.82, allocations: 57.53 MB / 0.9165 GB, free: 13.34 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005364/2.826, allocations: 5.124 MB / 0.9215 GB, free: 7.898 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01818/2.844, allocations: 7.417 MB / 0.9288 GB, free: 0.6445 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.001091/2.845, allocations: 92.53 kB / 0.9289 GB, free: 0.5508 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.3363/3.181, allocations: 5.714 MB / 0.9345 GB, free: 123.9 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.002666/3.184, allocations: 1.548 MB / 0.936 GB, free: 123 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00136/3.185, allocations: 223.2 kB / 0.9362 GB, free: 123 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0007721/3.186, allocations: 0.7828 MB / 0.9369 GB, free: 122.6 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0116/3.198, allocations: 5.634 MB / 0.9424 GB, free: 122.6 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01489/3.213, allocations: 11.88 MB / 0.954 GB, free: 114.6 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01492/3.228, allocations: 8.014 MB / 0.9619 GB, free: 114.5 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001894/3.228, allocations: 65.06 kB / 0.9619 GB, free: 114.5 MB / 0.5574 GB Notification: Performance of matching and sorting (n=1455) (initialization): time 0.1022/3.33, allocations: 35.06 MB / 0.9962 GB, free: 113.8 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001696/3.33, allocations: 102.1 kB / 0.9963 GB, free: 113.8 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.07244/3.403, allocations: 23.9 MB / 1.02 GB, free: 110.7 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0689/3.472, allocations: 18.41 MB / 1.038 GB, free: 104 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0128/3.485, allocations: 2.721 MB / 1.04 GB, free: 101.2 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06411/3.549, allocations: 38.85 MB / 1.078 GB, free: 61.59 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01427/3.563, allocations: 1.151 MB / 1.079 GB, free: 60.44 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002568/3.566, allocations: 0.6748 MB / 1.08 GB, free: 59.77 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 999 * Number of states: 0 () * Number of discrete variables: 66 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (1307): * Single equations (assignments): 1283 * 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.002578/3.568, allocations: 0.9391 MB / 1.081 GB, free: 58.84 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001846/3.57, allocations: 0.7868 MB / 1.082 GB, free: 58.04 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03503/3.605, allocations: 13.64 MB / 1.095 GB, free: 44.38 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03218/3.637, allocations: 12.16 MB / 1.107 GB, free: 32.2 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.255e-05/3.637, allocations: 12 kB / 1.107 GB, free: 32.19 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.018e-05/3.638, allocations: 23.92 kB / 1.107 GB, free: 32.16 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4118/4.049, allocations: 29.16 MB / 1.135 GB, free: 102 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.791e-05/4.049, allocations: 2.312 kB / 1.135 GB, free: 102 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005833/4.055, allocations: 0.8979 MB / 1.136 GB, free: 102 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02561/4.081, allocations: 5.517 MB / 1.142 GB, free: 101.9 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001121/4.082, allocations: 107.2 kB / 1.142 GB, free: 101.9 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04809/4.13, allocations: 28.15 MB / 1.169 GB, free: 94.22 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003517/4.134, allocations: 4.685 MB / 1.174 GB, free: 90.13 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04815/4.182, allocations: 20.36 MB / 1.194 GB, free: 88.85 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002595/4.185, allocations: 0.8261 MB / 1.194 GB, free: 88.76 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002728/4.187, allocations: 87 kB / 1.195 GB, free: 88.75 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007346/4.195, allocations: 0.5031 MB / 1.195 GB, free: 88.75 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001739/4.197, allocations: 305.5 kB / 1.195 GB, free: 88.75 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007108/4.197, allocations: 115.9 kB / 1.195 GB, free: 88.75 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.01249/4.21, allocations: 5.285 MB / 1.201 GB, free: 88.46 MB / 0.5574 GB Notification: Performance of sort global known variables: time 9.67e-07/4.21, allocations: 0 / 1.201 GB, free: 88.46 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01465/4.224, allocations: 2.78 MB / 1.203 GB, free: 88.46 MB / 0.5574 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.00134/4.226, allocations: 262.4 kB / 1.204 GB, free: 88.38 MB / 0.5574 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17:writable] Warning: Variable Spherical2.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17:writable] Warning: Variable Spherical2.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17:writable] Warning: Variable Spherical1.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Mechanics/MultiBody/Joints/Spherical.mo:91:3-93:17: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.03123/4.257, allocations: 15.42 MB / 1.219 GB, free: 82.63 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 9.817e-06/4.257, allocations: 0 / 1.219 GB, free: 82.63 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.01701/4.274, allocations: 7.264 MB / 1.226 GB, free: 79.31 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008307/4.283, allocations: 1.222 MB / 1.227 GB, free: 78.85 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05054/4.333, allocations: 21.41 MB / 1.248 GB, free: 69.51 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01319/4.346, allocations: 6.311 MB / 1.254 GB, free: 64.97 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003444/4.35, allocations: 0.6157 MB / 1.255 GB, free: 64.41 MB / 0.5574 GB Notification: Performance of SimCode: time 2.084e-06/4.35, allocations: 0 / 1.255 GB, free: 64.41 MB / 0.5574 GB Notification: Performance of Templates: time 1.865/6.215, allocations: 0.564 GB / 1.819 GB, free: 162.2 MB / 0.6199 GB