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/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.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.993/1.993, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.412e-05/1.42e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2658, allocations: 48.68 MB / 320 MB, free: 14.3 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1591/0.4249, allocations: 103.4 MB / 423.4 MB, free: 8.898 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/0.4252, allocations: 75.95 kB / 423.5 MB, free: 8.824 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.833/1.258, allocations: 168.7 MB / 0.5783 GB, free: 13.24 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.875e-06/1.258, allocations: 0 / 0.5783 GB, free: 13.24 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004655/1.259, allocations: 155.9 kB / 0.5784 GB, free: 13.09 MB / 410.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.02668/1.285, allocations: 7.689 MB / 0.5859 GB, free: 5.328 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/1.285, allocations: 8.031 kB / 0.586 GB, free: 5.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2908/1.576, allocations: 6.944 MB / 0.5927 GB, free: 57.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02833/1.605, allocations: 9.828 MB / 0.6023 GB, free: 57.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004587/1.605, allocations: 246.4 kB / 0.6026 GB, free: 57.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003409/1.609, allocations: 462.1 kB / 0.603 GB, free: 57.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0268/1.635, allocations: 13.15 MB / 0.6159 GB, free: 57.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03839/1.674, allocations: 17.61 MB / 0.633 GB, free: 53.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000446/1.674, allocations: 98.89 kB / 0.6331 GB, free: 53.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002958/1.677, allocations: 44.44 kB / 0.6332 GB, free: 53.22 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003571/1.681, allocations: 1.953 MB / 0.6351 GB, free: 53.21 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1134/1.794, allocations: 78.91 MB / 0.7122 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009967/1.804, allocations: 5.985 MB / 0.718 GB, free: 9.262 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007498/1.812, allocations: 3.865 MB / 0.7218 GB, free: 5.719 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04199/1.854, allocations: 17.98 MB / 0.7393 GB, free: 5.816 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.313e-05/1.854, allocations: 64.58 kB / 0.7394 GB, free: 5.742 MB / 442.7 MB Notification: Performance of pre-optimization done (n=334): time 7.724e-06/1.854, allocations: 0 / 0.7394 GB, free: 5.742 MB / 442.7 MB Notification: Performance of matching and sorting (n=426): time 0.1188/1.973, allocations: 27.14 MB / 0.7659 GB, free: 0.7695 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001535/1.973, allocations: 200.9 kB / 0.7661 GB, free: 0.5352 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3098/2.283, allocations: 5.051 MB / 0.771 GB, free: 100.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007244/2.284, allocations: 30.45 kB / 0.7711 GB, free: 100.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003776/2.288, allocations: 5.395 MB / 0.7763 GB, free: 98.39 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001805/2.289, allocations: 1.524 MB / 0.7778 GB, free: 97.46 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001034/2.29, allocations: 3.938 kB / 0.7778 GB, free: 97.46 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007747/2.291, allocations: 0.7729 MB / 0.7786 GB, free: 97.13 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009435/2.301, allocations: 3.969 MB / 0.7824 GB, free: 97.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01404/2.315, allocations: 10.01 MB / 0.7922 GB, free: 89.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01325/2.328, allocations: 6.395 MB / 0.7985 GB, free: 89.28 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001949/2.328, allocations: 68.59 kB / 0.7985 GB, free: 89.28 MB / 458.7 MB Notification: Performance of matching and sorting (n=1431) (initialization): time 0.03922/2.368, allocations: 14.67 MB / 0.8129 GB, free: 88.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000159/2.368, allocations: 101.3 kB / 0.8129 GB, free: 88.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002297/2.368, allocations: 211.8 kB / 0.8131 GB, free: 88.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01006/2.378, allocations: 2.31 MB / 0.8154 GB, free: 88.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01116/2.389, allocations: 2.542 MB / 0.8179 GB, free: 88.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02255/2.412, allocations: 11.13 MB / 0.8288 GB, free: 85.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01138/2.423, allocations: 0.4898 MB / 0.8292 GB, free: 85.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002363/2.426, allocations: 0.6142 MB / 0.8298 GB, free: 84.93 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 979 * 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 (1330): * Single equations (assignments): 1323 * 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.00263/2.428, allocations: 0.6344 MB / 0.8305 GB, free: 84.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/2.43, allocations: 0.5628 MB / 0.831 GB, free: 84.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02148/2.451, allocations: 7.938 MB / 0.8388 GB, free: 81.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001159/2.451, allocations: 65.41 kB / 0.8388 GB, free: 81.39 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.517e-05/2.451, allocations: 14.36 kB / 0.8388 GB, free: 81.39 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.43e-05/2.452, allocations: 21.8 kB / 0.8389 GB, free: 81.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04529/2.497, allocations: 17.15 MB / 0.8556 GB, free: 74.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.064e-05/2.497, allocations: 12.44 kB / 0.8556 GB, free: 74.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004147/2.501, allocations: 0.6571 MB / 0.8563 GB, free: 74.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0092/2.51, allocations: 1.808 MB / 0.858 GB, free: 73.65 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007216/2.511, allocations: 23.89 kB / 0.858 GB, free: 73.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01778/2.529, allocations: 9.401 MB / 0.8672 GB, free: 65.46 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.781e-05/2.529, allocations: 19.88 kB / 0.8672 GB, free: 65.44 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02517/2.554, allocations: 13.99 MB / 0.8809 GB, free: 52.36 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0039/2.558, allocations: 1.136 MB / 0.882 GB, free: 51.29 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001799/2.56, allocations: 14.86 kB / 0.882 GB, free: 51.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004717/2.565, allocations: 198.5 kB / 0.8822 GB, free: 51.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001131/2.566, allocations: 268.4 kB / 0.8825 GB, free: 50.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007121/2.567, allocations: 115.8 kB / 0.8826 GB, free: 50.88 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007751/2.574, allocations: 3.368 MB / 0.8859 GB, free: 47.96 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.557e-06/2.574, allocations: 0 / 0.8859 GB, free: 47.96 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0122/2.587, allocations: 1.684 MB / 0.8875 GB, free: 46.29 MB / 458.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 (337): * Single equations (assignments): 330 * 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.001163/2.588, allocations: 226.6 kB / 0.8877 GB, free: 46.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01725/2.605, allocations: 9.377 MB / 0.8969 GB, free: 37.49 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/2.605, allocations: 4 kB / 0.8969 GB, free: 37.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006418/2.612, allocations: 3.26 MB / 0.9001 GB, free: 34.48 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004612/2.616, allocations: 0.5702 MB / 0.9006 GB, free: 33.99 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03759/2.654, allocations: 15.52 MB / 0.9158 GB, free: 20.01 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01299/2.667, allocations: 5.765 MB / 0.9214 GB, free: 15.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002897/2.67, allocations: 490.3 kB / 0.9219 GB, free: 15.3 MB / 458.7 MB Notification: Performance of SimCode: time 2.468e-06/2.67, allocations: 0 / 0.9219 GB, free: 15.3 MB / 458.7 MB Notification: Performance of Templates: time 0.4636/3.133, allocations: 133.2 MB / 1.052 GB, free: 26.56 MB / 458.7 MB