Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Spherical.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadModel(ModelicaTest): time 2.05/2.05, allocations: 209.4 MB / 217.3 MB, free: 4.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.744e-05/1.765e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2685, allocations: 48.68 MB / 320 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.4019, allocations: 87.84 MB / 407.8 MB, free: 8.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.4022, allocations: 71.95 kB / 407.9 MB, free: 8.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5873/0.9895, allocations: 81.28 MB / 489.2 MB, free: 83.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.476e-06/0.9896, allocations: 0 / 489.2 MB, free: 83.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001453/0.9897, allocations: 68 kB / 489.3 MB, free: 83.1 MB / 378.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.01416/1.004, allocations: 3.844 MB / 493.1 MB, free: 79.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/1.004, allocations: 8.031 kB / 493.1 MB, free: 79.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02698/1.031, allocations: 5.88 MB / 499 MB, free: 73.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01466/1.046, allocations: 5.289 MB / 0.4925 GB, free: 68.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/1.046, allocations: 120 kB / 0.4926 GB, free: 67.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001491/1.047, allocations: 215.9 kB / 0.4928 GB, free: 67.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01244/1.06, allocations: 6.891 MB / 0.4995 GB, free: 60.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01837/1.078, allocations: 9.182 MB / 0.5085 GB, free: 51.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001289/1.078, allocations: 35.66 kB / 0.5085 GB, free: 51.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008532/1.079, allocations: 16 kB / 0.5085 GB, free: 51.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001586/1.081, allocations: 1.151 MB / 0.5097 GB, free: 49.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0506/1.131, allocations: 35.03 MB / 0.5439 GB, free: 14.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004991/1.137, allocations: 4.079 MB / 0.5478 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003261/1.14, allocations: 2.265 MB / 0.5501 GB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001579/1.141, allocations: 1.875 MB / 0.5519 GB, free: 5.621 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/1.141, allocations: 52.56 kB / 0.5519 GB, free: 5.559 MB / 378.7 MB Notification: Performance of pre-optimization done (n=226): time 6.306e-06/1.141, allocations: 0 / 0.5519 GB, free: 5.559 MB / 378.7 MB Notification: Performance of matching and sorting (n=233): time 0.03159/1.173, allocations: 11.82 MB / 0.5635 GB, free: 9.656 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.074e-05/1.173, allocations: 69.41 kB / 0.5635 GB, free: 9.578 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004917/1.178, allocations: 2.383 MB / 0.5659 GB, free: 7.184 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004482/1.179, allocations: 29.7 kB / 0.5659 GB, free: 7.148 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002868/1.181, allocations: 2.761 MB / 0.5686 GB, free: 4.348 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001373/1.183, allocations: 0.8401 MB / 0.5694 GB, free: 3.496 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005257/1.183, allocations: 0 / 0.5694 GB, free: 3.496 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00062/1.184, allocations: 0.5587 MB / 0.57 GB, free: 2.926 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005656/1.19, allocations: 2.526 MB / 0.5724 GB, free: 404 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009174/1.199, allocations: 5.722 MB / 0.578 GB, free: 9.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00834/1.207, allocations: 3.818 MB / 0.5818 GB, free: 5.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001143/1.207, allocations: 39.92 kB / 0.5818 GB, free: 5.211 MB / 410.7 MB Notification: Performance of matching and sorting (n=765) (initialization): time 0.07899/1.286, allocations: 18.42 MB / 0.5998 GB, free: 2.754 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/1.287, allocations: 58.34 kB / 0.5998 GB, free: 2.699 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2932/1.58, allocations: 11.9 MB / 0.6115 GB, free: 115.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05724/1.637, allocations: 10.31 MB / 0.6215 GB, free: 115.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005487/1.643, allocations: 1.322 MB / 0.6228 GB, free: 115.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02965/1.672, allocations: 15.1 MB / 0.6376 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005823/1.678, allocations: 339.2 kB / 0.6379 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001184/1.679, allocations: 338 kB / 0.6382 GB, free: 113.1 MB / 426.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.00109/1.681, allocations: 389.6 kB / 0.6386 GB, free: 113 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005558/1.681, allocations: 272.1 kB / 0.6388 GB, free: 113 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01509/1.696, allocations: 4.967 MB / 0.6437 GB, free: 112.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009767/1.706, allocations: 4.285 MB / 0.6479 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.681e-05/1.706, allocations: 7.922 kB / 0.6479 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.096e-05/1.706, allocations: 7.969 kB / 0.6479 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02629/1.733, allocations: 11.95 MB / 0.6595 GB, free: 99.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.661e-05/1.733, allocations: 11.95 kB / 0.6596 GB, free: 99.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002225/1.735, allocations: 410 kB / 0.66 GB, free: 98.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003489/1.738, allocations: 0.935 MB / 0.6609 GB, free: 98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004484/1.739, allocations: 19.98 kB / 0.6609 GB, free: 97.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006683/1.746, allocations: 5.285 MB / 0.666 GB, free: 92.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008512/1.746, allocations: 1.396 MB / 0.6674 GB, free: 91.05 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01286/1.759, allocations: 8.26 MB / 0.6755 GB, free: 82.67 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007387/1.76, allocations: 331.3 kB / 0.6758 GB, free: 82.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007127/1.761, allocations: 15.98 kB / 0.6758 GB, free: 82.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002055/1.763, allocations: 171.7 kB / 0.676 GB, free: 82.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004074/1.763, allocations: 149.3 kB / 0.6761 GB, free: 82.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00033/1.764, allocations: 72.91 kB / 0.6762 GB, free: 81.97 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002498/1.766, allocations: 1.564 MB / 0.6777 GB, free: 80.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.127e-06/1.766, allocations: 3.938 kB / 0.6777 GB, free: 80.39 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006224/1.772, allocations: 1.003 MB / 0.6787 GB, free: 79.4 MB / 426.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.0005857/1.773, allocations: 153.5 kB / 0.6788 GB, free: 79.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01137/1.784, allocations: 6.334 MB / 0.685 GB, free: 72.94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/1.784, allocations: 4 kB / 0.685 GB, free: 72.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004059/1.789, allocations: 2.452 MB / 0.6874 GB, free: 70.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001804/1.79, allocations: 244 kB / 0.6877 GB, free: 70.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0189/1.809, allocations: 8.93 MB / 0.6964 GB, free: 61.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005203/1.815, allocations: 3.257 MB / 0.6996 GB, free: 57.99 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/1.816, allocations: 255.1 kB / 0.6998 GB, free: 57.74 MB / 426.7 MB Notification: Performance of SimCode: time 2.033e-06/1.816, allocations: 0 / 0.6998 GB, free: 57.74 MB / 426.7 MB Notification: Performance of Templates: time 0.3802/2.196, allocations: 105.5 MB / 0.8028 GB, free: 122.9 MB / 442.7 MB