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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.706/1.706, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.066e-05/2.073e-05, allocations: 4 kB / 222.5 MB, free: 8.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07271/0.07275, allocations: 38.77 MB / 261.3 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3122/0.385, allocations: 90.36 MB / 351.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.3853, allocations: 79.95 kB / 351.7 MB, free: 14.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6761/1.061, allocations: 133 MB / 484.7 MB, free: 66.49 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.248e-06/1.061, allocations: 0 / 484.7 MB, free: 66.49 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000382/1.062, allocations: 135.8 kB / 484.8 MB, free: 66.36 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.02158/1.083, allocations: 7.039 MB / 491.8 MB, free: 59.26 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/1.083, allocations: 8.031 kB / 491.9 MB, free: 59.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03851/1.122, allocations: 7.561 MB / 499.4 MB, free: 51.67 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02649/1.149, allocations: 9.677 MB / 0.4972 GB, free: 42 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003782/1.149, allocations: 208 kB / 0.4974 GB, free: 41.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002873/1.152, allocations: 399.7 kB / 0.4977 GB, free: 41.4 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0202/1.172, allocations: 9.675 MB / 0.5072 GB, free: 31.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03067/1.203, allocations: 14.23 MB / 0.5211 GB, free: 16.06 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004265/1.203, allocations: 99.11 kB / 0.5212 GB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002267/1.206, allocations: 44 kB / 0.5212 GB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002601/1.208, allocations: 1.58 MB / 0.5228 GB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3066/1.515, allocations: 73.66 MB / 0.5947 GB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01304/1.528, allocations: 5.229 MB / 0.5998 GB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009706/1.538, allocations: 3.779 MB / 0.6035 GB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004065/1.542, allocations: 2.256 MB / 0.6057 GB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.996e-05/1.542, allocations: 73.52 kB / 0.6058 GB, free: 9.996 MB / 346.7 MB Notification: Performance of pre-optimization done (n=301): time 1.629e-05/1.542, allocations: 3.375 kB / 0.6058 GB, free: 9.996 MB / 346.7 MB Notification: Performance of matching and sorting (n=381): time 0.1489/1.691, allocations: 40.66 MB / 0.6455 GB, free: 8.949 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002056/1.691, allocations: 265.9 kB / 0.6457 GB, free: 8.633 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01173/1.703, allocations: 4.642 MB / 0.6503 GB, free: 4.699 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008463/1.704, allocations: 28.94 kB / 0.6503 GB, free: 4.668 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005183/1.709, allocations: 4.62 MB / 0.6548 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002502/1.712, allocations: 1.351 MB / 0.6561 GB, free: 15.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001303/1.713, allocations: 0 / 0.6561 GB, free: 15.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00135/1.714, allocations: 0.7148 MB / 0.6568 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00908/1.723, allocations: 3.644 MB / 0.6604 GB, free: 11.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0146/1.738, allocations: 8.922 MB / 0.6691 GB, free: 0.625 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2412/1.979, allocations: 6.248 MB / 0.6752 GB, free: 83.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001873/1.98, allocations: 53.72 kB / 0.6752 GB, free: 83.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.0445/2.024, allocations: 15.35 MB / 0.6902 GB, free: 82.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/2.024, allocations: 84.84 kB / 0.6903 GB, free: 82.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002185/2.024, allocations: 187 kB / 0.6905 GB, free: 82.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01659/2.041, allocations: 4.077 MB / 0.6945 GB, free: 82.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00947/2.051, allocations: 2.111 MB / 0.6965 GB, free: 82.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04136/2.092, allocations: 21.02 MB / 0.7171 GB, free: 76.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009831/2.102, allocations: 388.4 kB / 0.7174 GB, free: 76.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002316/2.104, allocations: 0.5448 MB / 0.718 GB, free: 76.62 MB / 378.7 MB 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.003414/2.108, allocations: 0.5817 MB / 0.7185 GB, free: 76.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001661/2.109, allocations: 0.5412 MB / 0.7191 GB, free: 76.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02858/2.138, allocations: 9.563 MB / 0.7284 GB, free: 73.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.302e-05/2.138, allocations: 39.56 kB / 0.7284 GB, free: 73.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.422e-05/2.138, allocations: 19.84 kB / 0.7285 GB, free: 73.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.42e-05/2.138, allocations: 21.33 kB / 0.7285 GB, free: 73.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04894/2.187, allocations: 18.14 MB / 0.7462 GB, free: 62.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.682e-05/2.187, allocations: 4 kB / 0.7462 GB, free: 62.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003332/2.191, allocations: 0.5266 MB / 0.7467 GB, free: 61.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01461/2.205, allocations: 3.514 MB / 0.7501 GB, free: 59.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008366/2.206, allocations: 15.94 kB / 0.7502 GB, free: 59.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03213/2.238, allocations: 17.68 MB / 0.7674 GB, free: 43.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.963e-06/2.238, allocations: 11.92 kB / 0.7674 GB, free: 43.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03766/2.276, allocations: 14.29 MB / 0.7814 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003527/2.28, allocations: 1.087 MB / 0.7825 GB, free: 28.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001478/2.281, allocations: 7.984 kB / 0.7825 GB, free: 28.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004292/2.285, allocations: 171.7 kB / 0.7826 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001173/2.287, allocations: 234.1 kB / 0.7828 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004035/2.287, allocations: 95.98 kB / 0.7829 GB, free: 27.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006876/2.294, allocations: 3.128 MB / 0.786 GB, free: 24.56 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.393e-06/2.294, allocations: 4 kB / 0.786 GB, free: 24.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01095/2.305, allocations: 1.608 MB / 0.7876 GB, free: 22.96 MB / 378.7 MB 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.0009872/2.306, allocations: 178.6 kB / 0.7877 GB, free: 22.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01772/2.324, allocations: 9.228 MB / 0.7967 GB, free: 13.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.981e-06/2.324, allocations: 2.438 kB / 0.7967 GB, free: 13.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007074/2.331, allocations: 3.67 MB / 0.8003 GB, free: 9.855 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004152/2.335, allocations: 0.5896 MB / 0.8009 GB, free: 9.277 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3171/2.652, allocations: 13.77 MB / 0.8144 GB, free: 80.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01166/2.664, allocations: 5.01 MB / 0.8193 GB, free: 79.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00224/2.666, allocations: 442.4 kB / 0.8197 GB, free: 79.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.869e-06/2.666, allocations: 0 / 0.8197 GB, free: 79.27 MB / 378.7 MB Notification: Performance of Templates: time 0.4357/3.102, allocations: 143.2 MB / 0.9595 GB, free: 96.55 MB / 394.7 MB