Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.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) 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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadModel(Modelica): time 1.875/1.875, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.000364, allocations: 12 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08137/0.08176, allocations: 44.51 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3598/0.4416, allocations: 96.85 MB / 405.3 MB, free: 17.2 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.4419, allocations: 93.66 kB / 405.4 MB, free: 17.18 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7527/1.195, allocations: 135.6 MB / 0.5283 GB, free: 66.6 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.653e-06/1.195, allocations: 0 / 0.5283 GB, free: 66.6 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004624/1.195, allocations: 133 kB / 0.5285 GB, free: 66.6 MB / 410.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.028/1.223, allocations: 7.664 MB / 0.5359 GB, free: 64.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/1.223, allocations: 10.72 kB / 0.536 GB, free: 64.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04194/1.265, allocations: 7.541 MB / 0.5433 GB, free: 64.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02806/1.293, allocations: 9.723 MB / 0.5528 GB, free: 63.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006253/1.294, allocations: 492.4 kB / 0.5533 GB, free: 63.38 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002945/1.297, allocations: 0.6569 MB / 0.5539 GB, free: 63.37 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04341/1.34, allocations: 16.72 MB / 0.5703 GB, free: 59.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004655/1.341, allocations: 97.41 kB / 0.5703 GB, free: 59.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002687/1.344, allocations: 311.6 kB / 0.5706 GB, free: 59.49 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003006/1.347, allocations: 1.581 MB / 0.5722 GB, free: 59.47 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0365/1.383, allocations: 13.77 MB / 0.5856 GB, free: 59.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1013/1.484, allocations: 74.34 MB / 0.6582 GB, free: 20.49 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02707/1.512, allocations: 7.734 MB / 0.6658 GB, free: 14.17 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2849/1.797, allocations: 18.75 MB / 0.6841 GB, free: 78.45 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.05e-05/1.797, allocations: 66.62 kB / 0.6842 GB, free: 78.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.521e-06/1.797, allocations: 0 / 0.6842 GB, free: 78.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.2642/2.061, allocations: 50.5 MB / 0.7335 GB, free: 73.72 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.123e-05/2.061, allocations: 283.1 kB / 0.7337 GB, free: 73.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01189/2.073, allocations: 5.378 MB / 0.739 GB, free: 72.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00078/2.074, allocations: 88.31 kB / 0.7391 GB, free: 72.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003503/2.077, allocations: 4.55 MB / 0.7435 GB, free: 70.65 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001842/2.079, allocations: 1.346 MB / 0.7448 GB, free: 69.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/2.08, allocations: 188.5 kB / 0.745 GB, free: 69.86 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006884/2.081, allocations: 0.6996 MB / 0.7457 GB, free: 69.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008716/2.09, allocations: 3.808 MB / 0.7494 GB, free: 69.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01112/2.101, allocations: 8.988 MB / 0.7582 GB, free: 62.49 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/2.112, allocations: 5.667 MB / 0.7637 GB, free: 60.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001664/2.112, allocations: 54.16 kB / 0.7638 GB, free: 60.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.04421/2.156, allocations: 16.48 MB / 0.7799 GB, free: 51.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001398/2.157, allocations: 84 kB / 0.78 GB, free: 51.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002289/2.157, allocations: 180 kB / 0.7801 GB, free: 51.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01628/2.173, allocations: 4.149 MB / 0.7842 GB, free: 48.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008955/2.182, allocations: 2.039 MB / 0.7862 GB, free: 46.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04331/2.226, allocations: 22.9 MB / 0.8085 GB, free: 27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009805/2.235, allocations: 0.5493 MB / 0.8091 GB, free: 26.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00189/2.237, allocations: 0.5338 MB / 0.8096 GB, free: 26.02 MB / 426.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.00787/2.245, allocations: 3.115 MB / 0.8126 GB, free: 23.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001384/2.247, allocations: 0.5707 MB / 0.8132 GB, free: 22.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02804/2.275, allocations: 9.846 MB / 0.8228 GB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.247e-05/2.275, allocations: 41.17 kB / 0.8228 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.574e-05/2.275, allocations: 19.95 kB / 0.8229 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.222e-05/2.275, allocations: 18 kB / 0.8229 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3176/2.593, allocations: 19.25 MB / 0.8417 GB, free: 66.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.275e-05/2.593, allocations: 0.8438 kB / 0.8417 GB, free: 66.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003671/2.596, allocations: 0.5091 MB / 0.8422 GB, free: 66.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01595/2.612, allocations: 3.625 MB / 0.8457 GB, free: 66.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000791/2.613, allocations: 60.55 kB / 0.8458 GB, free: 66.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03977/2.653, allocations: 19.79 MB / 0.8651 GB, free: 63.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.922e-06/2.653, allocations: 6.75 kB / 0.8651 GB, free: 63.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03579/2.689, allocations: 14.35 MB / 0.8791 GB, free: 62.76 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003867/2.693, allocations: 1.124 MB / 0.8802 GB, free: 62.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001753/2.694, allocations: 59.03 kB / 0.8803 GB, free: 62.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004703/2.699, allocations: 224.7 kB / 0.8805 GB, free: 62.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001212/2.7, allocations: 228.8 kB / 0.8807 GB, free: 62.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003957/2.701, allocations: 87.41 kB / 0.8808 GB, free: 62.66 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.009725/2.711, allocations: 3.789 MB / 0.8845 GB, free: 62.44 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.17e-06/2.711, allocations: 0 / 0.8845 GB, free: 62.44 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01124/2.722, allocations: 1.849 MB / 0.8863 GB, free: 62.41 MB / 426.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.001075/2.723, allocations: 231.7 kB / 0.8865 GB, free: 62.28 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01908/2.742, allocations: 9.731 MB / 0.896 GB, free: 59.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.321e-06/2.742, allocations: 0 / 0.896 GB, free: 59.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00773/2.75, allocations: 3.785 MB / 0.8997 GB, free: 57.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005054/2.755, allocations: 0.728 MB / 0.9004 GB, free: 57.35 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03719/2.792, allocations: 19.11 MB / 0.9191 GB, free: 48.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0107/2.803, allocations: 5.019 MB / 0.924 GB, free: 46.51 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002211/2.805, allocations: 447.5 kB / 0.9244 GB, free: 46.5 MB / 426.7 MB Notification: Performance of SimCode: time 3.27e-06/2.805, allocations: 0 / 0.9244 GB, free: 46.5 MB / 426.7 MB Notification: Performance of Templates: time 0.4714/3.277, allocations: 146.2 MB / 1.067 GB, free: 58.04 MB / 442.7 MB