Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.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.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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Spring2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 184.2 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 223.2 MB / 241 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009241/0.0009242, allocations: 95.67 kB / 292.2 MB, free: 10.71 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.341/0.341, allocations: 44.21 MB / 387.5 MB, free: 38.51 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003226, allocations: 8 kB / 459.9 MB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3616, allocations: 61.9 MB / 0.5096 GB, free: 37.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1371/0.4988, allocations: 104.7 MB / 0.6118 GB, free: 6.379 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.4991, allocations: 75.97 kB / 0.6119 GB, free: 6.305 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5049/1.004, allocations: 99.64 MB / 0.7092 GB, free: 94.22 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.144e-06/1.004, allocations: 0 / 0.7092 GB, free: 94.22 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002477/1.004, allocations: 98.14 kB / 0.7093 GB, free: 94.21 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.02941/1.034, allocations: 6.183 MB / 0.7153 GB, free: 92.09 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/1.034, allocations: 9.906 kB / 0.7154 GB, free: 92.09 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01497/1.049, allocations: 2.928 MB / 0.7182 GB, free: 91.74 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02031/1.069, allocations: 6.852 MB / 0.7249 GB, free: 91.02 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004882/1.07, allocations: 371.7 kB / 0.7253 GB, free: 91.01 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00237/1.072, allocations: 495.5 kB / 0.7257 GB, free: 91 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0235/1.096, allocations: 12.64 MB / 0.7381 GB, free: 85.02 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001772/1.096, allocations: 75.88 kB / 0.7381 GB, free: 84.97 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007207/1.096, allocations: 243.1 kB / 0.7384 GB, free: 84.84 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00152/1.098, allocations: 1.239 MB / 0.7396 GB, free: 84.62 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02051/1.119, allocations: 10.81 MB / 0.7501 GB, free: 81.44 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07114/1.19, allocations: 57.97 MB / 0.8068 GB, free: 33.56 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01383/1.204, allocations: 5.364 MB / 0.812 GB, free: 28.05 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0208/1.224, allocations: 12.29 MB / 0.824 GB, free: 15.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.778e-05/1.225, allocations: 59.81 kB / 0.8241 GB, free: 15.23 MB / 490.7 MB Notification: Performance of pre-optimization done (n=219): time 6.482e-06/1.225, allocations: 3.938 kB / 0.8241 GB, free: 15.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=258): time 0.06897/1.294, allocations: 25.07 MB / 0.8485 GB, free: 5.801 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00401/1.298, allocations: 4.65 MB / 0.8531 GB, free: 0.6836 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01067/1.308, allocations: 4.107 MB / 0.8571 GB, free: 12.57 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009239/1.309, allocations: 60.98 kB / 0.8572 GB, free: 12.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003732/1.313, allocations: 3.517 MB / 0.8606 GB, free: 8.992 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002114/1.315, allocations: 1.022 MB / 0.8616 GB, free: 7.977 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00153/1.317, allocations: 147 kB / 0.8617 GB, free: 7.836 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001059/1.318, allocations: 0.6243 MB / 0.8623 GB, free: 7.207 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006648/1.324, allocations: 3.231 MB / 0.8655 GB, free: 3.973 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01047/1.335, allocations: 7.492 MB / 0.8728 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00894/1.344, allocations: 4.78 MB / 0.8775 GB, free: 5.602 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001995/1.344, allocations: 44 kB / 0.8775 GB, free: 5.559 MB / 0.5261 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.3398/1.684, allocations: 13.25 MB / 0.8905 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001099/1.684, allocations: 73.56 kB / 0.8905 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01347/1.698, allocations: 6.499 MB / 0.8969 GB, free: 122.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01052/1.708, allocations: 3.352 MB / 0.9001 GB, free: 122.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005687/1.714, allocations: 1.732 MB / 0.9018 GB, free: 122.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01854/1.732, allocations: 16.2 MB / 0.9177 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007684/1.74, allocations: 0.7744 MB / 0.9184 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001434/1.742, allocations: 450.3 kB / 0.9188 GB, free: 114.6 MB / 0.5261 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.004964/1.747, allocations: 2.344 MB / 0.9211 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009171/1.748, allocations: 420.8 kB / 0.9215 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0139/1.761, allocations: 7.091 MB / 0.9285 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01196/1.773, allocations: 6.434 MB / 0.9347 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.883e-05/1.774, allocations: 11.81 kB / 0.9348 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.96e-05/1.774, allocations: 14.02 kB / 0.9348 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02855/1.802, allocations: 15.4 MB / 0.9498 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.964e-05/1.802, allocations: 6.5 kB / 0.9498 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002047/1.804, allocations: 451.7 kB / 0.9502 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009703/1.814, allocations: 3.343 MB / 0.9535 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007138/1.815, allocations: 79.05 kB / 0.9536 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01578/1.831, allocations: 16.86 MB / 0.9701 GB, free: 94.97 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002036/1.833, allocations: 4.454 MB / 0.9744 GB, free: 90.71 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01644/1.849, allocations: 11.31 MB / 0.9855 GB, free: 86.09 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/1.85, allocations: 487.4 kB / 0.9859 GB, free: 85.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005586/1.851, allocations: 66.02 kB / 0.986 GB, free: 85.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002515/1.854, allocations: 350.9 kB / 0.9863 GB, free: 85.68 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004761/1.854, allocations: 197.9 kB / 0.9865 GB, free: 85.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001984/1.854, allocations: 85 kB / 0.9866 GB, free: 85.63 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003993/1.858, allocations: 2.875 MB / 0.9894 GB, free: 83.73 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.4e-07/1.858, allocations: 0 / 0.9894 GB, free: 83.73 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005707/1.864, allocations: 1.529 MB / 0.9909 GB, free: 82.21 MB / 0.5261 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.0005126/1.864, allocations: 223.3 kB / 0.9911 GB, free: 82.01 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01271/1.877, allocations: 9.377 MB / 1 GB, free: 73.47 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/1.877, allocations: 6.438 kB / 1 GB, free: 73.46 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006992/1.884, allocations: 4.645 MB / 1.005 GB, free: 68.65 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002553/1.887, allocations: 0.5103 MB / 1.005 GB, free: 68.16 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01688/1.904, allocations: 15.43 MB / 1.02 GB, free: 52.87 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002987/1.907, allocations: 3.797 MB / 1.024 GB, free: 49.06 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004809/1.912, allocations: 2.25 MB / 1.026 GB, free: 46.81 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007833/1.912, allocations: 307.3 kB / 1.027 GB, free: 46.51 MB / 0.5261 GB Notification: Performance of SimCode: time 9.32e-07/1.912, allocations: 0 / 1.027 GB, free: 46.51 MB / 0.5261 GB Notification: Performance of Templates: time 0.3066/2.219, allocations: 56.15 MB / 1.081 GB, free: 133.1 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring2/Spring2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches