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


Performing analysis on: 4FGL_J1738.2+4000_daily_bin976
RA = 264.56, Dec = 40.0099
tmin = 492307201, tmax = 492566401
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='946997', job_status='RUN', time_executed='2021-09-18 01:07:34.108950', time_epoch_executed='1631952454.11' WHERE source_name='4FGL J1738.2+4000' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946997

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946997/ft1_4FGL_J1738.2+4000_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946997/ft2_4FGL_J1738.2+4000_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946997/ft1_4FGL_J1738.2+4000_daily_bin976.fits outfile=/scratch/kocevski/946997/ft1_filteredMKT_4FGL_J1738.2+4000_daily_bin976.fits ra=264.56 dec=40.0099 rad=12.0 tmin=492307201.0 tmax=492566401.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 3.69
user 3.46
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/946997/ft2_4FGL_J1738.2+4000_daily_bin976.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/946997/ft2_4FGL_J1738.2+4000_daily_bin976.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/946997/ft1_filteredMKT_4FGL_J1738.2+4000_daily_bin976.fits evtable="EVENTS" outfile="/scratch/kocevski/946997/ft1_filtered_4FGL_J1738.2+4000_daily_bin976.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946997/ft1_filtered_4FGL_J1738.2+4000_daily_bin976.fits" evtable="EVENTS" scfile=/scratch/kocevski/946997/ft2_4FGL_J1738.2+4000_daily_bin976.fits sctable="SC_DATA" outfile=/scratch/kocevski/946997/ltcube_492307201_492566401_4FGL_J1738.2+4000_daily_bin976.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/946997/ft2_4FGL_J1738.2+4000_daily_bin976.fits
.....................!
real 11.87
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946997/ft1_filtered_4FGL_J1738.2+4000_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/946997/ft2_4FGL_J1738.2+4000_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/946997/ltcube_492307201_492566401_4FGL_J1738.2+4000_daily_bin976.fits outfile=/scratch/kocevski/946997/expmap_492307201_492566401_4FGL_J1738.2+4000_daily_bin976.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/946997/ltcube_492307201_492566401_4FGL_J1738.2+4000_daily_bin976.fits
.....................!
real 192.17
user 187.26
sys 4.59

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 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1738.2+4000 @ 264.56 40.0099

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/946997/ft1_filtered_4FGL_J1738.2+4000_daily_bin976.fits scfile=/scratch/kocevski/946997/ft2_4FGL_J1738.2+4000_daily_bin976.fits outfile=/scratch/kocevski/946997/cmap_492307201_492566401_4FGL_J1738.2+4000_daily_bin976.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=264.56 yref=40.0099 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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946997/ft1_filtered_4FGL_J1738.2+4000_daily_bin976.fits scfile=/scratch/kocevski/946997/ft2_4FGL_J1738.2+4000_daily_bin976.fits outfile=/scratch/kocevski/946997/cmap_HighResolution_492307201_492566401_4FGL_J1738.2+4000_daily_bin976.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=264.56 yref=40.0099 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/946997/ft1_filtered_4FGL_J1738.2+4000_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/946997/ft2_4FGL_J1738.2+4000_daily_bin976.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/946997/Model_4FGL_J1738.2+4000_daily_bin976.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/946997/ft1_filtered_4FGL_J1738.2+4000_daily_bin976.fits.....................!
real 50.07
user 48.74
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/946997/ft1_filtered_4FGL_J1738.2+4000_daily_bin976.fits', '/scratch/kocevski/946997/ft2_4FGL_J1738.2+4000_daily_bin976.fits', expMap='/scratch/kocevski/946997/expmap_492307201_492566401_4FGL_J1738.2+4000_daily_bin976.fits', expCube='/scratch/kocevski/946997/ltcube_492307201_492566401_4FGL_J1738.2+4000_daily_bin976.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/946997/Model_4FGL_J1738.2+4000_daily_bin976.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.2+4000'

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  6.394e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
327        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  1.525e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/946997/ft1_filtered_4FGL_J1738.2+4000_daily_bin976.fits
Spacecraft file(s): /scratch/kocevski/946997/ft2_4FGL_J1738.2+4000_daily_bin976.fits
Exposure map: /scratch/kocevski/946997/expmap_492307201_492566401_4FGL_J1738.2+4000_daily_bin976.fits
Exposure cube: /scratch/kocevski/946997/ltcube_492307201_492566401_4FGL_J1738.2+4000_daily_bin976.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/946997/Model_4FGL_J1738.2+4000_daily_bin976.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) = 5649.86829095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    76.856       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7424       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.125       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3771       1.0000         .10000E-03   10000.    
     6 'norm      '    1.6692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8393       1.0000         .10000E-03   10000.    
     8 'norm      '    .11036E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1291       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4963       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.537       1.0000         .10000E-03   10000.    
    17 'Prefactor '    64.588       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    65.461       1.0000         .10000E-03   10000.    
    23 'norm      '    5.6545       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    17.867       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3423       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .62410       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5649.861     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3689 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          76.856        66.632         .0000        .53529E-03
   2  Prefactor     .10000E-03    .98647         .0000    ** at limit **
   3  Prefactor     3.7416        1.7879         .0000       -.30355E-03
   4  Prefactor     12.125        5.0532         .0000        .42864E-02
   5  norm          2.3771        1.5691         .0000       -.13652E-03
   6  norm          1.6694        1.1055         .0000        .12443E-02
   7  Prefactor     6.8376        8.6650         .0000       -.41581E-03
   8  norm          .10000E-03    .70240         .0000    ** at limit **
   9  norm          2.1290        12.131         .0000        .52339E-03
  10  norm          1.4965        2.1896         .0000        .59461E-03
  11  Prefactor     .10000E-03    1.8153         .0000    ** at limit **
  12  Prefactor     .10001E-03    20.948         .0000    ** at limit **
  13  norm          .10000E-03    2.7132         .0000    ** at limit **
  14  Prefactor     .10000E-03    23.127         .0000    ** at limit **
  15  Prefactor     .10003E-03    96.700         .0000    ** at limit **
  16  norm          11.538        6.9218         .0000       -.61326E-02
  17  Prefactor     64.589        55.767         .0000       -.74730E-03
  18  Prefactor     .10000E-03    30.987         .0000    ** at limit **
  19  Prefactor     .10000E-03    3.7021         .0000    ** at limit **
  20  Prefactor     .10000E-03    4.0735         .0000    ** at limit **
  21  Prefactor     .10022E-03    33.143         .0000    ** at limit **
  22  Prefactor     65.460        77.153         .0000        .59174E-03
  23  norm          5.6543        2.5692         .0000       -.19800E-04
  24  norm          .10017E-03    28.212         .0000    ** at limit **
  25  norm          17.868        8.9853         .0000        .35202E-04
  26  Prefactor     1.3438        9.7392         .0000        .18389E-01
  27  Prefactor     .10000E-03    2.3242         .0000    ** at limit **
  28  Normalizat    .62398        .24924         .0000        .13638E-04
  29  Prefactor     1.0503        .14678         .0000       -.16774E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 76.8556
  Prefactor  = 0.0001
  Prefactor  = 3.74159
  Prefactor  = 12.1247
  norm       = 2.37713
  norm       = 1.66937
  Prefactor  = 6.83756
  norm       = 0.0001
  norm       = 2.12905
  norm       = 1.49655
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  norm       = 11.5377
  Prefactor  = 64.5888
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100216
  Prefactor  = 65.4603
  norm       = 5.65428
  norm       = 0.000100172
  norm       = 17.8681
  Prefactor  = 1.34376
  Prefactor  = 0.0001
  Normalizat = 0.623983
  Prefactor  = 1.0503
 **********
 **   18 **HESSE 
 **********

 FCN=   5649.861     FROM HESSE     STATUS=OK           549 CALLS     4238 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          76.856        66.472        .45804E-04   -1.3952    
   2  Prefactor     .10000E-03    3.5821        .12677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7416        1.5956        .58302E-04   -1.5321    
   4  Prefactor     12.125        5.0461        .99524E-04   -1.5011    
   5  norm          2.3771        1.5698        .74240E-04   -1.5400    
   6  norm          1.6694        1.1047        .16316E-03   -1.5450    
   7  Prefactor     6.8376        8.5054        .15342E-03   -1.5185    
   8  norm          .10000E-03    1.8347        .11820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1290        12.059        .28257E-03   -1.5416    
  10  norm          1.4965        2.1496        .12079E-03   -1.5463    
  11  Prefactor     .10000E-03    1.8299        .98862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    20.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.7358        .12076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    96.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.538        6.9158        .11794E-03   -1.5028    
  17  Prefactor     64.589        55.638        .49935E-04   -1.4099    
  18  Prefactor     .10000E-03    31.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.7034        .14124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0856        .14815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10022E-03    33.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     65.460        77.115        .49603E-04   -1.4088    
  23  norm          5.6543        2.5695        .78915E-04   -1.5232    
  24  norm          .10017E-03    28.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          17.868        8.9829        .94754E-04   -1.4862    
  26  Prefactor     1.3438        9.7013        .18910E-02   -1.5476    
  27  Prefactor     .10000E-03    2.3341        .11188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .62398        .28691        .36268E-03   -1.0698    
  29  Prefactor     1.0503        .17219        .18283E-03   -.91071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11724e-08
Minuit parameter uncertainties:
  1  66.5368
  2  7.11245e-05
  3  1.59559
  4  5.04627
  5  1.56987
  6  1.10468
  7  8.50695
  8  3.37386e-06
  9  10.137
  10  2.14975
  11  2.33177e-06
  12  0.000969859
  13  3.318e-07
  14  9.31145e-05
  15  0.00315377
  16  6.91626
  17  55.6828
  18  0.000641638
  19  9.22408e-05
  20  4.54139e-05
  21  0.00535412
  22  77.2325
  23  2.56956
  24  0.00440694
  25  8.98356
  26  7.2225
  27  1.83146e-06
  28  0.287598
  29  0.172276
Done.

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

Extracting fit parameters...

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  9.311e-05  1.000e-04  1.000e+04 ( 1.000e-14)
327        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  1.525e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  1.050e+00  1.723e-01  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
680   Normalization:  6.240e-01  2.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 264.560 40.010
Photon Flux Upper Limit: 6.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946997/likelihoodResults_492307201_492566401_4FGL_J1738.2+4000_daily_bin976.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) = 5649.86082762
delta logL = -0.000205841515708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5649.86062278
delta logL = -1.00576198747e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7889       1.0000          .0000       10.000    
     3 'Normalizat'    .62398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6840E+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=   5649.861     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      281 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10290E-03    5.8981        .18142E-01** at limit **
   2  Index         2.7105        5.9400        .50000        .18959E-04
   3  Normalizat    .62398        .30486E-02    .36268E-03    .25077E-06
   4  Prefactor     1.0503        .19686E-02    .18283E-03   -.16975E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102905
  Index      = 2.71054
  Normalizat = 0.623984
  Prefactor  = 1.0503
 **********
 **   18 **HESSE 
 **********

 FCN=   5649.861     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10290E-03    59.452        .30907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7105        8.4065        .50000       -.47562    
   3  Normalizat    .62398        .97035E-02    .14507E-04   -1.0697    
   4  Prefactor     1.0503        .62659E-02    .73134E-05   -.91071    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.36056e-09
Minuit parameter uncertainties:
  1  0.0263094
  2  184.451
  3  0.00970357
  4  0.00626587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946997': 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) = 5649.86062251
delta logL = -7.34421519155e-07

Extracting fit parameters...

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  1.029e-04  2.631e-02  1.000e-04  1.000e+04 ( 1.000e-14)
327        Index:  2.711e+00  1.845e+02  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  1.525e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  1.050e+00  6.266e-03  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
680   Normalization:  6.240e-01  9.704e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.560 40.010

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/946997/cmap_HighResolution_492307201_492566401_4FGL_J1738.2+4000_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-09-18 01:21:47.430004', job_id='946997', GAL2='1.05', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1631953307.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-7.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='976' AND source_name='4FGL J1738.2+4000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:21:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 946997: <4FGL_J1738.2+4000_daily_bin976> in cluster <slac> Done

Job <4FGL_J1738.2+4000_daily_bin976> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep 18 01:05:26 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:05:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 01:05:28 2021
Terminated at Sat Sep 18 01:21:48 2021
Results reported at Sat Sep 18 01:21:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.2+4000_daily_bin976 264.56 40.0099 492307201 492566401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1738.2+4000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   850.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            982 sec.

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

