Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Spherical.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadModel(ModelicaTest): time 2.173/2.173, allocations: 235.1 MB / 243 MB, free: 9.504 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.368e-05/1.378e-05, allocations: 0 / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2718, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1419/0.4137, allocations: 94.58 MB / 452.6 MB, free: 236 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/0.414, allocations: 71.97 kB / 452.7 MB, free: 164 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5192/0.9332, allocations: 81.28 MB / 0.5215 GB, free: 46.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.862e-06/0.9332, allocations: 0 / 0.5215 GB, free: 46.84 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001529/0.9334, allocations: 72 kB / 0.5215 GB, free: 46.77 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.01417/0.9476, allocations: 3.844 MB / 0.5253 GB, free: 42.86 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.9476, allocations: 8.031 kB / 0.5253 GB, free: 42.86 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0263/0.9739, allocations: 5.875 MB / 0.531 GB, free: 36.96 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01469/0.9887, allocations: 5.29 MB / 0.5362 GB, free: 31.62 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001697/0.9889, allocations: 116.5 kB / 0.5363 GB, free: 31.51 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001421/0.9903, allocations: 212 kB / 0.5365 GB, free: 31.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01257/1.003, allocations: 6.895 MB / 0.5432 GB, free: 24.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01843/1.021, allocations: 9.188 MB / 0.5522 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001237/1.022, allocations: 31.66 kB / 0.5522 GB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007142/1.022, allocations: 16 kB / 0.5523 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001548/1.024, allocations: 1.152 MB / 0.5534 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05994/1.084, allocations: 35.03 MB / 0.5876 GB, free: 9.785 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006773/1.091, allocations: 4.083 MB / 0.5916 GB, free: 5.469 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0044/1.095, allocations: 2.268 MB / 0.5938 GB, free: 3.199 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002506/1.098, allocations: 1.876 MB / 0.5956 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.713e-05/1.098, allocations: 52.5 kB / 0.5957 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of pre-optimization done (n=226): time 1.019e-05/1.098, allocations: 4 kB / 0.5957 GB, free: 0.9258 MB / 426.7 MB Notification: Performance of matching and sorting (n=233): time 0.03524/1.133, allocations: 11.81 MB / 0.6072 GB, free: 5.027 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.755e-05/1.133, allocations: 73.36 kB / 0.6073 GB, free: 4.945 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005235/1.138, allocations: 2.391 MB / 0.6096 GB, free: 2.543 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004656/1.139, allocations: 25.7 kB / 0.6096 GB, free: 2.512 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002929/1.142, allocations: 2.753 MB / 0.6123 GB, free: 15.72 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001394/1.143, allocations: 0.844 MB / 0.6132 GB, free: 14.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005301/1.144, allocations: 3.938 kB / 0.6132 GB, free: 14.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006172/1.144, allocations: 0.5626 MB / 0.6137 GB, free: 14.29 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005737/1.15, allocations: 2.522 MB / 0.6162 GB, free: 11.76 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01261/1.163, allocations: 5.721 MB / 0.6218 GB, free: 4.434 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01435/1.177, allocations: 3.814 MB / 0.6255 GB, free: 0.6172 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001678/1.177, allocations: 36 kB / 0.6255 GB, free: 0.582 MB / 458.7 MB Notification: Performance of matching and sorting (n=765) (initialization): time 0.4108/1.588, allocations: 18.43 MB / 0.6435 GB, free: 114.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001616/1.588, allocations: 54.59 kB / 0.6436 GB, free: 114.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09432/1.683, allocations: 11.89 MB / 0.6552 GB, free: 114.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05908/1.742, allocations: 10.31 MB / 0.6652 GB, free: 112.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005534/1.748, allocations: 1.32 MB / 0.6665 GB, free: 112.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02975/1.777, allocations: 15.1 MB / 0.6813 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005516/1.783, allocations: 342 kB / 0.6816 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001108/1.784, allocations: 344 kB / 0.6819 GB, free: 101.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (693): * Single equations (assignments): 682 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0009614/1.785, allocations: 394.1 kB / 0.6823 GB, free: 101.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005144/1.786, allocations: 270.7 kB / 0.6826 GB, free: 101.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009896/1.795, allocations: 4.968 MB / 0.6874 GB, free: 96.32 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008615/1.804, allocations: 4.288 MB / 0.6916 GB, free: 92.03 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/1.804, allocations: 4 kB / 0.6916 GB, free: 92.03 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-05/1.804, allocations: 7.969 kB / 0.6916 GB, free: 92.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02416/1.828, allocations: 11.95 MB / 0.7033 GB, free: 80.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-05/1.828, allocations: 8 kB / 0.7033 GB, free: 80.01 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002193/1.831, allocations: 407.3 kB / 0.7037 GB, free: 79.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003525/1.834, allocations: 0.9325 MB / 0.7046 GB, free: 78.68 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004568/1.835, allocations: 27.97 kB / 0.7046 GB, free: 78.65 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006786/1.842, allocations: 5.281 MB / 0.7098 GB, free: 73.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008951/1.842, allocations: 1.41 MB / 0.7111 GB, free: 71.68 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01345/1.856, allocations: 8.257 MB / 0.7192 GB, free: 63.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007401/1.857, allocations: 333.5 kB / 0.7195 GB, free: 62.86 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006262/1.857, allocations: 19.94 kB / 0.7196 GB, free: 62.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002068/1.859, allocations: 171.7 kB / 0.7197 GB, free: 62.68 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004515/1.86, allocations: 137 kB / 0.7198 GB, free: 62.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002412/1.86, allocations: 73.06 kB / 0.7199 GB, free: 62.48 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002608/1.863, allocations: 1.564 MB / 0.7214 GB, free: 60.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.55e-07/1.863, allocations: 2.062 kB / 0.7214 GB, free: 60.91 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006152/1.869, allocations: 0.999 MB / 0.7224 GB, free: 59.91 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 163 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006853/1.87, allocations: 159.4 kB / 0.7226 GB, free: 59.76 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01179/1.882, allocations: 6.331 MB / 0.7288 GB, free: 53.44 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.504e-06/1.882, allocations: 3.375 kB / 0.7288 GB, free: 53.44 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004269/1.886, allocations: 2.468 MB / 0.7312 GB, free: 50.94 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001812/1.888, allocations: 236.2 kB / 0.7314 GB, free: 50.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01828/1.906, allocations: 8.942 MB / 0.7401 GB, free: 41.75 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004749/1.911, allocations: 3.241 MB / 0.7433 GB, free: 38.49 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00142/1.912, allocations: 259.1 kB / 0.7435 GB, free: 38.24 MB / 458.7 MB Notification: Performance of SimCode: time 2.978e-06/1.912, allocations: 0 / 0.7435 GB, free: 38.24 MB / 458.7 MB Notification: Performance of Templates: time 0.4074/2.32, allocations: 105.5 MB / 0.8466 GB, free: 134.4 MB / 490.7 MB