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.33/2.33, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004838/0.0004838, allocations: 16 kB / 314.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3432, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1678/0.5111, allocations: 95.4 MB / 464.7 MB, free: 11.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.5114, allocations: 75.97 kB / 464.8 MB, free: 11 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.024/1.536, allocations: 171.8 MB / 0.6217 GB, free: 11.48 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.536, allocations: 0 / 0.6217 GB, free: 11.48 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008649/1.537, allocations: 172 kB / 0.6219 GB, free: 11.31 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.09237/1.629, allocations: 11.22 MB / 0.6328 GB, free: 16 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.4e-05/1.629, allocations: 12.03 kB / 0.6328 GB, free: 15.98 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008633/1.638, allocations: 1.312 MB / 0.6341 GB, free: 14.67 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.545/2.183, allocations: 21.88 MB / 0.6555 GB, free: 68.66 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06666/2.25, allocations: 19.96 MB / 0.675 GB, free: 68.37 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006761/2.25, allocations: 0.5554 MB / 0.6755 GB, free: 68.35 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004199/2.255, allocations: 0.7802 MB / 0.6763 GB, free: 68.34 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06028/2.315, allocations: 19.28 MB / 0.6951 GB, free: 63.58 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008134/2.316, allocations: 130.8 kB / 0.6952 GB, free: 63.56 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003928/2.32, allocations: 369.5 kB / 0.6956 GB, free: 63.56 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00413/2.324, allocations: 1.648 MB / 0.6972 GB, free: 63.54 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05267/2.377, allocations: 16.11 MB / 0.7129 GB, free: 63.49 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1441/2.521, allocations: 90.06 MB / 0.8009 GB, free: 9.25 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05938/2.58, allocations: 8.794 MB / 0.8095 GB, free: 2.344 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002876/2.583, allocations: 1 MB / 0.8104 GB, free: 1.27 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001375/2.583, allocations: 72.16 kB / 0.8105 GB, free: 1.191 MB / 490.7 MB Notification: Performance of pre-optimization done (n=322): time 1.076e-05/2.583, allocations: 0 / 0.8105 GB, free: 1.191 MB / 490.7 MB Notification: Performance of matching and sorting (n=397): time 0.8263/3.41, allocations: 68.87 MB / 0.8778 GB, free: 93.26 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004628/3.415, allocations: 5.186 MB / 0.8828 GB, free: 88.58 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02134/3.436, allocations: 7.551 MB / 0.8902 GB, free: 88 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001692/3.438, allocations: 90.77 kB / 0.8903 GB, free: 87.96 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.006389/3.444, allocations: 5.723 MB / 0.8959 GB, free: 85.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003569/3.448, allocations: 1.539 MB / 0.8974 GB, free: 84.32 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002528/3.45, allocations: 220.3 kB / 0.8976 GB, free: 84.32 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.00126/3.452, allocations: 0.7886 MB / 0.8984 GB, free: 83.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01492/3.467, allocations: 5.717 MB / 0.904 GB, free: 83.96 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0201/3.487, allocations: 12.01 MB / 0.9157 GB, free: 75.16 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02005/3.507, allocations: 8.02 MB / 0.9235 GB, free: 72.32 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002908/3.507, allocations: 67.88 kB / 0.9236 GB, free: 72.32 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1518/3.659, allocations: 35.82 MB / 0.9586 GB, free: 56.18 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001797/3.659, allocations: 96 kB / 0.9587 GB, free: 56.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1036/3.763, allocations: 23.99 MB / 0.9821 GB, free: 36.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09864/3.862, allocations: 18.41 MB / 1 GB, free: 18.11 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0175/3.879, allocations: 2.724 MB / 1.003 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5193/4.398, allocations: 41.05 MB / 1.043 GB, free: 89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02232/4.421, allocations: 1.145 MB / 1.044 GB, free: 89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00404/4.425, allocations: 0.6666 MB / 1.045 GB, free: 89 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 () * Number of clocked 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.01682/4.442, allocations: 3.951 MB / 1.048 GB, free: 88.88 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003469/4.445, allocations: 0.7876 MB / 1.049 GB, free: 88.88 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06947/4.515, allocations: 13.74 MB / 1.063 GB, free: 88.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04784/4.563, allocations: 12.25 MB / 1.075 GB, free: 87.69 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.769e-05/4.563, allocations: 17.84 kB / 1.075 GB, free: 87.69 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001323/4.563, allocations: 17.67 kB / 1.075 GB, free: 87.69 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09852/4.662, allocations: 29.28 MB / 1.103 GB, free: 77.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-05/4.662, allocations: 3.156 kB / 1.103 GB, free: 77.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008634/4.67, allocations: 0.8979 MB / 1.104 GB, free: 77.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03227/4.703, allocations: 5.526 MB / 1.109 GB, free: 76.59 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001495/4.704, allocations: 114.1 kB / 1.11 GB, free: 76.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06297/4.767, allocations: 29.22 MB / 1.138 GB, free: 61.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004487/4.772, allocations: 4.738 MB / 1.143 GB, free: 56.43 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06398/4.836, allocations: 20.52 MB / 1.163 GB, free: 39.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003162/4.839, allocations: 0.8291 MB / 1.164 GB, free: 38.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003973/4.843, allocations: 84.09 kB / 1.164 GB, free: 38.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01076/4.854, allocations: 0.5106 MB / 1.164 GB, free: 38.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002361/4.856, allocations: 301.5 kB / 1.164 GB, free: 38.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00118/4.857, allocations: 121.5 kB / 1.165 GB, free: 38.36 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01453/4.872, allocations: 5.407 MB / 1.17 GB, free: 33.98 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.91e-07/4.872, allocations: 0 / 1.17 GB, free: 33.98 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01783/4.89, allocations: 2.785 MB / 1.173 GB, free: 31.2 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 () * 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.06509/4.955, allocations: 21.55 MB / 1.194 GB, free: 10.55 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 can't be selected as a state. [/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 can't be selected as a state. [/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 can't be selected as a state. [/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.4364/5.392, allocations: 15.97 MB / 1.209 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/5.392, allocations: 7.906 kB / 1.209 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02413/5.416, allocations: 7.443 MB / 1.216 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01167/5.427, allocations: 1.219 MB / 1.218 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7635/6.191, allocations: 266 MB / 1.477 GB, free: 188.2 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02056/6.212, allocations: 6.322 MB / 1.484 GB, free: 187.2 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01541/6.227, allocations: 4.483 MB / 1.488 GB, free: 187.2 MB / 0.6042 GB Notification: Performance of SimCode: time 2.666e-06/6.227, allocations: 7.375 kB / 1.488 GB, free: 187.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.35/15.58, allocations: 0.6193 GB / 2.107 GB, free: 157.2 MB / 0.6042 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