Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") 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.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009005/0.0009003, allocations: 177.3 kB / 17.41 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.253/1.253, allocations: 205.4 MB / 223.6 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000733/0.000733, allocations: 89.36 kB / 271.9 MB, free: 8.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000307/0.0003071, allocations: 8 kB / 328.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.2179, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1099/0.3278, allocations: 103.4 MB / 479.1 MB, free: 9.199 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/0.3282, allocations: 91.95 kB / 479.2 MB, free: 9.109 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4533/0.7815, allocations: 133.7 MB / 0.5986 GB, free: 17.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.7815, allocations: 0 / 0.5986 GB, free: 17.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004403/0.782, allocations: 136 kB / 0.5987 GB, free: 16.99 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02127/0.8032, allocations: 7.394 MB / 0.6059 GB, free: 9.508 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.8033, allocations: 8.031 kB / 0.6059 GB, free: 9.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02472/0.828, allocations: 5.853 MB / 0.6116 GB, free: 3.629 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01783/0.8459, allocations: 8.396 MB / 0.6198 GB, free: 11.15 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005433/0.8465, allocations: 493.2 kB / 0.6203 GB, free: 10.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002882/0.8494, allocations: 0.6562 MB / 0.6209 GB, free: 10.01 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03821/0.8876, allocations: 16.55 MB / 0.6371 GB, free: 8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004699/0.8881, allocations: 99.27 kB / 0.6372 GB, free: 7.902 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002916/0.8911, allocations: 315.8 kB / 0.6375 GB, free: 7.594 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002718/0.8938, allocations: 1.588 MB / 0.6391 GB, free: 6.004 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2018/1.096, allocations: 13.53 MB / 0.6523 GB, free: 63.13 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07046/1.166, allocations: 74.29 MB / 0.7248 GB, free: 18.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01948/1.186, allocations: 7.735 MB / 0.7324 GB, free: 16.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004794/1.191, allocations: 4.025 MB / 0.7363 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02545/1.216, allocations: 18.55 MB / 0.7544 GB, free: 4.863 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/1.216, allocations: 63.97 kB / 0.7545 GB, free: 4.801 MB / 410.7 MB Notification: Performance of pre-optimization done (n=287): time 7.274e-06/1.216, allocations: 3.938 kB / 0.7545 GB, free: 4.801 MB / 410.7 MB Notification: Performance of matching and sorting (n=370): time 0.1687/1.385, allocations: 49.98 MB / 0.8033 GB, free: 2.141 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/1.385, allocations: 281.8 kB / 0.8036 GB, free: 1.809 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1826/1.568, allocations: 6.086 MB / 0.8095 GB, free: 96.77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008446/1.569, allocations: 83.55 kB / 0.8096 GB, free: 96.74 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002617/1.571, allocations: 4.774 MB / 0.8143 GB, free: 95.44 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001331/1.572, allocations: 1.359 MB / 0.8156 GB, free: 94.64 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004584/1.573, allocations: 190.8 kB / 0.8158 GB, free: 94.64 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003646/1.573, allocations: 0.6947 MB / 0.8164 GB, free: 94.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004628/1.578, allocations: 3.782 MB / 0.8201 GB, free: 94.29 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006455/1.584, allocations: 9.008 MB / 0.8289 GB, free: 87.64 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01342/1.598, allocations: 13.84 MB / 0.8424 GB, free: 81 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002581/1.598, allocations: 51.66 kB / 0.8425 GB, free: 81 MB / 442.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03263/1.631, allocations: 16.13 MB / 0.8582 GB, free: 77.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002876/1.631, allocations: 87.34 kB / 0.8583 GB, free: 77.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003778/1.632, allocations: 179.8 kB / 0.8585 GB, free: 77.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01237/1.644, allocations: 4.044 MB / 0.8625 GB, free: 76.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007343/1.651, allocations: 2.047 MB / 0.8645 GB, free: 76.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03118/1.683, allocations: 20.98 MB / 0.8849 GB, free: 66.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008968/1.692, allocations: 0.5399 MB / 0.8855 GB, free: 66.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0025/1.694, allocations: 0.5237 MB / 0.886 GB, free: 66.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (1088): * Single equations (assignments): 1083 * 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%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009136/1.703, allocations: 3.133 MB / 0.889 GB, free: 65.27 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002281/1.706, allocations: 0.5815 MB / 0.8896 GB, free: 64.95 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02255/1.728, allocations: 9.564 MB / 0.8989 GB, free: 57.74 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.639e-05/1.728, allocations: 36 kB / 0.899 GB, free: 57.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.639e-05/1.728, allocations: 20 kB / 0.899 GB, free: 57.69 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.545e-05/1.728, allocations: 19.52 kB / 0.899 GB, free: 57.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04205/1.77, allocations: 19.07 MB / 0.9176 GB, free: 42.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.271e-05/1.771, allocations: 0 / 0.9176 GB, free: 42.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002461/1.773, allocations: 0.5096 MB / 0.9181 GB, free: 42.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01075/1.784, allocations: 3.622 MB / 0.9217 GB, free: 39.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006706/1.784, allocations: 62.77 kB / 0.9217 GB, free: 39.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02459/1.809, allocations: 18.89 MB / 0.9402 GB, free: 23.55 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/1.809, allocations: 3.984 kB / 0.9402 GB, free: 23.54 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0243/1.833, allocations: 14.01 MB / 0.9539 GB, free: 9.461 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003041/1.837, allocations: 1.126 MB / 0.955 GB, free: 8.309 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001689/1.838, allocations: 59.94 kB / 0.955 GB, free: 8.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003373/1.842, allocations: 223.2 kB / 0.9552 GB, free: 8.035 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000859/1.843, allocations: 230.1 kB / 0.9555 GB, free: 7.809 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003699/1.843, allocations: 91.98 kB / 0.9555 GB, free: 7.719 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007411/1.85, allocations: 3.8 MB / 0.9593 GB, free: 3.926 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.3e-07/1.85, allocations: 0 / 0.9593 GB, free: 3.926 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008712/1.859, allocations: 1.851 MB / 0.9611 GB, free: 2.082 MB / 442.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%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008402/1.86, allocations: 233.7 kB / 0.9613 GB, free: 1.859 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.2025/2.062, allocations: 9.668 MB / 0.9707 GB, free: 102.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/2.063, allocations: 0 / 0.9707 GB, free: 102.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004707/2.067, allocations: 3.791 MB / 0.9744 GB, free: 102.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004702/2.072, allocations: 0.7681 MB / 0.9752 GB, free: 102.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02738/2.099, allocations: 19.25 MB / 0.994 GB, free: 95.63 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007202/2.107, allocations: 4.889 MB / 0.9988 GB, free: 94.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001773/2.108, allocations: 449.6 kB / 0.9992 GB, free: 94.76 MB / 458.7 MB Notification: Performance of SimCode: time 1.092e-06/2.108, allocations: 0 / 0.9992 GB, free: 94.76 MB / 458.7 MB Notification: Performance of Templates: time 0.4248/2.533, allocations: 152.1 MB / 1.148 GB, free: 95.71 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches