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.FourbarVariants.JointUSR.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.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR") Notification: Performance of loadModel(ModelicaTest): time 2.18/2.18, allocations: 234.9 MB / 250.5 MB, free: 9.531 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004491/0.0004492, allocations: 12 kB / 314.4 MB, free: 9.539 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2786, allocations: 54.85 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4242/0.7029, allocations: 110.9 MB / 480.2 MB, free: 41.1 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.7031, allocations: 78.91 kB / 480.2 MB, free: 41.1 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6196/1.323, allocations: 171.8 MB / 0.6367 GB, free: 1.969 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.379e-06/1.323, allocations: 3.938 kB / 0.6367 GB, free: 1.965 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004558/1.323, allocations: 148 kB / 0.6369 GB, free: 1.82 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.02898/1.352, allocations: 8.216 MB / 0.6449 GB, free: 9.516 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/1.352, allocations: 11.97 kB / 0.6449 GB, free: 9.504 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04/1.392, allocations: 6.947 MB / 0.6517 GB, free: 2.535 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3122/1.705, allocations: 9.873 MB / 0.6613 GB, free: 84.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007807/1.705, allocations: 0.5704 MB / 0.6619 GB, free: 84.91 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003684/1.709, allocations: 0.7609 MB / 0.6626 GB, free: 84.91 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05267/1.762, allocations: 20.75 MB / 0.6829 GB, free: 81.02 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003951/1.762, allocations: 94.55 kB / 0.683 GB, free: 81.02 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002852/1.765, allocations: 365.9 kB / 0.6833 GB, free: 81.02 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003452/1.769, allocations: 1.956 MB / 0.6852 GB, free: 81.01 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04712/1.816, allocations: 18.31 MB / 0.7031 GB, free: 80.95 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.117/1.933, allocations: 82.18 MB / 0.7834 GB, free: 42.71 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02412/1.957, allocations: 7.353 MB / 0.7906 GB, free: 39.76 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03711/1.994, allocations: 18.22 MB / 0.8084 GB, free: 23.97 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.441e-05/1.994, allocations: 60.5 kB / 0.8084 GB, free: 23.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=332): time 7.319e-06/1.994, allocations: 0 / 0.8084 GB, free: 23.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=413): time 0.4528/2.447, allocations: 36.21 MB / 0.8438 GB, free: 95 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.055e-05/2.447, allocations: 200.6 kB / 0.844 GB, free: 94.81 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0137/2.461, allocations: 5.811 MB / 0.8496 GB, free: 94.32 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007509/2.462, allocations: 87.03 kB / 0.8497 GB, free: 94.29 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003934/2.466, allocations: 5.24 MB / 0.8548 GB, free: 91.89 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001839/2.467, allocations: 1.517 MB / 0.8563 GB, free: 91.14 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009929/2.468, allocations: 204.9 kB / 0.8565 GB, free: 91.14 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006693/2.469, allocations: 0.7543 MB / 0.8573 GB, free: 90.81 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009256/2.478, allocations: 4.192 MB / 0.8614 GB, free: 90.79 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01283/2.491, allocations: 9.996 MB / 0.8711 GB, free: 83.37 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/2.504, allocations: 6.341 MB / 0.8773 GB, free: 83.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001788/2.504, allocations: 59.06 kB / 0.8774 GB, free: 83.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.04037/2.545, allocations: 15.75 MB / 0.8927 GB, free: 82.39 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000165/2.545, allocations: 93.5 kB / 0.8928 GB, free: 82.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002568/2.545, allocations: 203.4 kB / 0.893 GB, free: 82.39 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009825/2.555, allocations: 2.353 MB / 0.8953 GB, free: 82.38 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01128/2.566, allocations: 2.442 MB / 0.8977 GB, free: 82.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02616/2.593, allocations: 12 MB / 0.9094 GB, free: 78.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01127/2.604, allocations: 0.6904 MB / 0.9101 GB, free: 77.83 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00206/2.606, allocations: 0.5843 MB / 0.9107 GB, free: 77.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 931 * Number of states: 0 () * Number of discrete variables: 46 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1269): * Single equations (assignments): 1262 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009169/2.615, allocations: 3.762 MB / 0.9143 GB, free: 76.04 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001507/2.617, allocations: 0.5938 MB / 0.9149 GB, free: 75.71 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02357/2.64, allocations: 8.167 MB / 0.9229 GB, free: 72.78 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001338/2.641, allocations: 66.08 kB / 0.923 GB, free: 72.77 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.755e-05/2.641, allocations: 11 kB / 0.923 GB, free: 72.77 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.176e-05/2.641, allocations: 23.33 kB / 0.923 GB, free: 72.77 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04869/2.689, allocations: 18.81 MB / 0.9414 GB, free: 65.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.313e-05/2.689, allocations: 11.91 kB / 0.9414 GB, free: 65.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004188/2.694, allocations: 0.6491 MB / 0.942 GB, free: 65.35 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009851/2.704, allocations: 1.893 MB / 0.9439 GB, free: 65.03 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007672/2.704, allocations: 80.3 kB / 0.9439 GB, free: 64.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02217/2.727, allocations: 10.34 MB / 0.954 GB, free: 57.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.421e-05/2.727, allocations: 23.59 kB / 0.9541 GB, free: 57.69 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02674/2.753, allocations: 14.29 MB / 0.968 GB, free: 44.58 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003663/2.757, allocations: 1.159 MB / 0.9691 GB, free: 43.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00179/2.759, allocations: 75.66 kB / 0.9692 GB, free: 43.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004709/2.764, allocations: 270.4 kB / 0.9695 GB, free: 43.26 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001046/2.765, allocations: 256.2 kB / 0.9697 GB, free: 43.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000425/2.765, allocations: 110.8 kB / 0.9698 GB, free: 42.98 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009639/2.775, allocations: 4.066 MB / 0.9738 GB, free: 39.68 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.198e-06/2.775, allocations: 7.938 kB / 0.9738 GB, free: 39.67 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01212/2.787, allocations: 1.937 MB / 0.9757 GB, free: 37.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * 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 (324): * Single equations (assignments): 317 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001176/2.788, allocations: 283.1 kB / 0.976 GB, free: 37.49 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01919/2.807, allocations: 9.843 MB / 0.9856 GB, free: 28.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/2.807, allocations: 3.844 kB / 0.9856 GB, free: 28.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006434/2.814, allocations: 3.318 MB / 0.9888 GB, free: 25.83 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004913/2.819, allocations: 0.7298 MB / 0.9895 GB, free: 25.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03997/2.859, allocations: 21.53 MB / 1.011 GB, free: 5.375 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01215/2.871, allocations: 5.754 MB / 1.016 GB, free: 1.141 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002443/2.874, allocations: 490.5 kB / 1.017 GB, free: 0.6719 MB / 0.4948 GB Notification: Performance of SimCode: time 1.655e-06/2.874, allocations: 3 kB / 1.017 GB, free: 0.6719 MB / 0.4948 GB Notification: Performance of Templates: time 0.5375/3.411, allocations: 135.9 MB / 1.149 GB, free: 28.14 MB / 0.4948 GB