Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001672/0.001672, allocations: 177.8 kB / 8.743 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 221.5 MB / 230.7 MB, free: 7.5 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009126/0.0009128, allocations: 103.8 kB / 281.6 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1922/0.1922, allocations: 44.15 MB / 376.5 MB, free: 3.02 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.042e-05/2.033e-05, allocations: 4 kB / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1296, allocations: 61.91 MB / 0.4947 GB, free: 1.246 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4287/0.5584, allocations: 114 MB / 0.606 GB, free: 14.49 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/0.5587, allocations: 79.95 kB / 0.6061 GB, free: 14.41 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6504/1.209, allocations: 135.3 MB / 0.7382 GB, free: 108 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.134e-06/1.209, allocations: 0 / 0.7382 GB, free: 108 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004323/1.21, allocations: 133.3 kB / 0.7383 GB, free: 108 MB / 0.4948 GB 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.02275/1.232, allocations: 7.037 MB / 0.7452 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/1.232, allocations: 15.52 kB / 0.7452 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03031/1.263, allocations: 7.558 MB / 0.7526 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02152/1.284, allocations: 9.191 MB / 0.7615 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003558/1.285, allocations: 208.9 kB / 0.7617 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003019/1.288, allocations: 400.7 kB / 0.7621 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01576/1.303, allocations: 9.684 MB / 0.7716 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02734/1.331, allocations: 14.25 MB / 0.7855 GB, free: 89.54 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005945/1.331, allocations: 91.19 kB / 0.7856 GB, free: 89.45 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00343/1.335, allocations: 47.61 kB / 0.7856 GB, free: 89.41 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002496/1.337, allocations: 1.585 MB / 0.7872 GB, free: 88.09 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0826/1.42, allocations: 73.68 MB / 0.8591 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006098/1.426, allocations: 5.236 MB / 0.8642 GB, free: 8.41 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003981/1.43, allocations: 3.769 MB / 0.8679 GB, free: 4.637 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001863/1.432, allocations: 2.266 MB / 0.8701 GB, free: 2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.102e-05/1.432, allocations: 68.56 kB / 0.8702 GB, free: 1.926 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=302): time 5.139e-06/1.432, allocations: 0 / 0.8702 GB, free: 1.926 MB / 0.4948 GB Notification: Performance of matching and sorting (n=385): time 0.418/1.85, allocations: 40.66 MB / 0.9099 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.543e-05/1.85, allocations: 273.2 kB / 0.9102 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007336/1.858, allocations: 4.608 MB / 0.9147 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001105/1.859, allocations: 25.7 kB / 0.9147 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003457/1.862, allocations: 4.788 MB / 0.9194 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002635/1.865, allocations: 1.363 MB / 0.9207 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/1.866, allocations: 0 / 0.9207 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000499/1.866, allocations: 0.7142 MB / 0.9214 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004915/1.871, allocations: 3.637 MB / 0.9249 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007407/1.879, allocations: 8.931 MB / 0.9337 GB, free: 97 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007927/1.887, allocations: 5.568 MB / 0.9391 GB, free: 95.27 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002108/1.887, allocations: 52.69 kB / 0.9392 GB, free: 95.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.03284/1.92, allocations: 15 MB / 0.9538 GB, free: 90.96 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002166/1.92, allocations: 85.47 kB / 0.9539 GB, free: 90.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004419/1.921, allocations: 192.4 kB / 0.9541 GB, free: 90.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01256/1.933, allocations: 4.002 MB / 0.958 GB, free: 90.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007939/1.941, allocations: 2.114 MB / 0.96 GB, free: 90.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02687/1.968, allocations: 20.11 MB / 0.9797 GB, free: 80.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0103/1.978, allocations: 380.1 kB / 0.98 GB, free: 80.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003014/1.981, allocations: 0.5428 MB / 0.9806 GB, free: 80.85 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 855 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1127): * Single equations (assignments): 1122 * 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 {(1,100.0%) 45,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00215/1.984, allocations: 0.5858 MB / 0.9811 GB, free: 80.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001412/1.985, allocations: 0.5438 MB / 0.9817 GB, free: 79.75 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01825/2.003, allocations: 9.37 MB / 0.9908 GB, free: 72.56 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.367e-05/2.003, allocations: 40 kB / 0.9909 GB, free: 72.52 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.734e-05/2.004, allocations: 16 kB / 0.9909 GB, free: 72.51 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.008e-05/2.004, allocations: 16.88 kB / 0.9909 GB, free: 72.51 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03545/2.039, allocations: 18.02 MB / 1.008 GB, free: 58.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.196e-05/2.039, allocations: 15.84 kB / 1.009 GB, free: 58.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002832/2.042, allocations: 0.5281 MB / 1.009 GB, free: 57.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01042/2.052, allocations: 3.521 MB / 1.012 GB, free: 55.43 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008418/2.053, allocations: 12 kB / 1.012 GB, free: 55.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02236/2.076, allocations: 17.68 MB / 1.03 GB, free: 39.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.927e-06/2.076, allocations: 4 kB / 1.03 GB, free: 39.51 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02453/2.1, allocations: 14.15 MB / 1.044 GB, free: 25.16 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001927/2.102, allocations: 0.5486 MB / 1.044 GB, free: 24.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001826/2.104, allocations: 4 kB / 1.044 GB, free: 24.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003715/2.108, allocations: 167.7 kB / 1.044 GB, free: 24.42 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008537/2.109, allocations: 234.1 kB / 1.044 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002731/2.109, allocations: 99.94 kB / 1.045 GB, free: 24.09 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005356/2.114, allocations: 3.1 MB / 1.048 GB, free: 21.02 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.52e-07/2.114, allocations: 4 kB / 1.048 GB, free: 21.02 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01124/2.126, allocations: 1.605 MB / 1.049 GB, free: 19.42 MB / 0.5105 GB 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 (285): * Single equations (assignments): 280 * 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.001186/2.127, allocations: 181.2 kB / 1.049 GB, free: 19.25 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01394/2.141, allocations: 9.213 MB / 1.058 GB, free: 10.03 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.828e-06/2.141, allocations: 4 kB / 1.058 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005161/2.146, allocations: 3.68 MB / 1.062 GB, free: 6.328 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004122/2.15, allocations: 0.5875 MB / 1.063 GB, free: 5.762 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02817/2.178, allocations: 13.04 MB / 1.075 GB, free: 8.652 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008507/2.187, allocations: 5.005 MB / 1.08 GB, free: 3.648 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01009/2.197, allocations: 2.895 MB / 1.083 GB, free: 0.7695 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2964/2.493, allocations: 360 kB / 1.083 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of SimCode: time 2.023e-06/2.494, allocations: 5.062 kB / 1.083 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.1198/2.613, allocations: 68.55 MB / 1.15 GB, free: 100.7 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches