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


Performing analysis on: 4FGL_J1738.0+8717_daily_bin451
RA = 264.501, Dec = 87.2851
tmin = 356227201, tmax = 356486401
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='932225', job_status='RUN', time_executed='2021-09-18 00:20:41.529486', time_epoch_executed='1631949641.53' WHERE source_name='4FGL J1738.0+8717' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932225

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932225/ft1_4FGL_J1738.0+8717_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/932225/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/932225/ft2_4FGL_J1738.0+8717_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932225/ft1_4FGL_J1738.0+8717_daily_bin451.fits outfile=/scratch/kocevski/932225/ft1_filteredMKT_4FGL_J1738.0+8717_daily_bin451.fits ra=264.501 dec=87.2851 rad=12.0 tmin=356227201.0 tmax=356486401.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.08
user 2.88
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/932225/ft2_4FGL_J1738.0+8717_daily_bin451.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/932225/ft2_4FGL_J1738.0+8717_daily_bin451.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/932225/ft1_filteredMKT_4FGL_J1738.0+8717_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/932225/ft1_filtered_4FGL_J1738.0+8717_daily_bin451.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.51
user 0.31
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/932225/ft1_filtered_4FGL_J1738.0+8717_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/932225/ft2_4FGL_J1738.0+8717_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/932225/ltcube_356227201_356486401_4FGL_J1738.0+8717_daily_bin451.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/932225/ft2_4FGL_J1738.0+8717_daily_bin451.fits
.....................!
real 3.69
user 2.88
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932225/ft1_filtered_4FGL_J1738.0+8717_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/932225/ft2_4FGL_J1738.0+8717_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/932225/ltcube_356227201_356486401_4FGL_J1738.0+8717_daily_bin451.fits outfile=/scratch/kocevski/932225/expmap_356227201_356486401_4FGL_J1738.0+8717_daily_bin451.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/932225/ltcube_356227201_356486401_4FGL_J1738.0+8717_daily_bin451.fits
.....................!
real 190.47
user 185.18
sys 4.95

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

