Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadModel(Modelica): time 1.639/1.639, allocations: 171.2 MB / 184.3 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.34e-05/2.358e-05, allocations: 0 / 228.8 MB, free: 15.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2063/0.2063, allocations: 38.78 MB / 267.6 MB, free: 9.445 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3391/0.5455, allocations: 91.01 MB / 358.6 MB, free: 35.12 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.5458, allocations: 84.81 kB / 358.7 MB, free: 35.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5121/1.058, allocations: 135.6 MB / 494.3 MB, free: 7.664 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.368e-06/1.058, allocations: 0 / 494.3 MB, free: 7.664 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004876/1.058, allocations: 132 kB / 494.4 MB, free: 7.535 MB / 362.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.02579/1.084, allocations: 7.051 MB / 0.4897 GB, free: 416 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/1.084, allocations: 8.031 kB / 0.4897 GB, free: 408 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2966/1.381, allocations: 7.557 MB / 0.4971 GB, free: 54.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02767/1.409, allocations: 9.684 MB / 0.5066 GB, free: 54.01 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005838/1.409, allocations: 491.2 kB / 0.5071 GB, free: 54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002925/1.412, allocations: 0.6509 MB / 0.5077 GB, free: 53.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0423/1.455, allocations: 16.56 MB / 0.5239 GB, free: 50.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004522/1.455, allocations: 100.2 kB / 0.524 GB, free: 50.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0025/1.458, allocations: 311.4 kB / 0.5243 GB, free: 50.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003101/1.461, allocations: 1.582 MB / 0.5258 GB, free: 50.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03584/1.497, allocations: 13.49 MB / 0.539 GB, free: 50.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1018/1.598, allocations: 74.3 MB / 0.6115 GB, free: 26.28 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02755/1.626, allocations: 7.705 MB / 0.6191 GB, free: 19.92 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006488/1.633, allocations: 3.975 MB / 0.6229 GB, free: 16.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2635/1.896, allocations: 18.76 MB / 0.6413 GB, free: 82.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.501e-05/1.896, allocations: 67.89 kB / 0.6413 GB, free: 82.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=286): time 1.031e-05/1.896, allocations: 3.281 kB / 0.6413 GB, free: 82.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=367): time 0.1745/2.071, allocations: 40.3 MB / 0.6807 GB, free: 78.09 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.89e-05/2.071, allocations: 270.9 kB / 0.6809 GB, free: 77.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01252/2.084, allocations: 5.292 MB / 0.6861 GB, free: 77.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008245/2.084, allocations: 78.48 kB / 0.6862 GB, free: 77.27 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00364/2.088, allocations: 4.555 MB / 0.6906 GB, free: 75.02 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001904/2.09, allocations: 1.352 MB / 0.692 GB, free: 74.22 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001204/2.091, allocations: 185.4 kB / 0.6921 GB, free: 74.22 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0008015/2.092, allocations: 0.6986 MB / 0.6928 GB, free: 73.89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008221/2.1, allocations: 3.692 MB / 0.6964 GB, free: 73.86 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01092/2.111, allocations: 8.865 MB / 0.7051 GB, free: 67.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01102/2.122, allocations: 5.606 MB / 0.7106 GB, free: 67.15 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001714/2.123, allocations: 50.84 kB / 0.7106 GB, free: 67.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.04342/2.166, allocations: 16.18 MB / 0.7264 GB, free: 60.14 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001546/2.166, allocations: 84 kB / 0.7265 GB, free: 60.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002394/2.166, allocations: 180 kB / 0.7267 GB, free: 59.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01592/2.182, allocations: 4.074 MB / 0.7306 GB, free: 57.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008835/2.191, allocations: 2.044 MB / 0.7326 GB, free: 55.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04033/2.232, allocations: 21.74 MB / 0.7539 GB, free: 36.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009898/2.242, allocations: 0.5522 MB / 0.7544 GB, free: 36.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001929/2.244, allocations: 0.531 MB / 0.7549 GB, free: 35.66 MB / 394.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.002697/2.246, allocations: 0.8046 MB / 0.7557 GB, free: 34.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001373/2.248, allocations: 0.5708 MB / 0.7563 GB, free: 34.28 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02667/2.274, allocations: 9.69 MB / 0.7657 GB, free: 26.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.517e-05/2.274, allocations: 36 kB / 0.7658 GB, free: 26.79 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-05/2.275, allocations: 20 kB / 0.7658 GB, free: 26.77 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.891e-05/2.275, allocations: 16.17 kB / 0.7658 GB, free: 26.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3467/2.621, allocations: 19.2 MB / 0.7845 GB, free: 69.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.216e-05/2.621, allocations: 0 / 0.7845 GB, free: 69.26 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003701/2.625, allocations: 0.5064 MB / 0.785 GB, free: 69.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01626/2.641, allocations: 3.556 MB / 0.7885 GB, free: 69.24 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000708/2.642, allocations: 63.75 kB / 0.7886 GB, free: 69.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03698/2.679, allocations: 18.73 MB / 0.8069 GB, free: 66.63 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/2.679, allocations: 0 / 0.8069 GB, free: 66.63 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03465/2.714, allocations: 14.12 MB / 0.8206 GB, free: 65.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003567/2.717, allocations: 1.124 MB / 0.8217 GB, free: 65.81 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00158/2.719, allocations: 55.8 kB / 0.8218 GB, free: 65.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004595/2.724, allocations: 229.1 kB / 0.822 GB, free: 65.81 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/2.725, allocations: 222.4 kB / 0.8222 GB, free: 65.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004328/2.725, allocations: 96.2 kB / 0.8223 GB, free: 65.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.008637/2.734, allocations: 3.7 MB / 0.8259 GB, free: 65.56 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.099e-06/2.734, allocations: 0 / 0.8259 GB, free: 65.56 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01097/2.745, allocations: 1.853 MB / 0.8277 GB, free: 65.53 MB / 394.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.001037/2.746, allocations: 229.2 kB / 0.828 GB, free: 65.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0187/2.765, allocations: 9.522 MB / 0.8373 GB, free: 62.33 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.879e-06/2.765, allocations: 1.094 kB / 0.8373 GB, free: 62.33 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007652/2.772, allocations: 3.723 MB / 0.8409 GB, free: 60.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004939/2.777, allocations: 0.7194 MB / 0.8416 GB, free: 60.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03336/2.811, allocations: 13.85 MB / 0.8551 GB, free: 55.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01051/2.821, allocations: 5.008 MB / 0.86 GB, free: 52.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002094/2.824, allocations: 454.7 kB / 0.8604 GB, free: 52.34 MB / 394.7 MB Notification: Performance of SimCode: time 2.036e-06/2.824, allocations: 0 / 0.8604 GB, free: 52.34 MB / 394.7 MB Notification: Performance of Templates: time 0.4431/3.267, allocations: 146 MB / 1.003 GB, free: 37.24 MB / 394.7 MB