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


Performing analysis on: 4FGL_J1751.6+2921_daily_bin69
RA = 267.904, Dec = 29.3582
tmin = 257212801, tmax = 257472001
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='212456', job_status='RUN', time_executed='2021-09-18 17:02:59.313730', time_epoch_executed='1632009779.31' WHERE source_name='4FGL J1751.6+2921' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212456/ft1_4FGL_J1751.6+2921_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212456/ft2_4FGL_J1751.6+2921_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212456/ft1_4FGL_J1751.6+2921_daily_bin69.fits outfile=/scratch/kocevski/212456/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin69.fits ra=267.904 dec=29.3582 rad=12.0 tmin=257212801.0 tmax=257472001.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 1.82
user 1.59
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212456/ft2_4FGL_J1751.6+2921_daily_bin69.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/212456/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin69.fits evtable="EVENTS" outfile="/scratch/kocevski/212456/ft1_filtered_4FGL_J1751.6+2921_daily_bin69.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.42
user 0.27
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212456/ft1_filtered_4FGL_J1751.6+2921_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/212456/ft2_4FGL_J1751.6+2921_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/212456/ltcube_257212801_257472001_4FGL_J1751.6+2921_daily_bin69.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/212456/ft2_4FGL_J1751.6+2921_daily_bin69.fits
.....................!
real 9.22
user 8.93
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212456/ft1_filtered_4FGL_J1751.6+2921_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/212456/ft2_4FGL_J1751.6+2921_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/212456/ltcube_257212801_257472001_4FGL_J1751.6+2921_daily_bin69.fits outfile=/scratch/kocevski/212456/expmap_257212801_257472001_4FGL_J1751.6+2921_daily_bin69.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/212456/ltcube_257212801_257472001_4FGL_J1751.6+2921_daily_bin69.fits
.....................!
real 141.11
user 137.66
sys 3.19

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/212456/ft1_filtered_4FGL_J1751.6+2921_daily_bin69.fits scfile=/scratch/kocevski/212456/ft2_4FGL_J1751.6+2921_daily_bin69.fits outfile=/scratch/kocevski/212456/cmap_257212801_257472001_4FGL_J1751.6+2921_daily_bin69.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.46
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212456/ft1_filtered_4FGL_J1751.6+2921_daily_bin69.fits scfile=/scratch/kocevski/212456/ft2_4FGL_J1751.6+2921_daily_bin69.fits outfile=/scratch/kocevski/212456/cmap_HighResolution_257212801_257472001_4FGL_J1751.6+2921_daily_bin69.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.44
user 0.29
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/212456/ft1_filtered_4FGL_J1751.6+2921_daily_bin69.fits', '/scratch/kocevski/212456/ft2_4FGL_J1751.6+2921_daily_bin69.fits', expMap='/scratch/kocevski/212456/expmap_257212801_257472001_4FGL_J1751.6+2921_daily_bin69.fits', expCube='/scratch/kocevski/212456/ltcube_257212801_257472001_4FGL_J1751.6+2921_daily_bin69.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/212456/Model_4FGL_J1751.6+2921_daily_bin69.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/212456/ft1_filtered_4FGL_J1751.6+2921_daily_bin69.fits
Spacecraft file(s): /scratch/kocevski/212456/ft2_4FGL_J1751.6+2921_daily_bin69.fits
Exposure map: /scratch/kocevski/212456/expmap_257212801_257472001_4FGL_J1751.6+2921_daily_bin69.fits
Exposure cube: /scratch/kocevski/212456/ltcube_257212801_257472001_4FGL_J1751.6+2921_daily_bin69.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/212456/Model_4FGL_J1751.6+2921_daily_bin69.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) = 8868.90159652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.534       1.0000         .10000E-03   10000.    
     4 'norm      '    46.774       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.010       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.325       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11543E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    46.321       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2255       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .51739E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    25.690       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5845       1.0000         .10000E-03   10000.    
    20 'norm      '    83.286       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5151       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95315       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=   8868.890     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2358 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.277        .11064E-05** at limit **
   2  Prefactor     .10000E-03    29.867       -.18673E-06** at limit **
   3  norm          11.536        5.7747        .81788E-07   -.79604E-05
   4  norm          46.755        65.529       -.11258E-05   -.27115E-05
   5  Prefactor     .10000E-03    19.104        .30300E-06** at limit **
   6  Prefactor     46.923        89.709       -.29995E-05   -.12714E-04
   7  Prefactor     13.320        12.195        .66985E-06   -.40489E-04
   8  Prefactor     .10000E-03    21.369       -.11241E-06** at limit **
   9  Prefactor     .10000E-03    28.500       -.77521E-06** at limit **
  10  Prefactor     .10000E-03    53.558        .20392E-06** at limit **
  11  Prefactor     .10000E-03    2.1299        .12968E-06** at limit **
  12  norm          .10000E-03    1.1021        .13377E-05** at limit **
  13  norm          46.285        53.997       -.44154E-06   -.25819E-04
  14  Prefactor     .10000E-03    1.7465       -.14264E-06** at limit **
  15  norm          .10000E-03    15.457        .52937E-06** at limit **
  16  Prefactor     6.2230        4.6502       -.26030E-06   -.10262E-03
  17  Prefactor     .10000E-03    211.65       -.10379E-04** at limit **
  18  norm          25.695        23.411       -.24752E-06   -.10349E-04
  19  Prefactor     2.5861        7.6963        .24681E-05   -.20265E-04
  20  norm          83.330        61.304        .10463E-05   -.36988E-05
  21  Normalizat    1.5150        .25511       -.52108E-05   -.15772E-03
  22  Prefactor     .95310        .10811        .24320E-05   -.17647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5356
  norm       = 46.7552
  Prefactor  = 0.0001
  Prefactor  = 46.9231
  Prefactor  = 13.3205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 46.2846
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.22301
  Prefactor  = 0.0001
  norm       = 25.695
  Prefactor  = 2.58606
  norm       = 83.3299
  Normalizat = 1.51504
  Prefactor  = 0.953099
 **********
 **   18 **HESSE 
 **********

 FCN=   8868.890     FROM HESSE     STATUS=OK           346 CALLS     2704 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.536        5.7770        .11796E-03   -1.5029    
   4  norm          46.755        65.534        .58628E-04   -1.4339    
   5  Prefactor     .10000E-03    19.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.923        90.006        .29240E-03   -1.4337    
   7  Prefactor     13.320        12.165        .10973E-03   -1.4978    
   8  Prefactor     .10000E-03    21.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    53.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1325        .13424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4360        .17329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          46.285        54.013        .58912E-04   -1.4346    
  14  Prefactor     .10000E-03    1.7497        .12151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.977        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.2230        4.6499        .16089E-03   -1.5209    
  17  Prefactor     .10000E-03    19.251        .99747E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          25.695        23.413        .79034E-04   -1.4694    
  19  Prefactor     2.5861        7.7090        .25384E-03   -1.5386    
  20  norm          83.330        61.323        .22007E-03   -1.3880    
  21  Normalizat    1.5150        .27157        .34889E-03   -.77357    
  22  Prefactor     .95310        .11360        .17963E-03   -.94310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86298e-11
Minuit parameter uncertainties:
  1  1.64449e-05
  2  1.58088e-05
  3  5.77728
  4  65.6353
  5  5.7826e-06
  6  90.2683
  7  12.1677
  8  6.67727e-06
  9  4.01703e-05
  10  4.00177e-05
  11  9.37366e-07
  12  1.9214e-05
  13  54.0704
  14  1.41457e-06
  15  2.57655e-06
  16  4.6502
  17  7.65247e-05
  18  23.421
  19  7.71197
  20  61.3692
  21  0.271827
  22  0.113628
Done.

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

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  4.017e-05  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:  9.531e-01  1.136e-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:  1.515e+00  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 267.904 29.358
Photon Flux Upper Limit: 9.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212456/likelihoodResults_257212801_257472001_4FGL_J1751.6+2921_daily_bin69.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8868.89049728
delta logL = -0.00016664785835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8868.89033067
delta logL = -3.99413693231e-08

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 'Index     '    3.1594       1.0000          .0000       10.000    
     3 'Normalizat'    1.5150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95310       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.

 FCN=   8868.890     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.073        .90712E-02** at limit **
   2  Index         3.1489        6.5733        .50000        .35268E-05
   3  Normalizat    1.5150        .61231E-02    .78829E-01    .38027E-04
   4  Prefactor     .95310        .25906E-02    .45678E-01    .36530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.14886
  Normalizat = 1.51504
  Prefactor  = 0.953098
 **********
 **   18 **HESSE 
 **********

 FCN=   8868.890     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    221.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1489        6.0813        .50000       -.37925    
   3  Normalizat    1.5150        .17185E-01    .34888E-03   -.77357    
   4  Prefactor     .95310        .72784E-02    .17963E-03   -.94310    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43327e-07
Minuit parameter uncertainties:
  1  0.000258084
  2  504.622
  3  0.0171848
  4  0.0072784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212456': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8868.89033066
delta logL = -3.162494977e-08

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  2.581e-04  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  3.149e+00  5.046e+02  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:  9.531e-01  7.278e-03  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:  1.515e+00  1.718e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 267.904 29.358

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/212456/cmap_HighResolution_257212801_257472001_4FGL_J1751.6+2921_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-03', job_status='DONE', photon_flux_upper_limit='9.25e-08', time_completed='2021-09-18 17:14:03.609238', job_id='212456', GAL2='0.95', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1632010443.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-3.16e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='69' AND source_name='4FGL J1751.6+2921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 17:14:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 212456: <4FGL_J1751.6+2921_daily_bin69> in cluster <slac> Done

Job <4FGL_J1751.6+2921_daily_bin69> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 17:00:25 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 17:00: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 17:00:26 2021
Terminated at Sat Sep 18 17:14:04 2021
Results reported at Sat Sep 18 17:14:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.6+2921_daily_bin69 267.904 29.3582 257212801 257472001 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 :                                   663.28 sec.
    Max Memory :                                 1057 MB
    Average Memory :                             311.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            819 sec.

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

