Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) 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.292/2.292, allocations: 235 MB / 248.1 MB, free: 14.6 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.408e-05/3.425e-05, allocations: 4 kB / 309.8 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3856/0.3857, allocations: 54.86 MB / 364.6 MB, free: 5.508 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1911/0.5768, allocations: 95.31 MB / 459.9 MB, free: 1.164 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.5771, allocations: 68.78 kB / 460 MB, free: 1.098 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.056/1.633, allocations: 171.9 MB / 0.6171 GB, free: 75.54 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.633, allocations: 0 / 0.6171 GB, free: 75.54 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008464/1.634, allocations: 176 kB / 0.6173 GB, free: 75.37 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.06723/1.701, allocations: 10.03 MB / 0.6271 GB, free: 65.25 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/1.701, allocations: 12.03 kB / 0.6271 GB, free: 65.24 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006818/1.708, allocations: 1.312 MB / 0.6284 GB, free: 63.92 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1527/1.861, allocations: 21.91 MB / 0.6498 GB, free: 41.96 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06533/1.926, allocations: 19.88 MB / 0.6692 GB, free: 21.99 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006699/1.927, allocations: 0.5576 MB / 0.6697 GB, free: 21.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004219/1.931, allocations: 0.7805 MB / 0.6705 GB, free: 20.65 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05575/1.987, allocations: 19.14 MB / 0.6892 GB, free: 15.72 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006973/1.988, allocations: 138.7 kB / 0.6893 GB, free: 15.58 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003056/1.991, allocations: 367.8 kB / 0.6897 GB, free: 15.22 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004292/1.995, allocations: 1.64 MB / 0.6913 GB, free: 13.58 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4388/2.434, allocations: 15.88 MB / 0.7068 GB, free: 81.77 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.193/2.627, allocations: 90.08 MB / 0.7948 GB, free: 27.63 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0432/2.67, allocations: 8.732 MB / 0.8033 GB, free: 25.19 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009948/2.68, allocations: 4.802 MB / 0.808 GB, free: 22.99 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00196/2.682, allocations: 1.003 MB / 0.809 GB, free: 22.11 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.764e-05/2.683, allocations: 72.69 kB / 0.809 GB, free: 22.04 MB / 474.7 MB Notification: Performance of pre-optimization done (n=322): time 7.303e-06/2.683, allocations: 0 / 0.809 GB, free: 22.04 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.3196/3.002, allocations: 57.58 MB / 0.8653 GB, free: 7.832 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006194/3.008, allocations: 5.132 MB / 0.8703 GB, free: 2.195 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02355/3.032, allocations: 7.471 MB / 0.8776 GB, free: 10.76 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001636/3.034, allocations: 85.7 kB / 0.8777 GB, free: 10.67 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.008329/3.042, allocations: 5.714 MB / 0.8832 GB, free: 4.965 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004161/3.046, allocations: 1.551 MB / 0.8848 GB, free: 3.43 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002548/3.049, allocations: 222.7 kB / 0.885 GB, free: 3.215 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001342/3.05, allocations: 0.7819 MB / 0.8857 GB, free: 2.426 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0174/3.068, allocations: 5.633 MB / 0.8912 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4007/3.468, allocations: 11.91 MB / 0.9029 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02204/3.491, allocations: 8.002 MB / 0.9107 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000339/3.491, allocations: 64.59 kB / 0.9107 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1496/3.641, allocations: 35.66 MB / 0.9456 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001789/3.641, allocations: 98.44 kB / 0.9457 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1051/3.746, allocations: 23.89 MB / 0.969 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1/3.846, allocations: 18.41 MB / 0.987 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01763/3.864, allocations: 2.714 MB / 0.9896 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1065/3.97, allocations: 38.84 MB / 1.028 GB, free: 68.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02618/3.996, allocations: 1.152 MB / 1.029 GB, free: 67.37 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003345/4, allocations: 0.6695 MB / 1.029 GB, free: 66.7 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.005571/4.005, allocations: 0.9347 MB / 1.03 GB, free: 65.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003024/4.009, allocations: 0.7926 MB / 1.031 GB, free: 65.53 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06777/4.076, allocations: 13.65 MB / 1.044 GB, free: 51.88 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0581/4.135, allocations: 12.15 MB / 1.056 GB, free: 39.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.509e-05/4.135, allocations: 16 kB / 1.056 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00012/4.135, allocations: 27.88 kB / 1.056 GB, free: 39.65 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1009/4.236, allocations: 29.18 MB / 1.085 GB, free: 10.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.468e-05/4.236, allocations: 5.062 kB / 1.085 GB, free: 10.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008839/4.245, allocations: 0.8969 MB / 1.086 GB, free: 9.582 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4383/4.683, allocations: 5.516 MB / 1.091 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001589/4.685, allocations: 109.1 kB / 1.091 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06655/4.751, allocations: 28.17 MB / 1.119 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004377/4.756, allocations: 4.685 MB / 1.123 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06641/4.822, allocations: 20.37 MB / 1.143 GB, free: 98.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003383/4.826, allocations: 0.833 MB / 1.144 GB, free: 98.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003698/4.829, allocations: 85.77 kB / 1.144 GB, free: 98.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01119/4.841, allocations: 0.5095 MB / 1.144 GB, free: 98.16 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002487/4.843, allocations: 296.5 kB / 1.145 GB, free: 98.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001281/4.844, allocations: 123 kB / 1.145 GB, free: 98.11 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01555/4.86, allocations: 5.338 MB / 1.15 GB, free: 96.34 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.61e-07/4.86, allocations: 0 / 1.15 GB, free: 96.34 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01781/4.878, allocations: 2.779 MB / 1.153 GB, free: 96.11 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.09138/4.969, allocations: 21.4 MB / 1.174 GB, free: 87.81 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.05071/5.02, allocations: 15.8 MB / 1.189 GB, free: 80.19 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/5.02, allocations: 5.625 kB / 1.189 GB, free: 80.18 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02313/5.043, allocations: 7.338 MB / 1.196 GB, free: 73.55 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01171/5.055, allocations: 1.213 MB / 1.197 GB, free: 72.57 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08318/5.138, allocations: 24.46 MB / 1.221 GB, free: 52.11 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01569/5.154, allocations: 6.329 MB / 1.228 GB, free: 47.55 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01178/5.166, allocations: 4.483 MB / 1.232 GB, free: 43.43 MB / 0.5105 GB Notification: Performance of SimCode: time 1.262e-06/5.166, allocations: 0 / 1.232 GB, free: 43.43 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.334/14.5, allocations: 0.6201 GB / 1.852 GB, free: 36.17 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