/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 8 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 = 7416
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1738.0+8717_daily_bin79
RA = 264.501, Dec = 87.2851
tmin = 259804801, tmax = 260064001
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='929406', job_status='RUN', time_executed='2021-09-18 00:10:50.127448', time_epoch_executed='1631949050.13' WHERE source_name='4FGL J1738.0+8717' and cadence='daily' and bin_id='79'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929406

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929406/ft1_4FGL_J1738.0+8717_daily_bin79.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929406/ft2_4FGL_J1738.0+8717_daily_bin79.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929406/ft1_4FGL_J1738.0+8717_daily_bin79.fits outfile=/scratch/kocevski/929406/ft1_filteredMKT_4FGL_J1738.0+8717_daily_bin79.fits ra=264.501 dec=87.2851 rad=12.0 tmin=259804801.0 tmax=260064001.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.67
user 2.47
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929406/ft2_4FGL_J1738.0+8717_daily_bin79.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/929406/ft1_filteredMKT_4FGL_J1738.0+8717_daily_bin79.fits evtable="EVENTS" outfile="/scratch/kocevski/929406/ft1_filtered_4FGL_J1738.0+8717_daily_bin79.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929406/ft1_filtered_4FGL_J1738.0+8717_daily_bin79.fits" evtable="EVENTS" scfile=/scratch/kocevski/929406/ft2_4FGL_J1738.0+8717_daily_bin79.fits sctable="SC_DATA" outfile=/scratch/kocevski/929406/ltcube_259804801_260064001_4FGL_J1738.0+8717_daily_bin79.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/929406/ft2_4FGL_J1738.0+8717_daily_bin79.fits
.....................!
real 12.12
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929406/ft1_filtered_4FGL_J1738.0+8717_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/929406/ft2_4FGL_J1738.0+8717_daily_bin79.fits sctable="SC_DATA" expcube=/scratch/kocevski/929406/ltcube_259804801_260064001_4FGL_J1738.0+8717_daily_bin79.fits outfile=/scratch/kocevski/929406/expmap_259804801_260064001_4FGL_J1738.0+8717_daily_bin79.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/929406/ltcube_259804801_260064001_4FGL_J1738.0+8717_daily_bin79.fits
.....................!
real 190.26
user 185.21
sys 4.72

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/929406/ft1_filtered_4FGL_J1738.0+8717_daily_bin79.fits scfile=/scratch/kocevski/929406/ft2_4FGL_J1738.0+8717_daily_bin79.fits outfile=/scratch/kocevski/929406/cmap_259804801_260064001_4FGL_J1738.0+8717_daily_bin79.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
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929406/ft1_filtered_4FGL_J1738.0+8717_daily_bin79.fits scfile=/scratch/kocevski/929406/ft2_4FGL_J1738.0+8717_daily_bin79.fits outfile=/scratch/kocevski/929406/cmap_HighResolution_259804801_260064001_4FGL_J1738.0+8717_daily_bin79.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
real 0.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929406/ft1_filtered_4FGL_J1738.0+8717_daily_bin79.fits', '/scratch/kocevski/929406/ft2_4FGL_J1738.0+8717_daily_bin79.fits', expMap='/scratch/kocevski/929406/expmap_259804801_260064001_4FGL_J1738.0+8717_daily_bin79.fits', expCube='/scratch/kocevski/929406/ltcube_259804801_260064001_4FGL_J1738.0+8717_daily_bin79.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929406/Model_4FGL_J1738.0+8717_daily_bin79.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/929406/ft1_filtered_4FGL_J1738.0+8717_daily_bin79.fits
Spacecraft file(s): /scratch/kocevski/929406/ft2_4FGL_J1738.0+8717_daily_bin79.fits
Exposure map: /scratch/kocevski/929406/expmap_259804801_260064001_4FGL_J1738.0+8717_daily_bin79.fits
Exposure cube: /scratch/kocevski/929406/ltcube_259804801_260064001_4FGL_J1738.0+8717_daily_bin79.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929406/Model_4FGL_J1738.0+8717_daily_bin79.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) = 10201.574344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5129       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31671E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.797       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8938       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0072       1.0000         .10000E-03   10000.    
     6 'norm      '    .38415       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.576       1.0000         .10000E-03   10000.    
     9 'norm      '    3.5050       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5449       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.711       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    64.679       1.0000         .10000E-03   10000.    
    15 'norm      '    17.531       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8124       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5871       1.0000         .10000E-03   10000.    
    18 'Prefactor '    90.673       1.0000         .10000E-03   10000.    
    19 'norm      '    .23245E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    5.2755       1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.173       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92545       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92468       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=   10201.29     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2737 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5150        14.065        .59267E-07   -.31124E-04
   2  Prefactor     .10000E-03    4.4460        .64035E-06** at limit **
   3  Prefactor     14.797        11.544        .68461E-07   -.41354E-04
   4  Prefactor     9.8943        9.5453       -.15848E-06   -.13921E-04
   5  Prefactor     2.0069        10.857        .73701E-05   -.35867E-03
   6  norm          .38501        2.2939       -.59804E-06   -.22300E-03
   7  Prefactor     .10000E-03    5.4411        .19994E-08** at limit **
   8  Prefactor     12.579        12.073       -.63688E-06   -.11320E-03
   9  norm          3.5055        3.2646        .81904E-07   -.95279E-04
  10  Prefactor     .10000E-03    40.248        .57116E-06** at limit **
  11  Prefactor     5.5456        12.620        .51457E-07   -.22850E-04
  12  Prefactor     30.715        23.025        .27840E-06    .16941E-03
  13  Prefactor     .10000E-03    23.119       -.18103E-06** at limit **
  14  Prefactor     64.662        61.025       -.11093E-05   -.26329E-03
  15  norm          17.532        15.911        .23510E-06   -.75687E-04
  16  Prefactor     2.8174        3.4762       -.19456E-05   -.19078E-02
  17  Prefactor     1.5564        128.28        .14961E-04   -.10875E-03
  18  Prefactor     90.675        50.914        .23506E-06    .47667E-04
  19  norm          .22972E-01    .24914        .89902E-07   -.82957E-03
  20  norm          5.2756        4.3254        .33284E-07   -.38777E-03
  21  Prefactor     37.170        20.950       -.68537E-07   -.16446E-03
  22  Normalizat    .92511        .17804        .26264E-06   -.20096E-03
  23  Prefactor     .92487        .74778E-01   -.43677E-06   -.46143E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.51505
  Prefactor  = 0.000100001
  Prefactor  = 14.7972
  Prefactor  = 9.89426
  Prefactor  = 2.00689
  norm       = 0.385009
  Prefactor  = 0.0001
  Prefactor  = 12.5786
  norm       = 3.50554
  Prefactor  = 0.000100001
  Prefactor  = 5.54562
  Prefactor  = 30.7151
  Prefactor  = 0.0001
  Prefactor  = 64.6616
  norm       = 17.5315
  Prefactor  = 2.81736
  Prefactor  = 1.55636
  Prefactor  = 90.6749
  norm       = 0.0229725
  norm       = 5.27557
  Prefactor  = 37.1702
  Normalizat = 0.92511
  Prefactor  = 0.924867
 **********
 **   18 **HESSE 
 **********

 FCN=   10201.29     FROM HESSE     STATUS=OK           380 CALLS     3117 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5150        13.991        .15726E-03   -1.5197    
   2  Prefactor     .10000E-03    16.308        .40455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.797        11.534        .10412E-03   -1.4938    
   4  Prefactor     9.8943        9.5453        .12740E-03   -1.5079    
   5  Prefactor     2.0069        11.423        .14613E-02   -1.5425    
   6  norm          .38501        4.6905        .27829E-02   -1.5584    
   7  Prefactor     .10000E-03    5.4743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.579        11.858        .11295E-03   -1.4998    
   9  norm          3.5055        3.2428        .15890E-03   -1.5333    
  10  Prefactor     .10000E-03    40.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5456        12.606        .17062E-03   -1.5237    
  12  Prefactor     30.715        23.095        .72301E-04   -1.4599    
  13  Prefactor     .10000E-03    23.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     64.662        61.843        .49900E-04   -1.4098    
  15  norm          17.532        15.905        .47828E-03   -1.4870    
  16  Prefactor     2.8174        3.5754        .17221E-03   -1.5372    
  17  Prefactor     1.5564        131.04        .33692E-03   -1.5458    
  18  Prefactor     90.675        50.944        .42199E-04   -1.3801    
  19  norm          .22972E-01    1.9873        .93759E-03   -1.5678    
  20  norm          5.2756        4.3176        .17499E-03   -1.5249    
  21  Prefactor     37.170        20.929        .65735E-04   -1.4488    
  22  Normalizat    .92511        .20090        .35307E-03   -.95583    
  23  Prefactor     .92487        .84362E-01    .16143E-03   -.95278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88275e-08
Minuit parameter uncertainties:
  1  13.9984
  2  0.000239003
  3  11.5361
  4  9.5468
  5  9.57834
  6  2.68759
  7  4.31239e-06
  8  11.8606
  9  3.24295
  10  0.000332767
  11  12.6119
  12  23.1019
  13  7.14583e-05
  14  61.9043
  15  15.909
  16  3.57564
  17  28.6259
  18  50.9689
  19  0.426418
  20  4.31785
  21  20.9335
  22  0.201064
  23  0.0843736
Done.

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

Extracting fit parameters...

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  9.067e+01  5.097e+01  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:  9.249e-01  8.437e-02  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:  9.251e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.19
Ra Dec: 264.501 87.285
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 5.49e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.38e-05

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) = 10200.1243292
delta logL = 1.16786523189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10200.1242412
delta logL = 1.16795328654

Fit tolerance = 1e-08

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

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

 FCN=   10200.12     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      256 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     132.97        213.32        .87421E-03   -.50197E-05
   2  Index         1.5974        .86601        .16972        .96487E-04
   3  Normalizat    .94270        .16277        .79108E-01    .29308E-03
   4  Prefactor     .92506        .73152E-01    .45323E-01    .62790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 132.966
  Index      = 1.59745
  Normalizat = 0.942702
  Prefactor  = 0.925063
 **********
 **   18 **HESSE 
 **********

 FCN=   10200.12     FROM HESSE     STATUS=OK            29 CALLS      285 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     132.97        88.651        .34968E-04   -1.3397    
   2  Index         1.5974        .42596        .92689E-02   -.74846    
   3  Normalizat    .94270        .17695        .35015E-03   -.94975    
   4  Prefactor     .92506        .81703E-01    .16147E-03   -.95271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58492e-10
