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.907/1.907, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.493e-05/5.5e-05, allocations: 4 kB / 273.2 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1089, allocations: 48.7 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4311/0.54, allocations: 88.55 MB / 410.4 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/0.5403, allocations: 63.98 kB / 410.5 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.077/1.618, allocations: 171.7 MB / 0.5685 GB, free: 83.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.276e-06/1.618, allocations: 0 / 0.5685 GB, free: 83.27 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001046/1.619, allocations: 175.1 kB / 0.5687 GB, free: 83.26 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.07857/1.697, allocations: 10.03 MB / 0.5785 GB, free: 77.31 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/1.698, allocations: 9.375 kB / 0.5785 GB, free: 77.31 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006605/1.704, allocations: 1.317 MB / 0.5798 GB, free: 76.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1508/1.855, allocations: 21.89 MB / 0.6012 GB, free: 54.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06587/1.921, allocations: 19.86 MB / 0.6206 GB, free: 34.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007244/1.922, allocations: 0.5584 MB / 0.6211 GB, free: 34.37 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004496/1.926, allocations: 0.7806 MB / 0.6219 GB, free: 33.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0615/1.988, allocations: 19.05 MB / 0.6405 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007359/1.989, allocations: 142.7 kB / 0.6406 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003787/1.992, allocations: 363.8 kB / 0.641 GB, free: 12.26 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004071/1.997, allocations: 1.644 MB / 0.6426 GB, free: 10.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3878/2.384, allocations: 15.58 MB / 0.6578 GB, free: 70.38 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1543/2.539, allocations: 90.06 MB / 0.7457 GB, free: 14.08 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04418/2.583, allocations: 8.716 MB / 0.7543 GB, free: 11.64 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009981/2.593, allocations: 4.803 MB / 0.7589 GB, free: 9.434 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001879/2.595, allocations: 1.002 MB / 0.7599 GB, free: 8.555 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.476e-05/2.595, allocations: 76.3 kB / 0.76 GB, free: 8.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=322): time 8.365e-06/2.595, allocations: 1.875 kB / 0.76 GB, free: 8.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=397): time 0.3252/2.92, allocations: 57.56 MB / 0.8162 GB, free: 4.949 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3404/3.261, allocations: 5.116 MB / 0.8212 GB, free: 103.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02321/3.284, allocations: 7.467 MB / 0.8285 GB, free: 102.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001536/3.286, allocations: 89.23 kB / 0.8286 GB, free: 102.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007856/3.293, allocations: 6.12 MB / 0.8346 GB, free: 100.9 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003711/3.297, allocations: 1.548 MB / 0.8361 GB, free: 99.98 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001965/3.299, allocations: 225.1 kB / 0.8363 GB, free: 99.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001221/3.3, allocations: 0.7804 MB / 0.8371 GB, free: 99.66 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01648/3.317, allocations: 5.627 MB / 0.8425 GB, free: 99.64 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02044/3.337, allocations: 11.85 MB / 0.8541 GB, free: 91.65 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01936/3.357, allocations: 7.993 MB / 0.8619 GB, free: 90.09 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003323/3.357, allocations: 60.97 kB / 0.862 GB, free: 90.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1491/3.506, allocations: 35.22 MB / 0.8964 GB, free: 83.56 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000474/3.507, allocations: 97.53 kB / 0.8965 GB, free: 83.56 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1053/3.612, allocations: 23.74 MB / 0.9197 GB, free: 71.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1003/3.713, allocations: 18.22 MB / 0.9375 GB, free: 53.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01802/3.731, allocations: 2.756 MB / 0.9401 GB, free: 50.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08376/3.815, allocations: 38.13 MB / 0.9774 GB, free: 11.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0204/3.835, allocations: 1.145 MB / 0.9785 GB, free: 10.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003416/3.838, allocations: 0.6677 MB / 0.9791 GB, free: 9.832 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.005651/3.844, allocations: 0.9386 MB / 0.9801 GB, free: 8.891 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002965/3.847, allocations: 0.7868 MB / 0.9808 GB, free: 8.094 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4057/4.253, allocations: 13.64 MB / 0.9942 GB, free: 87.49 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05214/4.305, allocations: 12.16 MB / 1.006 GB, free: 87.21 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.232e-05/4.305, allocations: 18 kB / 1.006 GB, free: 87.21 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001067/4.305, allocations: 17.34 kB / 1.006 GB, free: 87.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09862/4.404, allocations: 29.19 MB / 1.035 GB, free: 82.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.466e-05/4.404, allocations: 3.188 kB / 1.035 GB, free: 82.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008925/4.413, allocations: 0.8981 MB / 1.035 GB, free: 82.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03304/4.446, allocations: 5.513 MB / 1.041 GB, free: 81.78 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001463/4.448, allocations: 109.8 kB / 1.041 GB, free: 81.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05982/4.507, allocations: 28.17 MB / 1.068 GB, free: 67.49 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004193/4.512, allocations: 4.687 MB / 1.073 GB, free: 63.15 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06254/4.574, allocations: 20.36 MB / 1.093 GB, free: 51.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003273/4.578, allocations: 0.83 MB / 1.094 GB, free: 51.04 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003746/4.581, allocations: 90.98 kB / 1.094 GB, free: 50.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01117/4.593, allocations: 0.5066 MB / 1.094 GB, free: 50.67 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002177/4.595, allocations: 302.2 kB / 1.095 GB, free: 50.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007318/4.596, allocations: 119 kB / 1.095 GB, free: 50.42 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01375/4.609, allocations: 5.327 MB / 1.1 GB, free: 45.77 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.192e-06/4.609, allocations: 6.062 kB / 1.1 GB, free: 45.76 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01736/4.627, allocations: 2.771 MB / 1.103 GB, free: 43 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.06281/4.69, allocations: 21.39 MB / 1.123 GB, free: 22.83 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.03888/4.729, allocations: 15.15 MB / 1.138 GB, free: 7.738 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/4.729, allocations: 4 kB / 1.138 GB, free: 7.734 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02326/4.752, allocations: 7.268 MB / 1.145 GB, free: 316 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01269/4.765, allocations: 1.221 MB / 1.147 GB, free: 15.14 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4509/5.216, allocations: 23.43 MB / 1.169 GB, free: 98.03 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01827/5.234, allocations: 6.324 MB / 1.176 GB, free: 97.11 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01894/5.253, allocations: 3.727 MB / 1.179 GB, free: 97.03 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01148/5.265, allocations: 4.414 MB / 1.184 GB, free: 97.02 MB / 474.7 MB Notification: Performance of SimCode: time 2.074e-06/5.265, allocations: 0 / 1.184 GB, free: 97.02 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8209/6.085, allocations: 213.7 MB / 1.392 GB, free: 83.92 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002374/6.086, allocations: 188.6 kB / 1.392 GB, free: 83.69 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/16.61, allocations: 0 / 1.392 GB, free: 83.69 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