Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadModel(Modelica): time 1.944/1.944, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005823/0.0005825, allocations: 8 kB / 233.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1223, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4329/0.5552, allocations: 91.1 MB / 363.7 MB, free: 14.65 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.5555, allocations: 97.94 kB / 363.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8222/1.378, allocations: 137 MB / 0.489 GB, free: 62.03 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.216e-06/1.378, allocations: 0 / 0.489 GB, free: 62.03 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007137/1.379, allocations: 134.7 kB / 0.4892 GB, free: 61.9 MB / 346.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.047/1.426, allocations: 7.662 MB / 0.4967 GB, free: 54.2 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/1.426, allocations: 8.031 kB / 0.4967 GB, free: 54.19 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06008/1.486, allocations: 7.549 MB / 0.504 GB, free: 46.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03445/1.52, allocations: 9.72 MB / 0.5135 GB, free: 36.95 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006208/1.521, allocations: 491.4 kB / 0.514 GB, free: 36.51 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003831/1.525, allocations: 0.655 MB / 0.5146 GB, free: 35.9 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06575/1.591, allocations: 16.7 MB / 0.5309 GB, free: 17.83 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007277/1.591, allocations: 107 kB / 0.531 GB, free: 17.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004083/1.596, allocations: 319.8 kB / 0.5314 GB, free: 17.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004933/1.601, allocations: 1.576 MB / 0.5329 GB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05774/1.658, allocations: 13.76 MB / 0.5463 GB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4083/2.067, allocations: 74.3 MB / 0.6189 GB, free: 22.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05493/2.122, allocations: 7.746 MB / 0.6265 GB, free: 20.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0669/2.189, allocations: 18.7 MB / 0.6447 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.912e-05/2.189, allocations: 68.38 kB / 0.6448 GB, free: 10.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 6.612e-06/2.189, allocations: 0 / 0.6448 GB, free: 10.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=367): time 0.8967/3.086, allocations: 50.88 MB / 0.6945 GB, free: 86.58 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/3.086, allocations: 274.9 kB / 0.6947 GB, free: 86.3 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0193/3.105, allocations: 6.063 MB / 0.7007 GB, free: 85.79 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001109/3.106, allocations: 79.98 kB / 0.7007 GB, free: 85.76 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005233/3.112, allocations: 4.752 MB / 0.7054 GB, free: 83.43 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002563/3.114, allocations: 1.349 MB / 0.7067 GB, free: 82.64 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001946/3.116, allocations: 184.1 kB / 0.7069 GB, free: 82.64 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.001142/3.117, allocations: 0.6961 MB / 0.7075 GB, free: 82.31 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01097/3.128, allocations: 3.809 MB / 0.7113 GB, free: 82.29 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01478/3.143, allocations: 8.993 MB / 0.72 GB, free: 75.65 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01426/3.157, allocations: 5.68 MB / 0.7256 GB, free: 73.89 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002564/3.158, allocations: 51.06 kB / 0.7256 GB, free: 73.89 MB / 378.8 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.06888/3.227, allocations: 16.71 MB / 0.742 GB, free: 68.63 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002772/3.227, allocations: 82.19 kB / 0.742 GB, free: 68.63 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004878/3.228, allocations: 184.3 kB / 0.7422 GB, free: 68.62 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03454/3.262, allocations: 4.133 MB / 0.7463 GB, free: 68 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01856/3.281, allocations: 2.043 MB / 0.7482 GB, free: 67.75 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05881/3.34, allocations: 22.89 MB / 0.7706 GB, free: 52.09 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01179/3.351, allocations: 0.5507 MB / 0.7711 GB, free: 51.62 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002506/3.354, allocations: 0.5373 MB / 0.7717 GB, free: 51.1 MB / 378.8 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.00978/3.364, allocations: 3.122 MB / 0.7747 GB, free: 48.36 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001825/3.366, allocations: 0.5707 MB / 0.7753 GB, free: 47.79 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03948/3.405, allocations: 9.836 MB / 0.7849 GB, free: 40.23 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-05/3.405, allocations: 40.86 kB / 0.7849 GB, free: 40.19 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.395e-05/3.405, allocations: 19.52 kB / 0.7849 GB, free: 40.18 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.481e-05/3.405, allocations: 20.36 kB / 0.785 GB, free: 40.17 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06997/3.475, allocations: 19.25 MB / 0.8038 GB, free: 22 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.669e-05/3.476, allocations: 0 / 0.8038 GB, free: 22 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005215/3.481, allocations: 0.5032 MB / 0.8042 GB, free: 21.5 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02171/3.503, allocations: 3.632 MB / 0.8078 GB, free: 17.86 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009978/3.504, allocations: 55.98 kB / 0.8078 GB, free: 17.8 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3975/3.901, allocations: 19.8 MB / 0.8272 GB, free: 74.5 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/3.901, allocations: 5.688 kB / 0.8272 GB, free: 74.5 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05014/3.951, allocations: 14.25 MB / 0.8411 GB, free: 73.93 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004824/3.956, allocations: 1.126 MB / 0.8422 GB, free: 73.83 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002756/3.959, allocations: 55.12 kB / 0.8423 GB, free: 73.83 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006564/3.966, allocations: 225 kB / 0.8425 GB, free: 73.83 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001688/3.967, allocations: 227.3 kB / 0.8427 GB, free: 73.83 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006424/3.968, allocations: 102.5 kB / 0.8428 GB, free: 73.82 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.01089/3.979, allocations: 3.784 MB / 0.8465 GB, free: 73.61 MB / 378.8 MB Notification: Performance of sort global known variables: time 8.92e-07/3.979, allocations: 0.7656 kB / 0.8465 GB, free: 73.61 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.01314/3.992, allocations: 1.842 MB / 0.8483 GB, free: 73.61 MB / 378.8 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.001465/3.994, allocations: 234.7 kB / 0.8485 GB, free: 73.52 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.03223/4.026, allocations: 9.723 MB / 0.858 GB, free: 71.59 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 1.391e-05/4.026, allocations: 1.422 kB / 0.858 GB, free: 71.59 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01477/4.041, allocations: 3.796 MB / 0.8617 GB, free: 70.01 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009493/4.05, allocations: 0.7177 MB / 0.8624 GB, free: 69.7 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06616/4.117, allocations: 18.43 MB / 0.8804 GB, free: 60.88 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01825/4.135, allocations: 5.012 MB / 0.8853 GB, free: 59.29 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.01404/4.149, allocations: 2.801 MB / 0.888 GB, free: 59.03 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00256/4.152, allocations: 384.5 kB / 0.8884 GB, free: 58.67 MB / 378.8 MB Notification: Performance of SimCode: time 1.913e-06/4.152, allocations: 0 / 0.8884 GB, free: 58.67 MB / 378.8 MB Notification: Performance of Templates: time 0.5676/4.719, allocations: 75.66 MB / 0.9623 GB, free: 91.61 MB / 394.8 MB