Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.208/2.208, allocations: 235 MB / 248.1 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.799e-05/2.819e-05, allocations: 4 kB / 309.7 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3183, allocations: 54.86 MB / 364.5 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1581/0.4765, allocations: 105.8 MB / 470.3 MB, free: 6.707 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.4768, allocations: 75.95 kB / 470.4 MB, free: 6.633 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.791/1.268, allocations: 135.8 MB / 0.5919 GB, free: 99.35 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.418e-06/1.268, allocations: 7.938 kB / 0.592 GB, free: 99.34 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000446/1.268, allocations: 132.9 kB / 0.5921 GB, free: 99.34 MB / 458.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.02366/1.292, allocations: 7.045 MB / 0.599 GB, free: 94.72 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/1.292, allocations: 8.031 kB / 0.599 GB, free: 94.71 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03911/1.331, allocations: 7.561 MB / 0.6064 GB, free: 87.14 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02709/1.358, allocations: 9.8 MB / 0.6159 GB, free: 77.39 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005577/1.359, allocations: 492.5 kB / 0.6164 GB, free: 76.95 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002836/1.362, allocations: 0.6485 MB / 0.617 GB, free: 76.34 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03972/1.401, allocations: 16.57 MB / 0.6332 GB, free: 58.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003689/1.402, allocations: 99.03 kB / 0.6333 GB, free: 58.28 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001976/1.404, allocations: 311.8 kB / 0.6336 GB, free: 57.98 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002703/1.407, allocations: 1.58 MB / 0.6351 GB, free: 56.39 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03383/1.44, allocations: 13.5 MB / 0.6483 GB, free: 42.86 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4199/1.86, allocations: 74.31 MB / 0.7209 GB, free: 58.91 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02943/1.89, allocations: 7.686 MB / 0.7284 GB, free: 58.21 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007243/1.897, allocations: 3.98 MB / 0.7323 GB, free: 58.16 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.037/1.934, allocations: 18.71 MB / 0.7506 GB, free: 53.73 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.094e-05/1.934, allocations: 67.19 kB / 0.7506 GB, free: 53.69 MB / 474.7 MB Notification: Performance of pre-optimization done (n=286): time 7.241e-06/1.934, allocations: 0 / 0.7506 GB, free: 53.69 MB / 474.7 MB Notification: Performance of matching and sorting (n=367): time 0.1707/2.105, allocations: 40.3 MB / 0.79 GB, free: 43.16 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.181e-05/2.105, allocations: 267.1 kB / 0.7902 GB, free: 42.88 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01149/2.117, allocations: 5.299 MB / 0.7954 GB, free: 38.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007947/2.118, allocations: 82.56 kB / 0.7955 GB, free: 38.11 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003291/2.121, allocations: 4.549 MB / 0.7999 GB, free: 33.98 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001759/2.123, allocations: 1.348 MB / 0.8012 GB, free: 32.78 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001174/2.124, allocations: 188 kB / 0.8014 GB, free: 32.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008066/2.125, allocations: 0.6998 MB / 0.8021 GB, free: 32 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007671/2.132, allocations: 3.684 MB / 0.8057 GB, free: 28.68 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01059/2.143, allocations: 8.872 MB / 0.8144 GB, free: 17.99 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/2.154, allocations: 5.615 MB / 0.8199 GB, free: 13.44 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001439/2.154, allocations: 52 kB / 0.8199 GB, free: 13.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.043/2.197, allocations: 16.18 MB / 0.8357 GB, free: 0.6133 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001384/2.197, allocations: 84 kB / 0.8358 GB, free: 0.5312 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002004/2.197, allocations: 180 kB / 0.836 GB, free: 364 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01972/2.217, allocations: 4.2 MB / 0.8401 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009783/2.227, allocations: 2.046 MB / 0.8421 GB, free: 10.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04996/2.277, allocations: 21.72 MB / 0.8633 GB, free: 4.633 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01021/2.287, allocations: 0.5501 MB / 0.8638 GB, free: 4.082 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002185/2.289, allocations: 0.5332 MB / 0.8643 GB, free: 3.551 MB / 0.4948 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 () * 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.00333/2.293, allocations: 0.8036 MB / 0.8651 GB, free: 2.738 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001726/2.294, allocations: 0.5708 MB / 0.8657 GB, free: 2.16 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03187/2.326, allocations: 9.682 MB / 0.8751 GB, free: 8.422 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.047e-05/2.326, allocations: 36 kB / 0.8752 GB, free: 8.387 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.249e-05/2.326, allocations: 16 kB / 0.8752 GB, free: 8.371 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.048e-05/2.326, allocations: 19.92 kB / 0.8752 GB, free: 8.352 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05965/2.386, allocations: 19.1 MB / 0.8938 GB, free: 5.148 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.514e-05/2.386, allocations: 0 / 0.8938 GB, free: 5.148 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003674/2.39, allocations: 0.511 MB / 0.8943 GB, free: 4.637 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01633/2.406, allocations: 3.559 MB / 0.8978 GB, free: 1.07 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008541/2.407, allocations: 59.98 kB / 0.8979 GB, free: 1.012 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.342/2.749, allocations: 18.71 MB / 0.9161 GB, free: 169 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/2.749, allocations: 0.8125 kB / 0.9161 GB, free: 169 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03689/2.786, allocations: 14.13 MB / 0.9299 GB, free: 168.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003997/2.79, allocations: 1.12 MB / 0.931 GB, free: 168.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001927/2.792, allocations: 56.98 kB / 0.9311 GB, free: 168.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004943/2.797, allocations: 229.7 kB / 0.9313 GB, free: 168.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001329/2.799, allocations: 221 kB / 0.9315 GB, free: 168.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00056/2.799, allocations: 92.28 kB / 0.9316 GB, free: 168.3 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.009358/2.808, allocations: 3.707 MB / 0.9352 GB, free: 168 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.107e-06/2.809, allocations: 0 / 0.9352 GB, free: 168 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01139/2.82, allocations: 1.856 MB / 0.937 GB, free: 168 MB / 0.5417 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 () * 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.001129/2.821, allocations: 221.3 kB / 0.9373 GB, free: 167.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01963/2.841, allocations: 9.53 MB / 0.9466 GB, free: 167.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.602e-06/2.841, allocations: 2.938 kB / 0.9466 GB, free: 167.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.007884/2.849, allocations: 3.712 MB / 0.9502 GB, free: 166.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005224/2.854, allocations: 0.716 MB / 0.9509 GB, free: 166.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03323/2.887, allocations: 13.85 MB / 0.9644 GB, free: 161.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01083/2.898, allocations: 5.011 MB / 0.9693 GB, free: 159.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00226/2.9, allocations: 449.2 kB / 0.9697 GB, free: 159.6 MB / 0.5417 GB Notification: Performance of SimCode: time 2.27e-06/2.9, allocations: 3.125 kB / 0.9697 GB, free: 159.6 MB / 0.5417 GB Notification: Performance of Templates: time 0.5568/3.457, allocations: 146.1 MB / 1.112 GB, free: 171.7 MB / 0.5417 GB