Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.001/2.001, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.708e-05/3.714e-05, allocations: 8 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1042, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.463/0.5672, allocations: 88.55 MB / 410.4 MB, free: 1.348 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.5676, allocations: 67.97 kB / 410.5 MB, free: 1.281 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9888/1.556, allocations: 171.7 MB / 0.5685 GB, free: 83.52 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.116e-06/1.556, allocations: 4 kB / 0.5685 GB, free: 83.52 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000848/1.557, allocations: 181.4 kB / 0.5687 GB, free: 83.51 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.06894/1.626, allocations: 10.02 MB / 0.5785 GB, free: 77.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.338e-05/1.626, allocations: 10.81 kB / 0.5785 GB, free: 77.57 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007878/1.634, allocations: 1.309 MB / 0.5798 GB, free: 76.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1541/1.788, allocations: 21.9 MB / 0.6012 GB, free: 55.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06748/1.856, allocations: 19.86 MB / 0.6205 GB, free: 35.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007563/1.857, allocations: 0.5584 MB / 0.6211 GB, free: 34.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004668/1.861, allocations: 0.7767 MB / 0.6219 GB, free: 33.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06105/1.922, allocations: 19.06 MB / 0.6405 GB, free: 13.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000854/1.923, allocations: 138.7 kB / 0.6406 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004467/1.928, allocations: 363.8 kB / 0.6409 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004203/1.932, allocations: 1.644 MB / 0.6425 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4049/2.337, allocations: 15.58 MB / 0.6578 GB, free: 70.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1513/2.488, allocations: 90.06 MB / 0.7457 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04393/2.532, allocations: 8.714 MB / 0.7542 GB, free: 11.67 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01034/2.543, allocations: 4.806 MB / 0.7589 GB, free: 9.461 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002685/2.546, allocations: 1.01 MB / 0.7599 GB, free: 8.578 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001134/2.546, allocations: 71.95 kB / 0.76 GB, free: 8.508 MB / 426.7 MB Notification: Performance of pre-optimization done (n=322): time 1.383e-05/2.546, allocations: 0 / 0.76 GB, free: 8.508 MB / 426.7 MB Notification: Performance of matching and sorting (n=397): time 0.3938/2.94, allocations: 57.88 MB / 0.8165 GB, free: 5.078 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3343/3.274, allocations: 5.119 MB / 0.8215 GB, free: 104 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02401/3.298, allocations: 7.469 MB / 0.8288 GB, free: 103.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001558/3.3, allocations: 86.14 kB / 0.8289 GB, free: 103.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00685/3.306, allocations: 5.714 MB / 0.8345 GB, free: 101.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003717/3.31, allocations: 1.547 MB / 0.836 GB, free: 100.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002515/3.313, allocations: 222.3 kB / 0.8362 GB, free: 100.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001332/3.314, allocations: 0.7873 MB / 0.8369 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01651/3.331, allocations: 5.626 MB / 0.8424 GB, free: 100.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02056/3.351, allocations: 11.85 MB / 0.854 GB, free: 92.48 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01892/3.37, allocations: 7.993 MB / 0.8618 GB, free: 91.01 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002699/3.371, allocations: 66.03 kB / 0.8619 GB, free: 91.01 MB / 458.7 MB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1439/3.514, allocations: 34.85 MB / 0.8959 GB, free: 84.67 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002055/3.515, allocations: 96.56 kB / 0.896 GB, free: 84.67 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1015/3.616, allocations: 23.74 MB / 0.9192 GB, free: 73.13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.099/3.715, allocations: 18.23 MB / 0.937 GB, free: 54.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01856/3.734, allocations: 2.756 MB / 0.9397 GB, free: 52.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08186/3.816, allocations: 38.12 MB / 0.9769 GB, free: 13.15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02011/3.836, allocations: 1.142 MB / 0.978 GB, free: 12.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003301/3.839, allocations: 0.6737 MB / 0.9787 GB, free: 11.34 MB / 458.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.005344/3.845, allocations: 0.9234 MB / 0.9796 GB, free: 10.41 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00273/3.848, allocations: 0.7906 MB / 0.9804 GB, free: 9.609 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3951/4.243, allocations: 13.64 MB / 0.9937 GB, free: 87.52 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04889/4.292, allocations: 12.16 MB / 1.006 GB, free: 87.23 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.199e-05/4.292, allocations: 17.47 kB / 1.006 GB, free: 87.23 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001017/4.292, allocations: 20.56 kB / 1.006 GB, free: 87.23 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09298/4.385, allocations: 29.2 MB / 1.034 GB, free: 82.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.331e-05/4.385, allocations: 5.781 kB / 1.034 GB, free: 82.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008839/4.394, allocations: 0.8983 MB / 1.035 GB, free: 82.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03204/4.426, allocations: 5.515 MB / 1.04 GB, free: 81.94 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001385/4.427, allocations: 106.9 kB / 1.04 GB, free: 81.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05945/4.487, allocations: 28.17 MB / 1.068 GB, free: 67.66 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004008/4.491, allocations: 4.681 MB / 1.073 GB, free: 63.31 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06145/4.552, allocations: 20.36 MB / 1.092 GB, free: 52.04 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003385/4.556, allocations: 0.8294 MB / 1.093 GB, free: 51.65 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003941/4.56, allocations: 92.06 kB / 1.093 GB, free: 51.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01123/4.571, allocations: 0.5093 MB / 1.094 GB, free: 51.28 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00228/4.573, allocations: 302.9 kB / 1.094 GB, free: 51.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001052/4.575, allocations: 122.7 kB / 1.094 GB, free: 51.02 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01443/4.589, allocations: 5.331 MB / 1.099 GB, free: 46.37 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.164e-06/4.589, allocations: 0 / 1.099 GB, free: 46.37 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01743/4.606, allocations: 2.77 MB / 1.102 GB, free: 43.61 MB / 458.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.06234/4.669, allocations: 21.39 MB / 1.123 GB, free: 23.41 MB / 458.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.03922/4.708, allocations: 15.18 MB / 1.138 GB, free: 8.273 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/4.708, allocations: 0 / 1.138 GB, free: 8.273 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02222/4.73, allocations: 7.266 MB / 1.145 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01175/4.742, allocations: 1.213 MB / 1.146 GB, free: 15.68 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4259/5.168, allocations: 24.41 MB / 1.17 GB, free: 98.03 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01721/5.185, allocations: 6.326 MB / 1.176 GB, free: 97.11 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01128/5.197, allocations: 4.489 MB / 1.181 GB, free: 97.1 MB / 474.7 MB Notification: Performance of SimCode: time 2.665e-06/5.197, allocations: 0 / 1.181 GB, free: 97.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.236/14.43, allocations: 0.6178 GB / 1.798 GB, free: 72.74 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat