/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7445
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2040.5-1705_daily_bin711
RA = 310.136, Dec = -17.0901
tmin = 423619201, tmax = 423878401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='108763', job_status='RUN', time_executed='2021-09-25 15:49:48.396451', time_epoch_executed='1632610188.4' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108763

Creating custom pfile directory:
/scratch/kocevski/108763/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=423619201.0 && nMetStart<423878401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=423619201.0 && nMetStart<423878401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108763/ft1_4FGL_J2040.5-1705_daily_bin711.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=423619201.0 && nMetStart<423878401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108763/ft2_4FGL_J2040.5-1705_daily_bin711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108763/ft1_4FGL_J2040.5-1705_daily_bin711.fits outfile=/scratch/kocevski/108763/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin711.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=423619201.0 tmax=423878401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.78
user 5.52
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/108763/ft2_4FGL_J2040.5-1705_daily_bin711.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/108763/ft2_4FGL_J2040.5-1705_daily_bin711.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/108763/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin711.fits evtable="EVENTS" outfile="/scratch/kocevski/108763/ft1_filtered_4FGL_J2040.5-1705_daily_bin711.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/108763/ft1_filtered_4FGL_J2040.5-1705_daily_bin711.fits" evtable="EVENTS" scfile=/scratch/kocevski/108763/ft2_4FGL_J2040.5-1705_daily_bin711.fits sctable="SC_DATA" outfile=/scratch/kocevski/108763/ltcube_423619201_423878401_4FGL_J2040.5-1705_daily_bin711.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/108763/ft2_4FGL_J2040.5-1705_daily_bin711.fits
.....................!
real 15.33
user 14.92
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108763/ft1_filtered_4FGL_J2040.5-1705_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/108763/ft2_4FGL_J2040.5-1705_daily_bin711.fits sctable="SC_DATA" expcube=/scratch/kocevski/108763/ltcube_423619201_423878401_4FGL_J2040.5-1705_daily_bin711.fits outfile=/scratch/kocevski/108763/expmap_423619201_423878401_4FGL_J2040.5-1705_daily_bin711.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/108763/ltcube_423619201_423878401_4FGL_J2040.5-1705_daily_bin711.fits
.....................!
real 192.03
user 186.58
sys 4.65

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J2040.5-1705 @ 310.136 -17.0901

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/108763/ft1_filtered_4FGL_J2040.5-1705_daily_bin711.fits scfile=/scratch/kocevski/108763/ft2_4FGL_J2040.5-1705_daily_bin711.fits outfile=/scratch/kocevski/108763/cmap_423619201_423878401_4FGL_J2040.5-1705_daily_bin711.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=310.136 yref=-17.0901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/108763/ft1_filtered_4FGL_J2040.5-1705_daily_bin711.fits scfile=/scratch/kocevski/108763/ft2_4FGL_J2040.5-1705_daily_bin711.fits outfile=/scratch/kocevski/108763/cmap_HighResolution_423619201_423878401_4FGL_J2040.5-1705_daily_bin711.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=310.136 yref=-17.0901 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/108763/ft1_filtered_4FGL_J2040.5-1705_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/108763/ft2_4FGL_J2040.5-1705_daily_bin711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/108763/Model_4FGL_J2040.5-1705_daily_bin711.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/108763/ft1_filtered_4FGL_J2040.5-1705_daily_bin711.fits.....................!
real 43.50
user 42.08
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/108763/ft1_filtered_4FGL_J2040.5-1705_daily_bin711.fits', '/scratch/kocevski/108763/ft2_4FGL_J2040.5-1705_daily_bin711.fits', expMap='/scratch/kocevski/108763/expmap_423619201_423878401_4FGL_J2040.5-1705_daily_bin711.fits', expCube='/scratch/kocevski/108763/ltcube_423619201_423878401_4FGL_J2040.5-1705_daily_bin711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/108763/Model_4FGL_J2040.5-1705_daily_bin711.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2040.5-1705'

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.223e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/108763/ft1_filtered_4FGL_J2040.5-1705_daily_bin711.fits
Spacecraft file(s): /scratch/kocevski/108763/ft2_4FGL_J2040.5-1705_daily_bin711.fits
Exposure map: /scratch/kocevski/108763/expmap_423619201_423878401_4FGL_J2040.5-1705_daily_bin711.fits
Exposure cube: /scratch/kocevski/108763/ltcube_423619201_423878401_4FGL_J2040.5-1705_daily_bin711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/108763/Model_4FGL_J2040.5-1705_daily_bin711.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 3964.24027101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 3964.18918776

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    107.16       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.268       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.979       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.708       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.351       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33454E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.050       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.9227       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2482       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3964.189     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2428 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     107.19        127.99        .23662E-04   -.55266E-05
   2  Prefactor     20.275        136.63        .10329E-04   -.56475E-05
   3  Prefactor     6.9001        4.8974       -.16637E-05   -.14690E-03
   4  Prefactor     .10000E-03    20.009       -.23609E-06** at limit **
   5  norm          20.981        25.978        .14557E-05   -.11404E-04
   6  norm          .10000E-03    7.7189       -.92182E-07** at limit **
   7  Prefactor     .10000E-03    131.21        .85103E-07** at limit **
   8  norm          15.708        18.246        .22477E-06   -.20615E-05
   9  norm          .10000E-03    14.470       -.44793E-07** at limit **
  10  norm          .10000E-03    .81734       -.23161E-08** at limit **
  11  Prefactor     13.354        21.290        .53604E-06   -.16699E-04
  12  Prefactor     .10000E-03    2.8853       -.88116E-08** at limit **
  13  norm          .10000E-03    2.8127        .18126E-07** at limit **
  14  Prefactor     .19293E-01    3.3363       -.61652E-07    .30931E-04
  15  Prefactor     .10000E-03    94.534        .47395E-07** at limit **
  16  norm          .10000E-03    13.783        .10184E-06** at limit **
  17  Prefactor     .10000E-03    8.7132        .35885E-07** at limit **
  18  Prefactor     .10000E-03    7.9355        .20682E-06** at limit **
  19  Prefactor     21.053        27.403       -.33452E-06   -.59039E-05
  20  Prefactor     8.9287        23.462        .62725E-07   -.24202E-04
  21  Normalizat    1.2477        .33722        .11189E-05   -.83662E-04
  22  Prefactor     .86187        .14562       -.18137E-05    .98782E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 107.193
  Prefactor  = 20.2745
  Prefactor  = 6.90013
  Prefactor  = 0.0001
  norm       = 20.9814
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.7078
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3537
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0192925
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0533
  Prefactor  = 8.92866
  Normalizat = 1.24773
  Prefactor  = 0.861868
 **********
 **   18 **HESSE 
 **********

 FCN=   3964.189     FROM HESSE     STATUS=OK           348 CALLS     2776 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     107.19        128.07        .38849E-04   -1.3634    
   2  Prefactor     20.275        135.87        .88967E-04   -1.4807    
   3  Prefactor     6.9001        4.9121        .10316E-03   -1.5183    
   4  Prefactor     .10000E-03    20.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.981        25.981        .87448E-04   -1.4792    
   6  norm          .10000E-03    7.7347        .17083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    131.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.708        18.250        .10106E-03   -1.4915    
   9  norm          .10000E-03    14.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .82559        .55513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.354        21.260        .10962E-03   -1.4977    
  12  Prefactor     .10000E-03    2.8887        .10445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8298        .10311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .19293E-01    5.5302        .40944E-01   -1.5680    
  15  Prefactor     .10000E-03    94.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.709        .33826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.053        27.324        .87301E-04   -1.4790    
  20  Prefactor     8.9287        23.423        .13418E-03   -1.5110    
  21  Normalizat    1.2477        .40787        .34646E-03   -.85140    
  22  Prefactor     .86187        .17841        .17669E-03   -.97487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27088e-10
