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.843/1.843, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.916e-05/2.928e-05, allocations: 7.984 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08435/0.0844, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3659/0.4503, allocations: 98.92 MB / 425.5 MB, free: 8.941 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/0.4506, allocations: 69.84 kB / 425.5 MB, free: 8.906 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7668/1.217, allocations: 135.7 MB / 0.548 GB, free: 76.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.29e-06/1.218, allocations: 3.391 kB / 0.5481 GB, free: 76.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004133/1.218, allocations: 136.1 kB / 0.5482 GB, free: 76.66 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02292/1.241, allocations: 7.033 MB / 0.5551 GB, free: 74.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/1.241, allocations: 14.16 kB / 0.5551 GB, free: 74.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0406/1.282, allocations: 7.562 MB / 0.5624 GB, free: 73.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02761/1.309, allocations: 9.789 MB / 0.572 GB, free: 72.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005683/1.31, allocations: 489.5 kB / 0.5725 GB, free: 72.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002866/1.313, allocations: 0.6532 MB / 0.5731 GB, free: 72.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04259/1.355, allocations: 16.56 MB / 0.5893 GB, free: 68.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004708/1.356, allocations: 99.59 kB / 0.5894 GB, free: 68.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00256/1.358, allocations: 310.7 kB / 0.5897 GB, free: 68.62 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003043/1.361, allocations: 1.583 MB / 0.5912 GB, free: 68.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03666/1.398, allocations: 13.5 MB / 0.6044 GB, free: 64.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1/1.498, allocations: 74.62 MB / 0.6773 GB, free: 13.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03123/1.53, allocations: 7.699 MB / 0.6848 GB, free: 5.25 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008371/1.538, allocations: 3.978 MB / 0.6887 GB, free: 1.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2956/1.834, allocations: 18.68 MB / 0.7069 GB, free: 82.85 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.351e-05/1.834, allocations: 65.25 kB / 0.707 GB, free: 82.81 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 7.931e-06/1.834, allocations: 3.969 kB / 0.707 GB, free: 82.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=367): time 0.1738/2.008, allocations: 40.31 MB / 0.7464 GB, free: 78.39 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.866e-05/2.008, allocations: 277.8 kB / 0.7466 GB, free: 78.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01206/2.02, allocations: 5.29 MB / 0.7518 GB, free: 76.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007847/2.021, allocations: 85.19 kB / 0.7519 GB, free: 76.33 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003436/2.024, allocations: 4.547 MB / 0.7563 GB, free: 72.95 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001797/2.026, allocations: 1.349 MB / 0.7576 GB, free: 71.96 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001039/2.027, allocations: 185.6 kB / 0.7578 GB, free: 71.81 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006778/2.028, allocations: 0.7033 MB / 0.7585 GB, free: 71.33 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008218/2.036, allocations: 3.684 MB / 0.7621 GB, free: 70.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01104/2.047, allocations: 8.866 MB / 0.7707 GB, free: 61.86 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01116/2.058, allocations: 5.61 MB / 0.7762 GB, free: 60.11 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001439/2.058, allocations: 51.12 kB / 0.7763 GB, free: 60.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.04257/2.101, allocations: 16.18 MB / 0.7921 GB, free: 50.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001384/2.101, allocations: 87.94 kB / 0.7922 GB, free: 50.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001922/2.101, allocations: 180 kB / 0.7923 GB, free: 50.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01585/2.117, allocations: 4.077 MB / 0.7963 GB, free: 47.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009367/2.127, allocations: 2.04 MB / 0.7983 GB, free: 45.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04356/2.17, allocations: 21.73 MB / 0.8195 GB, free: 27.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009693/2.18, allocations: 0.5493 MB / 0.8201 GB, free: 26.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00179/2.182, allocations: 0.525 MB / 0.8206 GB, free: 26.12 MB / 442.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 () * 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.00237/2.184, allocations: 0.8027 MB / 0.8214 GB, free: 25.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001297/2.185, allocations: 0.5746 MB / 0.8219 GB, free: 24.74 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02601/2.212, allocations: 9.681 MB / 0.8314 GB, free: 16.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.199e-05/2.212, allocations: 36 kB / 0.8314 GB, free: 16.55 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.673e-05/2.212, allocations: 20 kB / 0.8314 GB, free: 16.53 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.744e-05/2.212, allocations: 19.92 kB / 0.8314 GB, free: 16.51 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04864/2.26, allocations: 19.09 MB / 0.8501 GB, free: 13.31 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.241e-05/2.26, allocations: 0 / 0.8501 GB, free: 13.31 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003871/2.264, allocations: 0.5109 MB / 0.8506 GB, free: 12.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2813/2.546, allocations: 3.554 MB / 0.8541 GB, free: 87.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008561/2.547, allocations: 64.39 kB / 0.8541 GB, free: 87.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03958/2.586, allocations: 18.72 MB / 0.8724 GB, free: 84.91 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.723e-06/2.586, allocations: 0 / 0.8724 GB, free: 84.91 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0349/2.621, allocations: 14.12 MB / 0.8862 GB, free: 84.22 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003687/2.625, allocations: 1.122 MB / 0.8873 GB, free: 84.13 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001803/2.627, allocations: 62.47 kB / 0.8873 GB, free: 84.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004821/2.632, allocations: 227.5 kB / 0.8876 GB, free: 84.12 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001191/2.633, allocations: 226.5 kB / 0.8878 GB, free: 84.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004801/2.633, allocations: 96.39 kB / 0.8879 GB, free: 84.12 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008834/2.642, allocations: 3.701 MB / 0.8915 GB, free: 83.88 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.474e-06/2.642, allocations: 0 / 0.8915 GB, free: 83.88 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01122/2.653, allocations: 1.84 MB / 0.8933 GB, free: 83.88 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 () * 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.001132/2.655, allocations: 231.6 kB / 0.8935 GB, free: 83.79 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01958/2.674, allocations: 9.529 MB / 0.9028 GB, free: 81.05 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.464e-06/2.674, allocations: 0 / 0.9028 GB, free: 81.05 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00785/2.682, allocations: 3.711 MB / 0.9064 GB, free: 79.51 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005101/2.687, allocations: 0.7104 MB / 0.9071 GB, free: 79.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03373/2.721, allocations: 13.85 MB / 0.9206 GB, free: 74.23 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01094/2.732, allocations: 5.015 MB / 0.9255 GB, free: 72.65 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002294/2.734, allocations: 447.8 kB / 0.926 GB, free: 72.64 MB / 458.7 MB Notification: Performance of SimCode: time 2.044e-06/2.734, allocations: 0 / 0.926 GB, free: 72.64 MB / 458.7 MB Notification: Performance of Templates: time 0.4731/3.208, allocations: 146 MB / 1.069 GB, free: 86.31 MB / 458.7 MB