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


Performing analysis on: 4FGL_J1738.0+8717_daily_bin61
RA = 264.501, Dec = 87.2851
tmin = 255139201, tmax = 255398401
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='929378', job_status='RUN', time_executed='2021-09-18 00:13:39.438328', time_epoch_executed='1631949219.44' WHERE source_name='4FGL J1738.0+8717' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929378

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929378/ft1_4FGL_J1738.0+8717_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929378/ft2_4FGL_J1738.0+8717_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929378/ft1_4FGL_J1738.0+8717_daily_bin61.fits outfile=/scratch/kocevski/929378/ft1_filteredMKT_4FGL_J1738.0+8717_daily_bin61.fits ra=264.501 dec=87.2851 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.43
user 7.12
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929378/ft1_filtered_4FGL_J1738.0+8717_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/929378/ft2_4FGL_J1738.0+8717_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/929378/ltcube_255139201_255398401_4FGL_J1738.0+8717_daily_bin61.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/929378/ft2_4FGL_J1738.0+8717_daily_bin61.fits
.....................!
real 12.00
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929378/ft1_filtered_4FGL_J1738.0+8717_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/929378/ft2_4FGL_J1738.0+8717_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/929378/ltcube_255139201_255398401_4FGL_J1738.0+8717_daily_bin61.fits outfile=/scratch/kocevski/929378/expmap_255139201_255398401_4FGL_J1738.0+8717_daily_bin61.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/929378/ltcube_255139201_255398401_4FGL_J1738.0+8717_daily_bin61.fits
.....................!
real 190.85
user 185.13
sys 5.36

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/929378/ft1_filtered_4FGL_J1738.0+8717_daily_bin61.fits scfile=/scratch/kocevski/929378/ft2_4FGL_J1738.0+8717_daily_bin61.fits outfile=/scratch/kocevski/929378/cmap_255139201_255398401_4FGL_J1738.0+8717_daily_bin61.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929378/ft1_filtered_4FGL_J1738.0+8717_daily_bin61.fits scfile=/scratch/kocevski/929378/ft2_4FGL_J1738.0+8717_daily_bin61.fits outfile=/scratch/kocevski/929378/cmap_HighResolution_255139201_255398401_4FGL_J1738.0+8717_daily_bin61.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43737E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4217       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.107       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1889       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8429       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9717       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4687       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5068       1.0000         .10000E-03   10000.    
    13 'Prefactor '    68.867       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.340       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45250E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7936       1.0000         .10000E-03   10000.    
    18 'Prefactor '    93.437       1.0000         .10000E-03   10000.    
    19 'norm      '    .90214       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2445       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9123       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78502       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0387       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=   7383.541     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2566 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9464       -.28283E-05** at limit **
   2  Prefactor     .10000E-03    4.7787        .25304E-06** at limit **
   3  Prefactor     3.4168        12.155        .15309E-06   -.10940E-03
   4  Prefactor     12.105        11.057       -.52612E-06   -.63311E-04
   5  Prefactor     .10000E-03    10.871        .12091E-05** at limit **
   6  norm          4.1888        4.6248       -.10371E-06   -.49355E-03
   7  Prefactor     .10000E-03    9.3198        .10249E-05** at limit **
   8  Prefactor     8.8441        16.823        .39817E-05   -.76394E-04
   9  norm          2.9712        5.4222       -.14266E-05   -.80215E-03
  10  Prefactor     7.4723        91.918        .17098E-04   -.98250E-05
  11  Prefactor     .10000E-03    9.3378        .77306E-06** at limit **
  12  Prefactor     6.4986        38.839        .28646E-05   -.41435E-04
  13  Prefactor     68.881        60.098        .14927E-04   -.23786E-04
  14  Prefactor     12.333        82.011       -.12598E-04   -.14990E-04
  15  norm          .10000E-03    13.078        .37259E-07** at limit **
  16  Prefactor     .10001E-03    1.5129        .34137E-06** at limit **
  17  Prefactor     3.8950        47.856       -.27468E-05   -.86387E-04
  18  Prefactor     93.497        63.375        .48789E-04   -.13129E-04
  19  norm          .90181        .75727        .20075E-06   -.32151E-03
  20  norm          2.2441        3.6986        .65006E-06   -.52000E-03
  21  Prefactor     1.9223        39.912       -.11872E-04   -.87079E-04
  22  Normalizat    .78499        .21586       -.87708E-05   -.97507E-05
  23  Prefactor     1.0387        .90780E-01    .35357E-06   -.27537E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.4168
  Prefactor  = 12.1054
  Prefactor  = 0.0001
  norm       = 4.18884
  Prefactor  = 0.0001
  Prefactor  = 8.84412
  norm       = 2.97123
  Prefactor  = 7.47234
  Prefactor  = 0.0001
  Prefactor  = 6.49856
  Prefactor  = 68.8813
  Prefactor  = 12.3328
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 3.895
  Prefactor  = 93.4975
  norm       = 0.901809
  norm       = 2.2441
  Prefactor  = 1.9223
  Normalizat = 0.784986
  Prefactor  = 1.03866
 **********
 **   18 **HESSE 
 **********

 FCN=   7383.541     FROM HESSE     STATUS=OK           380 CALLS     2946 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.407        .35995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4168        12.115        .21868E-03   -1.5338    
   4  Prefactor     12.105        11.056        .11513E-03   -1.5012    
   5  Prefactor     .10000E-03    11.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1888        4.5948        .18303E-03   -1.5299    
   7  Prefactor     .10000E-03    9.3527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8441        16.501        .13479E-03   -1.5113    
   9  norm          2.9712        5.3020        .21215E-03   -1.5363    
  10  Prefactor     7.4723        91.084        .14675E-03   -1.5161    
  11  Prefactor     .10000E-03    9.3724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.4986        38.749        .15733E-03   -1.5198    
  13  Prefactor     68.881        60.182        .48369E-04   -1.4046    
  14  Prefactor     12.333        82.288        .11403E-03   -1.5005    
  15  norm          .10000E-03    13.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    10.960        .19107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8950        42.135        .20725E-03   -1.5313    
  18  Prefactor     93.497        63.126        .20788E-03   -1.3771    
  19  norm          .90181        .72866        .63991E-03   -1.5518    
  20  norm          2.2441        3.6462        .19783E-03   -1.5408    
  21  Prefactor     1.9223        39.517        .30060E-03   -1.5431    
  22  Normalizat    .78499        .23705        .38283E-03   -1.0063    
  23  Prefactor     1.0387        .10102        .15581E-03   -.91452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97176e-09
Minuit parameter uncertainties:
  1  1.07641e-05
  2  0.000419682
  3  12.1234
  4  11.0576
  5  1.83964e-05
  6  4.59516
  7  2.63555e-06
  8  16.5094
  9  5.30287
  10  52.2759
  11  1.12828e-05
  12  31.7677
  13  60.235
  14  63.8405
  15  2.73371e-05
  16  0.000574854
  17  25.6442
  18  63.1712
  19  0.728664
  20  3.64652
  21  17.4442
  22  0.237359
  23  0.10104
Done.

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

Extracting fit parameters...

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  9.350e+01  6.317e+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:  1.039e+00  1.010e-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:  7.850e-01  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.66
Ra Dec: 264.501 87.285
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 5.66e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.71e-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) = 7383.3743692
delta logL = 0.166449121469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7383.3740933
delta logL = 0.166725022047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    125.30       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9041       1.0000          .0000       10.000    
     3 'Normalizat'    .79982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0361       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=   7383.374     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      311 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     125.28        97.577        .17980E-03    .25013E-04
   2  Index         1.9039        .50654        .79328E-02    .32236E-03
   3  Normalizat    .79983        .20928        .37956E-03    .27705E-04
   4  Prefactor     1.0361        .97004E-01    .15599E-03    .68874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 125.28
  Index      = 1.9039
  Normalizat = 0.799832
  Prefactor  = 1.03609
 **********
 **   18 **HESSE 
 **********

 FCN=   7383.374     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     125.28        95.891        .35960E-04   -1.3465    
   2  Index         1.9039        .49757        .15866E-02   -.66775    
   3  Normalizat    .79983        .20926        .15183E-04   -1.0007    
   4  Prefactor     1.0361        .97040E-01    .62394E-05   -.91536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55042e-12
Minuit parameter uncertainties:
  1  96.0102
  2  0.498911
  3  0.209474
  4  0.0970567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929378': 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) = 7383.37409316
delta logL = 0.16672516739

Extracting fit parameters...

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  1.253e+02  9.601e+01  1.000e-04  1.000e+04 ( 1.000e-14)
501        Index:  1.904e+00  4.989e-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.036e+00  9.706e-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:  7.998e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.99
Ra Dec: 264.501 87.285
Photon Index (Free Index): 1.90 +/- 0.50
Photon Flux (Free Index): 4.12e-08 +/- 3.86e-08
Energy Flux (Free Index): 3.66e-05 +/- 3.72e-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/929378/cmap_HighResolution_255139201_255398401_4FGL_J1738.0+8717_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.66e-08', energy_flux2='3.66e-05', photon_flux_error='3.82e-08', dlogl='1.67e-01', energy_flux='2.53e-05', photon_flux2='4.12e-08', job_status='DONE', time_completed='2021-09-18 00:27:01.076397', photon_index_error2='0.50', photon_index2='1.90', ts='5.66', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='3.72e-05', EG='0.78', time_epoch_completed='1631950021.08', return_code='0', job_id='929378', GAL2='1.04', EG2='0.80', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='3.86e-08', ts2='5.99', photon_index='2.20' WHERE bin_id='61' AND source_name='4FGL J1738.0+8717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:27:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 929378: <4FGL_J1738.0+8717_daily_bin61> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.0+8717_daily_bin61 264.501 87.2851 255139201 255398401 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 :                                   796.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

