Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 2.409/2.409, allocations: 234.9 MB / 251.1 MB, free: 9.695 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004299/0.00043, allocations: 16 kB / 314.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3849, allocations: 54.85 MB / 369.8 MB, free: 12.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2228/0.6078, allocations: 105.8 MB / 475.6 MB, free: 2.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.6081, allocations: 87.95 kB / 475.7 MB, free: 2.754 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8881/1.496, allocations: 137.1 MB / 0.5985 GB, free: 35.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.435e-06/1.496, allocations: 0 / 0.5985 GB, free: 35.27 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004803/1.497, allocations: 136 kB / 0.5986 GB, free: 35.14 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: 2299 * Number of variables: 2299 Notification: Performance of Generate backend data structure: time 0.03197/1.529, allocations: 7.655 MB / 0.6061 GB, free: 27.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/1.529, allocations: 15.97 kB / 0.6061 GB, free: 27.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05628/1.585, allocations: 7.549 MB / 0.6135 GB, free: 19.81 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03462/1.62, allocations: 9.837 MB / 0.6231 GB, free: 9.891 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007451/1.621, allocations: 492.8 kB / 0.6235 GB, free: 9.406 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004244/1.625, allocations: 0.6558 MB / 0.6242 GB, free: 8.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05501/1.68, allocations: 16.76 MB / 0.6405 GB, free: 6.535 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004912/1.68, allocations: 103.1 kB / 0.6406 GB, free: 6.434 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002824/1.683, allocations: 315.8 kB / 0.6409 GB, free: 6.125 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00407/1.687, allocations: 1.58 MB / 0.6425 GB, free: 4.539 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04897/1.736, allocations: 13.75 MB / 0.6559 GB, free: 6.762 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4794/2.216, allocations: 74.33 MB / 0.7285 GB, free: 41.89 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04286/2.259, allocations: 7.727 MB / 0.736 GB, free: 41.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04722/2.306, allocations: 18.7 MB / 0.7543 GB, free: 36.55 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.222e-05/2.306, allocations: 68.69 kB / 0.7544 GB, free: 36.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=286): time 6.762e-06/2.306, allocations: 0 / 0.7544 GB, free: 36.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=367): time 0.3178/2.624, allocations: 50.88 MB / 0.8041 GB, free: 21 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/2.624, allocations: 273.8 kB / 0.8043 GB, free: 20.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01381/2.638, allocations: 6.052 MB / 0.8102 GB, free: 15.73 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001039/2.639, allocations: 83.34 kB / 0.8103 GB, free: 15.64 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004052/2.643, allocations: 4.554 MB / 0.8148 GB, free: 11.59 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002205/2.645, allocations: 1.354 MB / 0.8161 GB, free: 10.39 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001185/2.647, allocations: 188 kB / 0.8163 GB, free: 10.21 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005759/2.647, allocations: 0.6992 MB / 0.8169 GB, free: 9.605 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01013/2.657, allocations: 3.809 MB / 0.8207 GB, free: 6.395 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01494/2.672, allocations: 9.028 MB / 0.8295 GB, free: 11.63 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01573/2.688, allocations: 5.669 MB / 0.835 GB, free: 6.688 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002127/2.688, allocations: 53.12 kB / 0.8351 GB, free: 6.637 MB / 490.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.06291/2.751, allocations: 16.48 MB / 0.8512 GB, free: 9.52 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001586/2.752, allocations: 82.66 kB / 0.8512 GB, free: 9.441 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003626/2.752, allocations: 184 kB / 0.8514 GB, free: 9.262 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02526/2.777, allocations: 4.141 MB / 0.8555 GB, free: 5.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01431/2.792, allocations: 2.039 MB / 0.8575 GB, free: 3.277 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7277/3.519, allocations: 22.89 MB / 0.8798 GB, free: 109.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01146/3.531, allocations: 0.5494 MB / 0.8803 GB, free: 109.3 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002294/3.533, allocations: 0.5323 MB / 0.8809 GB, free: 109.3 MB / 0.4949 GB 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.009841/3.543, allocations: 3.123 MB / 0.8839 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001766/3.545, allocations: 0.5704 MB / 0.8845 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04092/3.586, allocations: 9.84 MB / 0.8941 GB, free: 108.8 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.002e-05/3.586, allocations: 44.11 kB / 0.8941 GB, free: 108.8 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.136e-05/3.586, allocations: 14.47 kB / 0.8941 GB, free: 108.8 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.634e-05/3.586, allocations: 23.55 kB / 0.8942 GB, free: 108.8 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06905/3.655, allocations: 19.26 MB / 0.913 GB, free: 102.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.54e-05/3.655, allocations: 0 / 0.913 GB, free: 102.4 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005175/3.66, allocations: 0.5112 MB / 0.9135 GB, free: 102.4 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02196/3.683, allocations: 3.612 MB / 0.917 GB, free: 101.8 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009741/3.684, allocations: 63.67 kB / 0.9171 GB, free: 101.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05066/3.734, allocations: 19.8 MB / 0.9364 GB, free: 93.23 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/3.734, allocations: 7.688 kB / 0.9364 GB, free: 93.23 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04784/3.782, allocations: 14.24 MB / 0.9503 GB, free: 87.17 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00431/3.787, allocations: 1.119 MB / 0.9514 GB, free: 86.14 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00202/3.789, allocations: 56 kB / 0.9515 GB, free: 86.09 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005981/3.795, allocations: 225.8 kB / 0.9517 GB, free: 85.94 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001268/3.796, allocations: 234.5 kB / 0.9519 GB, free: 85.8 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004351/3.796, allocations: 91.83 kB / 0.952 GB, free: 85.72 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.009339/3.806, allocations: 3.788 MB / 0.9557 GB, free: 82.62 MB / 0.4949 GB Notification: Performance of sort global known variables: time 5.91e-07/3.806, allocations: 3.844 kB / 0.9557 GB, free: 82.62 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01235/3.818, allocations: 1.849 MB / 0.9575 GB, free: 80.79 MB / 0.4949 GB 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.001299/3.819, allocations: 229.9 kB / 0.9577 GB, free: 80.61 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02249/3.842, allocations: 9.726 MB / 0.9672 GB, free: 72.61 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/3.842, allocations: 0 / 0.9672 GB, free: 72.61 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.008805/3.851, allocations: 3.783 MB / 0.9709 GB, free: 69.32 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00552/3.856, allocations: 0.7171 MB / 0.9716 GB, free: 68.72 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04113/3.898, allocations: 19.16 MB / 0.9903 GB, free: 51.72 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01068/3.908, allocations: 5.021 MB / 0.9952 GB, free: 47.65 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002693/3.911, allocations: 455.3 kB / 0.9957 GB, free: 47.21 MB / 0.4949 GB Notification: Performance of SimCode: time 1.292e-06/3.911, allocations: 0 / 0.9957 GB, free: 47.21 MB / 0.4949 GB Notification: Performance of Templates: time 0.6369/4.548, allocations: 146.2 MB / 1.138 GB, free: 86.76 MB / 0.5105 GB