Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 227.2 MB / 245 MB, free: 7.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009608/0.0009608, allocations: 91.98 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002114/0.0002113, allocations: 4 kB / 357.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2116, allocations: 51.49 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.3286, allocations: 105.6 MB / 0.5029 GB, free: 0.9961 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/0.3288, allocations: 91.95 kB / 0.503 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5006/0.8295, allocations: 143.1 MB / 0.6427 GB, free: 14.59 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.8295, allocations: 0 / 0.6427 GB, free: 14.59 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005029/0.8301, allocations: 136 kB / 0.6429 GB, free: 14.46 MB / 426.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.02445/0.8545, allocations: 7.663 MB / 0.6503 GB, free: 6.707 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.8546, allocations: 8.031 kB / 0.6504 GB, free: 6.699 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03058/0.8852, allocations: 7.549 MB / 0.6577 GB, free: 15.13 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02302/0.9082, allocations: 8.248 MB / 0.6658 GB, free: 6.797 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000521/0.9088, allocations: 488.9 kB / 0.6662 GB, free: 6.316 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00302/0.9118, allocations: 0.6558 MB / 0.6669 GB, free: 5.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2416/1.153, allocations: 16.74 MB / 0.6832 GB, free: 65.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005019/1.154, allocations: 102.4 kB / 0.6833 GB, free: 65.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002703/1.157, allocations: 316.6 kB / 0.6836 GB, free: 65.23 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002504/1.159, allocations: 1.583 MB / 0.6852 GB, free: 65.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0258/1.185, allocations: 13.77 MB / 0.6986 GB, free: 65.16 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06767/1.253, allocations: 74.32 MB / 0.7712 GB, free: 17.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.018/1.271, allocations: 7.737 MB / 0.7788 GB, free: 14.92 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02294/1.294, allocations: 18.67 MB / 0.797 GB, free: 5.188 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/1.294, allocations: 64.94 kB / 0.797 GB, free: 5.129 MB / 442.7 MB Notification: Performance of pre-optimization done (n=287): time 4.749e-06/1.294, allocations: 0 / 0.797 GB, free: 5.129 MB / 442.7 MB Notification: Performance of matching and sorting (n=370): time 0.5246/1.819, allocations: 49.66 MB / 0.8455 GB, free: 96.56 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.541e-05/1.819, allocations: 267.6 kB / 0.8458 GB, free: 96.27 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007394/1.826, allocations: 5.349 MB / 0.851 GB, free: 95.95 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001105/1.827, allocations: 79.23 kB / 0.8511 GB, free: 95.91 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002645/1.83, allocations: 4.762 MB / 0.8557 GB, free: 94.57 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001534/1.831, allocations: 1.361 MB / 0.8571 GB, free: 93.77 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005121/1.832, allocations: 187.2 kB / 0.8573 GB, free: 93.77 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0003689/1.832, allocations: 0.6909 MB / 0.8579 GB, free: 93.45 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004747/1.837, allocations: 3.777 MB / 0.8616 GB, free: 93.43 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006739/1.844, allocations: 8.981 MB / 0.8704 GB, free: 86.77 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006862/1.851, allocations: 5.648 MB / 0.8759 GB, free: 86.71 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.231e-05/1.851, allocations: 55.94 kB / 0.876 GB, free: 86.71 MB / 474.8 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.02741/1.878, allocations: 16.12 MB / 0.8917 GB, free: 85.76 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001943/1.878, allocations: 83.78 kB / 0.8918 GB, free: 85.76 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002616/1.879, allocations: 182.3 kB / 0.892 GB, free: 85.76 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01143/1.89, allocations: 4.074 MB / 0.8959 GB, free: 85.38 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006656/1.897, allocations: 2.045 MB / 0.8979 GB, free: 85.14 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02761/1.924, allocations: 21.71 MB / 0.9191 GB, free: 75.52 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008356/1.933, allocations: 0.5422 MB / 0.9197 GB, free: 75.36 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002462/1.935, allocations: 0.5284 MB / 0.9202 GB, free: 75.28 MB / 474.8 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.007265/1.943, allocations: 3.117 MB / 0.9232 GB, free: 73.85 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001469/1.944, allocations: 0.579 MB / 0.9238 GB, free: 73.54 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02016/1.964, allocations: 9.556 MB / 0.9331 GB, free: 70.4 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.347e-05/1.964, allocations: 38.95 kB / 0.9332 GB, free: 70.4 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-05/1.965, allocations: 23.06 kB / 0.9332 GB, free: 70.4 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.188e-05/1.965, allocations: 18.12 kB / 0.9332 GB, free: 70.4 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03927/2.004, allocations: 19.04 MB / 0.9518 GB, free: 57.89 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.475e-05/2.004, allocations: 4 kB / 0.9518 GB, free: 57.89 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00261/2.007, allocations: 0.5054 MB / 0.9523 GB, free: 57.47 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01151/2.018, allocations: 3.618 MB / 0.9558 GB, free: 55.14 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001042/2.019, allocations: 63.89 kB / 0.9559 GB, free: 55.08 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0242/2.043, allocations: 19.65 MB / 0.9751 GB, free: 38.32 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/2.043, allocations: 0 / 0.9751 GB, free: 38.32 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02231/2.066, allocations: 14.12 MB / 0.9889 GB, free: 26.61 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001928/2.068, allocations: 0.5834 MB / 0.9894 GB, free: 26 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00154/2.069, allocations: 56.86 kB / 0.9895 GB, free: 25.95 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003446/2.073, allocations: 219.6 kB / 0.9897 GB, free: 25.74 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007881/2.074, allocations: 230.1 kB / 0.9899 GB, free: 25.51 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003794/2.074, allocations: 96.61 kB / 0.99 GB, free: 25.42 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.006665/2.081, allocations: 3.76 MB / 0.9937 GB, free: 21.67 MB / 474.8 MB Notification: Performance of sort global known variables: time 4.31e-07/2.081, allocations: 0 / 0.9937 GB, free: 21.67 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.009497/2.09, allocations: 1.856 MB / 0.9955 GB, free: 19.83 MB / 474.8 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.0008995/2.091, allocations: 242.5 kB / 0.9957 GB, free: 19.6 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01303/2.104, allocations: 9.668 MB / 1.005 GB, free: 9.953 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/2.104, allocations: 0 / 1.005 GB, free: 9.953 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004537/2.109, allocations: 3.79 MB / 1.009 GB, free: 6.133 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003733/2.112, allocations: 0.7209 MB / 1.01 GB, free: 5.441 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2194/2.332, allocations: 18.38 MB / 1.028 GB, free: 81.34 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004943/2.337, allocations: 5.011 MB / 1.032 GB, free: 80.47 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.006428/2.343, allocations: 2.807 MB / 1.035 GB, free: 80.41 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000956/2.344, allocations: 376.4 kB / 1.036 GB, free: 80.41 MB / 474.8 MB Notification: Performance of SimCode: time 8.82e-07/2.344, allocations: 0 / 1.036 GB, free: 80.41 MB / 474.8 MB Notification: Performance of Templates: time 0.1009/2.445, allocations: 74.77 MB / 1.109 GB, free: 60.4 MB / 474.8 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches