Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.964/1.964, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.963e-05/1.966e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2645, allocations: 48.68 MB / 320 MB, free: 14.42 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.147/0.4115, allocations: 98.27 MB / 418.3 MB, free: 14.15 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.4118, allocations: 71.97 kB / 418.3 MB, free: 14.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6889/1.101, allocations: 133 MB / 0.5384 GB, free: 22.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.143e-06/1.101, allocations: 0 / 0.5384 GB, free: 22.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004024/1.101, allocations: 128 kB / 0.5385 GB, free: 22.08 MB / 378.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.02206/1.123, allocations: 7.041 MB / 0.5454 GB, free: 14.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/1.123, allocations: 8.031 kB / 0.5454 GB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03844/1.162, allocations: 7.565 MB / 0.5528 GB, free: 7.367 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02791/1.19, allocations: 9.775 MB / 0.5623 GB, free: 13.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004385/1.19, allocations: 208 kB / 0.5625 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002819/1.193, allocations: 395.6 kB / 0.5629 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02346/1.217, allocations: 9.683 MB / 0.5724 GB, free: 3.223 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03518/1.252, allocations: 14.23 MB / 0.5863 GB, free: 3.547 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000478/1.252, allocations: 99.03 kB / 0.5864 GB, free: 3.449 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002305/1.255, allocations: 48 kB / 0.5864 GB, free: 3.402 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003283/1.258, allocations: 1.584 MB / 0.588 GB, free: 1.816 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3483/1.606, allocations: 73.66 MB / 0.6599 GB, free: 25.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00842/1.615, allocations: 5.23 MB / 0.665 GB, free: 23.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006097/1.621, allocations: 3.769 MB / 0.6687 GB, free: 21.55 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002509/1.623, allocations: 2.26 MB / 0.6709 GB, free: 19.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.584e-05/1.623, allocations: 75.69 kB / 0.671 GB, free: 19.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=301): time 7.884e-06/1.623, allocations: 0 / 0.671 GB, free: 19.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=381): time 0.1314/1.755, allocations: 40.69 MB / 0.7107 GB, free: 0 / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002467/1.755, allocations: 274.4 kB / 0.711 GB, free: 15.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01178/1.767, allocations: 4.644 MB / 0.7155 GB, free: 11.74 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008053/1.768, allocations: 25.7 kB / 0.7155 GB, free: 11.71 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004941/1.773, allocations: 4.62 MB / 0.72 GB, free: 7.629 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002345/1.775, allocations: 1.349 MB / 0.7214 GB, free: 6.406 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009841/1.776, allocations: 0 / 0.7214 GB, free: 6.406 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001014/1.777, allocations: 0.7154 MB / 0.7221 GB, free: 5.797 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008833/1.786, allocations: 3.65 MB / 0.7256 GB, free: 2.527 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01935/1.805, allocations: 9.22 MB / 0.7346 GB, free: 8.488 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01203/1.818, allocations: 5.574 MB / 0.7401 GB, free: 3.945 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002016/1.818, allocations: 52 kB / 0.7401 GB, free: 3.895 MB / 442.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.0453/1.863, allocations: 15.36 MB / 0.7551 GB, free: 7.34 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000172/1.863, allocations: 88 kB / 0.7552 GB, free: 7.254 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002917/1.864, allocations: 184 kB / 0.7554 GB, free: 7.074 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01694/1.881, allocations: 4.087 MB / 0.7594 GB, free: 4.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009608/1.89, allocations: 2.098 MB / 0.7614 GB, free: 2.398 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3059/2.196, allocations: 21.03 MB / 0.782 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00935/2.206, allocations: 380.1 kB / 0.7823 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001953/2.208, allocations: 0.5556 MB / 0.7829 GB, free: 102.1 MB / 458.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.002695/2.21, allocations: 0.579 MB / 0.7834 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001352/2.212, allocations: 0.5432 MB / 0.784 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0278/2.239, allocations: 9.571 MB / 0.7933 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.721e-05/2.24, allocations: 39.81 kB / 0.7933 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.91e-05/2.24, allocations: 20.09 kB / 0.7934 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.428e-05/2.24, allocations: 17.67 kB / 0.7934 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04831/2.288, allocations: 18.13 MB / 0.8111 GB, free: 97.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.201e-05/2.288, allocations: 3.875 kB / 0.8111 GB, free: 97.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003612/2.292, allocations: 0.5313 MB / 0.8116 GB, free: 97.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01573/2.307, allocations: 3.524 MB / 0.815 GB, free: 97.34 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008245/2.308, allocations: 10.95 kB / 0.8151 GB, free: 97.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03375/2.342, allocations: 17.66 MB / 0.8323 GB, free: 89.53 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/2.342, allocations: 6.562 kB / 0.8323 GB, free: 89.53 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03298/2.375, allocations: 14.29 MB / 0.8463 GB, free: 84.32 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003454/2.379, allocations: 1.082 MB / 0.8473 GB, free: 83.39 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001482/2.38, allocations: 10.56 kB / 0.8473 GB, free: 83.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004766/2.385, allocations: 173.4 kB / 0.8475 GB, free: 83.29 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001186/2.386, allocations: 239.2 kB / 0.8477 GB, free: 83.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000455/2.387, allocations: 99 kB / 0.8478 GB, free: 83.05 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006614/2.393, allocations: 3.119 MB / 0.8509 GB, free: 80.38 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.025e-06/2.393, allocations: 0 / 0.8509 GB, free: 80.38 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01193/2.405, allocations: 1.613 MB / 0.8524 GB, free: 78.78 MB / 458.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.001127/2.406, allocations: 168.8 kB / 0.8526 GB, free: 78.66 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0174/2.424, allocations: 9.232 MB / 0.8616 GB, free: 70.74 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/2.424, allocations: 0 / 0.8616 GB, free: 70.74 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007208/2.431, allocations: 3.67 MB / 0.8652 GB, free: 67.46 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004436/2.436, allocations: 0.591 MB / 0.8658 GB, free: 66.98 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03314/2.469, allocations: 13.78 MB / 0.8792 GB, free: 54.95 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01048/2.479, allocations: 5.004 MB / 0.8841 GB, free: 51.31 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002108/2.481, allocations: 441.3 kB / 0.8846 GB, free: 50.89 MB / 458.7 MB Notification: Performance of SimCode: time 2.092e-06/2.482, allocations: 0 / 0.8846 GB, free: 50.89 MB / 458.7 MB Notification: Performance of Templates: time 0.4735/2.955, allocations: 143.2 MB / 1.024 GB, free: 50.2 MB / 458.7 MB