Setting source of interest to:
4FGL J1738.0+8717 @ 264.501 87.2851

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/932225/ft1_filtered_4FGL_J1738.0+8717_daily_bin451.fits scfile=/scratch/kocevski/932225/ft2_4FGL_J1738.0+8717_daily_bin451.fits outfile=/scratch/kocevski/932225/cmap_356227201_356486401_4FGL_J1738.0+8717_daily_bin451.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.501 yref=87.2851 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932225/ft1_filtered_4FGL_J1738.0+8717_daily_bin451.fits scfile=/scratch/kocevski/932225/ft2_4FGL_J1738.0+8717_daily_bin451.fits outfile=/scratch/kocevski/932225/cmap_HighResolution_356227201_356486401_4FGL_J1738.0+8717_daily_bin451.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.501 yref=87.2851 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/932225/ft1_filtered_4FGL_J1738.0+8717_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/932225/ft2_4FGL_J1738.0+8717_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/932225/Model_4FGL_J1738.0+8717_daily_bin451.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/932225/ft1_filtered_4FGL_J1738.0+8717_daily_bin451.fits.....................!
real 40.90
user 39.65
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/932225/ft1_filtered_4FGL_J1738.0+8717_daily_bin451.fits', '/scratch/kocevski/932225/ft2_4FGL_J1738.0+8717_daily_bin451.fits', expMap='/scratch/kocevski/932225/expmap_356227201_356486401_4FGL_J1738.0+8717_daily_bin451.fits', expCube='/scratch/kocevski/932225/ltcube_356227201_356486401_4FGL_J1738.0+8717_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/932225/Model_4FGL_J1738.0+8717_daily_bin451.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.0+8717'

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  5.760e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
501        Index:  2.202e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
502        Scale:  1.993e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/932225/ft1_filtered_4FGL_J1738.0+8717_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/932225/ft2_4FGL_J1738.0+8717_daily_bin451.fits
Exposure map: /scratch/kocevski/932225/expmap_356227201_356486401_4FGL_J1738.0+8717_daily_bin451.fits
Exposure cube: /scratch/kocevski/932225/ltcube_356227201_356486401_4FGL_J1738.0+8717_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/932225/Model_4FGL_J1738.0+8717_daily_bin451.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) = 2345.78196068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.962       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6928       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.185       1.0000         .10000E-03   10000.    
     6 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    171.30       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.607       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    61.946       1.0000         .10000E-03   10000.    
    15 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2482       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    105.55       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2787       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4904       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .68319       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0322       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2345.776     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2470 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.088        86.964       -.11152E-04   -.49128E-04
   2  Prefactor     1.6071        132.36        .37879E-04   -.22833E-04
   3  Prefactor     .10000E-03    14.833       -.16868E-05** at limit **
   4  Prefactor     .10000E-03    9.4369        .33194E-07** at limit **
   5  Prefactor     10.183        28.567        .21966E-05   -.10186E-04
   6  norm          .10000E-03    5.2107       -.58472E-08** at limit **
   7  Prefactor     .10000E-03    10.565        .38957E-07** at limit **
   8  Prefactor     .10000E-03    16.568        .34044E-06** at limit **
   9  norm          .10000E-03    2.5560       -.95042E-07** at limit **
  10  Prefactor     171.14        161.38       -.67120E-05   -.16408E-04
  11  Prefactor     9.3319        25.630        .11160E-05   -.10644E-04
  12  Prefactor     13.748        94.277        .26762E-04    .10924E-04
  13  Prefactor     .10000E-03    85.740        .36600E-05** at limit **
  14  Prefactor     61.949        121.83        .33840E-05   -.83626E-05
  15  norm          .10000E-03    18.102        .75487E-06** at limit **
  16  Prefactor     1.2481        3.4995        .59647E-06    .25981E-05
  17  Prefactor     .10000E-03    23.732       -.67066E-06** at limit **
  18  Prefactor     105.51        121.96       -.19269E-05   -.38653E-05
  19  norm          1.2786        1.1327        .14437E-06   -.24766E-04
  20  norm          3.4897        6.8865        .64508E-06    .34421E-05
  21  Prefactor     .10000E-03    15.427       -.98999E-07** at limit **
  22  Normalizat    .68340        .35213       -.11788E-04   -.13102E-04
  23  Prefactor     1.0322        .15342        .71239E-06   -.22043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.088
  Prefactor  = 1.60708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1827
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 171.142
  Prefactor  = 9.33186
  Prefactor  = 13.7482
  Prefactor  = 0.0001
  Prefactor  = 61.9489
  norm       = 0.0001
  Prefactor  = 1.24807
  Prefactor  = 0.0001
  Prefactor  = 105.506
  norm       = 1.27858
  norm       = 3.48968
  Prefactor  = 0.0001
  Normalizat = 0.683403
  Prefactor  = 1.03218
 **********
 **   18 **HESSE 
 **********

 FCN=   2345.776     FROM HESSE     STATUS=OK           368 CALLS     2838 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.088        87.354        .23342E-03   -1.3984    
   2  Prefactor     1.6071        135.47        .32349E-03   -1.5454    
   3  Prefactor     .10000E-03    14.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.4480        .14533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.183        28.567        .12555E-03   -1.5070    
   6  norm          .10000E-03    5.2223        .10791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.573        .15372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.5585        .75613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     171.14        161.99        .15414E-03   -1.3084    
  11  Prefactor     9.3319        25.628        .13113E-03   -1.5097    
  12  Prefactor     13.748        94.402        .10858E-03   -1.4966    
  13  Prefactor     .10000E-03    85.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     61.949        122.01        .50982E-04   -1.4132    
  15  norm          .10000E-03    18.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2481        3.4297        .14715E-03   -1.5485    
  17  Prefactor     .10000E-03    23.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     105.51        121.99        .19571E-03   -1.3650    
  19  norm          1.2786        1.1333        .39269E-04   -1.5482    
  20  norm          3.4897        6.8810        .17193E-03   -1.5334    
  21  Prefactor     .10000E-03    15.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .68340        .37576        .38931E-03   -1.0455    
  23  Prefactor     1.0322        .16664        .15385E-03   -.91665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59757e-10
