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.FourbarVariants.JointUSR.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR") Notification: Performance of loadModel(ModelicaTest): time 1.907/1.907, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.58e-05/4.605e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1018, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3662/0.4681, allocations: 104.1 MB / 430.6 MB, free: 3.492 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002301/0.4683, allocations: 79.77 kB / 430.7 MB, free: 3.453 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9313/1.4, allocations: 171.9 MB / 0.5885 GB, free: 77.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.642e-06/1.4, allocations: 3.938 kB / 0.5885 GB, free: 77.41 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004133/1.4, allocations: 147.6 kB / 0.5886 GB, free: 77.41 MB / 426.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.02467/1.425, allocations: 7.694 MB / 0.5961 GB, free: 74.47 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/1.425, allocations: 13.8 kB / 0.5962 GB, free: 74.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03804/1.463, allocations: 6.951 MB / 0.6029 GB, free: 73.91 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02802/1.491, allocations: 9.837 MB / 0.6125 GB, free: 69.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006816/1.492, allocations: 0.5758 MB / 0.6131 GB, free: 69.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003812/1.496, allocations: 0.7558 MB / 0.6138 GB, free: 68.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05081/1.546, allocations: 20.53 MB / 0.6339 GB, free: 46.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004157/1.547, allocations: 91.12 kB / 0.634 GB, free: 46.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003435/1.55, allocations: 367.8 kB / 0.6343 GB, free: 46.4 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003422/1.554, allocations: 1.958 MB / 0.6362 GB, free: 44.45 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0434/1.597, allocations: 17.91 MB / 0.6537 GB, free: 26.53 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4021/1.999, allocations: 82.16 MB / 0.734 GB, free: 53.54 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0228/2.022, allocations: 7.317 MB / 0.7411 GB, free: 52.28 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007124/2.029, allocations: 3.917 MB / 0.7449 GB, free: 52.24 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03959/2.069, allocations: 18.21 MB / 0.7627 GB, free: 47.61 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.154e-05/2.069, allocations: 66.27 kB / 0.7628 GB, free: 47.57 MB / 458.7 MB Notification: Performance of pre-optimization done (n=332): time 8.957e-06/2.069, allocations: 0 / 0.7628 GB, free: 47.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=413): time 0.11/2.179, allocations: 26.09 MB / 0.7883 GB, free: 40.82 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.359e-05/2.179, allocations: 198.8 kB / 0.7885 GB, free: 40.63 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01345/2.193, allocations: 5.675 MB / 0.794 GB, free: 38.61 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008005/2.194, allocations: 84.11 kB / 0.7941 GB, free: 38.53 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003986/2.198, allocations: 5.251 MB / 0.7992 GB, free: 34.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001919/2.2, allocations: 1.516 MB / 0.8007 GB, free: 33.28 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001184/2.201, allocations: 208.2 kB / 0.8009 GB, free: 33.12 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009632/2.202, allocations: 0.7552 MB / 0.8016 GB, free: 32.62 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00889/2.211, allocations: 4.019 MB / 0.8055 GB, free: 31.22 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01219/2.223, allocations: 9.835 MB / 0.8151 GB, free: 22.08 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01224/2.235, allocations: 6.241 MB / 0.8212 GB, free: 20.12 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001694/2.236, allocations: 60.88 kB / 0.8213 GB, free: 20.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.04126/2.277, allocations: 15.42 MB / 0.8364 GB, free: 8.336 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001945/2.277, allocations: 92 kB / 0.8364 GB, free: 8.246 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003387/2.277, allocations: 210.2 kB / 0.8366 GB, free: 8.043 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01058/2.288, allocations: 2.332 MB / 0.8389 GB, free: 6.352 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01143/2.299, allocations: 2.428 MB / 0.8413 GB, free: 4.254 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0351/2.335, allocations: 11.97 MB / 0.853 GB, free: 11.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01126/2.346, allocations: 0.6895 MB / 0.8537 GB, free: 10.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002345/2.348, allocations: 0.5819 MB / 0.8542 GB, free: 10.24 MB / 474.7 MB 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 () * 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.003517/2.352, allocations: 0.877 MB / 0.8551 GB, free: 9.367 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001714/2.354, allocations: 0.5977 MB / 0.8557 GB, free: 8.762 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02481/2.378, allocations: 8.082 MB / 0.8636 GB, free: 2.203 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001207/2.379, allocations: 63.83 kB / 0.8636 GB, free: 2.145 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.043e-05/2.379, allocations: 14.62 kB / 0.8636 GB, free: 2.133 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.897e-05/2.379, allocations: 18.09 kB / 0.8636 GB, free: 2.133 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3313/2.71, allocations: 18.86 MB / 0.8821 GB, free: 109.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.948e-05/2.71, allocations: 12.53 kB / 0.8821 GB, free: 109.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004041/2.714, allocations: 0.643 MB / 0.8827 GB, free: 109.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008845/2.723, allocations: 1.881 MB / 0.8845 GB, free: 109.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007839/2.724, allocations: 82.86 kB / 0.8846 GB, free: 109.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0212/2.745, allocations: 9.863 MB / 0.8943 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-05/2.745, allocations: 20.66 kB / 0.8943 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02949/2.775, allocations: 14.18 MB / 0.9081 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003836/2.779, allocations: 1.158 MB / 0.9092 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001641/2.78, allocations: 74.98 kB / 0.9093 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004837/2.785, allocations: 263.5 kB / 0.9096 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001192/2.786, allocations: 261.7 kB / 0.9098 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006491/2.787, allocations: 111.3 kB / 0.9099 GB, free: 102.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009796/2.797, allocations: 3.932 MB / 0.9138 GB, free: 101.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.001e-06/2.797, allocations: 0 / 0.9138 GB, free: 101.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01235/2.809, allocations: 1.939 MB / 0.9157 GB, free: 101.2 MB / 474.7 MB 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 () * 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.001253/2.81, allocations: 284.8 kB / 0.9159 GB, free: 101.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0199/2.83, allocations: 9.628 MB / 0.9253 GB, free: 97.96 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.439e-05/2.83, allocations: 5.25 kB / 0.9253 GB, free: 97.96 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007335/2.838, allocations: 3.275 MB / 0.9285 GB, free: 96.63 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005207/2.843, allocations: 0.7326 MB / 0.9293 GB, free: 96.32 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03994/2.883, allocations: 15.5 MB / 0.9444 GB, free: 90.34 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0134/2.897, allocations: 5.756 MB / 0.95 GB, free: 87.54 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002625/2.899, allocations: 494 kB / 0.9505 GB, free: 87.07 MB / 474.7 MB Notification: Performance of SimCode: time 1.982e-06/2.899, allocations: 0 / 0.9505 GB, free: 87.07 MB / 474.7 MB Notification: Performance of Templates: time 0.5551/3.454, allocations: 135.5 MB / 1.083 GB, free: 79.68 MB / 474.7 MB