Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Spring2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.|body1.Q.1.|body1.Q.2.|body1.Q.3.|body1.Q.4.|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.Q.1.|body2.Q.2.|body2.Q.3.|body2.Q.4.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2") translateModel(ModelicaTest.MultiBody.Forces.Spring2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.|body1.Q.1.|body1.Q.2.|body1.Q.3.|body1.Q.4.|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.Q.1.|body2.Q.2.|body2.Q.3.|body2.Q.4.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001656/0.001656, allocations: 180.7 kB / 17.41 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.342/2.342, allocations: 205.4 MB / 223.6 MB, free: 9.023 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.001212/0.001212, allocations: 89.31 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5887/0.5887, allocations: 43.55 MB / 363.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006713/0.0006715, allocations: 15.98 kB / 432.6 MB, free: 5.645 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1945, allocations: 58.84 MB / 491.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5427/0.7373, allocations: 103.1 MB / 0.5806 GB, free: 15.08 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004553/0.7378, allocations: 79.95 kB / 0.5807 GB, free: 15 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.816/1.554, allocations: 96.89 MB / 0.6753 GB, free: 86.18 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.376e-06/1.554, allocations: 0 / 0.6753 GB, free: 86.18 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005377/1.555, allocations: 95.39 kB / 0.6754 GB, free: 86.18 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: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.04965/1.604, allocations: 6.153 MB / 0.6814 GB, free: 84.88 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.35e-05/1.604, allocations: 10.16 kB / 0.6814 GB, free: 84.88 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02628/1.631, allocations: 2.846 MB / 0.6842 GB, free: 84.55 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02468/1.655, allocations: 5.985 MB / 0.6901 GB, free: 83.88 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001112/1.657, allocations: 369.1 kB / 0.6904 GB, free: 83.87 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004116/1.661, allocations: 499 kB / 0.6909 GB, free: 83.86 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05028/1.711, allocations: 12.52 MB / 0.7031 GB, free: 80.61 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008021/1.712, allocations: 78.94 kB / 0.7032 GB, free: 80.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00395/1.716, allocations: 242.1 kB / 0.7034 GB, free: 80.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004012/1.72, allocations: 1.249 MB / 0.7047 GB, free: 80.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04576/1.766, allocations: 10.64 MB / 0.715 GB, free: 80.52 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1205/1.886, allocations: 57.95 MB / 0.7716 GB, free: 39.95 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02591/1.912, allocations: 5.359 MB / 0.7769 GB, free: 38.08 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007234/1.92, allocations: 2.471 MB / 0.7793 GB, free: 37.08 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03833/1.958, allocations: 12.26 MB / 0.7913 GB, free: 30.21 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.2e-05/1.958, allocations: 59.25 kB / 0.7913 GB, free: 30.16 MB / 490.7 MB Notification: Performance of pre-optimization done (n=219): time 1.559e-05/1.958, allocations: 0 / 0.7913 GB, free: 30.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=258): time 0.117/2.075, allocations: 24.97 MB / 0.8157 GB, free: 18.67 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003698/2.079, allocations: 4.631 MB / 0.8202 GB, free: 13.74 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01446/2.094, allocations: 4.638 MB / 0.8247 GB, free: 9.859 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001115/2.095, allocations: 61.7 kB / 0.8248 GB, free: 9.793 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004251/2.099, allocations: 3.531 MB / 0.8283 GB, free: 6.629 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002434/2.102, allocations: 1.018 MB / 0.8292 GB, free: 5.73 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001958/2.104, allocations: 147.9 kB / 0.8294 GB, free: 5.586 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0009346/2.105, allocations: 0.6243 MB / 0.83 GB, free: 5.047 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01012/2.115, allocations: 3.228 MB / 0.8332 GB, free: 2.363 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01945/2.134, allocations: 7.655 MB / 0.8406 GB, free: 9.738 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0263/2.161, allocations: 11.33 MB / 0.8517 GB, free: 13.17 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000215/2.161, allocations: 44 kB / 0.8517 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.05332/2.214, allocations: 13.27 MB / 0.8647 GB, free: 1.137 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003443/2.215, allocations: 68 kB / 0.8648 GB, free: 1.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4783/2.693, allocations: 6.496 MB / 0.8711 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01877/2.712, allocations: 3.33 MB / 0.8744 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01168/2.724, allocations: 1.738 MB / 0.876 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02899/2.753, allocations: 15.84 MB / 0.8915 GB, free: 96.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01447/2.767, allocations: 0.7642 MB / 0.8923 GB, free: 96.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003898/2.771, allocations: 458.4 kB / 0.8927 GB, free: 96.49 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 682 * Number of states: 0 () * Number of discrete variables: 45 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (906): * Single equations (assignments): 886 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01174/2.783, allocations: 2.338 MB / 0.895 GB, free: 96.38 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002558/2.786, allocations: 423.2 kB / 0.8954 GB, free: 96.38 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02946/2.815, allocations: 7.102 MB / 0.9023 GB, free: 96.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02796/2.843, allocations: 6.437 MB / 0.9086 GB, free: 95.92 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.861e-05/2.843, allocations: 8.562 kB / 0.9086 GB, free: 95.92 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000104/2.843, allocations: 12.69 kB / 0.9086 GB, free: 95.92 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06316/2.907, allocations: 15.43 MB / 0.9237 GB, free: 93.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.45e-05/2.907, allocations: 5.531 kB / 0.9237 GB, free: 93.28 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003725/2.91, allocations: 456.9 kB / 0.9241 GB, free: 93.26 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0165/2.927, allocations: 3.343 MB / 0.9274 GB, free: 92.75 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00126/2.928, allocations: 77.08 kB / 0.9275 GB, free: 92.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02767/2.956, allocations: 16.49 MB / 0.9436 GB, free: 82.68 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003612/2.96, allocations: 4.425 MB / 0.9479 GB, free: 78.43 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03517/2.995, allocations: 10.62 MB / 0.9583 GB, free: 74.91 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00305/2.998, allocations: 493.3 kB / 0.9587 GB, free: 74.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002672/3.001, allocations: 66.48 kB / 0.9588 GB, free: 74.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006527/3.007, allocations: 339.4 kB / 0.9591 GB, free: 74.61 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001774/3.009, allocations: 204.3 kB / 0.9593 GB, free: 74.58 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009748/3.01, allocations: 84.2 kB / 0.9594 GB, free: 74.57 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0112/3.021, allocations: 2.91 MB / 0.9623 GB, free: 73.62 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.022e-06/3.021, allocations: 0 / 0.9623 GB, free: 73.62 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01546/3.037, allocations: 1.531 MB / 0.9637 GB, free: 73.47 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * 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 (196): * Single equations (assignments): 182 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001665/3.039, allocations: 223.5 kB / 0.964 GB, free: 73.34 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02866/3.067, allocations: 9.383 MB / 0.9731 GB, free: 69.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.682e-05/3.067, allocations: 5.469 kB / 0.9731 GB, free: 69.77 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01573/3.083, allocations: 4.657 MB / 0.9777 GB, free: 67.64 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01506/3.098, allocations: 0.5356 MB / 0.9782 GB, free: 67.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04483/3.143, allocations: 16.06 MB / 0.9939 GB, free: 56.93 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01062/3.154, allocations: 3.705 MB / 0.9975 GB, free: 54.08 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00267/3.157, allocations: 357.5 kB / 0.9978 GB, free: 53.77 MB / 0.5105 GB Notification: Performance of SimCode: time 1.442e-06/3.157, allocations: 4 kB / 0.9978 GB, free: 53.76 MB / 0.5105 GB Notification: Performance of Templates: time 1.561/4.718, allocations: 301.4 MB / 1.292 GB, free: 126.2 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring2/Spring2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches