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.0009823/0.0009824, allocations: 175.1 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 221.5 MB / 230.7 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 85.86 kB / 281.6 MB, free: 5.254 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.1897/0.1897, allocations: 44.15 MB / 376.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.083e-05/2.084e-05, allocations: 4 kB / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1232, allocations: 61.93 MB / 0.4947 GB, free: 1.234 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3977/0.521, allocations: 104 MB / 0.5962 GB, free: 8.5 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.5213, allocations: 75.97 kB / 0.5963 GB, free: 8.426 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2492/0.7705, allocations: 97.64 MB / 0.6916 GB, free: 6.082 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.924e-06/0.7705, allocations: 0 / 0.6916 GB, free: 6.082 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002223/0.7707, allocations: 99.98 kB / 0.6917 GB, free: 5.984 MB / 0.4948 GB 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.02647/0.7972, allocations: 5.905 MB / 0.6975 GB, free: 16 kB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.7973, allocations: 11.98 kB / 0.6975 GB, free: 4 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3557/1.153, allocations: 2.931 MB / 0.7004 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02017/1.173, allocations: 6.807 MB / 0.707 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003986/1.174, allocations: 157.2 kB / 0.7072 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002674/1.176, allocations: 299.3 kB / 0.7075 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01343/1.19, allocations: 7.329 MB / 0.7146 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01658/1.206, allocations: 10.92 MB / 0.7253 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001731/1.207, allocations: 73.66 kB / 0.7254 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006684/1.207, allocations: 35.16 kB / 0.7254 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001558/1.209, allocations: 1.243 MB / 0.7266 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05019/1.259, allocations: 57 MB / 0.7823 GB, free: 66.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004143/1.263, allocations: 3.596 MB / 0.7858 GB, free: 64.43 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002573/1.266, allocations: 2.288 MB / 0.788 GB, free: 63.49 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001392/1.267, allocations: 1.65 MB / 0.7896 GB, free: 62.02 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.657e-05/1.267, allocations: 70.67 kB / 0.7897 GB, free: 61.96 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=226): time 5.711e-06/1.267, allocations: 0 / 0.7897 GB, free: 61.96 MB / 0.4948 GB Notification: Performance of matching and sorting (n=259): time 0.0397/1.307, allocations: 20.5 MB / 0.8097 GB, free: 53.07 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/1.307, allocations: 264.2 kB / 0.81 GB, free: 52.76 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005129/1.312, allocations: 3.45 MB / 0.8133 GB, free: 49.71 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005429/1.313, allocations: 29.7 kB / 0.8134 GB, free: 49.67 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001455/1.314, allocations: 3.562 MB / 0.8168 GB, free: 46.43 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008999/1.315, allocations: 0.9955 MB / 0.8178 GB, free: 45.54 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003065/1.316, allocations: 4 kB / 0.8178 GB, free: 45.54 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002905/1.316, allocations: 0.6265 MB / 0.8184 GB, free: 45 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003171/1.319, allocations: 2.967 MB / 0.8213 GB, free: 42.38 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004473/1.324, allocations: 7.336 MB / 0.8285 GB, free: 33.35 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004998/1.329, allocations: 4.571 MB / 0.833 GB, free: 29.48 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.856e-05/1.329, allocations: 48 kB / 0.833 GB, free: 29.44 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1009) (initialization): time 0.02226/1.351, allocations: 12.06 MB / 0.8448 GB, free: 19.57 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.791e-05/1.351, allocations: 72 kB / 0.8448 GB, free: 19.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01243/1.363, allocations: 6.258 MB / 0.851 GB, free: 14.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01037/1.374, allocations: 3.266 MB / 0.8541 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00573/1.38, allocations: 1.778 MB / 0.8559 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01592/1.396, allocations: 15.06 MB / 0.8706 GB, free: 11.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007835/1.403, allocations: 0.6316 MB / 0.8712 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001935/1.405, allocations: 477.3 kB / 0.8717 GB, free: 9.953 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 708 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (930): * Single equations (assignments): 910 * 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.002444/1.408, allocations: 0.4904 MB / 0.8721 GB, free: 9.453 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001278/1.409, allocations: 391 kB / 0.8725 GB, free: 9.066 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01632/1.426, allocations: 6.792 MB / 0.8791 GB, free: 2.219 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01373/1.439, allocations: 6.149 MB / 0.8852 GB, free: 12.02 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.082e-05/1.439, allocations: 8 kB / 0.8852 GB, free: 12.02 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.658e-05/1.439, allocations: 15.95 kB / 0.8852 GB, free: 12 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3475/1.787, allocations: 14.76 MB / 0.8996 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-05/1.787, allocations: 4.156 kB / 0.8996 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00237/1.789, allocations: 444.9 kB / 0.9 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.013/1.802, allocations: 3.273 MB / 0.9032 GB, free: 122.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007132/1.803, allocations: 44.52 kB / 0.9033 GB, free: 122.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01787/1.821, allocations: 16 MB / 0.9189 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002214/1.823, allocations: 4.239 MB / 0.923 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01823/1.842, allocations: 10.78 MB / 0.9335 GB, free: 110 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001342/1.843, allocations: 446.9 kB / 0.934 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00065/1.844, allocations: 31.55 kB / 0.934 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002696/1.846, allocations: 303.4 kB / 0.9343 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005299/1.847, allocations: 197.1 kB / 0.9345 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002104/1.847, allocations: 79.16 kB / 0.9346 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003397/1.85, allocations: 2.284 MB / 0.9368 GB, free: 109.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.6e-07/1.85, allocations: 0 / 0.9368 GB, free: 109.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00768/1.858, allocations: 1.405 MB / 0.9382 GB, free: 109.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 36 ($STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 181 * 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.0006916/1.859, allocations: 190.2 kB / 0.9383 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01381/1.873, allocations: 8.813 MB / 0.9469 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/1.873, allocations: 0 / 0.9469 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00779/1.881, allocations: 4.522 MB / 0.9514 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002664/1.883, allocations: 413.8 kB / 0.9518 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01693/1.9, allocations: 11.32 MB / 0.9628 GB, free: 103.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003571/1.904, allocations: 3.779 MB / 0.9665 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005658/1.91, allocations: 2.317 MB / 0.9688 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009778/1.911, allocations: 294.6 kB / 0.969 GB, free: 102 MB / 0.5261 GB Notification: Performance of SimCode: time 1.704e-06/1.911, allocations: 3.188 kB / 0.9691 GB, free: 102 MB / 0.5261 GB Notification: Performance of Templates: time 0.0737/1.984, allocations: 50.76 MB / 1.019 GB, free: 72.54 MB / 0.5261 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