Minuit parameter uncertainties:
  1  87.506
  2  29.5782
  3  5.60043e-06
  4  1.8192e-05
  5  28.6053
  6  1.74939e-05
  7  2.32127e-05
  8  9.01025e-05
  9  8.3457e-06
  10  162.41
  11  25.6579
  12  72.2153
  13  0.000165161
  14  122.51
  15  1.12425e-05
  16  3.43021
  17  1.51029e-05
  18  122.277
  19  1.13328
  20  6.88257
  21  8.39828e-06
  22  0.377189
  23  0.166719
Done.

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

Extracting fit parameters...

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  1.055e+02  1.223e+02  1.000e-04  1.000e+04 ( 1.000e-14)
501        Index:  2.202e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
502        Scale:  1.993e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.032e+00  1.667e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  6.834e-01  3.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 264.501 87.285
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 6.38e-08 +/- 7.39e-08
Energy Flux (Fixed Index): 2.86e-05 +/- 3.31e-05

TS (Fixed Index): 1.32
Ra Dec: 264.501 87.285
Photon Flux Upper Limit: 2.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/932225/likelihoodResults_356227201_356486401_4FGL_J1738.0+8717_daily_bin451.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) = 2345.74118934
delta logL = 0.0347458780939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2345.73980177
delta logL = 0.0361334490062

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    135.75       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9695       1.0000          .0000       10.000    
     3 'Normalizat'    .69305       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0311       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+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=   2345.740     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      303 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     135.83        188.93        .17283E-03    .11117E-04
   2  Index         1.9693        .86994        .71129E-02    .14165E-03
   3  Normalizat    .69322        .33740        .38689E-03   -.11857E-04
   4  Prefactor     1.0311        .16206        .15393E-03    .17246E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 135.834
  Index      = 1.9693
  Normalizat = 0.69322
  Prefactor  = 1.0311
 **********
 **   18 **HESSE 
 **********

 FCN=   2345.740     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     135.83        184.26        .69133E-05   -1.3372    
   2  Index         1.9693        .84816        .14226E-02   -.65120    
   3  Normalizat    .69322        .33734        .15476E-04   -1.0416    
   4  Prefactor     1.0311        .16211        .61570E-05   -.91700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10629e-11
Minuit parameter uncertainties:
  1  185.045
  2  0.854721
  3  0.338351
  4  0.162187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932225': 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) = 2345.73980135
delta logL = 0.0361338706798

Extracting fit parameters...

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  1.358e+02  1.850e+02  1.000e-04  1.000e+04 ( 1.000e-14)
501        Index:  1.969e+00  8.547e-01  0.000e+00  1.000e+01 (-1.000e+00)
502        Scale:  1.993e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.031e+00  1.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  6.932e-01  3.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 264.501 87.285
Photon Index (Free Index): 1.97 +/- 0.85
Photon Flux (Free Index): 5.07e-08 +/- 7.92e-08
Energy Flux (Free Index): 3.79e-05 +/- 6.31e-05

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/932225/cmap_HighResolution_356227201_356486401_4FGL_J1738.0+8717_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-02', comment='SUCCESS', photon_flux='6.38e-08', energy_flux2='3.79e-05', photon_flux_error='7.39e-08', dlogl='3.61e-02', energy_flux='2.86e-05', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-09-18 00:28:50.852700', photon_index_error2='0.85', photon_index2='1.97', ts='1.32', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.53e-07', energy_flux_error2='6.31e-05', EG='0.68', time_epoch_completed='1631950130.85', return_code='0', job_id='932225', GAL2='1.03', EG2='0.69', return_code2='0', energy_flux_error='3.31e-05', photon_flux_error2='7.92e-08', ts2='1.39', photon_index='2.20' WHERE bin_id='451' AND source_name='4FGL J1738.0+8717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:28:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 932225: <4FGL_J1738.0+8717_daily_bin451> in cluster <slac> Done

Job <4FGL_J1738.0+8717_daily_bin451> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 00:20:25 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 00:20:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 00:20:26 2021
Terminated at Sat Sep 18 00:28:51 2021
Results reported at Sat Sep 18 00:28:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.0+8717_daily_bin451 264.501 87.2851 356227201 356486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1738.0+8717 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   483.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   505 sec.
    Turnaround time :                            506 sec.

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

