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.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sphericalSpherical.frame_b.r_0.1.|sphericalSpherical.frame_b.r_0.2.|sphericalSpherical.frame_b.r_0.3.|sphericalSpherical.frame_b.f.1.|sphericalSpherical.frame_b.f.2.|sphericalSpherical.frame_b.f.3.|sphericalSpherical.frame_b.t.1.|sphericalSpherical.frame_b.t.2.|sphericalSpherical.frame_b.t.3.|Prismatic1.frame_b.r_0.1.|Prismatic1.frame_b.r_0.2.|Prismatic1.frame_b.r_0.3.|Prismatic1.frame_b.f.1.|Prismatic1.frame_b.f.2.|Prismatic1.frame_b.f.3.|Prismatic1.frame_b.t.1.|Prismatic1.frame_b.t.2.|Prismatic1.frame_b.t.3.|Fixed1.frame_b.r_0.1.|Fixed1.frame_b.r_0.2.|Fixed1.frame_b.r_0.3.|Fixed1.frame_b.f.1.|Fixed1.frame_b.f.2.|Fixed1.frame_b.f.3.|Fixed1.frame_b.t.1.|Fixed1.frame_b.t.2.|Fixed1.frame_b.t.3.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.021/2.021, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.85e-05/1.869e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3246, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1445/0.4691, allocations: 83.78 MB / 403.8 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.4694, allocations: 75.95 kB / 403.9 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07642/0.5458, allocations: 19.53 MB / 423.4 MB, free: 8.898 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.5459, allocations: 0 / 423.4 MB, free: 8.898 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.926e-05/0.5459, allocations: 20 kB / 423.4 MB, free: 8.879 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.003235/0.5492, allocations: 1.369 MB / 424.8 MB, free: 7.461 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.5492, allocations: 12.03 kB / 424.8 MB, free: 7.449 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001314/0.5506, allocations: 206.3 kB / 425 MB, free: 7.246 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001879/0.5525, allocations: 0.6957 MB / 425.7 MB, free: 6.504 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.476e-05/0.5526, allocations: 32 kB / 425.7 MB, free: 6.473 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002422/0.5528, allocations: 60 kB / 425.8 MB, free: 6.414 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003796/0.5566, allocations: 1.688 MB / 427.5 MB, free: 4.723 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004134/0.5608, allocations: 1.944 MB / 429.4 MB, free: 2.629 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.773e-05/0.5609, allocations: 7.938 kB / 429.4 MB, free: 2.621 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/0.561, allocations: 4 kB / 429.4 MB, free: 2.617 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003877/0.5614, allocations: 201.8 kB / 429.6 MB, free: 2.418 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01159/0.573, allocations: 7.461 MB / 437.1 MB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008605/0.5739, allocations: 412.7 kB / 437.5 MB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004652/0.5744, allocations: 232.8 kB / 437.7 MB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002159/0.5766, allocations: 1.734 MB / 439.4 MB, free: 8.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/0.5767, allocations: 38.56 kB / 439.5 MB, free: 8.043 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 5.204e-06/0.5767, allocations: 96 / 439.5 MB, free: 8.043 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.008679/0.5854, allocations: 2.01 MB / 441.5 MB, free: 6.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.5855, allocations: 59.97 kB / 441.6 MB, free: 5.949 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/0.5866, allocations: 0.6398 MB / 442.2 MB, free: 5.305 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.482e-05/0.5867, allocations: 29.7 kB / 442.2 MB, free: 5.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005908/0.5873, allocations: 0.7055 MB / 442.9 MB, free: 4.555 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.5875, allocations: 209 kB / 443.1 MB, free: 4.348 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/0.5876, allocations: 0 / 443.1 MB, free: 4.348 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002275/0.5878, allocations: 370.7 kB / 443.5 MB, free: 3.977 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006957/0.5886, allocations: 330.5 kB / 443.8 MB, free: 3.652 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001251/0.5898, allocations: 0.9471 MB / 444.8 MB, free: 2.395 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.5909, allocations: 0.5484 MB / 445.3 MB, free: 1.852 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.568e-05/0.5909, allocations: 8 kB / 445.3 MB, free: 1.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002479/0.5934, allocations: 1.167 MB / 446.5 MB, free: 0.668 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.984e-05/0.5934, allocations: 19.94 kB / 446.5 MB, free: 0.6484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.125e-05/0.5935, allocations: 20 kB / 446.5 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.978e-05/0.5936, allocations: 36 kB / 446.6 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001469/0.595, allocations: 323.4 kB / 446.9 MB, free: 284 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2196/0.8147, allocations: 1.311 MB / 448.2 MB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.8158, allocations: 28.97 kB / 448.2 MB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000174/0.816, allocations: 67.34 kB / 448.3 MB, free: 102.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 100 * Number of states: 0 () * Number of discrete variables: 24 (Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],Prismatic1.boxColor[3],Prismatic1.boxColor[2],Prismatic1.boxColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 (157): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002847/0.8163, allocations: 184.9 kB / 448.5 MB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.8164, allocations: 71.88 kB / 448.5 MB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002661/0.8167, allocations: 98.73 kB / 448.6 MB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.8167, allocations: 6.156 kB / 448.6 MB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.371e-06/0.8167, allocations: 1.156 kB / 448.6 MB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.33e-06/0.8168, allocations: 6.219 kB / 448.6 MB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00441/0.8212, allocations: 1.827 MB / 450.5 MB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/0.8213, allocations: 6.438 kB / 450.5 MB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006971/0.822, allocations: 130.3 kB / 450.6 MB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-05/0.822, allocations: 9.219 kB / 450.6 MB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.63e-05/0.8221, allocations: 11.67 kB / 450.6 MB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008058/0.8229, allocations: 1.291 MB / 451.9 MB, free: 101 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.14e-05/0.8229, allocations: 11.06 kB / 451.9 MB, free: 101 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.8241, allocations: 1.072 MB / 453 MB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003218/0.8244, allocations: 186.4 kB / 453.2 MB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.8246, allocations: 11.41 kB / 453.2 MB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004487/0.825, allocations: 10.62 kB / 453.2 MB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.477e-05/0.8251, allocations: 54.19 kB / 453.3 MB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.796e-05/0.8252, allocations: 21.75 kB / 453.3 MB, free: 100.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000747/0.826, allocations: 461.3 kB / 453.7 MB, free: 99.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.25e-07/0.826, allocations: 1.094 kB / 453.7 MB, free: 99.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001497/0.8275, allocations: 179.4 kB / 453.9 MB, free: 99.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002173/0.8277, allocations: 115 kB / 454 MB, free: 99.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.8295, allocations: 0.7849 MB / 454.8 MB, free: 99.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.249e-06/0.8296, allocations: 1.344 kB / 454.8 MB, free: 99.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006331/0.8302, allocations: 270.8 kB / 455.1 MB, free: 99.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007784/0.831, allocations: 83.56 kB / 455.1 MB, free: 99.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003688/0.8347, allocations: 1.697 MB / 456.8 MB, free: 99.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/0.8358, allocations: 1.246 MB / 458.1 MB, free: 98.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003002/0.8362, allocations: 62.88 kB / 458.2 MB, free: 98.58 MB / 378.7 MB Notification: Performance of SimCode: time 2.02e-06/0.8362, allocations: 1.969 kB / 458.2 MB, free: 98.58 MB / 378.7 MB Notification: Performance of Templates: time 0.02248/0.8587, allocations: 14.97 MB / 473.1 MB, free: 95.34 MB / 378.7 MB