Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.404/2.404, allocations: 235 MB / 247.2 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.629e-05/3.638e-05, allocations: 4 kB / 305 MB, free: 5.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4291/0.4292, allocations: 54.85 MB / 359.9 MB, free: 3.133 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2522/0.6814, allocations: 95.3 MB / 455.2 MB, free: 1.609 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003185/0.6818, allocations: 67.97 kB / 455.2 MB, free: 1.543 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.046/1.727, allocations: 171.9 MB / 0.6124 GB, free: 76.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.144e-06/1.727, allocations: 0 / 0.6124 GB, free: 76.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008616/1.728, allocations: 176 kB / 0.6126 GB, free: 76.23 MB / 458.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.06658/1.795, allocations: 10.03 MB / 0.6224 GB, free: 66.11 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/1.795, allocations: 8.031 kB / 0.6224 GB, free: 66.11 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007141/1.802, allocations: 1.308 MB / 0.6237 GB, free: 64.79 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1521/1.954, allocations: 21.92 MB / 0.6451 GB, free: 42.82 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06836/2.023, allocations: 19.88 MB / 0.6645 GB, free: 22.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007499/2.023, allocations: 0.5576 MB / 0.665 GB, free: 22.28 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004387/2.028, allocations: 0.7844 MB / 0.6658 GB, free: 21.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05929/2.087, allocations: 19.14 MB / 0.6845 GB, free: 0.5742 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007241/2.088, allocations: 130.8 kB / 0.6846 GB, free: 456 kB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003448/2.091, allocations: 367.8 kB / 0.685 GB, free: 88 kB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004472/2.096, allocations: 1.64 MB / 0.6866 GB, free: 14.45 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7408/2.837, allocations: 15.89 MB / 0.7021 GB, free: 79.4 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1558/2.993, allocations: 90.07 MB / 0.79 GB, free: 25.56 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04307/3.036, allocations: 8.746 MB / 0.7986 GB, free: 23.11 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009892/3.046, allocations: 4.803 MB / 0.8033 GB, free: 20.91 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001972/3.048, allocations: 1 MB / 0.8042 GB, free: 20.03 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.066e-05/3.048, allocations: 72.28 kB / 0.8043 GB, free: 19.97 MB / 474.8 MB Notification: Performance of pre-optimization done (n=322): time 7.444e-06/3.048, allocations: 0 / 0.8043 GB, free: 19.97 MB / 474.8 MB Notification: Performance of matching and sorting (n=397): time 0.3189/3.367, allocations: 57.57 MB / 0.8605 GB, free: 6.914 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006244/3.373, allocations: 5.137 MB / 0.8656 GB, free: 1.355 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02368/3.397, allocations: 7.471 MB / 0.8729 GB, free: 9.918 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.00162/3.399, allocations: 93.17 kB / 0.8729 GB, free: 9.824 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.009151/3.408, allocations: 6.111 MB / 0.8789 GB, free: 3.723 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003854/3.412, allocations: 1.546 MB / 0.8804 GB, free: 2.188 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002582/3.414, allocations: 223.6 kB / 0.8806 GB, free: 1.973 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001602/3.416, allocations: 0.7733 MB / 0.8814 GB, free: 1.195 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01701/3.433, allocations: 5.637 MB / 0.8869 GB, free: 11.55 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4076/3.841, allocations: 11.91 MB / 0.8985 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02127/3.862, allocations: 8.006 MB / 0.9063 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003204/3.863, allocations: 62.75 kB / 0.9064 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1509/4.013, allocations: 36.02 MB / 0.9416 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001804/4.014, allocations: 100.2 kB / 0.9417 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.104/4.118, allocations: 23.9 MB / 0.965 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1004/4.218, allocations: 18.4 MB / 0.983 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01808/4.236, allocations: 2.721 MB / 0.9856 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08346/4.32, allocations: 38.84 MB / 1.024 GB, free: 66.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01991/4.34, allocations: 1.15 MB / 1.025 GB, free: 65.42 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003058/4.343, allocations: 0.6698 MB / 1.025 GB, free: 64.75 MB / 0.5105 GB 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 (1304): * Single equations (assignments): 1280 * 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.004595/4.348, allocations: 0.9407 MB / 1.026 GB, free: 63.95 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002328/4.35, allocations: 0.7873 MB / 1.027 GB, free: 63.59 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05134/4.401, allocations: 13.65 MB / 1.04 GB, free: 49.93 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04513/4.446, allocations: 12.15 MB / 1.052 GB, free: 37.72 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.299e-05/4.447, allocations: 23.95 kB / 1.052 GB, free: 37.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001137/4.447, allocations: 19.92 kB / 1.052 GB, free: 37.68 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1155/4.562, allocations: 29.18 MB / 1.081 GB, free: 8.504 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.932e-05/4.562, allocations: 4 kB / 1.081 GB, free: 8.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008894/4.571, allocations: 0.901 MB / 1.082 GB, free: 7.598 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4153/4.987, allocations: 5.507 MB / 1.087 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001504/4.988, allocations: 112.5 kB / 1.087 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06544/5.054, allocations: 28.18 MB / 1.115 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004218/5.058, allocations: 4.677 MB / 1.119 GB, free: 98.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06257/5.121, allocations: 20.37 MB / 1.139 GB, free: 96.37 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003025/5.124, allocations: 0.826 MB / 1.14 GB, free: 96.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003543/5.127, allocations: 90.98 kB / 1.14 GB, free: 96.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01083/5.138, allocations: 0.5043 MB / 1.141 GB, free: 96.12 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002362/5.14, allocations: 301.9 kB / 1.141 GB, free: 96.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001083/5.142, allocations: 123.9 kB / 1.141 GB, free: 96.06 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0146/5.156, allocations: 5.327 MB / 1.146 GB, free: 94.31 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.71e-07/5.156, allocations: 0 / 1.146 GB, free: 94.31 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01753/5.174, allocations: 2.786 MB / 1.149 GB, free: 94.07 MB / 0.5105 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.06726/5.241, allocations: 21.41 MB / 1.17 GB, free: 85.8 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300: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.2/Mechanics/MultiBody/Joints.mo:1298:5-1300: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.2/Mechanics/MultiBody/Joints.mo:1298:5-1300: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.2/Mechanics/MultiBody/Joints.mo:1298:5-1300: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.04143/5.283, allocations: 15.78 MB / 1.185 GB, free: 78.41 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/5.283, allocations: 4 kB / 1.185 GB, free: 78.41 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02248/5.305, allocations: 7.347 MB / 1.192 GB, free: 71.79 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0114/5.317, allocations: 1.216 MB / 1.194 GB, free: 70.79 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07703/5.394, allocations: 23.48 MB / 1.216 GB, free: 51.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01408/5.408, allocations: 6.321 MB / 1.223 GB, free: 46.52 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01661/5.425, allocations: 3.721 MB / 1.226 GB, free: 44.07 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01062/5.435, allocations: 4.415 MB / 1.231 GB, free: 40.01 MB / 0.5105 GB Notification: Performance of SimCode: time 1.673e-06/5.435, allocations: 0 / 1.231 GB, free: 40.01 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.847/6.282, allocations: 216.1 MB / 1.442 GB, free: 18.58 MB / 0.5262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002865/6.283, allocations: 195.8 kB / 1.442 GB, free: 18.35 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/16.77, allocations: 0 / 1.442 GB, free: 18.35 MB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat