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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.227/2.227, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004517/0.000452, allocations: 15.98 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2796, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02863/0.3083, allocations: 21.16 MB / 390.4 MB, free: 5.48 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01467/0.323, allocations: 5.96 MB / 396.3 MB, free: 15.5 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003704/0.3267, allocations: 99.75 kB / 396.4 MB, free: 15.4 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003302/0.3301, allocations: 1.101 MB / 397.5 MB, free: 14.3 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01096/0.3411, allocations: 3.316 MB / 400.8 MB, free: 10.97 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001988/0.3431, allocations: 471.2 kB / 401.3 MB, free: 10.51 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004506/0.3477, allocations: 2.149 MB / 403.4 MB, free: 8.359 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003995/0.3517, allocations: 2.161 MB / 405.6 MB, free: 6.148 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001531/0.3533, allocations: 0.8447 MB / 406.4 MB, free: 5.301 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002002/0.3553, allocations: 1.191 MB / 407.6 MB, free: 4.105 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004988/0.3558, allocations: 124 kB / 407.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002492/0.3583, allocations: 1.038 MB / 408.8 MB, free: 2.945 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001993/0.3604, allocations: 1.372 MB / 410.2 MB, free: 1.57 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.3614, allocations: 0.7297 MB / 410.9 MB, free: 0.832 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007328/0.3688, allocations: 4.712 MB / 415.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.251e-06/0.3688, allocations: 0 / 415.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.738e-06/0.3689, allocations: 4 kB / 415.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001361/0.369, allocations: 0 / 415.6 MB, free: 12.11 MB / 346.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.007722/0.3768, allocations: 3.46 MB / 419.1 MB, free: 8.578 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.3768, allocations: 8.031 kB / 419.1 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02693/0.4037, allocations: 6.413 MB / 425.5 MB, free: 2.141 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006534/0.4103, allocations: 2.497 MB / 428 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002507/0.4106, allocations: 184.4 kB / 428.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00154/0.4122, allocations: 311.5 kB / 428.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02388/0.4361, allocations: 10.8 MB / 439.3 MB, free: 3.852 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.821e-05/0.4362, allocations: 27.75 kB / 439.3 MB, free: 3.824 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005612/0.4368, allocations: 119.8 kB / 439.4 MB, free: 3.707 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005922/0.4427, allocations: 2.451 MB / 441.9 MB, free: 1.254 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02662/0.4694, allocations: 10.23 MB / 452.1 MB, free: 7.012 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3136/0.783, allocations: 35.69 MB / 487.8 MB, free: 68.99 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01428/0.7973, allocations: 5.579 MB / 493.4 MB, free: 67.6 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001691/0.7991, allocations: 1.883 MB / 495.2 MB, free: 65.85 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.7991, allocations: 48.47 kB / 495.3 MB, free: 65.79 MB / 394.7 MB Notification: Performance of pre-optimization done (n=224): time 6.361e-06/0.7992, allocations: 0 / 495.3 MB, free: 65.79 MB / 394.7 MB Notification: Performance of matching and sorting (n=231): time 0.04418/0.8434, allocations: 15.54 MB / 0.4989 GB, free: 59.88 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001117/0.8445, allocations: 1.538 MB / 0.5004 GB, free: 58.2 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004343/0.8489, allocations: 2.994 MB / 0.5033 GB, free: 55.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004342/0.8494, allocations: 52.95 kB / 0.5033 GB, free: 55.14 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001493/0.8509, allocations: 2.674 MB / 0.5059 GB, free: 52.47 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009472/0.8518, allocations: 0.8473 MB / 0.5068 GB, free: 51.63 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004103/0.8523, allocations: 105.2 kB / 0.5069 GB, free: 51.53 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003001/0.8526, allocations: 0.5462 MB / 0.5074 GB, free: 50.98 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004567/0.8572, allocations: 2.606 MB / 0.51 GB, free: 48.37 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006023/0.8632, allocations: 5.588 MB / 0.5154 GB, free: 41.38 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006202/0.8694, allocations: 3.797 MB / 0.5191 GB, free: 37.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.302e-05/0.8696, allocations: 31.95 kB / 0.5192 GB, free: 37.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.07141/0.941, allocations: 18.87 MB / 0.5376 GB, free: 18.65 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.83e-05/0.9411, allocations: 55.89 kB / 0.5376 GB, free: 18.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04954/0.9907, allocations: 12 MB / 0.5494 GB, free: 6.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05624/1.047, allocations: 10.3 MB / 0.5594 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006048/1.053, allocations: 1.298 MB / 0.5607 GB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04023/1.093, allocations: 17.28 MB / 0.5776 GB, free: 9.402 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005218/1.099, allocations: 436.6 kB / 0.578 GB, free: 8.977 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001026/1.1, allocations: 325.6 kB / 0.5783 GB, free: 8.66 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 473 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (650): * Single equations (assignments): 639 * 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.00477/1.104, allocations: 2.009 MB / 0.5802 GB, free: 6.637 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006395/1.105, allocations: 268.4 kB / 0.5805 GB, free: 6.371 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01227/1.117, allocations: 5.108 MB / 0.5855 GB, free: 1.227 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01097/1.128, allocations: 4.392 MB / 0.5898 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.455e-05/1.128, allocations: 0 / 0.5898 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.664e-05/1.129, allocations: 7.969 kB / 0.5898 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03009/1.159, allocations: 12.91 MB / 0.6024 GB, free: 15.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.398e-05/1.159, allocations: 8.156 kB / 0.6024 GB, free: 15.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002774/1.161, allocations: 467.2 kB / 0.6028 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003972/1.165, allocations: 0.938 MB / 0.6038 GB, free: 14.35 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004396/1.166, allocations: 48.02 kB / 0.6038 GB, free: 14.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009599/1.176, allocations: 5.58 MB / 0.6093 GB, free: 8.453 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001535/1.177, allocations: 1.479 MB / 0.6107 GB, free: 6.828 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01664/1.194, allocations: 7.72 MB / 0.6182 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008375/1.195, allocations: 337.6 kB / 0.6186 GB, free: 14.63 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000579/1.195, allocations: 43.98 kB / 0.6186 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001863/1.197, allocations: 196.9 kB / 0.6188 GB, free: 14.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004402/1.198, allocations: 144.9 kB / 0.6189 GB, free: 14.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002525/1.198, allocations: 65.39 kB / 0.619 GB, free: 14.19 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00348/1.201, allocations: 1.873 MB / 0.6208 GB, free: 12.31 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.16e-07/1.201, allocations: 0 / 0.6208 GB, free: 12.31 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005731/1.207, allocations: 1.116 MB / 0.6219 GB, free: 11.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 161 * 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.0006295/1.208, allocations: 204.6 kB / 0.6221 GB, free: 11 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0145/1.222, allocations: 6.543 MB / 0.6285 GB, free: 4.441 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.518e-06/1.222, allocations: 0 / 0.6285 GB, free: 4.441 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005316/1.228, allocations: 2.526 MB / 0.631 GB, free: 1.875 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001976/1.23, allocations: 342.4 kB / 0.6313 GB, free: 1.539 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02213/1.252, allocations: 12.02 MB / 0.643 GB, free: 5.387 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005127/1.257, allocations: 3.25 MB / 0.6462 GB, free: 2.109 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001545/1.259, allocations: 263.3 kB / 0.6465 GB, free: 1.852 MB / 490.7 MB Notification: Performance of SimCode: time 1.716e-06/1.259, allocations: 0 / 0.6465 GB, free: 1.852 MB / 490.7 MB Notification: Performance of Templates: time 0.3779/1.637, allocations: 107.1 MB / 0.7511 GB, free: 83.19 MB / 490.7 MB