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.Forces.LineForceWithTwoMasses.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.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 2.111/2.111, allocations: 234.9 MB / 250.5 MB, free: 9.453 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004466/0.0004468, allocations: 12 kB / 314.4 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3597, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1606/0.5204, allocations: 105.8 MB / 475.1 MB, free: 0.707 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.5207, allocations: 75.95 kB / 475.2 MB, free: 0.6328 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7093/1.23, allocations: 135.7 MB / 0.5965 GB, free: 6.477 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.944e-06/1.23, allocations: 0 / 0.5965 GB, free: 6.477 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004867/1.231, allocations: 136 kB / 0.5967 GB, free: 6.344 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: 2299 * Number of variables: 2299 Notification: Performance of Generate backend data structure: time 0.02739/1.258, allocations: 7.653 MB / 0.6041 GB, free: 14.6 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/1.258, allocations: 8.031 kB / 0.6041 GB, free: 14.59 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04127/1.299, allocations: 7.553 MB / 0.6115 GB, free: 7.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03035/1.33, allocations: 9.848 MB / 0.6211 GB, free: 13.09 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007053/1.33, allocations: 488.9 kB / 0.6216 GB, free: 12.61 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002971/1.333, allocations: 0.6519 MB / 0.6222 GB, free: 11.95 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3237/1.657, allocations: 16.71 MB / 0.6386 GB, free: 65.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005636/1.658, allocations: 96.31 kB / 0.6387 GB, free: 65.39 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002514/1.66, allocations: 315.2 kB / 0.639 GB, free: 65.39 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003268/1.664, allocations: 1.581 MB / 0.6405 GB, free: 65.37 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03464/1.698, allocations: 13.76 MB / 0.6539 GB, free: 65.31 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08959/1.788, allocations: 74.34 MB / 0.7265 GB, free: 19.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02677/1.815, allocations: 7.744 MB / 0.7341 GB, free: 16.88 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03328/1.848, allocations: 18.7 MB / 0.7524 GB, free: 7.152 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.85e-05/1.848, allocations: 65.62 kB / 0.7524 GB, free: 7.094 MB / 458.7 MB Notification: Performance of pre-optimization done (n=286): time 7.883e-06/1.848, allocations: 0 / 0.7524 GB, free: 7.094 MB / 458.7 MB Notification: Performance of matching and sorting (n=367): time 0.2875/2.136, allocations: 50.99 MB / 0.8022 GB, free: 6.199 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001996/2.136, allocations: 273.8 kB / 0.8025 GB, free: 5.875 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01334/2.149, allocations: 5.381 MB / 0.8077 GB, free: 0.5977 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008123/2.15, allocations: 81.7 kB / 0.8078 GB, free: 0.5117 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005471/2.156, allocations: 4.563 MB / 0.8123 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002272/2.158, allocations: 1.348 MB / 0.8136 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001011/2.159, allocations: 188 kB / 0.8138 GB, free: 10.51 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0008886/2.16, allocations: 0.6993 MB / 0.8144 GB, free: 9.801 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009682/2.169, allocations: 3.805 MB / 0.8182 GB, free: 5.988 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3067/2.476, allocations: 8.989 MB / 0.8269 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01201/2.488, allocations: 5.683 MB / 0.8325 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002924/2.489, allocations: 50.72 kB / 0.8325 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.04397/2.533, allocations: 16.48 MB / 0.8486 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001988/2.533, allocations: 84.97 kB / 0.8487 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002892/2.533, allocations: 180.1 kB / 0.8489 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0162/2.549, allocations: 4.137 MB / 0.8529 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008613/2.558, allocations: 2.042 MB / 0.8549 GB, free: 105 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04406/2.602, allocations: 22.9 MB / 0.8773 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009616/2.612, allocations: 0.5538 MB / 0.8778 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002079/2.614, allocations: 0.5277 MB / 0.8783 GB, free: 100.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (1083): * Single equations (assignments): 1078 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008092/2.622, allocations: 3.121 MB / 0.8814 GB, free: 98.99 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001388/2.623, allocations: 0.5728 MB / 0.8819 GB, free: 98.99 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.027/2.65, allocations: 9.845 MB / 0.8916 GB, free: 95.86 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.937e-05/2.651, allocations: 37.69 kB / 0.8916 GB, free: 95.86 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-05/2.651, allocations: 16.66 kB / 0.8916 GB, free: 95.86 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.797e-05/2.651, allocations: 23.06 kB / 0.8916 GB, free: 95.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05115/2.702, allocations: 19.25 MB / 0.9104 GB, free: 89.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-05/2.702, allocations: 10.44 kB / 0.9104 GB, free: 89.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00326/2.705, allocations: 0.5022 MB / 0.9109 GB, free: 89.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01499/2.72, allocations: 3.615 MB / 0.9145 GB, free: 87.91 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007554/2.721, allocations: 67.03 kB / 0.9145 GB, free: 87.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03758/2.759, allocations: 19.8 MB / 0.9339 GB, free: 71.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.747e-06/2.759, allocations: 7.938 kB / 0.9339 GB, free: 71.12 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03311/2.792, allocations: 14.35 MB / 0.9479 GB, free: 59.47 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003477/2.795, allocations: 1.124 MB / 0.949 GB, free: 58.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001455/2.797, allocations: 55.5 kB / 0.949 GB, free: 58.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004301/2.801, allocations: 226.4 kB / 0.9492 GB, free: 58.25 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001099/2.802, allocations: 232.3 kB / 0.9495 GB, free: 58.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003804/2.803, allocations: 94.06 kB / 0.9496 GB, free: 58.02 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008302/2.811, allocations: 3.787 MB / 0.9533 GB, free: 54.92 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.205e-06/2.811, allocations: 0 / 0.9533 GB, free: 54.92 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01082/2.822, allocations: 1.848 MB / 0.9551 GB, free: 53.09 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * 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 (270): * Single equations (assignments): 265 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001055/2.823, allocations: 231.8 kB / 0.9553 GB, free: 52.88 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0185/2.841, allocations: 9.721 MB / 0.9648 GB, free: 44.39 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.08e-06/2.842, allocations: 0 / 0.9648 GB, free: 44.39 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007416/2.849, allocations: 3.784 MB / 0.9685 GB, free: 41.04 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004796/2.854, allocations: 0.7219 MB / 0.9692 GB, free: 40.43 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03694/2.891, allocations: 19.13 MB / 0.9879 GB, free: 21.34 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01089/2.902, allocations: 5.008 MB / 0.9927 GB, free: 16.32 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002321/2.904, allocations: 447.4 kB / 0.9932 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of SimCode: time 1.949e-06/2.904, allocations: 0 / 0.9932 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of Templates: time 0.5017/3.406, allocations: 146.2 MB / 1.136 GB, free: 34.12 MB / 0.4948 GB