Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.00111/0.001109, allocations: 185.2 kB / 15.76 MB, free: 6.367 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.888/1.888, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001018/0.001017, allocations: 90.89 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2261/0.2261, allocations: 43.55 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003473, allocations: 19.98 kB / 431.4 MB, free: 19.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1338, allocations: 58.86 MB / 490.2 MB, free: 8.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4362/0.5701, allocations: 103 MB / 0.5793 GB, free: 12.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.5703, allocations: 81.83 kB / 0.5794 GB, free: 12.94 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2476/0.8179, allocations: 98.64 MB / 0.6758 GB, free: 2.152 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.818, allocations: 0 / 0.6758 GB, free: 2.152 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002586/0.8182, allocations: 96 kB / 0.6758 GB, free: 2.059 MB / 474.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.02781/0.8461, allocations: 6.212 MB / 0.6819 GB, free: 11.77 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.8461, allocations: 8.031 kB / 0.6819 GB, free: 11.76 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01477/0.8609, allocations: 2.942 MB / 0.6848 GB, free: 8.809 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01954/0.8805, allocations: 7.271 MB / 0.6919 GB, free: 1.473 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004931/0.881, allocations: 369.6 kB / 0.6922 GB, free: 1.109 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002877/0.8839, allocations: 0.4958 MB / 0.6927 GB, free: 0.6133 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02855/0.9125, allocations: 12.63 MB / 0.7051 GB, free: 2.75 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002294/0.9127, allocations: 71.34 kB / 0.7051 GB, free: 2.68 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001085/0.9138, allocations: 243.8 kB / 0.7054 GB, free: 2.441 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002058/0.9159, allocations: 1.257 MB / 0.7066 GB, free: 1.18 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3063/1.222, allocations: 10.79 MB / 0.7171 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06635/1.289, allocations: 58.04 MB / 0.7738 GB, free: 77.31 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01348/1.302, allocations: 5.366 MB / 0.779 GB, free: 75.48 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01634/1.319, allocations: 12.34 MB / 0.7911 GB, free: 68.78 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/1.319, allocations: 57.5 kB / 0.7911 GB, free: 68.73 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=219): time 5.27e-06/1.319, allocations: 0 / 0.7911 GB, free: 68.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=258): time 0.0579/1.377, allocations: 25.22 MB / 0.8158 GB, free: 59.87 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002975/1.38, allocations: 4.66 MB / 0.8203 GB, free: 55.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006996/1.387, allocations: 4.14 MB / 0.8244 GB, free: 53.91 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007889/1.387, allocations: 67.66 kB / 0.8244 GB, free: 53.86 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002191/1.39, allocations: 3.533 MB / 0.8279 GB, free: 51.14 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001274/1.391, allocations: 1.019 MB / 0.8289 GB, free: 50.27 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003984/1.391, allocations: 150.3 kB / 0.829 GB, free: 50.12 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002818/1.392, allocations: 0.6217 MB / 0.8296 GB, free: 49.59 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004197/1.396, allocations: 3.231 MB / 0.8328 GB, free: 46.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005782/1.402, allocations: 7.486 MB / 0.8401 GB, free: 38.12 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006421/1.408, allocations: 4.783 MB / 0.8448 GB, free: 33.92 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.538e-05/1.408, allocations: 44 kB / 0.8448 GB, free: 33.88 MB / 0.4948 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02578/1.434, allocations: 13.26 MB / 0.8578 GB, free: 22.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.492e-05/1.434, allocations: 68 kB / 0.8578 GB, free: 22.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01248/1.447, allocations: 6.498 MB / 0.8642 GB, free: 17.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01012/1.457, allocations: 3.348 MB / 0.8674 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005467/1.462, allocations: 1.735 MB / 0.8691 GB, free: 13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01581/1.478, allocations: 16.2 MB / 0.8849 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00783/1.486, allocations: 0.7773 MB / 0.8857 GB, free: 11.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00146/1.487, allocations: 453.3 kB / 0.8861 GB, free: 10.8 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.004651/1.492, allocations: 2.343 MB / 0.8884 GB, free: 8.461 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009458/1.493, allocations: 418.6 kB / 0.8888 GB, free: 8.047 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0151/1.508, allocations: 7.104 MB / 0.8958 GB, free: 0.9023 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2607/1.769, allocations: 6.431 MB / 0.902 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.515e-05/1.769, allocations: 7.844 kB / 0.902 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.008e-05/1.769, allocations: 13.02 kB / 0.9021 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03037/1.8, allocations: 15.41 MB / 0.9171 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.165e-05/1.8, allocations: 6.625 kB / 0.9171 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002201/1.802, allocations: 449 kB / 0.9175 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009252/1.811, allocations: 3.345 MB / 0.9208 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004784/1.812, allocations: 79.91 kB / 0.9209 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01538/1.827, allocations: 16.86 MB / 0.9374 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002199/1.829, allocations: 4.464 MB / 0.9417 GB, free: 104 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01715/1.846, allocations: 11.32 MB / 0.9528 GB, free: 102 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001573/1.848, allocations: 495.9 kB / 0.9532 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007468/1.849, allocations: 67.59 kB / 0.9533 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002489/1.851, allocations: 335.2 kB / 0.9536 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005648/1.852, allocations: 207.1 kB / 0.9538 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002128/1.852, allocations: 80.8 kB / 0.9539 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004846/1.857, allocations: 2.905 MB / 0.9567 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.6e-07/1.857, allocations: 0 / 0.9567 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007299/1.864, allocations: 1.531 MB / 0.9582 GB, free: 100.6 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.0005794/1.865, allocations: 225.4 kB / 0.9584 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01414/1.879, allocations: 9.366 MB / 0.9676 GB, free: 97.24 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/1.879, allocations: 3.438 kB / 0.9676 GB, free: 97.24 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007725/1.887, allocations: 4.648 MB / 0.9721 GB, free: 95.13 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00285/1.89, allocations: 0.5106 MB / 0.9726 GB, free: 94.91 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01942/1.909, allocations: 15.45 MB / 0.9877 GB, free: 87.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003745/1.913, allocations: 3.812 MB / 0.9915 GB, free: 85.72 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005304/1.918, allocations: 2.256 MB / 0.9937 GB, free: 85.32 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008746/1.919, allocations: 301.4 kB / 0.9939 GB, free: 85.05 MB / 0.5105 GB Notification: Performance of SimCode: time 1.403e-06/1.919, allocations: 4 kB / 0.9939 GB, free: 85.05 MB / 0.5105 GB Notification: Performance of Templates: time 0.08603/2.005, allocations: 56.27 MB / 1.049 GB, free: 34.49 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring2_res.mat","/var/lib/jenkins/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_ModelicaTest.MultiBody.Forces.Spring2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches