Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.052/2.052, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004551/0.0004552, allocations: 16 kB / 282.6 MB, free: 9.57 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1179, allocations: 48.7 MB / 331.4 MB, free: 8.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4351/0.553, allocations: 88.64 MB / 420 MB, free: 12.31 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/0.5533, allocations: 67.97 kB / 420.1 MB, free: 12.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9947/1.548, allocations: 171.6 MB / 0.5778 GB, free: 54.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.199e-06/1.548, allocations: 0 / 0.5778 GB, free: 54.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008894/1.549, allocations: 183.9 kB / 0.578 GB, free: 53.94 MB / 410.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.07322/1.622, allocations: 11.21 MB / 0.589 GB, free: 42.63 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/1.622, allocations: 8.031 kB / 0.589 GB, free: 42.62 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00736/1.63, allocations: 1.312 MB / 0.5902 GB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1535/1.783, allocations: 21.86 MB / 0.6116 GB, free: 19.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06856/1.852, allocations: 19.94 MB / 0.6311 GB, free: 15.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009392/1.853, allocations: 0.5537 MB / 0.6316 GB, free: 14.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005075/1.858, allocations: 0.7805 MB / 0.6324 GB, free: 14.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7077/2.566, allocations: 19.27 MB / 0.6512 GB, free: 61.2 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009783/2.567, allocations: 140.5 kB / 0.6513 GB, free: 61.2 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003998/2.571, allocations: 364.6 kB / 0.6517 GB, free: 61.2 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004988/2.576, allocations: 1.64 MB / 0.6533 GB, free: 61.19 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05688/2.633, allocations: 16.12 MB / 0.669 GB, free: 61.13 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1398/2.773, allocations: 90.07 MB / 0.757 GB, free: 1.551 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04539/2.818, allocations: 8.889 MB / 0.7656 GB, free: 15.5 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002072/2.82, allocations: 1.001 MB / 0.7666 GB, free: 14.62 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001024/2.82, allocations: 73.03 kB / 0.7667 GB, free: 14.55 MB / 442.8 MB Notification: Performance of pre-optimization done (n=322): time 7.214e-06/2.82, allocations: 0 / 0.7667 GB, free: 14.55 MB / 442.8 MB Notification: Performance of matching and sorting (n=397): time 0.9231/3.743, allocations: 67.17 MB / 0.8323 GB, free: 94.2 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005103/3.748, allocations: 5.187 MB / 0.8374 GB, free: 89.53 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0224/3.771, allocations: 7.558 MB / 0.8447 GB, free: 88.95 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001513/3.772, allocations: 86.08 kB / 0.8448 GB, free: 88.91 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006087/3.779, allocations: 5.712 MB / 0.8504 GB, free: 86.02 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003467/3.782, allocations: 1.548 MB / 0.8519 GB, free: 85.13 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00238/3.785, allocations: 218.3 kB / 0.8521 GB, free: 85.13 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.001033/3.786, allocations: 0.7816 MB / 0.8529 GB, free: 84.8 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01458/3.8, allocations: 5.716 MB / 0.8585 GB, free: 84.77 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01978/3.82, allocations: 12.01 MB / 0.8702 GB, free: 75.52 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01966/3.84, allocations: 8.009 MB / 0.878 GB, free: 72.69 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003587/3.84, allocations: 69.27 kB / 0.8781 GB, free: 72.69 MB / 458.8 MB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1647/4.005, allocations: 35.63 MB / 0.9129 GB, free: 65.34 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002796/4.005, allocations: 100.9 kB / 0.913 GB, free: 65.25 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1228/4.128, allocations: 23.82 MB / 0.9362 GB, free: 46.12 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09878/4.227, allocations: 18.24 MB / 0.954 GB, free: 27.88 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01752/4.244, allocations: 2.752 MB / 0.9567 GB, free: 25.12 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4682/4.713, allocations: 40.23 MB / 0.996 GB, free: 78.42 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02081/4.734, allocations: 1.146 MB / 0.9971 GB, free: 78.42 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003896/4.738, allocations: 0.6704 MB / 0.9978 GB, free: 78.42 MB / 458.8 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 () * Number of clocked 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.01542/4.753, allocations: 3.956 MB / 1.002 GB, free: 78.3 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003808/4.757, allocations: 0.795 MB / 1.002 GB, free: 78.3 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05808/4.815, allocations: 13.73 MB / 1.016 GB, free: 77.93 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05008/4.865, allocations: 12.25 MB / 1.028 GB, free: 75.28 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.684e-05/4.865, allocations: 15.34 kB / 1.028 GB, free: 75.28 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001295/4.865, allocations: 19.95 kB / 1.028 GB, free: 75.28 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1164/4.982, allocations: 29.28 MB / 1.056 GB, free: 65.16 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.25e-05/4.982, allocations: 2.031 kB / 1.056 GB, free: 65.16 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01141/4.993, allocations: 0.8988 MB / 1.057 GB, free: 65.14 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0369/5.03, allocations: 5.522 MB / 1.063 GB, free: 64.17 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001578/5.032, allocations: 110.1 kB / 1.063 GB, free: 64.12 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06422/5.096, allocations: 29.2 MB / 1.091 GB, free: 43.56 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00427/5.101, allocations: 4.743 MB / 1.096 GB, free: 38.71 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06297/5.164, allocations: 20.51 MB / 1.116 GB, free: 19.78 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003496/5.167, allocations: 0.8353 MB / 1.117 GB, free: 18.97 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00393/5.171, allocations: 90 kB / 1.117 GB, free: 18.89 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01107/5.182, allocations: 0.5031 MB / 1.117 GB, free: 18.38 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002389/5.185, allocations: 304.6 kB / 1.118 GB, free: 18.09 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008492/5.186, allocations: 120.9 kB / 1.118 GB, free: 17.97 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01504/5.201, allocations: 5.407 MB / 1.123 GB, free: 12.6 MB / 458.8 MB Notification: Performance of sort global known variables: time 8.92e-07/5.201, allocations: 0 / 1.123 GB, free: 12.6 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.02122/5.222, allocations: 2.769 MB / 1.126 GB, free: 9.84 MB / 458.8 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 () * Number of clocked 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,59.4%) 13,(8,54.7%) 13,(8,54.7%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07121/5.293, allocations: 21.55 MB / 1.147 GB, free: 4.312 MB / 474.8 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 can't be selected as a state. [/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 can't be selected as a state. [/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 can't be selected as a state. [/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.3835/5.677, allocations: 15.72 MB / 1.162 GB, free: 117.6 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/5.677, allocations: 0 / 1.162 GB, free: 117.6 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02519/5.702, allocations: 7.437 MB / 1.169 GB, free: 116.2 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01212/5.714, allocations: 1.223 MB / 1.171 GB, free: 116.1 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7434/6.458, allocations: 265.8 MB / 1.43 GB, free: 85.48 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01746/6.475, allocations: 6.321 MB / 1.436 GB, free: 83.95 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0127/6.488, allocations: 4.483 MB / 1.441 GB, free: 80.36 MB / 0.5105 GB Notification: Performance of SimCode: time 1.693e-06/6.488, allocations: 3.469 kB / 1.441 GB, free: 80.36 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.14/16.62, allocations: 0.6189 GB / 2.06 GB, free: 126.8 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat