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.929/1.929, allocations: 209.2 MB / 224.8 MB, free: 208 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004359/0.000436, allocations: 12 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3295, allocations: 48.7 MB / 331.3 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.4851, allocations: 104.2 MB / 435.4 MB, free: 6.199 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.4854, allocations: 79.97 kB / 435.5 MB, free: 6.121 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8117/1.297, allocations: 171.8 MB / 0.593 GB, free: 2.871 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.52e-06/1.297, allocations: 0 / 0.593 GB, free: 2.871 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003814/1.298, allocations: 152 kB / 0.5932 GB, free: 2.723 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: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.02906/1.327, allocations: 8.224 MB / 0.6012 GB, free: 10.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/1.327, allocations: 12.03 kB / 0.6012 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03903/1.366, allocations: 6.939 MB / 0.608 GB, free: 3.438 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03072/1.396, allocations: 9.866 MB / 0.6176 GB, free: 9.484 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008888/1.397, allocations: 0.5656 MB / 0.6182 GB, free: 8.918 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003976/1.401, allocations: 0.7651 MB / 0.6189 GB, free: 8.152 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3184/1.72, allocations: 20.76 MB / 0.6392 GB, free: 61.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005242/1.72, allocations: 97.17 kB / 0.6393 GB, free: 61.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003317/1.724, allocations: 360.2 kB / 0.6397 GB, free: 61.09 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003816/1.728, allocations: 1.954 MB / 0.6416 GB, free: 61.08 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04724/1.775, allocations: 18.31 MB / 0.6594 GB, free: 61.03 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1128/1.888, allocations: 82.17 MB / 0.7397 GB, free: 8.504 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02373/1.911, allocations: 7.362 MB / 0.7469 GB, free: 5.551 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04974/1.961, allocations: 18.23 MB / 0.7647 GB, free: 11.76 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001434/1.961, allocations: 71.41 kB / 0.7647 GB, free: 11.69 MB / 442.7 MB Notification: Performance of pre-optimization done (n=332): time 1.588e-05/1.962, allocations: 0 / 0.7647 GB, free: 11.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=413): time 0.4954/2.457, allocations: 36.57 MB / 0.8005 GB, free: 93.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.429e-05/2.457, allocations: 192.4 kB / 0.8006 GB, free: 93.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01451/2.472, allocations: 5.811 MB / 0.8063 GB, free: 92.88 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007899/2.472, allocations: 88.05 kB / 0.8064 GB, free: 92.85 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003882/2.476, allocations: 5.256 MB / 0.8115 GB, free: 91 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001846/2.478, allocations: 1.516 MB / 0.813 GB, free: 90.11 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001144/2.479, allocations: 212.2 kB / 0.8132 GB, free: 90.11 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007255/2.48, allocations: 0.7515 MB / 0.8139 GB, free: 89.78 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01019/2.49, allocations: 4.183 MB / 0.818 GB, free: 89.75 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01308/2.503, allocations: 10.01 MB / 0.8278 GB, free: 82.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0128/2.516, allocations: 6.338 MB / 0.834 GB, free: 82.27 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001799/2.517, allocations: 56.84 kB / 0.834 GB, free: 82.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.04074/2.557, allocations: 15.74 MB / 0.8494 GB, free: 80.96 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001653/2.558, allocations: 96.12 kB / 0.8495 GB, free: 80.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002608/2.558, allocations: 203.3 kB / 0.8497 GB, free: 80.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01078/2.569, allocations: 2.362 MB / 0.852 GB, free: 80.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.011/2.58, allocations: 2.433 MB / 0.8544 GB, free: 80.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02496/2.605, allocations: 12 MB / 0.8661 GB, free: 74.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01169/2.616, allocations: 0.6861 MB / 0.8668 GB, free: 74.63 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002107/2.619, allocations: 0.5895 MB / 0.8674 GB, free: 74.55 MB / 458.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 () * 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.009042/2.628, allocations: 3.748 MB / 0.871 GB, free: 72.85 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001441/2.629, allocations: 0.594 MB / 0.8716 GB, free: 72.52 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02274/2.652, allocations: 8.177 MB / 0.8796 GB, free: 69.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001076/2.652, allocations: 59.25 kB / 0.8796 GB, free: 69.58 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.882e-05/2.652, allocations: 13.53 kB / 0.8796 GB, free: 69.58 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.098e-05/2.652, allocations: 20.27 kB / 0.8797 GB, free: 69.58 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04963/2.702, allocations: 18.82 MB / 0.898 GB, free: 62.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.223e-05/2.702, allocations: 11.66 kB / 0.8981 GB, free: 62.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004154/2.706, allocations: 0.6441 MB / 0.8987 GB, free: 62.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009663/2.716, allocations: 1.895 MB / 0.9005 GB, free: 61.51 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008069/2.717, allocations: 83.47 kB / 0.9006 GB, free: 61.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02129/2.738, allocations: 10.34 MB / 0.9107 GB, free: 52.52 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-05/2.738, allocations: 24.61 kB / 0.9107 GB, free: 52.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02784/2.766, allocations: 14.29 MB / 0.9247 GB, free: 39.36 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003848/2.77, allocations: 1.16 MB / 0.9258 GB, free: 38.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001782/2.771, allocations: 84.14 kB / 0.9259 GB, free: 38.19 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004738/2.776, allocations: 255.8 kB / 0.9261 GB, free: 38.03 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001101/2.777, allocations: 263.3 kB / 0.9264 GB, free: 37.85 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004034/2.778, allocations: 112.6 kB / 0.9265 GB, free: 37.74 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009708/2.788, allocations: 4.066 MB / 0.9305 GB, free: 34.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.187e-06/2.788, allocations: 0 / 0.9305 GB, free: 34.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01208/2.8, allocations: 1.934 MB / 0.9324 GB, free: 32.52 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 () * 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.001239/2.801, allocations: 285 kB / 0.9326 GB, free: 32.25 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01898/2.82, allocations: 9.836 MB / 0.9422 GB, free: 23.52 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/2.82, allocations: 3.172 kB / 0.9422 GB, free: 23.52 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006825/2.827, allocations: 3.328 MB / 0.9455 GB, free: 20.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005132/2.832, allocations: 0.7325 MB / 0.9462 GB, free: 19.91 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3138/3.146, allocations: 21.54 MB / 0.9672 GB, free: 82.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01448/3.16, allocations: 5.761 MB / 0.9729 GB, free: 81.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002615/3.163, allocations: 488.3 kB / 0.9733 GB, free: 81.91 MB / 458.7 MB Notification: Performance of SimCode: time 1.759e-06/3.163, allocations: 1.812 kB / 0.9733 GB, free: 81.91 MB / 458.7 MB Notification: Performance of Templates: time 0.1999/3.363, allocations: 135.6 MB / 1.106 GB, free: 9.055 MB / 458.7 MB