Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.429/2.429, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.236e-05/3.248e-05, allocations: 0.9375 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3857/0.3858, allocations: 54.85 MB / 359.9 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1905/0.5764, allocations: 95.3 MB / 455.2 MB, free: 1.555 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.5767, allocations: 63.98 kB / 455.2 MB, free: 1.492 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.075/1.652, allocations: 171.9 MB / 0.6124 GB, free: 76.31 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.068e-06/1.652, allocations: 4 kB / 0.6124 GB, free: 76.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008349/1.653, allocations: 172 kB / 0.6126 GB, free: 76.14 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.07509/1.728, allocations: 10.03 MB / 0.6224 GB, free: 66.03 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.079e-05/1.728, allocations: 8.031 kB / 0.6224 GB, free: 66.02 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007757/1.736, allocations: 1.316 MB / 0.6237 GB, free: 64.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1639/1.9, allocations: 21.92 MB / 0.6451 GB, free: 42.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06687/1.967, allocations: 19.88 MB / 0.6645 GB, free: 22.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007697/1.968, allocations: 0.5576 MB / 0.665 GB, free: 22.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004779/1.973, allocations: 0.7844 MB / 0.6658 GB, free: 21.41 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06108/2.034, allocations: 19.04 MB / 0.6844 GB, free: 0.582 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008235/2.035, allocations: 134.8 kB / 0.6845 GB, free: 460 kB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003725/2.038, allocations: 367.8 kB / 0.6849 GB, free: 92 kB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004677/2.043, allocations: 1.644 MB / 0.6865 GB, free: 14.45 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4166/2.46, allocations: 15.58 MB / 0.7017 GB, free: 81.09 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1557/2.616, allocations: 90.07 MB / 0.7897 GB, free: 27.15 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04404/2.66, allocations: 8.715 MB / 0.7982 GB, free: 24.71 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0103/2.67, allocations: 4.809 MB / 0.8029 GB, free: 22.51 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002/2.672, allocations: 0.9947 MB / 0.8038 GB, free: 21.63 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.501e-05/2.672, allocations: 79.09 kB / 0.8039 GB, free: 21.57 MB / 474.7 MB Notification: Performance of pre-optimization done (n=322): time 7.243e-06/2.672, allocations: 0 / 0.8039 GB, free: 21.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.3154/2.988, allocations: 57.55 MB / 0.8601 GB, free: 9.215 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005997/2.994, allocations: 5.123 MB / 0.8651 GB, free: 3.754 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0227/3.016, allocations: 7.474 MB / 0.8724 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001528/3.018, allocations: 92.59 kB / 0.8725 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.007644/3.026, allocations: 5.71 MB / 0.8781 GB, free: 6.52 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004104/3.03, allocations: 1.546 MB / 0.8796 GB, free: 4.984 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002573/3.032, allocations: 222 kB / 0.8798 GB, free: 4.77 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001412/3.034, allocations: 0.7819 MB / 0.8806 GB, free: 3.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01646/3.05, allocations: 5.629 MB / 0.8861 GB, free: 14.35 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3983/3.449, allocations: 11.85 MB / 0.8976 GB, free: 119.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02646/3.475, allocations: 8.001 MB / 0.9055 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003142/3.476, allocations: 62.06 kB / 0.9055 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1871/3.663, allocations: 35.05 MB / 0.9397 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002604/3.663, allocations: 102.6 kB / 0.9398 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1249/3.788, allocations: 23.9 MB / 0.9632 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1014/3.89, allocations: 18.4 MB / 0.9811 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0176/3.907, allocations: 2.719 MB / 0.9838 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08382/3.991, allocations: 38.84 MB / 1.022 GB, free: 69.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01962/4.011, allocations: 1.15 MB / 1.023 GB, free: 68.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003218/4.014, allocations: 0.6729 MB / 1.024 GB, free: 67.77 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.005031/4.019, allocations: 0.9339 MB / 1.024 GB, free: 66.97 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002803/4.022, allocations: 0.7832 MB / 1.025 GB, free: 66.61 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05321/4.075, allocations: 13.66 MB / 1.039 GB, free: 52.95 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0475/4.123, allocations: 12.16 MB / 1.05 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.96e-05/4.123, allocations: 17.2 kB / 1.05 GB, free: 40.75 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001115/4.123, allocations: 23.92 kB / 1.05 GB, free: 40.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09557/4.219, allocations: 29.18 MB / 1.079 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-05/4.219, allocations: 0 / 1.079 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008781/4.227, allocations: 0.901 MB / 1.08 GB, free: 10.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03251/4.26, allocations: 5.512 MB / 1.085 GB, free: 5.137 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001418/4.261, allocations: 112.6 kB / 1.085 GB, free: 5.027 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4666/4.728, allocations: 28.16 MB / 1.113 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004696/4.733, allocations: 4.678 MB / 1.117 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06312/4.796, allocations: 20.36 MB / 1.137 GB, free: 99.98 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003169/4.799, allocations: 0.8359 MB / 1.138 GB, free: 99.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00368/4.803, allocations: 86.14 kB / 1.138 GB, free: 99.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01121/4.814, allocations: 0.509 MB / 1.139 GB, free: 99.73 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002483/4.817, allocations: 293.6 kB / 1.139 GB, free: 99.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001193/4.818, allocations: 123.5 kB / 1.139 GB, free: 99.68 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01516/4.833, allocations: 5.326 MB / 1.144 GB, free: 97.92 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.555e-06/4.833, allocations: 0.8438 kB / 1.144 GB, free: 97.92 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01792/4.851, allocations: 2.792 MB / 1.147 GB, free: 97.68 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.06487/4.916, allocations: 21.4 MB / 1.168 GB, free: 89.37 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.04132/4.958, allocations: 15.41 MB / 1.183 GB, free: 83.38 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.198e-05/4.958, allocations: 0.5625 kB / 1.183 GB, free: 83.38 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02355/4.981, allocations: 7.27 MB / 1.19 GB, free: 76.89 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0116/4.993, allocations: 1.222 MB / 1.191 GB, free: 75.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08121/5.074, allocations: 24.42 MB / 1.215 GB, free: 55.55 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0154/5.09, allocations: 6.325 MB / 1.221 GB, free: 50.99 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0114/5.101, allocations: 4.48 MB / 1.226 GB, free: 46.87 MB / 0.5105 GB Notification: Performance of SimCode: time 1.323e-06/5.101, allocations: 0 / 1.226 GB, free: 46.87 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.219/14.32, allocations: 0.6183 GB / 1.844 GB, free: 41.02 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat