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


Performing analysis on: 4FGL_J1751.6+2921_daily_bin717
RA = 267.904, Dec = 29.3582
tmin = 425174401, tmax = 425433601
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='218823', job_status='RUN', time_executed='2021-09-18 17:20:46.755496', time_epoch_executed='1632010846.76' WHERE source_name='4FGL J1751.6+2921' and cadence='daily' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218823/ft1_4FGL_J1751.6+2921_daily_bin717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218823/ft2_4FGL_J1751.6+2921_daily_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/218823/ft1_4FGL_J1751.6+2921_daily_bin717.fits outfile=/scratch/kocevski/218823/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin717.fits ra=267.904 dec=29.3582 rad=12.0 tmin=425174401.0 tmax=425433601.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 5.22
user 4.98
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/218823/ft2_4FGL_J1751.6+2921_daily_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/218823/ft2_4FGL_J1751.6+2921_daily_bin717.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/218823/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/218823/ft1_filtered_4FGL_J1751.6+2921_daily_bin717.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/218823/ft1_filtered_4FGL_J1751.6+2921_daily_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/218823/ft2_4FGL_J1751.6+2921_daily_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/218823/ltcube_425174401_425433601_4FGL_J1751.6+2921_daily_bin717.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/218823/ft2_4FGL_J1751.6+2921_daily_bin717.fits
.....................!
real 12.36
user 12.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218823/ft1_filtered_4FGL_J1751.6+2921_daily_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/218823/ft2_4FGL_J1751.6+2921_daily_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/218823/ltcube_425174401_425433601_4FGL_J1751.6+2921_daily_bin717.fits outfile=/scratch/kocevski/218823/expmap_425174401_425433601_4FGL_J1751.6+2921_daily_bin717.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/218823/ltcube_425174401_425433601_4FGL_J1751.6+2921_daily_bin717.fits
.....................!
real 189.67
user 185.17
sys 4.13

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 J1751.6+2921 @ 267.904 29.3582

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/218823/ft1_filtered_4FGL_J1751.6+2921_daily_bin717.fits scfile=/scratch/kocevski/218823/ft2_4FGL_J1751.6+2921_daily_bin717.fits outfile=/scratch/kocevski/218823/cmap_425174401_425433601_4FGL_J1751.6+2921_daily_bin717.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=267.904 yref=29.3582 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/218823/ft1_filtered_4FGL_J1751.6+2921_daily_bin717.fits scfile=/scratch/kocevski/218823/ft2_4FGL_J1751.6+2921_daily_bin717.fits outfile=/scratch/kocevski/218823/cmap_HighResolution_425174401_425433601_4FGL_J1751.6+2921_daily_bin717.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=267.904 yref=29.3582 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/218823/ft1_filtered_4FGL_J1751.6+2921_daily_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/218823/ft2_4FGL_J1751.6+2921_daily_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/218823/Model_4FGL_J1751.6+2921_daily_bin717.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/218823/ft1_filtered_4FGL_J1751.6+2921_daily_bin717.fits.....................!
real 68.95
user 67.43
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/218823/ft1_filtered_4FGL_J1751.6+2921_daily_bin717.fits', '/scratch/kocevski/218823/ft2_4FGL_J1751.6+2921_daily_bin717.fits', expMap='/scratch/kocevski/218823/expmap_425174401_425433601_4FGL_J1751.6+2921_daily_bin717.fits', expCube='/scratch/kocevski/218823/ltcube_425174401_425433601_4FGL_J1751.6+2921_daily_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/218823/Model_4FGL_J1751.6+2921_daily_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1751.6+2921'

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  9.593e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  7.773e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/218823/ft1_filtered_4FGL_J1751.6+2921_daily_bin717.fits
Spacecraft file(s): /scratch/kocevski/218823/ft2_4FGL_J1751.6+2921_daily_bin717.fits
Exposure map: /scratch/kocevski/218823/expmap_425174401_425433601_4FGL_J1751.6+2921_daily_bin717.fits
Exposure cube: /scratch/kocevski/218823/ltcube_425174401_425433601_4FGL_J1751.6+2921_daily_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/218823/Model_4FGL_J1751.6+2921_daily_bin717.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) = 7623.56219536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    126.34       1.0000         .10000E-03   10000.    
     3 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    79.317       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.284       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3087       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8033       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96621       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0986       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7623.554     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2303 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.880       -.86078E-05** at limit **
   2  Prefactor     126.34        84.146        .63102E-05   -.17588E-04
   3  norm          .10000E-03    5.9358       -.39690E-06** at limit **
   4  norm          .10000E-03    86.739        .19332E-04** at limit **
   5  Prefactor     .10000E-03    78.092        .41167E-04** at limit **
   6  Prefactor     .10000E-03    49.357        .15807E-05** at limit **
   7  Prefactor     .10000E-03    4.7858        .19751E-06** at limit **
   8  Prefactor     .10000E-03    29.903       -.23555E-04** at limit **
   9  Prefactor     79.299        53.061       -.12752E-04    .18268E-03
  10  Prefactor     .10001E-03    108.68       -.66005E-04** at limit **
  11  Prefactor     .10000E-03    3.7260        .10835E-06** at limit **
  12  norm          .10000E-03    .67319        .79994E-07** at limit **
  13  norm          14.259        63.725       -.47539E-04   -.28923E-05
  14  Prefactor     9.3099        7.6682        .14534E-05   -.75528E-04
  15  norm          .10000E-03    6.4359       -.25653E-06** at limit **
  16  Prefactor     .10000E-03    2.0731        .64410E-07** at limit **
  17  Prefactor     .10000E-03    24.836        .18720E-04** at limit **
  18  norm          .10000E-03    9.8650        .21957E-06** at limit **
  19  Prefactor     6.8030        10.260       -.66315E-06   -.15227E-03
  20  norm          .10000E-03    19.435        .58450E-05** at limit **
  21  Normalizat    .96596        .26340        .33857E-05   -.51777E-04
  22  Prefactor     1.0987        .10470        .11404E-06    .31729E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 126.344
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.2986
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.2593
  Prefactor  = 9.30989
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.80304
  norm       = 0.0001
  Normalizat = 0.965963
  Prefactor  = 1.09872
 **********
 **   18 **HESSE 
 **********

 FCN=   7623.554     FROM HESSE     STATUS=OK           330 CALLS     2633 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     126.34        84.386        .35815E-04   -1.3455    
   3  norm          .10000E-03    5.9909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    86.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    78.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     79.299        52.903        .45094E-04   -1.3925    
  10  Prefactor     .10001E-03    107.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7334        .16458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .67590        .69952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.259        63.967        .10598E-03   -1.4953    
  14  Prefactor     9.3099        7.6644        .13136E-03   -1.5098    
  15  norm          .10000E-03    6.4650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0969        .12276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.8664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.8030        10.264        .15383E-03   -1.5186    
  20  norm          .10000E-03    19.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96596        .29859        .42570E-03   -.94180    
  22  Prefactor     1.0987        .11942        .16512E-03   -.89507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30125e-10
Minuit parameter uncertainties:
  1  5.58225e-06
  2  84.4661
  3  6.59891e-05
  4  6.82008e-05
  5  0.000207417
  6  5.57277e-05
  7  2.6797e-05
  8  0.000124726
  9  52.9348
  10  0.00152164
  11  1.03095e-05
  12  7.97668e-06
  13  60.5104
  14  7.66516
  15  3.24336e-07
  16  1.73071e-06
  17  1.11122e-05
  18  4.97841e-07
  19  10.2663
  20  9.81971e-08
  21  0.299106
  22  0.119446
Done.

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

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  7.930e+01  5.293e+01  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  7.773e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  1.099e+00  1.194e-01  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  9.660e-01  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.57
Ra Dec: 267.904 29.358
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 7.02e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.81e-05

TS (Fixed Index): 3.57
Ra Dec: 267.904 29.358
Photon Flux Upper Limit: 2.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.92e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/218823/likelihoodResults_425174401_425433601_4FGL_J1751.6+2921_daily_bin717.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) = 7623.0288732
delta logL = 0.52513301165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7623.02228915
delta logL = 0.531717063427

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.771       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3961       1.0000          .0000       10.000    
     3 'Normalizat'    .89450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1173       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6990E+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=   7623.022     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      301 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.760        62.648        .65214E-04   -.37107E-03
   2  Index         3.3974        1.1021        .51377E-02   -.14944E-03
   3  Normalizat    .89388        .30182        .44067E-03    .20675E-03
   4  Prefactor     1.1174        .12068        .16386E-03    .29252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.7602
  Index      = 3.39736
  Normalizat = 0.893877
  Prefactor  = 1.11738
 **********
 **   18 **HESSE 
 **********

 FCN=   7623.022     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.760        47.295        .13043E-04   -1.4478    
   2  Index         3.3974        .83310        .20551E-03   -.32629    
   3  Normalizat    .89388        .30021        .17627E-04   -.96676    
   4  Prefactor     1.1174        .12013        .32771E-04   -.88913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17232e-10
Minuit parameter uncertainties:
  1  47.3415
  2  0.837458
  3  0.300774
  4  0.12016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218823': 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) = 7623.02228258
delta logL = 0.531723633755

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  3.776e+01  4.734e+01  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  3.397e+00  8.375e-01  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  7.773e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  1.117e+00  1.202e-01  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  8.939e-01  3.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.82
Ra Dec: 267.904 29.358
Photon Index (Free Index): 3.40 +/- 0.84
Photon Flux (Free Index): 1.68e-07 +/- 1.03e-07
Energy Flux (Free Index): 2.87e-05 +/- 1.62e-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/218823/cmap_HighResolution_425174401_425433601_4FGL_J1751.6+2921_daily_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-02', comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.87e-05', photon_flux_error='7.02e-08', dlogl='5.32e-01', energy_flux='2.71e-05', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-09-18 17:34:13.452342', photon_index_error2='0.84', photon_index2='3.40', ts='3.57', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='2.45e-07', energy_flux_error2='1.62e-05', EG='0.97', time_epoch_completed='1632011653.45', return_code='0', job_id='218823', GAL2='1.12', EG2='0.89', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='1.03e-07', ts2='4.82', photon_index='2.62' WHERE bin_id='717' AND source_name='4FGL J1751.6+2921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 17:34:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 218823: <4FGL_J1751.6+2921_daily_bin717> in cluster <slac> Done

Job <4FGL_J1751.6+2921_daily_bin717> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 17:20:31 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 17:20: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 17:20:32 2021
Terminated at Sat Sep 18 17:34:14 2021
Results reported at Sat Sep 18 17:34:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.6+2921_daily_bin717 267.904 29.3582 425174401 425433601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1751.6+2921 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   797.21 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

