/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 155 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 = 7430
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1635
RA = 310.136, Dec = -17.0901
tmin = 663120001, tmax = 663379201
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='885953', job_status='RUN', time_executed='2022-01-09 03:17:13.820982', time_epoch_executed='1641727033.82' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/885953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/885953/ft1_4FGL_J2040.5-1705_daily_bin1635.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/885953/ft2_4FGL_J2040.5-1705_daily_bin1635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/885953/ft1_4FGL_J2040.5-1705_daily_bin1635.fits outfile=/scratch/kocevski/885953/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1635.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=663120001.0 tmax=663379201.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 2.87
user 2.61
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/885953/ft2_4FGL_J2040.5-1705_daily_bin1635.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/885953/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1635.fits evtable="EVENTS" outfile="/scratch/kocevski/885953/ft1_filtered_4FGL_J2040.5-1705_daily_bin1635.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/885953/ft1_filtered_4FGL_J2040.5-1705_daily_bin1635.fits" evtable="EVENTS" scfile=/scratch/kocevski/885953/ft2_4FGL_J2040.5-1705_daily_bin1635.fits sctable="SC_DATA" outfile=/scratch/kocevski/885953/ltcube_663120001_663379201_4FGL_J2040.5-1705_daily_bin1635.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/885953/ft2_4FGL_J2040.5-1705_daily_bin1635.fits
.....................!
real 16.31
user 15.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/885953/ft1_filtered_4FGL_J2040.5-1705_daily_bin1635.fits evtable="EVENTS" scfile=/scratch/kocevski/885953/ft2_4FGL_J2040.5-1705_daily_bin1635.fits sctable="SC_DATA" expcube=/scratch/kocevski/885953/ltcube_663120001_663379201_4FGL_J2040.5-1705_daily_bin1635.fits outfile=/scratch/kocevski/885953/expmap_663120001_663379201_4FGL_J2040.5-1705_daily_bin1635.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/885953/ltcube_663120001_663379201_4FGL_J2040.5-1705_daily_bin1635.fits
.....................!
real 191.88
user 186.54
sys 4.89

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/885953/ft1_filtered_4FGL_J2040.5-1705_daily_bin1635.fits scfile=/scratch/kocevski/885953/ft2_4FGL_J2040.5-1705_daily_bin1635.fits outfile=/scratch/kocevski/885953/cmap_663120001_663379201_4FGL_J2040.5-1705_daily_bin1635.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/885953/ft1_filtered_4FGL_J2040.5-1705_daily_bin1635.fits scfile=/scratch/kocevski/885953/ft2_4FGL_J2040.5-1705_daily_bin1635.fits outfile=/scratch/kocevski/885953/cmap_HighResolution_663120001_663379201_4FGL_J2040.5-1705_daily_bin1635.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/885953/ft1_filtered_4FGL_J2040.5-1705_daily_bin1635.fits evtable="EVENTS" scfile=/scratch/kocevski/885953/ft2_4FGL_J2040.5-1705_daily_bin1635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/885953/Model_4FGL_J2040.5-1705_daily_bin1635.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/885953/ft1_filtered_4FGL_J2040.5-1705_daily_bin1635.fits....................!
real 37.27
user 36.04
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/885953/ft1_filtered_4FGL_J2040.5-1705_daily_bin1635.fits', '/scratch/kocevski/885953/ft2_4FGL_J2040.5-1705_daily_bin1635.fits', expMap='/scratch/kocevski/885953/expmap_663120001_663379201_4FGL_J2040.5-1705_daily_bin1635.fits', expCube='/scratch/kocevski/885953/ltcube_663120001_663379201_4FGL_J2040.5-1705_daily_bin1635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/885953/Model_4FGL_J2040.5-1705_daily_bin1635.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/885953/ft1_filtered_4FGL_J2040.5-1705_daily_bin1635.fits
Spacecraft file(s): /scratch/kocevski/885953/ft2_4FGL_J2040.5-1705_daily_bin1635.fits
Exposure map: /scratch/kocevski/885953/expmap_663120001_663379201_4FGL_J2040.5-1705_daily_bin1635.fits
Exposure cube: /scratch/kocevski/885953/ltcube_663120001_663379201_4FGL_J2040.5-1705_daily_bin1635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/885953/Model_4FGL_J2040.5-1705_daily_bin1635.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) = 2798.15594859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12619E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29720E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15977E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    93.713       1.0000         .10000E-03   10000.    
     5 'norm      '    50.365       1.0000         .10000E-03   10000.    
     6 'norm      '    20.282       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    21.242       1.0000         .10000E-03   10000.    
     9 'norm      '    .25350E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.426       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.764       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9919       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10646E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8430       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.663       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4114       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94456       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=   2798.061     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2803 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    560.42       -.22348E-05** at limit **
   2  Prefactor     .10000E-03    1053.6       -.14278E-05** at limit **
   3  Prefactor     .10000E-03    70.008       -.12899E-04** at limit **
   4  Prefactor     93.629        109.84        .19029E-05    .71644E-04
   5  norm          50.440        68.564        .46953E-06    .49274E-04
   6  norm          20.368        60.472        .64351E-06    .55908E-04
   7  Prefactor     .10000E-03    435.82        .23511E-05** at limit **
   8  norm          21.211        47.254        .39100E-06    .16512E-05
   9  norm          .10000E-03    58.732        .24304E-06** at limit **
  10  norm          .10000E-03    1.1991        .40415E-07** at limit **
  11  Prefactor     19.430        24.490        .51627E-07    .20462E-06
  12  Prefactor     .10000E-03    5.6539        .28907E-08** at limit **
  13  norm          10.767        11.129        .17289E-06    .23462E-04
  14  Prefactor     1.9928        9.8770        .13432E-05   -.80758E-05
  15  Prefactor     .10000E-03    137.30       -.91681E-07** at limit **
  16  norm          .10000E-03    20.274       -.13235E-07** at limit **
  17  Prefactor     .10000E-03    17.291       -.13957E-08** at limit **
  18  Prefactor     .10000E-03    16.012       -.97321E-07** at limit **
  19  Prefactor     7.8390        26.633        .12242E-06   -.47202E-05
  20  Prefactor     23.657        24.768       -.57378E-07   -.74237E-05
  21  Normalizat    1.4113        .44353        .23123E-05   -.17338E-04
  22  Prefactor     .94469        .20406       -.15379E-05    .10713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 93.6292
  norm       = 50.4399
  norm       = 20.3677
  Prefactor  = 0.000100003
  norm       = 21.2107
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.4302
  Prefactor  = 0.0001
  norm       = 10.7674
  Prefactor  = 1.99278
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.83899
  Prefactor  = 23.6573
  Normalizat = 1.41131
  Prefactor  = 0.944695
 **********
 **   18 **HESSE 
 **********

 FCN=   2798.061     FROM HESSE     STATUS=OK           336 CALLS     3139 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    560.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1055.2        .21394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    71.896        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     93.629        111.45        .20758E-03   -1.3770    
   5  norm          50.440        68.589        .56508E-04   -1.4286    
   6  norm          20.368        60.453        .88936E-04   -1.4805    
   7  Prefactor     .10000E-03    435.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.211        47.417        .86906E-04   -1.4787    
   9  norm          .10000E-03    58.779        .21459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.2052        .56514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.430        24.473        .90872E-04   -1.4826    
  12  Prefactor     .10000E-03    5.6567        .12285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.767        11.140        .12212E-03   -1.5052    
  14  Prefactor     1.9928        9.7786        .29355E-03   -1.5426    
  15  Prefactor     .10000E-03    137.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.8390        26.527        .14318E-03   -1.5148    
  20  Prefactor     23.657        24.734        .82344E-04   -1.4735    
  21  Normalizat    1.4113        .53555        .36331E-03   -.80302    
  22  Prefactor     .94469        .24674        .19571E-03   -.94596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10978e-10
Minuit parameter uncertainties:
  1  0.00258873
  2  0.00192932
  3  0.000140616
  4  111.702
  5  68.6966
  6  60.6361
  7  0.00230429
  8  47.5009
  9  8.15931e-06
  10  3.25951e-07
  11  24.4852
  12  1.37285e-07
  13  11.1421
  14  8.83085
  15  2.13056e-05
  16  2.44756e-06
  17  3.63546e-06
  18  3.30701e-06
  19  26.5665
  20  24.7443
  21  0.537701
  22  0.247029
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.993e+00  8.831e+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

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  9.447e-01  2.470e-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.411e+00  5.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/885953/likelihoodResults_663120001_663379201_4FGL_J2040.5-1705_daily_bin1635.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): 0
logL (Free Index) = 2797.98930038
delta logL = 0.0716783486187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2797.96520459
delta logL = 0.095774133039

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8738       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8359       1.0000          .0000       10.000    
     3 'Normalizat'    1.4295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93528       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2797.965     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      244 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8769        9.2373        .20502E-03   -.17024E-04
   2  Index         1.8362        1.1914        .12311E-01   -.26704E-04
   3  Normalizat    1.4295        .52386        .36133E-03   -.37118E-03
   4  Prefactor     .93525        .23923        .19651E-03   -.64997E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.87691
  Index      = 1.83622
  Normalizat = 1.42951
  Prefactor  = 0.935248
 **********
 **   18 **HESSE 
 **********

 FCN=   2797.965     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8769        9.3422        .82008E-05   -1.5314    
   2  Index         1.8362        1.2051        .49245E-03   -.68511    
   3  Normalizat    1.4295        .52433        .72265E-04   -.79779    
   4  Prefactor     .93525        .23945        .39303E-04   -.94920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26548e-10
Minuit parameter uncertainties:
  1  9.34571
  2  1.22541
  3  0.526329
  4  0.239718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/885953': 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): 0
logL (Free Index) = 2797.9652045
delta logL = 0.0957742196674

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  3.877e+00  9.346e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.836e+00  1.225e+00  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:  9.352e-01  2.397e-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.430e+00  5.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/885953/cmap_HighResolution_663120001_663379201_4FGL_J2040.5-1705_daily_bin1635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-02', job_status='DONE', photon_flux_upper_limit='3.15e-07', time_completed='2022-01-09 03:25:13.743711', job_id='885953', GAL2='0.94', fit_tolerance='1e-08', EG2='1.43', EG='1.41', time_epoch_completed='1641727513.74', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='9.58e-02', ts2='0.25', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1635' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  9 03:25:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 885953: <4FGL_J2040.5-1705_daily_bin1635> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin1635> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Jan  9 03:10:37 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  9 03:14:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  9 03:14:28 2022
Terminated at Sun Jan  9 03:25:14 2022
Results reported at Sun Jan  9 03:25:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1635 310.136 -17.0901 663120001 663379201 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 :                                   482.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            877 sec.

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

