Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.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) 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_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadModel(Modelica): time 2.185/2.185, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004917/0.0004916, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09418/0.09471, allocations: 44.51 MB / 309.1 MB, free: 368 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4795/0.5743, allocations: 96.85 MB / 405.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002982/0.5746, allocations: 94.48 kB / 406 MB, free: 13.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8604/1.435, allocations: 137.1 MB / 0.5303 GB, free: 68.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.457e-06/1.435, allocations: 0 / 0.5303 GB, free: 68.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005709/1.436, allocations: 136.5 kB / 0.5305 GB, free: 68.11 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.03561/1.471, allocations: 7.652 MB / 0.5379 GB, free: 65.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/1.471, allocations: 11.5 kB / 0.5379 GB, free: 65.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05861/1.53, allocations: 7.553 MB / 0.5453 GB, free: 64.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03482/1.565, allocations: 9.721 MB / 0.5548 GB, free: 64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006873/1.566, allocations: 495.8 kB / 0.5553 GB, free: 63.99 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003873/1.569, allocations: 0.654 MB / 0.5559 GB, free: 63.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05953/1.629, allocations: 16.71 MB / 0.5722 GB, free: 60.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006399/1.63, allocations: 108 kB / 0.5723 GB, free: 60.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003665/1.633, allocations: 318.2 kB / 0.5727 GB, free: 60.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003673/1.637, allocations: 1.583 MB / 0.5742 GB, free: 60.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04482/1.682, allocations: 13.75 MB / 0.5876 GB, free: 60.02 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1204/1.802, allocations: 74.33 MB / 0.6602 GB, free: 19.29 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03732/1.84, allocations: 7.743 MB / 0.6678 GB, free: 12.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3338/2.174, allocations: 18.71 MB / 0.6861 GB, free: 78.66 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.201e-05/2.174, allocations: 64.19 kB / 0.6861 GB, free: 78.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.234e-06/2.174, allocations: 2.531 kB / 0.6861 GB, free: 78.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.3493/2.523, allocations: 50.87 MB / 0.7358 GB, free: 73.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/2.523, allocations: 274 kB / 0.7361 GB, free: 73.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01363/2.537, allocations: 6.06 MB / 0.742 GB, free: 73.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009664/2.538, allocations: 82.33 kB / 0.7421 GB, free: 73.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004495/2.542, allocations: 4.757 MB / 0.7467 GB, free: 71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002173/2.545, allocations: 1.35 MB / 0.748 GB, free: 70.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001256/2.546, allocations: 190.8 kB / 0.7482 GB, free: 70.21 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006241/2.547, allocations: 0.6912 MB / 0.7489 GB, free: 69.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009805/2.556, allocations: 3.808 MB / 0.7526 GB, free: 69.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01386/2.57, allocations: 8.991 MB / 0.7614 GB, free: 61.84 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01339/2.584, allocations: 5.665 MB / 0.7669 GB, free: 59.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002058/2.584, allocations: 56.34 kB / 0.767 GB, free: 59.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.07335/2.657, allocations: 16.71 MB / 0.7833 GB, free: 49.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002161/2.658, allocations: 87.94 kB / 0.7834 GB, free: 49.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004083/2.658, allocations: 180.9 kB / 0.7835 GB, free: 49.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03531/2.693, allocations: 4.141 MB / 0.7876 GB, free: 46.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01729/2.711, allocations: 2.038 MB / 0.7896 GB, free: 44.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05553/2.766, allocations: 22.89 MB / 0.8119 GB, free: 24.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01149/2.778, allocations: 0.5533 MB / 0.8125 GB, free: 24.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002291/2.78, allocations: 0.5293 MB / 0.813 GB, free: 23.94 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.009141/2.789, allocations: 3.121 MB / 0.816 GB, free: 21.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001724/2.791, allocations: 0.5746 MB / 0.8166 GB, free: 20.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03888/2.83, allocations: 9.843 MB / 0.8262 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.864e-05/2.83, allocations: 36 kB / 0.8262 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.737e-05/2.83, allocations: 26.17 kB / 0.8263 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.617e-05/2.83, allocations: 13.64 kB / 0.8263 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3706/3.201, allocations: 19.26 MB / 0.8451 GB, free: 66.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.722e-05/3.201, allocations: 0.7188 kB / 0.8451 GB, free: 66.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005213/3.206, allocations: 0.5043 MB / 0.8456 GB, free: 66.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02155/3.228, allocations: 3.618 MB / 0.8491 GB, free: 66.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008626/3.229, allocations: 73.22 kB / 0.8492 GB, free: 66.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04736/3.276, allocations: 19.79 MB / 0.8685 GB, free: 64.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/3.276, allocations: 0 / 0.8685 GB, free: 64.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04449/3.321, allocations: 14.24 MB / 0.8824 GB, free: 63.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00467/3.325, allocations: 1.126 MB / 0.8835 GB, free: 63.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001859/3.327, allocations: 61.08 kB / 0.8836 GB, free: 63.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005285/3.333, allocations: 230.6 kB / 0.8838 GB, free: 63.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001091/3.334, allocations: 226.2 kB / 0.884 GB, free: 63.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004063/3.334, allocations: 92.64 kB / 0.8841 GB, free: 63.51 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.009871/3.344, allocations: 3.79 MB / 0.8878 GB, free: 62.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.21e-07/3.344, allocations: 0 / 0.8878 GB, free: 62.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0119/3.356, allocations: 1.844 MB / 0.8896 GB, free: 62.25 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.001297/3.357, allocations: 231.5 kB / 0.8898 GB, free: 62.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0227/3.38, allocations: 9.726 MB / 0.8993 GB, free: 59.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/3.38, allocations: 0.7031 kB / 0.8993 GB, free: 59.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009134/3.389, allocations: 3.79 MB / 0.903 GB, free: 57.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006414/3.396, allocations: 0.713 MB / 0.9037 GB, free: 57.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04213/3.438, allocations: 18.45 MB / 0.9217 GB, free: 48.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01144/3.449, allocations: 5.004 MB / 0.9266 GB, free: 46.79 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01361/3.463, allocations: 2.806 MB / 0.9294 GB, free: 45.69 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002337/3.465, allocations: 382.9 kB / 0.9297 GB, free: 45.33 MB / 426.7 MB Notification: Performance of SimCode: time 1.904e-06/3.465, allocations: 0 / 0.9297 GB, free: 45.33 MB / 426.7 MB Notification: Performance of Templates: time 0.5454/4.011, allocations: 75.65 MB / 1.004 GB, free: 79.88 MB / 442.7 MB