Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointSSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR") Notification: Performance of loadModel(ModelicaTest): time 2.075/2.075, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000613/0.0006132, allocations: 8 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3504, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1793/0.5298, allocations: 102.8 MB / 434.6 MB, free: 7.582 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003339/0.5302, allocations: 83.95 kB / 434.7 MB, free: 7.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9074/1.438, allocations: 155.5 MB / 0.5764 GB, free: 20.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.707e-06/1.438, allocations: 0 / 0.5764 GB, free: 20.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000502/1.438, allocations: 128 kB / 0.5765 GB, free: 20.25 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2561 * Number of variables: 2561 Notification: Performance of Generate backend data structure: time 0.02734/1.466, allocations: 6.995 MB / 0.5833 GB, free: 13.17 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/1.466, allocations: 12.03 kB / 0.5833 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04916/1.515, allocations: 6.675 MB / 0.5899 GB, free: 6.461 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02953/1.544, allocations: 8.429 MB / 0.5981 GB, free: 13.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008497/1.545, allocations: 0.5255 MB / 0.5986 GB, free: 13.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004542/1.55, allocations: 0.6989 MB / 0.5993 GB, free: 12.74 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06742/1.617, allocations: 19.12 MB / 0.618 GB, free: 8.273 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004414/1.618, allocations: 91.17 kB / 0.618 GB, free: 8.184 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003176/1.621, allocations: 339.8 kB / 0.6184 GB, free: 7.852 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004329/1.625, allocations: 1.715 MB / 0.62 GB, free: 6.133 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3775/2.003, allocations: 16.81 MB / 0.6365 GB, free: 72 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1386/2.142, allocations: 74.21 MB / 0.7089 GB, free: 28.23 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02585/2.168, allocations: 6.196 MB / 0.715 GB, free: 25.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03838/2.206, allocations: 13.96 MB / 0.7286 GB, free: 18.27 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.52e-05/2.206, allocations: 59.91 kB / 0.7287 GB, free: 18.22 MB / 426.7 MB Notification: Performance of pre-optimization done (n=284): time 7.003e-06/2.206, allocations: 0 / 0.7287 GB, free: 18.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=344): time 0.1459/2.352, allocations: 24.05 MB / 0.7522 GB, free: 8.074 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.759e-05/2.352, allocations: 190.1 kB / 0.7523 GB, free: 7.855 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0134/2.366, allocations: 5.876 MB / 0.7581 GB, free: 2.977 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007265/2.366, allocations: 72.98 kB / 0.7581 GB, free: 2.902 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004718/2.371, allocations: 4.855 MB / 0.7629 GB, free: 14.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002374/2.374, allocations: 1.277 MB / 0.7641 GB, free: 13.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001597/2.375, allocations: 186.9 kB / 0.7643 GB, free: 13.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001175/2.376, allocations: 0.7085 MB / 0.765 GB, free: 12.61 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01086/2.387, allocations: 3.264 MB / 0.7682 GB, free: 9.852 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01688/2.404, allocations: 8.736 MB / 0.7767 GB, free: 15.24 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01466/2.419, allocations: 5.25 MB / 0.7819 GB, free: 10.56 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002667/2.419, allocations: 56 kB / 0.7819 GB, free: 10.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.3722/2.791, allocations: 12.6 MB / 0.7942 GB, free: 92.05 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001984/2.792, allocations: 89.97 kB / 0.7943 GB, free: 92.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004304/2.792, allocations: 191.5 kB / 0.7945 GB, free: 92.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008071/2.8, allocations: 1.332 MB / 0.7958 GB, free: 92.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01348/2.814, allocations: 2.182 MB / 0.7979 GB, free: 92.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02007/2.834, allocations: 7.398 MB / 0.8051 GB, free: 90.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01093/2.845, allocations: 0.5612 MB / 0.8057 GB, free: 90.69 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002451/2.847, allocations: 0.545 MB / 0.8062 GB, free: 90.69 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 876 * Number of states: 0 () * Number of discrete variables: 43 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[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 (1152): * Single equations (assignments): 1145 * 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%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01061/2.858, allocations: 3.45 MB / 0.8096 GB, free: 90.57 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001422/2.859, allocations: 0.5262 MB / 0.8101 GB, free: 90.57 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01954/2.879, allocations: 5.331 MB / 0.8153 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-05/2.879, allocations: 40.12 kB / 0.8153 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-05/2.879, allocations: 6.062 kB / 0.8153 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.572e-05/2.879, allocations: 17.81 kB / 0.8154 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04503/2.924, allocations: 14.1 MB / 0.8291 GB, free: 88.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.442e-05/2.924, allocations: 11.28 kB / 0.8291 GB, free: 88.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004488/2.929, allocations: 0.53 MB / 0.8297 GB, free: 88.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006499/2.936, allocations: 0.9304 MB / 0.8306 GB, free: 88.94 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007331/2.936, allocations: 64.12 kB / 0.8306 GB, free: 88.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01515/2.951, allocations: 5.709 MB / 0.8362 GB, free: 87.32 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.356e-05/2.952, allocations: 17.64 kB / 0.8362 GB, free: 87.32 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02442/2.976, allocations: 8.484 MB / 0.8445 GB, free: 83.81 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003581/2.98, allocations: 0.946 MB / 0.8454 GB, free: 83.38 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001923/2.982, allocations: 68.16 kB / 0.8455 GB, free: 83.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004915/2.986, allocations: 192.3 kB / 0.8457 GB, free: 83.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009525/2.987, allocations: 217.8 kB / 0.8459 GB, free: 83.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003384/2.988, allocations: 104.7 kB / 0.846 GB, free: 83.25 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01005/2.998, allocations: 3.656 MB / 0.8496 GB, free: 82.07 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.011e-06/2.998, allocations: 0 / 0.8496 GB, free: 82.07 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01168/3.01, allocations: 1.654 MB / 0.8512 GB, free: 81.89 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 (267): * Single equations (assignments): 260 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001338/3.011, allocations: 267.9 kB / 0.8514 GB, free: 81.75 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01946/3.031, allocations: 7.766 MB / 0.859 GB, free: 79.54 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-05/3.031, allocations: 2.75 kB / 0.859 GB, free: 79.54 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006392/3.037, allocations: 2.395 MB / 0.8614 GB, free: 78.65 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005318/3.042, allocations: 0.6443 MB / 0.862 GB, free: 78.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04636/3.089, allocations: 19.04 MB / 0.8806 GB, free: 68.62 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01379/3.103, allocations: 5.325 MB / 0.8858 GB, free: 65.93 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002586/3.105, allocations: 449.5 kB / 0.8862 GB, free: 65.5 MB / 458.7 MB Notification: Performance of SimCode: time 1.523e-06/3.105, allocations: 4 kB / 0.8862 GB, free: 65.5 MB / 458.7 MB Notification: Performance of Templates: time 0.5848/3.69, allocations: 121.2 MB / 1.005 GB, free: 79.88 MB / 474.7 MB