Minuit parameter uncertainties:
  1  88.7401
  2  0.426922
  3  0.177058
  4  0.0817141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929406': 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) = 10200.1242263
delta logL = 1.16796813766

Extracting fit parameters...

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  1.330e+02  8.874e+01  1.000e-04  1.000e+04 ( 1.000e-14)
501        Index:  1.597e+00  4.269e-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:  9.251e-01  8.171e-02  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:  9.427e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.50
Ra Dec: 264.501 87.285
Photon Index (Free Index): 1.60 +/- 0.43
Photon Flux (Free Index): 2.61e-08 +/- 2.63e-08
Energy Flux (Free Index): 5.95e-05 +/- 5.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/929406/cmap_HighResolution_259804801_260064001_4FGL_J1738.0+8717_daily_bin79.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.49e-08', energy_flux2='5.95e-05', photon_flux_error='3.08e-08', dlogl='1.17e+00', energy_flux='2.46e-05', photon_flux2='2.61e-08', job_status='DONE', time_completed='2021-09-18 00:27:04.722716', photon_index_error2='0.43', photon_index2='1.60', ts='7.19', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='5.44e-05', EG='0.93', time_epoch_completed='1631950024.72', return_code='0', job_id='929406', GAL2='0.93', EG2='0.94', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='2.63e-08', ts2='9.50', photon_index='2.20' WHERE bin_id='79' AND source_name='4FGL J1738.0+8717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:27:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 929406: <4FGL_J1738.0+8717_daily_bin79> in cluster <slac> Done

Job <4FGL_J1738.0+8717_daily_bin79> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 00:10:31 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 00:10:32 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:10:32 2021
Terminated at Sat Sep 18 00:27:05 2021
Results reported at Sat Sep 18 00:27:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.0+8717_daily_bin79 264.501 87.2851 259804801 260064001 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 :                                   971.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

