Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.949/1.949, allocations: 209.3 MB / 221.5 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.987e-05/2.997e-05, allocations: 0 / 273.1 MB, free: 172 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1435, allocations: 48.71 MB / 321.8 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4277/0.5713, allocations: 88.54 MB / 410.4 MB, free: 1.066 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.5716, allocations: 67.97 kB / 410.5 MB, free: 1 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.02/1.591, allocations: 171.7 MB / 0.5685 GB, free: 83.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.495e-06/1.591, allocations: 0 / 0.5685 GB, free: 83.5 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008621/1.592, allocations: 177 kB / 0.5687 GB, free: 83.49 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.06781/1.66, allocations: 10.02 MB / 0.5785 GB, free: 77.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/1.66, allocations: 10.12 kB / 0.5785 GB, free: 77.55 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006959/1.667, allocations: 1.312 MB / 0.5798 GB, free: 76.7 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1499/1.817, allocations: 21.9 MB / 0.6011 GB, free: 54.78 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06509/1.882, allocations: 19.86 MB / 0.6205 GB, free: 35.06 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006612/1.883, allocations: 0.5545 MB / 0.6211 GB, free: 34.51 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004429/1.887, allocations: 0.7845 MB / 0.6219 GB, free: 33.72 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05846/1.946, allocations: 19.14 MB / 0.6405 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006548/1.946, allocations: 134.7 kB / 0.6407 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003529/1.95, allocations: 367.8 kB / 0.641 GB, free: 12.31 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004086/1.954, allocations: 1.644 MB / 0.6426 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3834/2.338, allocations: 15.89 MB / 0.6581 GB, free: 70.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1518/2.489, allocations: 90.06 MB / 0.7461 GB, free: 14.06 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04464/2.534, allocations: 8.752 MB / 0.7546 GB, free: 11.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01004/2.544, allocations: 4.801 MB / 0.7593 GB, free: 9.414 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002045/2.546, allocations: 0.996 MB / 0.7603 GB, free: 8.535 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.26e-05/2.546, allocations: 73.3 kB / 0.7604 GB, free: 8.465 MB / 426.7 MB Notification: Performance of pre-optimization done (n=322): time 8.816e-06/2.546, allocations: 6.438 kB / 0.7604 GB, free: 8.465 MB / 426.7 MB Notification: Performance of matching and sorting (n=397): time 0.3398/2.886, allocations: 57.56 MB / 0.8166 GB, free: 4.672 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3295/3.216, allocations: 5.132 MB / 0.8216 GB, free: 103.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02352/3.239, allocations: 7.479 MB / 0.8289 GB, free: 102.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001509/3.241, allocations: 83.98 kB / 0.829 GB, free: 102.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007752/3.249, allocations: 6.114 MB / 0.835 GB, free: 101 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003414/3.252, allocations: 1.55 MB / 0.8365 GB, free: 100.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002069/3.254, allocations: 219.5 kB / 0.8367 GB, free: 100.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00111/3.255, allocations: 0.7788 MB / 0.8374 GB, free: 99.75 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01596/3.271, allocations: 5.624 MB / 0.8429 GB, free: 99.73 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01941/3.291, allocations: 11.92 MB / 0.8546 GB, free: 91.71 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01859/3.31, allocations: 7.996 MB / 0.8624 GB, free: 90.09 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002422/3.31, allocations: 61.38 kB / 0.8624 GB, free: 90.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1456/3.455, allocations: 35.83 MB / 0.8974 GB, free: 83.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002067/3.456, allocations: 100.3 kB / 0.8975 GB, free: 83.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1037/3.559, allocations: 23.74 MB / 0.9207 GB, free: 70.76 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09816/3.658, allocations: 18.23 MB / 0.9385 GB, free: 52.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01818/3.676, allocations: 2.749 MB / 0.9412 GB, free: 49.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08122/3.757, allocations: 38.13 MB / 0.9784 GB, free: 10.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01941/3.777, allocations: 1.136 MB / 0.9795 GB, free: 9.652 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003214/3.78, allocations: 0.6686 MB / 0.9802 GB, free: 8.984 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.003252/3.783, allocations: 0.9434 MB / 0.9811 GB, free: 8.035 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002399/3.786, allocations: 0.7867 MB / 0.9819 GB, free: 7.238 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4105/4.196, allocations: 13.64 MB / 0.9952 GB, free: 87.94 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0485/4.245, allocations: 12.17 MB / 1.007 GB, free: 87.65 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.525e-05/4.245, allocations: 13.5 kB / 1.007 GB, free: 87.65 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000108/4.245, allocations: 15.84 kB / 1.007 GB, free: 87.65 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09515/4.34, allocations: 29.2 MB / 1.036 GB, free: 82.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.257e-05/4.34, allocations: 3.094 kB / 1.036 GB, free: 82.81 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008714/4.349, allocations: 0.8958 MB / 1.037 GB, free: 82.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03297/4.382, allocations: 5.521 MB / 1.042 GB, free: 81.83 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00148/4.383, allocations: 110.2 kB / 1.042 GB, free: 81.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06055/4.444, allocations: 28.18 MB / 1.07 GB, free: 67.54 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00393/4.448, allocations: 4.686 MB / 1.074 GB, free: 63.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06255/4.511, allocations: 20.37 MB / 1.094 GB, free: 50.68 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003284/4.514, allocations: 0.8269 MB / 1.095 GB, free: 50.29 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004607/4.519, allocations: 93.12 kB / 1.095 GB, free: 50.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01159/4.53, allocations: 0.5054 MB / 1.095 GB, free: 49.92 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002413/4.533, allocations: 294.7 kB / 1.096 GB, free: 49.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0012/4.534, allocations: 128.3 kB / 1.096 GB, free: 49.66 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01407/4.548, allocations: 5.327 MB / 1.101 GB, free: 45.01 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.21e-07/4.548, allocations: 2.969 kB / 1.101 GB, free: 45.01 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01635/4.564, allocations: 2.771 MB / 1.104 GB, free: 42.25 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.07296/4.637, allocations: 21.39 MB / 1.125 GB, free: 22 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.04826/4.686, allocations: 15.52 MB / 1.14 GB, free: 6.527 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.465e-06/4.686, allocations: 0 / 1.14 GB, free: 6.527 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02286/4.709, allocations: 7.343 MB / 1.147 GB, free: 15 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0116/4.72, allocations: 1.221 MB / 1.148 GB, free: 13.84 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4234/5.144, allocations: 23.48 MB / 1.171 GB, free: 99.55 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01756/5.161, allocations: 6.318 MB / 1.177 GB, free: 98.62 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01876/5.18, allocations: 3.73 MB / 1.181 GB, free: 98.55 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01213/5.192, allocations: 4.41 MB / 1.185 GB, free: 98.54 MB / 474.7 MB Notification: Performance of SimCode: time 1.273e-06/5.192, allocations: 0 / 1.185 GB, free: 98.54 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8764/6.069, allocations: 214.8 MB / 1.395 GB, free: 88.27 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002703/6.069, allocations: 202.2 kB / 1.395 GB, free: 88.03 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/16.71, allocations: 0 / 1.395 GB, free: 88.03 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat