Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.057/2.057, allocations: 209.2 MB / 225.4 MB, free: 0.5352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007176/0.0007179, allocations: 12 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3538, allocations: 48.7 MB / 331.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1777/0.5315, allocations: 99.01 MB / 430.8 MB, free: 11.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003004/0.5319, allocations: 83.95 kB / 430.9 MB, free: 11.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8833/1.415, allocations: 137 MB / 0.5546 GB, free: 41.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.435e-06/1.415, allocations: 0 / 0.5546 GB, free: 41.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005811/1.416, allocations: 136 kB / 0.5547 GB, free: 41.73 MB / 394.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.03278/1.449, allocations: 7.647 MB / 0.5622 GB, free: 33.99 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/1.449, allocations: 8.031 kB / 0.5622 GB, free: 33.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05705/1.506, allocations: 7.553 MB / 0.5696 GB, free: 26.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03525/1.541, allocations: 9.829 MB / 0.5792 GB, free: 16.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000627/1.542, allocations: 492.8 kB / 0.5796 GB, free: 16.01 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003768/1.546, allocations: 0.6481 MB / 0.5803 GB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05373/1.599, allocations: 16.76 MB / 0.5966 GB, free: 13.15 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000603/1.6, allocations: 111 kB / 0.5967 GB, free: 13.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003492/1.603, allocations: 311.8 kB / 0.597 GB, free: 12.74 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004327/1.608, allocations: 1.584 MB / 0.5986 GB, free: 11.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05087/1.659, allocations: 13.75 MB / 0.612 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4461/2.105, allocations: 74.33 MB / 0.6846 GB, free: 28.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03879/2.144, allocations: 7.723 MB / 0.6921 GB, free: 27.92 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04901/2.193, allocations: 18.7 MB / 0.7104 GB, free: 21.19 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.675e-05/2.193, allocations: 68.41 kB / 0.7105 GB, free: 21.13 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.823e-06/2.193, allocations: 0 / 0.7105 GB, free: 21.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.3162/2.509, allocations: 50.95 MB / 0.7602 GB, free: 15.23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001733/2.509, allocations: 277.9 kB / 0.7605 GB, free: 14.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01733/2.527, allocations: 6.056 MB / 0.7664 GB, free: 9.957 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001092/2.528, allocations: 81.7 kB / 0.7665 GB, free: 9.871 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005485/2.533, allocations: 4.561 MB / 0.7709 GB, free: 5.762 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002851/2.536, allocations: 1.344 MB / 0.7722 GB, free: 4.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001874/2.538, allocations: 188 kB / 0.7724 GB, free: 4.387 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001046/2.539, allocations: 0.6979 MB / 0.7731 GB, free: 3.789 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.012/2.551, allocations: 3.807 MB / 0.7768 GB, free: 0.5781 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02478/2.576, allocations: 9.502 MB / 0.7861 GB, free: 6.582 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01583/2.592, allocations: 5.669 MB / 0.7916 GB, free: 1.047 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002025/2.592, allocations: 55.95 kB / 0.7917 GB, free: 0.9922 MB / 458.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.3942/2.987, allocations: 16.49 MB / 0.8078 GB, free: 102 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001712/2.987, allocations: 82.81 kB / 0.8079 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003815/2.987, allocations: 182 kB / 0.808 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02441/3.012, allocations: 4.139 MB / 0.8121 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01318/3.025, allocations: 2.039 MB / 0.8141 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06045/3.085, allocations: 22.88 MB / 0.8364 GB, free: 97.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01183/3.097, allocations: 0.555 MB / 0.837 GB, free: 97.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002407/3.1, allocations: 0.5315 MB / 0.8375 GB, free: 97.12 MB / 458.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 () * 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.009887/3.11, allocations: 3.125 MB / 0.8405 GB, free: 95.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001639/3.111, allocations: 0.5707 MB / 0.8411 GB, free: 95.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04057/3.152, allocations: 9.848 MB / 0.8507 GB, free: 92.67 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.379e-05/3.152, allocations: 38.84 kB / 0.8507 GB, free: 92.67 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.222e-05/3.152, allocations: 22.33 kB / 0.8508 GB, free: 92.67 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.823e-05/3.152, allocations: 14.95 kB / 0.8508 GB, free: 92.67 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06956/3.222, allocations: 19.24 MB / 0.8696 GB, free: 85.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.762e-05/3.222, allocations: 0 / 0.8696 GB, free: 85.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005145/3.227, allocations: 0.5054 MB / 0.8701 GB, free: 85.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02227/3.249, allocations: 3.622 MB / 0.8736 GB, free: 82.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001084/3.25, allocations: 63.67 kB / 0.8737 GB, free: 82.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05028/3.301, allocations: 19.83 MB / 0.893 GB, free: 66 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/3.301, allocations: 0 / 0.893 GB, free: 66 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04761/3.348, allocations: 14.24 MB / 0.9069 GB, free: 53.61 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004536/3.353, allocations: 1.123 MB / 0.908 GB, free: 52.47 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002615/3.356, allocations: 56 kB / 0.9081 GB, free: 52.42 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006658/3.362, allocations: 236.4 kB / 0.9083 GB, free: 52.19 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001638/3.364, allocations: 222.1 kB / 0.9085 GB, free: 51.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009221/3.365, allocations: 95.98 kB / 0.9086 GB, free: 51.88 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01071/3.376, allocations: 3.789 MB / 0.9123 GB, free: 48.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.21e-07/3.376, allocations: 0 / 0.9123 GB, free: 48.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01232/3.388, allocations: 1.847 MB / 0.9141 GB, free: 46.27 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 () * 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.001446/3.39, allocations: 223.9 kB / 0.9143 GB, free: 46.06 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02435/3.414, allocations: 9.725 MB / 0.9238 GB, free: 36.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/3.414, allocations: 0 / 0.9238 GB, free: 36.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01232/3.427, allocations: 3.799 MB / 0.9275 GB, free: 32.56 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01132/3.438, allocations: 0.711 MB / 0.9282 GB, free: 31.87 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05053/3.489, allocations: 19.17 MB / 0.9469 GB, free: 12.82 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01448/3.503, allocations: 5.01 MB / 0.9518 GB, free: 7.809 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006444/3.51, allocations: 451.4 kB / 0.9523 GB, free: 7.367 MB / 458.7 MB Notification: Performance of SimCode: time 1.763e-06/3.51, allocations: 0 / 0.9523 GB, free: 7.367 MB / 458.7 MB Notification: Performance of Templates: time 0.6734/4.183, allocations: 146.1 MB / 1.095 GB, free: 13.95 MB / 458.7 MB