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.183/2.183, allocations: 235 MB / 248.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.525e-05/4.553e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3561, allocations: 54.85 MB / 364.5 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1664/0.5225, allocations: 110.8 MB / 475.3 MB, free: 1.602 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/0.5228, allocations: 72.56 kB / 475.4 MB, free: 1.531 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8806/1.403, allocations: 171.9 MB / 0.6321 GB, free: 61.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.073e-06/1.403, allocations: 4 kB / 0.6322 GB, free: 61.09 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003973/1.404, allocations: 155.9 kB / 0.6323 GB, free: 60.94 MB / 458.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.02473/1.429, allocations: 7.694 MB / 0.6398 GB, free: 53.17 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/1.429, allocations: 12.03 kB / 0.6398 GB, free: 53.16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03616/1.465, allocations: 6.952 MB / 0.6466 GB, free: 46.18 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02578/1.491, allocations: 9.842 MB / 0.6562 GB, free: 36.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006495/1.491, allocations: 0.5656 MB / 0.6568 GB, free: 35.68 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003511/1.495, allocations: 0.7613 MB / 0.6575 GB, free: 34.92 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04919/1.544, allocations: 20.54 MB / 0.6776 GB, free: 12.95 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003497/1.544, allocations: 87.22 kB / 0.6777 GB, free: 12.86 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002509/1.547, allocations: 363.8 kB / 0.678 GB, free: 12.51 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003145/1.55, allocations: 1.958 MB / 0.6799 GB, free: 10.55 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04557/1.596, allocations: 17.91 MB / 0.6974 GB, free: 8.617 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.414/2.01, allocations: 82.17 MB / 0.7777 GB, free: 33.22 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02372/2.034, allocations: 7.31 MB / 0.7848 GB, free: 31.96 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00748/2.041, allocations: 3.92 MB / 0.7886 GB, free: 31.91 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04085/2.082, allocations: 18.23 MB / 0.8064 GB, free: 22.75 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.276e-05/2.082, allocations: 64.06 kB / 0.8065 GB, free: 22.69 MB / 474.7 MB Notification: Performance of pre-optimization done (n=332): time 8.226e-06/2.082, allocations: 0 / 0.8065 GB, free: 22.69 MB / 474.7 MB Notification: Performance of matching and sorting (n=413): time 0.1131/2.195, allocations: 26.07 MB / 0.8319 GB, free: 14.59 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.899e-05/2.195, allocations: 196.6 kB / 0.8321 GB, free: 14.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01241/2.208, allocations: 5.674 MB / 0.8377 GB, free: 12.44 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007644/2.209, allocations: 86.92 kB / 0.8378 GB, free: 12.37 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003853/2.212, allocations: 5.251 MB / 0.8429 GB, free: 8.254 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001988/2.214, allocations: 1.518 MB / 0.8444 GB, free: 7.137 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001234/2.216, allocations: 205.3 kB / 0.8446 GB, free: 6.938 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008672/2.217, allocations: 0.7559 MB / 0.8453 GB, free: 6.297 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008489/2.225, allocations: 4.024 MB / 0.8492 GB, free: 2.637 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02243/2.248, allocations: 10.26 MB / 0.8593 GB, free: 7.754 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01376/2.261, allocations: 6.241 MB / 0.8653 GB, free: 2.625 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002045/2.262, allocations: 60 kB / 0.8654 GB, free: 2.566 MB / 490.7 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.04417/2.306, allocations: 15.44 MB / 0.8805 GB, free: 5.684 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001883/2.306, allocations: 95.94 kB / 0.8806 GB, free: 5.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000328/2.306, allocations: 210.9 kB / 0.8808 GB, free: 5.391 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0104/2.317, allocations: 2.334 MB / 0.8831 GB, free: 3.695 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01178/2.329, allocations: 2.438 MB / 0.8854 GB, free: 1.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02803/2.357, allocations: 11.64 MB / 0.8968 GB, free: 7.855 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01077/2.367, allocations: 0.6886 MB / 0.8975 GB, free: 7.293 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002303/2.37, allocations: 0.5814 MB / 0.898 GB, free: 6.715 MB / 0.5105 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 () * 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.003009/2.373, allocations: 0.8717 MB / 0.8989 GB, free: 5.844 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001545/2.374, allocations: 0.5939 MB / 0.8995 GB, free: 5.242 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3164/2.691, allocations: 8.07 MB / 0.9073 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001282/2.691, allocations: 64.95 kB / 0.9074 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.531e-05/2.691, allocations: 14.34 kB / 0.9074 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-05/2.691, allocations: 25.23 kB / 0.9074 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0515/2.743, allocations: 18.74 MB / 0.9257 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.869e-05/2.743, allocations: 15.47 kB / 0.9258 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003987/2.747, allocations: 0.6411 MB / 0.9264 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009585/2.756, allocations: 1.877 MB / 0.9282 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008094/2.757, allocations: 75.98 kB / 0.9283 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02107/2.778, allocations: 9.865 MB / 0.9379 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-05/2.778, allocations: 23.25 kB / 0.938 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02821/2.807, allocations: 14.16 MB / 0.9518 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003867/2.811, allocations: 1.165 MB / 0.9529 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001698/2.812, allocations: 69.69 kB / 0.953 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004868/2.817, allocations: 264.8 kB / 0.9532 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001133/2.818, allocations: 263.5 kB / 0.9535 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004035/2.819, allocations: 110.7 kB / 0.9536 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009239/2.828, allocations: 3.933 MB / 0.9574 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.127e-06/2.828, allocations: 7.875 kB / 0.9574 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01209/2.84, allocations: 1.93 MB / 0.9593 GB, free: 113 MB / 0.5105 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 () * 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.001272/2.841, allocations: 280.7 kB / 0.9596 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01933/2.861, allocations: 9.626 MB / 0.969 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.485e-05/2.861, allocations: 2.25 kB / 0.969 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006935/2.868, allocations: 3.278 MB / 0.9722 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005375/2.873, allocations: 0.7251 MB / 0.9729 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03778/2.911, allocations: 15.51 MB / 0.9881 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01292/2.924, allocations: 5.756 MB / 0.9937 GB, free: 99.66 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00248/2.927, allocations: 490.8 kB / 0.9941 GB, free: 99.2 MB / 0.5105 GB Notification: Performance of SimCode: time 2.035e-06/2.927, allocations: 0 / 0.9941 GB, free: 99.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.4924/3.419, allocations: 135.5 MB / 1.126 GB, free: 120.7 MB / 0.5105 GB