Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001627/0.001627, allocations: 195.8 kB / 18.1 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 226.5 MB / 245.4 MB, free: 6.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001005/0.001005, allocations: 100.5 kB / 297.5 MB, free: 6.648 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.354/0.354, allocations: 44.82 MB / 394.3 MB, free: 35.6 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004127/0.0004128, allocations: 8 kB / 467.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4001/0.4006, allocations: 62.95 MB / 0.5184 GB, free: 37.51 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.5561, allocations: 115.4 MB / 0.6311 GB, free: 5.812 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.5564, allocations: 87.95 kB / 0.6312 GB, free: 5.73 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6252/1.182, allocations: 138.4 MB / 0.7664 GB, free: 79.16 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.777e-06/1.182, allocations: 0 / 0.7664 GB, free: 79.16 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005156/1.182, allocations: 132 kB / 0.7665 GB, free: 79.04 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02634/1.209, allocations: 7.379 MB / 0.7737 GB, free: 71.57 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/1.209, allocations: 16.81 kB / 0.7737 GB, free: 71.55 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02504/1.234, allocations: 5.845 MB / 0.7794 GB, free: 65.69 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02018/1.254, allocations: 7.502 MB / 0.7868 GB, free: 58.1 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006131/1.255, allocations: 489.2 kB / 0.7872 GB, free: 57.62 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003887/1.258, allocations: 0.6562 MB / 0.7879 GB, free: 56.96 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04345/1.302, allocations: 16.55 MB / 0.804 GB, free: 38.96 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005606/1.303, allocations: 95.36 kB / 0.8041 GB, free: 38.86 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003091/1.306, allocations: 323.7 kB / 0.8044 GB, free: 38.55 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002341/1.308, allocations: 1.576 MB / 0.806 GB, free: 36.96 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03105/1.339, allocations: 13.52 MB / 0.8192 GB, free: 23.43 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4743/1.813, allocations: 74.11 MB / 0.8915 GB, free: 73.88 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02108/1.835, allocations: 7.693 MB / 0.8991 GB, free: 73.18 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005542/1.84, allocations: 3.959 MB / 0.9029 GB, free: 73.13 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03011/1.87, allocations: 18.41 MB / 0.9209 GB, free: 68.79 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.299e-05/1.87, allocations: 70.19 kB / 0.921 GB, free: 68.75 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=281): time 5.621e-06/1.87, allocations: 0 / 0.921 GB, free: 68.75 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.1622/2.033, allocations: 47.97 MB / 0.9678 GB, free: 59.31 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/2.033, allocations: 271 kB / 0.9681 GB, free: 59.02 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01197/2.045, allocations: 6.041 MB / 0.974 GB, free: 56.23 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001109/2.046, allocations: 86.27 kB / 0.9741 GB, free: 56.15 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004683/2.051, allocations: 4.757 MB / 0.9787 GB, free: 51.88 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002733/2.053, allocations: 1.331 MB / 0.98 GB, free: 50.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001085/2.055, allocations: 188 kB / 0.9802 GB, free: 50.51 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000631/2.055, allocations: 0.6877 MB / 0.9809 GB, free: 49.93 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00781/2.063, allocations: 3.751 MB / 0.9845 GB, free: 46.77 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01049/2.074, allocations: 8.984 MB / 0.9933 GB, free: 36.19 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01467/2.088, allocations: 13.77 MB / 1.007 GB, free: 21.52 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002211/2.089, allocations: 56 kB / 1.007 GB, free: 21.47 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.03538/2.124, allocations: 16.11 MB / 1.023 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000124/2.124, allocations: 90.28 kB / 1.023 GB, free: 8.312 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002205/2.124, allocations: 180 kB / 1.023 GB, free: 8.137 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01266/2.137, allocations: 4.058 MB / 1.027 GB, free: 5.379 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007676/2.145, allocations: 2.037 MB / 1.029 GB, free: 3.602 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0331/2.178, allocations: 21 MB / 1.049 GB, free: 14.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009217/2.187, allocations: 0.5456 MB / 1.05 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002505/2.19, allocations: 0.5234 MB / 1.05 GB, free: 13.43 MB / 0.5573 GB 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 (1081): * Single equations (assignments): 1076 * 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,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01003/2.2, allocations: 3.117 MB / 1.053 GB, free: 10.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001685/2.201, allocations: 0.5747 MB / 1.054 GB, free: 9.723 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02257/2.224, allocations: 9.538 MB / 1.063 GB, free: 128 kB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.976e-05/2.224, allocations: 43.88 kB / 1.063 GB, free: 84 kB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.151e-05/2.224, allocations: 16 kB / 1.063 GB, free: 68 kB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.613e-05/2.224, allocations: 19.94 kB / 1.063 GB, free: 48 kB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0468/2.271, allocations: 18.99 MB / 1.082 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.142e-05/2.271, allocations: 0 / 1.082 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002886/2.274, allocations: 0.4992 MB / 1.082 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01275/2.287, allocations: 3.678 MB / 1.086 GB, free: 8.773 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008438/2.288, allocations: 63.94 kB / 1.086 GB, free: 8.711 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03022/2.318, allocations: 18.89 MB / 1.104 GB, free: 5.547 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/2.318, allocations: 0 / 1.104 GB, free: 5.547 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02971/2.348, allocations: 13.95 MB / 1.118 GB, free: 7.523 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00237/2.35, allocations: 0.5835 MB / 1.119 GB, free: 6.914 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00244/2.353, allocations: 59.31 kB / 1.119 GB, free: 6.859 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004269/2.357, allocations: 236.7 kB / 1.119 GB, free: 6.629 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001343/2.358, allocations: 222.1 kB / 1.119 GB, free: 6.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005612/2.359, allocations: 93.23 kB / 1.119 GB, free: 6.32 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.009916/2.369, allocations: 3.76 MB / 1.123 GB, free: 2.566 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.81e-07/2.369, allocations: 0 / 1.123 GB, free: 2.566 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0115/2.38, allocations: 1.853 MB / 1.125 GB, free: 0.7227 MB / 0.6198 GB 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 (263): * Single equations (assignments): 258 * 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.001126/2.382, allocations: 227.5 kB / 1.125 GB, free: 0.5078 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.3176/2.699, allocations: 9.569 MB / 1.134 GB, free: 207.4 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/2.699, allocations: 0 / 1.134 GB, free: 207.4 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.005418/2.705, allocations: 3.74 MB / 1.138 GB, free: 207.1 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004988/2.71, allocations: 0.7566 MB / 1.139 GB, free: 207.1 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03119/2.741, allocations: 18.36 MB / 1.157 GB, free: 200.5 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007819/2.749, allocations: 4.848 MB / 1.161 GB, free: 199.6 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0082/2.757, allocations: 2.792 MB / 1.164 GB, free: 199.6 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001164/2.758, allocations: 376.1 kB / 1.164 GB, free: 199.6 MB / 0.6198 GB Notification: Performance of SimCode: time 1.372e-06/2.758, allocations: 3.875 kB / 1.164 GB, free: 199.6 MB / 0.6198 GB Notification: Performance of Templates: time 0.1309/2.889, allocations: 74.94 MB / 1.238 GB, free: 163.9 MB / 0.6198 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches