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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.192/2.192, allocations: 235.1 MB / 243 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.604e-05/1.614e-05, allocations: 4 kB / 303.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3283, allocations: 54.85 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1613/0.4897, allocations: 105.1 MB / 463.1 MB, free: 5.711 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.49, allocations: 75.95 kB / 463.2 MB, free: 5.637 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7351/1.225, allocations: 133.1 MB / 0.5823 GB, free: 0.8867 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.892e-06/1.225, allocations: 0 / 0.5823 GB, free: 0.8867 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004534/1.226, allocations: 139.9 kB / 0.5825 GB, free: 0.75 MB / 410.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.02448/1.25, allocations: 7.036 MB / 0.5893 GB, free: 9.637 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/1.25, allocations: 8.031 kB / 0.5893 GB, free: 9.629 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04203/1.292, allocations: 7.561 MB / 0.5967 GB, free: 2.047 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03094/1.323, allocations: 9.786 MB / 0.6063 GB, free: 8.176 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004264/1.324, allocations: 208 kB / 0.6065 GB, free: 7.973 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002758/1.326, allocations: 395.8 kB / 0.6068 GB, free: 7.586 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02298/1.349, allocations: 9.683 MB / 0.6163 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3139/1.663, allocations: 14.23 MB / 0.6302 GB, free: 68.86 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004583/1.664, allocations: 100.5 kB / 0.6303 GB, free: 68.86 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002298/1.666, allocations: 44 kB / 0.6303 GB, free: 68.86 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003288/1.67, allocations: 1.58 MB / 0.6319 GB, free: 68.85 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09309/1.763, allocations: 73.68 MB / 0.7038 GB, free: 26.12 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00832/1.771, allocations: 5.232 MB / 0.7089 GB, free: 25.12 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005901/1.777, allocations: 3.765 MB / 0.7126 GB, free: 23.45 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002748/1.78, allocations: 2.27 MB / 0.7148 GB, free: 21.39 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.899e-05/1.78, allocations: 63.22 kB / 0.7149 GB, free: 21.34 MB / 458.7 MB Notification: Performance of pre-optimization done (n=301): time 8.589e-06/1.78, allocations: 3.625 kB / 0.7149 GB, free: 21.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=381): time 0.1263/1.906, allocations: 40.66 MB / 0.7546 GB, free: 7.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.935e-05/1.906, allocations: 277.8 kB / 0.7549 GB, free: 7.621 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008509/1.915, allocations: 4.636 MB / 0.7594 GB, free: 5.273 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007295/1.916, allocations: 25.7 kB / 0.7594 GB, free: 5.242 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00304/1.919, allocations: 4.625 MB / 0.7639 GB, free: 1.156 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002128/1.921, allocations: 1.374 MB / 0.7653 GB, free: 0 / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008804/1.922, allocations: 3.656 kB / 0.7653 GB, free: 0 / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008107/1.923, allocations: 0.7141 MB / 0.766 GB, free: 15.39 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008077/1.931, allocations: 3.65 MB / 0.7696 GB, free: 12.12 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0134/1.944, allocations: 8.923 MB / 0.7783 GB, free: 1.344 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01804/1.962, allocations: 5.941 MB / 0.7841 GB, free: 13.72 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001727/1.962, allocations: 56 kB / 0.7841 GB, free: 13.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.04452/2.007, allocations: 15.36 MB / 0.7991 GB, free: 1.102 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001633/2.007, allocations: 84 kB / 0.7992 GB, free: 1.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002575/2.007, allocations: 188 kB / 0.7994 GB, free: 0.8359 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02349/2.031, allocations: 4.449 MB / 0.8037 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00918/2.04, allocations: 2.105 MB / 0.8058 GB, free: 12.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3353/2.375, allocations: 21.02 MB / 0.8263 GB, free: 109 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009516/2.385, allocations: 385.3 kB / 0.8267 GB, free: 109 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002019/2.387, allocations: 0.5482 MB / 0.8272 GB, free: 109 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1121): * Single equations (assignments): 1116 * 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.002812/2.39, allocations: 0.578 MB / 0.8278 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001425/2.391, allocations: 0.5439 MB / 0.8283 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02718/2.419, allocations: 9.562 MB / 0.8376 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.075e-05/2.419, allocations: 39.83 kB / 0.8377 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.844e-05/2.419, allocations: 14.81 kB / 0.8377 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.29e-05/2.419, allocations: 24.61 kB / 0.8377 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04663/2.465, allocations: 18.15 MB / 0.8554 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.74e-05/2.466, allocations: 0 / 0.8554 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003591/2.469, allocations: 0.5297 MB / 0.856 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01564/2.485, allocations: 3.515 MB / 0.8594 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006884/2.486, allocations: 17.48 kB / 0.8594 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03376/2.519, allocations: 17.67 MB / 0.8767 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.535e-06/2.519, allocations: 0 / 0.8767 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03408/2.553, allocations: 14.29 MB / 0.8906 GB, free: 96.96 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003453/2.557, allocations: 1.093 MB / 0.8917 GB, free: 96.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001582/2.559, allocations: 3.438 kB / 0.8917 GB, free: 96.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004379/2.563, allocations: 173.9 kB / 0.8919 GB, free: 96.39 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001195/2.564, allocations: 240.2 kB / 0.8921 GB, free: 96.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005206/2.565, allocations: 99.09 kB / 0.8922 GB, free: 96.34 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007222/2.572, allocations: 3.122 MB / 0.8952 GB, free: 95.24 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.394e-06/2.572, allocations: 0 / 0.8952 GB, free: 95.24 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01104/2.583, allocations: 1.604 MB / 0.8968 GB, free: 95.24 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (284): * Single equations (assignments): 279 * 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.00104/2.584, allocations: 178.2 kB / 0.897 GB, free: 95.15 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01762/2.602, allocations: 9.226 MB / 0.906 GB, free: 92.07 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.472e-06/2.602, allocations: 0 / 0.906 GB, free: 92.07 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006868/2.609, allocations: 3.674 MB / 0.9096 GB, free: 89.13 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003724/2.613, allocations: 0.579 MB / 0.9101 GB, free: 88.65 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02809/2.641, allocations: 13.79 MB / 0.9236 GB, free: 76.62 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00877/2.649, allocations: 5.016 MB / 0.9285 GB, free: 72.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001982/2.651, allocations: 435.5 kB / 0.9289 GB, free: 72.56 MB / 0.4948 GB Notification: Performance of SimCode: time 1.914e-06/2.651, allocations: 0 / 0.9289 GB, free: 72.56 MB / 0.4948 GB Notification: Performance of Templates: time 0.4925/3.144, allocations: 143.2 MB / 1.069 GB, free: 82.27 MB / 0.4948 GB