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.Forces.LineForceWithTwoMasses.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.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 1.808/1.808, allocations: 209.3 MB / 224.9 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004392/0.0004393, allocations: 12 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2758, allocations: 48.7 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1961/0.472, allocations: 99.01 MB / 430.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.4723, allocations: 75.97 kB / 430.4 MB, free: 11.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7015/1.174, allocations: 135.6 MB / 0.5527 GB, free: 44.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.938e-06/1.174, allocations: 4 kB / 0.5527 GB, free: 44.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003989/1.174, allocations: 128 kB / 0.5528 GB, free: 43.96 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02423/1.198, allocations: 7.655 MB / 0.5603 GB, free: 36.22 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/1.199, allocations: 8.031 kB / 0.5603 GB, free: 36.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03809/1.237, allocations: 7.553 MB / 0.5677 GB, free: 28.64 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02636/1.263, allocations: 9.829 MB / 0.5773 GB, free: 18.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005736/1.264, allocations: 492.8 kB / 0.5777 GB, free: 18.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002786/1.266, allocations: 0.6481 MB / 0.5784 GB, free: 17.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03928/1.306, allocations: 16.71 MB / 0.5947 GB, free: 15.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000485/1.306, allocations: 107 kB / 0.5948 GB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00259/1.309, allocations: 307.8 kB / 0.5951 GB, free: 15.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003398/1.312, allocations: 1.584 MB / 0.5966 GB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03919/1.352, allocations: 13.75 MB / 0.6101 GB, free: 15.65 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3607/1.712, allocations: 74.32 MB / 0.6826 GB, free: 27.15 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02893/1.741, allocations: 7.73 MB / 0.6902 GB, free: 26.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03686/1.778, allocations: 18.71 MB / 0.7084 GB, free: 20.58 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/1.778, allocations: 65.94 kB / 0.7085 GB, free: 20.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.722e-06/1.778, allocations: 0 / 0.7085 GB, free: 20.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.2194/1.998, allocations: 50.49 MB / 0.7578 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/1.998, allocations: 273.6 kB / 0.7581 GB, free: 304 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01423/2.012, allocations: 5.452 MB / 0.7634 GB, free: 12.06 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007995/2.013, allocations: 81.7 kB / 0.7635 GB, free: 11.98 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005024/2.018, allocations: 4.549 MB / 0.7679 GB, free: 7.875 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002256/2.02, allocations: 1.345 MB / 0.7692 GB, free: 6.684 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001157/2.021, allocations: 187 kB / 0.7694 GB, free: 6.504 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008601/2.022, allocations: 0.7048 MB / 0.7701 GB, free: 5.898 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009342/2.032, allocations: 3.809 MB / 0.7738 GB, free: 2.688 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01855/2.05, allocations: 9.202 MB / 0.7828 GB, free: 8.484 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01261/2.063, allocations: 5.675 MB / 0.7884 GB, free: 3.539 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000159/2.063, allocations: 52 kB / 0.7884 GB, free: 3.488 MB / 458.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.3168/2.38, allocations: 16.5 MB / 0.8045 GB, free: 100.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001807/2.38, allocations: 82.88 kB / 0.8046 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000301/2.38, allocations: 181.5 kB / 0.8048 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0171/2.398, allocations: 4.135 MB / 0.8088 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009175/2.407, allocations: 2.04 MB / 0.8108 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04699/2.454, allocations: 22.89 MB / 0.8332 GB, free: 97.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009499/2.463, allocations: 0.5542 MB / 0.8337 GB, free: 97.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001834/2.465, allocations: 0.5362 MB / 0.8342 GB, free: 97.04 MB / 458.7 MB 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.007414/2.473, allocations: 3.114 MB / 0.8373 GB, free: 95.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001333/2.474, allocations: 0.5708 MB / 0.8378 GB, free: 95.73 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02881/2.503, allocations: 9.85 MB / 0.8474 GB, free: 92.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.347e-05/2.503, allocations: 36.34 kB / 0.8475 GB, free: 92.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.818e-05/2.503, allocations: 16.53 kB / 0.8475 GB, free: 92.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.816e-05/2.503, allocations: 19.8 kB / 0.8475 GB, free: 92.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05088/2.554, allocations: 19.25 MB / 0.8663 GB, free: 86.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.776e-05/2.554, allocations: 0 / 0.8663 GB, free: 86.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003658/2.558, allocations: 0.5096 MB / 0.8668 GB, free: 86.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01678/2.575, allocations: 3.622 MB / 0.8703 GB, free: 85.41 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008257/2.575, allocations: 55.23 kB / 0.8704 GB, free: 85.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0379/2.613, allocations: 19.83 MB / 0.8898 GB, free: 68.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.153e-06/2.613, allocations: 2.219 kB / 0.8898 GB, free: 68.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03318/2.647, allocations: 14.35 MB / 0.9038 GB, free: 56.28 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003727/2.65, allocations: 1.125 MB / 0.9049 GB, free: 55.14 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001879/2.652, allocations: 60 kB / 0.9049 GB, free: 55.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0046/2.657, allocations: 228.5 kB / 0.9051 GB, free: 54.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001248/2.658, allocations: 225.6 kB / 0.9054 GB, free: 54.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000615/2.659, allocations: 91.97 kB / 0.9054 GB, free: 54.55 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008973/2.668, allocations: 3.787 MB / 0.9091 GB, free: 50.78 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.457e-06/2.668, allocations: 0 / 0.9091 GB, free: 50.78 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01107/2.679, allocations: 1.848 MB / 0.9109 GB, free: 48.95 MB / 458.7 MB 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.001091/2.68, allocations: 223.7 kB / 0.9112 GB, free: 48.73 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01884/2.699, allocations: 9.721 MB / 0.9207 GB, free: 39.06 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.442e-06/2.699, allocations: 0 / 0.9207 GB, free: 39.06 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007407/2.706, allocations: 3.798 MB / 0.9244 GB, free: 35.24 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004584/2.711, allocations: 0.7217 MB / 0.9251 GB, free: 34.54 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03631/2.747, allocations: 19.1 MB / 0.9437 GB, free: 15.58 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01041/2.758, allocations: 5.022 MB / 0.9486 GB, free: 10.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002114/2.76, allocations: 443.4 kB / 0.949 GB, free: 10.12 MB / 458.7 MB Notification: Performance of SimCode: time 1.794e-06/2.76, allocations: 0 / 0.949 GB, free: 10.12 MB / 458.7 MB Notification: Performance of Templates: time 0.4782/3.238, allocations: 146.1 MB / 1.092 GB, free: 35.95 MB / 474.7 MB