Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.515/2.515, allocations: 270 MB / 282.6 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.353e-05/4.364e-05, allocations: 8 kB / 347.1 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4128/0.4129, allocations: 61.86 MB / 408.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2018/0.6148, allocations: 103.3 MB / 0.5002 GB, free: 3.312 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.6151, allocations: 71.97 kB / 0.5003 GB, free: 3.242 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.11/1.725, allocations: 175.1 MB / 0.6712 GB, free: 15.11 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.305e-06/1.725, allocations: 0 / 0.6712 GB, free: 15.11 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001016/1.726, allocations: 172 kB / 0.6714 GB, free: 14.95 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.07164/1.798, allocations: 10.01 MB / 0.6812 GB, free: 4.855 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/1.798, allocations: 12.03 kB / 0.6812 GB, free: 4.844 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006974/1.805, allocations: 1.312 MB / 0.6825 GB, free: 3.523 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1717/1.977, allocations: 21.91 MB / 0.7039 GB, free: 13.56 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4681/2.445, allocations: 18.95 MB / 0.7224 GB, free: 84.68 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001164/2.446, allocations: 0.5588 MB / 0.7229 GB, free: 84.67 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006578/2.453, allocations: 0.7808 MB / 0.7237 GB, free: 84.67 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06425/2.517, allocations: 19.07 MB / 0.7423 GB, free: 79.92 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007772/2.518, allocations: 136.1 kB / 0.7424 GB, free: 79.92 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003831/2.522, allocations: 363.4 kB / 0.7428 GB, free: 79.92 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004152/2.526, allocations: 1.653 MB / 0.7444 GB, free: 79.91 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05156/2.578, allocations: 15.59 MB / 0.7596 GB, free: 79.88 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1786/2.756, allocations: 90.03 MB / 0.8475 GB, free: 18.66 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05051/2.807, allocations: 8.713 MB / 0.856 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009646/2.817, allocations: 4.811 MB / 0.8607 GB, free: 10.81 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001993/2.819, allocations: 0.9961 MB / 0.8617 GB, free: 9.734 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.637e-05/2.819, allocations: 67.38 kB / 0.8618 GB, free: 9.66 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=322): time 7.414e-06/2.819, allocations: 0 / 0.8618 GB, free: 9.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=397): time 0.3524/3.171, allocations: 57.29 MB / 0.9177 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00545/3.177, allocations: 5.13 MB / 0.9227 GB, free: 7.848 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02119/3.198, allocations: 7.421 MB / 0.93 GB, free: 1.113 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001499/3.2, allocations: 85.7 kB / 0.93 GB, free: 1.023 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.5422/3.742, allocations: 5.711 MB / 0.9356 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003494/3.745, allocations: 1.548 MB / 0.9371 GB, free: 124.5 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002401/3.748, allocations: 223.6 kB / 0.9373 GB, free: 124.5 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.001318/3.749, allocations: 0.7827 MB / 0.9381 GB, free: 124.1 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01471/3.764, allocations: 5.64 MB / 0.9436 GB, free: 124.1 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02023/3.784, allocations: 11.87 MB / 0.9552 GB, free: 116.1 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01877/3.803, allocations: 8.01 MB / 0.963 GB, free: 116 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000319/3.803, allocations: 65.78 kB / 0.9631 GB, free: 116 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1455) (initialization): time 0.1464/3.95, allocations: 35.06 MB / 0.9973 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001942/3.95, allocations: 101.8 kB / 0.9974 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1062/4.056, allocations: 23.91 MB / 1.021 GB, free: 113 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1019/4.158, allocations: 18.4 MB / 1.039 GB, free: 106.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02288/4.181, allocations: 2.721 MB / 1.041 GB, free: 103.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1251/4.306, allocations: 38.84 MB / 1.079 GB, free: 63.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02866/4.335, allocations: 1.148 MB / 1.08 GB, free: 62.77 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004281/4.339, allocations: 0.6735 MB / 1.081 GB, free: 62.1 MB / 0.5573 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.006693/4.346, allocations: 0.9347 MB / 1.082 GB, free: 61.16 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003532/4.35, allocations: 0.7906 MB / 1.083 GB, free: 60.37 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07581/4.426, allocations: 13.64 MB / 1.096 GB, free: 46.71 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.06824/4.494, allocations: 12.17 MB / 1.108 GB, free: 34.52 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001035/4.494, allocations: 16 kB / 1.108 GB, free: 34.51 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001406/4.494, allocations: 19.92 kB / 1.108 GB, free: 34.49 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6309/5.125, allocations: 29.15 MB / 1.137 GB, free: 103.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.165e-05/5.125, allocations: 4.906 kB / 1.137 GB, free: 103.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00893/5.134, allocations: 0.9015 MB / 1.137 GB, free: 103.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0331/5.167, allocations: 5.519 MB / 1.143 GB, free: 103.8 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001502/5.169, allocations: 110.6 kB / 1.143 GB, free: 103.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06169/5.231, allocations: 28.16 MB / 1.17 GB, free: 96.14 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004402/5.235, allocations: 4.688 MB / 1.175 GB, free: 92.05 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06437/5.299, allocations: 20.37 MB / 1.195 GB, free: 90.77 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003217/5.303, allocations: 0.8205 MB / 1.196 GB, free: 90.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003743/5.306, allocations: 90.09 kB / 1.196 GB, free: 90.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01134/5.318, allocations: 0.4982 MB / 1.196 GB, free: 90.68 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00253/5.32, allocations: 308.4 kB / 1.197 GB, free: 90.67 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001295/5.322, allocations: 122.4 kB / 1.197 GB, free: 90.67 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01511/5.337, allocations: 5.286 MB / 1.202 GB, free: 90.38 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.52e-07/5.337, allocations: 0 / 1.202 GB, free: 90.38 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01788/5.355, allocations: 2.774 MB / 1.205 GB, free: 90.38 MB / 0.5573 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.07327/5.428, allocations: 21.39 MB / 1.225 GB, free: 82.7 MB / 0.5573 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.05559/5.484, allocations: 15.42 MB / 1.24 GB, free: 76.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/5.484, allocations: 3.656 kB / 1.24 GB, free: 76.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02292/5.507, allocations: 7.263 MB / 1.248 GB, free: 72.95 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01461/5.521, allocations: 1.215 MB / 1.249 GB, free: 71.96 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1017/5.623, allocations: 24.38 MB / 1.273 GB, free: 51.58 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01496/5.638, allocations: 6.309 MB / 1.279 GB, free: 47.03 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01146/5.65, allocations: 4.47 MB / 1.283 GB, free: 42.92 MB / 0.5573 GB Notification: Performance of SimCode: time 1.503e-06/5.65, allocations: 2.078 kB / 1.283 GB, free: 42.92 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.559/15.21, allocations: 0.6169 GB / 1.9 GB, free: 111.2 MB / 0.6198 GB