Minuit parameter uncertainties:
  1  128.404
  2  105.318
  3  4.91237
  4  1.55288e-05
  5  25.9946
  6  6.84577e-06
  7  4.1311e-05
  8  18.2564
  9  2.88733e-07
  10  3.31552e-07
  11  21.2724
  12  1.21233e-06
  13  3.39843e-06
  14  0.651639
  15  4.58366e-05
  16  5.53757e-06
  17  4.21953e-06
  18  0.000176495
  19  27.34
  20  23.4475
  21  0.408919
  22  0.178529
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 3964.18917855

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.929e-02  6.516e-01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  8.619e-01  1.785e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.248e+00  4.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 310.136 -17.090
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/108763/likelihoodResults_423619201_423878401_4FGL_J2040.5-1705_daily_bin711.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3964.18917827
delta logL = 2.78198967862e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3964.18917801
delta logL = 5.44036993233e-07

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19292E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5421       1.0000          .0000       10.000    
     3 'Normalizat'    1.2478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86184       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3964.189     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      261 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48421E-01    4.6436        .59235E-01    .73104E-04
   2  Index         2.7043        6.2839        .50000        .12882E-04
   3  Normalizat    1.2473        .10781E-01    .78286E-01   -.59843E-04
   4  Prefactor     .86191        .46883E-02    .44517E-01   -.25350E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.048421
  Index      = 2.70434
  Normalizat = 1.24732
  Prefactor  = 0.861908
 **********
 **   18 **HESSE 
 **********

 FCN=   3964.189     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48421E-01    8373.0        .20407E-02   -1.5664    
   2  Index         2.7043        8.6386        .62874E-01   -.47702    
   3  Normalizat    1.2473        .23748        .34651E-03   -.85153    
   4  Prefactor     .86191        .84584E-01    .17669E-03   -.97485    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04779e-07
Minuit parameter uncertainties:
  1  42.4677
  2  130.067
  3  0.237688
  4  0.0845964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108763': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3964.18908397
delta logL = 9.45768879319e-05

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  4.842e-02  4.247e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.704e+00  1.301e+02  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  8.619e-01  8.460e-02  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.247e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 310.136 -17.090

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/108763/cmap_HighResolution_423619201_423878401_4FGL_J2040.5-1705_daily_bin711.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/108763

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-09-25 15:59:02.239610', job_id='108763', GAL2='0.86', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1632610742.24', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='9.46e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='711' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:59:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 108763: <4FGL_J2040.5-1705_daily_bin711> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin711> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:45:38 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:49:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 15:49:37 2021
Terminated at Sat Sep 25 15:59:03 2021
Results reported at Sat Sep 25 15:59:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin711 310.136 -17.0901 423619201 423878401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2040.5-1705 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   552.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             328.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            805 sec.

The output (if any) is above this job summary.

