Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.611/2.611, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.449e-05/3.441e-05, allocations: 0 / 323.5 MB, free: 4.23 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4626/0.4626, allocations: 58.83 MB / 382.3 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1961/0.6588, allocations: 101.7 MB / 483.9 MB, free: 6.836 MB / 410.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.6592, allocations: 67.97 kB / 484 MB, free: 6.77 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 1.038/1.698, allocations: 173.1 MB / 0.6418 GB, free: 32.49 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.354e-06/1.698, allocations: 0 / 0.6418 GB, free: 32.49 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0008505/1.699, allocations: 179.9 kB / 0.6419 GB, free: 32.32 MB / 458.8 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.06583/1.764, allocations: 10.04 MB / 0.6517 GB, free: 22.2 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/1.765, allocations: 15.97 kB / 0.6517 GB, free: 22.18 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006126/1.771, allocations: 1.308 MB / 0.653 GB, free: 20.86 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1535/1.924, allocations: 21.93 MB / 0.6744 GB, free: 14.89 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07803/2.002, allocations: 19.89 MB / 0.6939 GB, free: 10.9 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009762/2.003, allocations: 0.5576 MB / 0.6944 GB, free: 10.34 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004722/2.008, allocations: 0.7806 MB / 0.6952 GB, free: 9.562 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09274/2.101, allocations: 19.07 MB / 0.7138 GB, free: 4.715 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001298/2.102, allocations: 130.8 kB / 0.7139 GB, free: 4.586 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005939/2.108, allocations: 367.8 kB / 0.7143 GB, free: 4.227 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007135/2.115, allocations: 1.644 MB / 0.7159 GB, free: 2.582 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.8998/3.015, allocations: 15.59 MB / 0.7311 GB, free: 89.59 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1498/3.165, allocations: 90.18 MB / 0.8192 GB, free: 34.04 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04401/3.209, allocations: 8.712 MB / 0.8277 GB, free: 31.61 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009934/3.219, allocations: 4.809 MB / 0.8324 GB, free: 29.4 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001988/3.221, allocations: 1.002 MB / 0.8333 GB, free: 28.52 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.508e-05/3.221, allocations: 63.97 kB / 0.8334 GB, free: 28.46 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=322): time 8.476e-06/3.221, allocations: 0 / 0.8334 GB, free: 28.46 MB / 0.4949 GB Notification: Performance of matching and sorting (n=397): time 0.3233/3.545, allocations: 57.59 MB / 0.8896 GB, free: 7.047 MB / 0.5106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0064/3.551, allocations: 5.125 MB / 0.8946 GB, free: 1.598 MB / 0.5106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02546/3.577, allocations: 7.622 MB / 0.9021 GB, free: 10.91 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001565/3.578, allocations: 88.75 kB / 0.9022 GB, free: 10.82 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.009016/3.587, allocations: 6.134 MB / 0.9082 GB, free: 4.691 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003748/3.591, allocations: 1.547 MB / 0.9097 GB, free: 3.156 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002482/3.594, allocations: 220 kB / 0.9099 GB, free: 2.941 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.001407/3.595, allocations: 0.7773 MB / 0.9106 GB, free: 2.16 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0165/3.612, allocations: 5.637 MB / 0.9162 GB, free: 12.52 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4342/4.046, allocations: 11.87 MB / 0.9277 GB, free: 124.8 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02043/4.067, allocations: 8.01 MB / 0.9356 GB, free: 124.7 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003202/4.067, allocations: 62.97 kB / 0.9356 GB, free: 124.7 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1455) (initialization): time 0.1493/4.216, allocations: 35.43 MB / 0.9702 GB, free: 124.1 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001805/4.216, allocations: 107.8 kB / 0.9703 GB, free: 124.1 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.105/4.321, allocations: 23.91 MB / 0.9937 GB, free: 123.7 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1017/4.423, allocations: 18.4 MB / 1.012 GB, free: 120.9 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01764/4.441, allocations: 2.721 MB / 1.014 GB, free: 118.3 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08459/4.526, allocations: 38.84 MB / 1.052 GB, free: 78.88 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01994/4.546, allocations: 1.146 MB / 1.053 GB, free: 77.77 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003408/4.549, allocations: 0.6654 MB / 1.054 GB, free: 77.1 MB / 0.5418 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.005432/4.555, allocations: 0.9379 MB / 1.055 GB, free: 76.3 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002836/4.557, allocations: 0.7928 MB / 1.056 GB, free: 75.94 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05924/4.617, allocations: 13.65 MB / 1.069 GB, free: 62.28 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0466/4.663, allocations: 12.16 MB / 1.081 GB, free: 50.1 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.415e-05/4.663, allocations: 19.97 kB / 1.081 GB, free: 50.08 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001156/4.664, allocations: 23.92 kB / 1.081 GB, free: 50.06 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1008/4.764, allocations: 29.19 MB / 1.109 GB, free: 20.96 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.868e-05/4.765, allocations: 0 / 1.109 GB, free: 20.96 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00891/4.773, allocations: 0.8931 MB / 1.11 GB, free: 20.07 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03297/4.807, allocations: 5.514 MB / 1.116 GB, free: 14.52 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001792/4.808, allocations: 103.9 kB / 1.116 GB, free: 14.42 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5059/5.314, allocations: 28.17 MB / 1.143 GB, free: 112.3 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0065/5.321, allocations: 4.673 MB / 1.148 GB, free: 108.3 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09664/5.418, allocations: 20.37 MB / 1.168 GB, free: 107 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004496/5.422, allocations: 0.8307 MB / 1.169 GB, free: 106.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005262/5.428, allocations: 90.89 kB / 1.169 GB, free: 106.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0162/5.444, allocations: 0.5004 MB / 1.169 GB, free: 106.9 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003229/5.447, allocations: 303.5 kB / 1.169 GB, free: 106.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001748/5.449, allocations: 130 kB / 1.17 GB, free: 106.9 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.02213/5.471, allocations: 5.343 MB / 1.175 GB, free: 106.6 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.833e-06/5.471, allocations: 0 / 1.175 GB, free: 106.6 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.02653/5.498, allocations: 2.792 MB / 1.178 GB, free: 106.6 MB / 0.5418 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.1015/5.599, allocations: 21.41 MB / 1.198 GB, free: 99.89 MB / 0.5418 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/Mechanics/MultiBody/Joints.mo:1279:5-1281: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.3/Mechanics/MultiBody/Joints.mo:1279:5-1281: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.3/Mechanics/MultiBody/Joints.mo:1279:5-1281:19: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 3.2.3/Mechanics/MultiBody/Joints.mo:1279:5-1281:19: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.06173/5.661, allocations: 15.43 MB / 1.213 GB, free: 93.98 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.711e-05/5.661, allocations: 3.438 kB / 1.213 GB, free: 93.98 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.0311/5.692, allocations: 7.263 MB / 1.221 GB, free: 90.63 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01157/5.704, allocations: 1.215 MB / 1.222 GB, free: 90.18 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08196/5.786, allocations: 23.47 MB / 1.245 GB, free: 70.8 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01559/5.802, allocations: 6.329 MB / 1.251 GB, free: 66.24 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.01838/5.82, allocations: 3.733 MB / 1.255 GB, free: 63.79 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01161/5.832, allocations: 4.419 MB / 1.259 GB, free: 59.72 MB / 0.5418 GB Notification: Performance of SimCode: time 1.794e-06/5.832, allocations: 0 / 1.259 GB, free: 59.72 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8785/6.71, allocations: 215.3 MB / 1.469 GB, free: 55.11 MB / 0.5574 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002484/6.711, allocations: 181 kB / 1.469 GB, free: 54.89 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/17.56, allocations: 0 / 1.469 GB, free: 54.89 MB / 0.5574 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat