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


Performing analysis on: 4FGL_J1751.6+2921_daily_bin1059
RA = 267.904, Dec = 29.3582
tmin = 513820801, tmax = 514080001
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='220508', job_status='RUN', time_executed='2021-09-18 17:25:59.988248', time_epoch_executed='1632011159.99' WHERE source_name='4FGL J1751.6+2921' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220508

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220508/ft1_4FGL_J1751.6+2921_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220508/ft2_4FGL_J1751.6+2921_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220508/ft1_4FGL_J1751.6+2921_daily_bin1059.fits outfile=/scratch/kocevski/220508/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin1059.fits ra=267.904 dec=29.3582 rad=12.0 tmin=513820801.0 tmax=514080001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.71
user 3.48
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220508/ft1_filtered_4FGL_J1751.6+2921_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/220508/ft2_4FGL_J1751.6+2921_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/220508/ltcube_513820801_514080001_4FGL_J1751.6+2921_daily_bin1059.fits outfile=/scratch/kocevski/220508/expmap_513820801_514080001_4FGL_J1751.6+2921_daily_bin1059.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/220508/ltcube_513820801_514080001_4FGL_J1751.6+2921_daily_bin1059.fits
.....................!
real 189.93
user 184.63
sys 4.98

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/220508/ft1_filtered_4FGL_J1751.6+2921_daily_bin1059.fits scfile=/scratch/kocevski/220508/ft2_4FGL_J1751.6+2921_daily_bin1059.fits outfile=/scratch/kocevski/220508/cmap_513820801_514080001_4FGL_J1751.6+2921_daily_bin1059.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/220508/ft1_filtered_4FGL_J1751.6+2921_daily_bin1059.fits scfile=/scratch/kocevski/220508/ft2_4FGL_J1751.6+2921_daily_bin1059.fits outfile=/scratch/kocevski/220508/cmap_HighResolution_513820801_514080001_4FGL_J1751.6+2921_daily_bin1059.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.196       1.0000         .10000E-03   10000.    
     4 'norm      '    133.03       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16877E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.783       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7226       1.0000         .10000E-03   10000.    
    12 'norm      '    .81357       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5295       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    39.595       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.081       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1864       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97447       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=   10027.15     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2320 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.020       -.14407E-05** at limit **
   2  Prefactor     .10000E-03    25.820       -.11252E-05** at limit **
   3  norm          13.196        5.7968       -.49847E-07   -.42296E-04
   4  norm          133.03        76.761        .29469E-06    .25643E-04
   5  Prefactor     .10000E-03    43.837       -.20602E-05** at limit **
   6  Prefactor     .10000E-03    34.198        .15803E-05** at limit **
   7  Prefactor     .10000E-03    3.0302        .85910E-08** at limit **
   8  Prefactor     .10000E-03    34.857        .88946E-06** at limit **
   9  Prefactor     .10000E-03    29.645       -.20469E-05** at limit **
  10  Prefactor     26.742        51.707       -.10017E-04   -.37124E-03
  11  Prefactor     4.7232        7.7254        .53436E-05   -.73022E-03
  12  norm          .81426        1.3720       -.12472E-06   -.26010E-03
  13  norm          .10000E-03    12.009       -.11305E-06** at limit **
  14  Prefactor     .10000E-03    2.4658        .39652E-07** at limit **
  15  norm          .10000E-03    4.9423       -.37209E-07** at limit **
  16  Prefactor     2.5298        4.3140        .61060E-06   -.15060E-03
  17  Prefactor     .10000E-03    5.7117       -.47460E-07** at limit **
  18  norm          39.596        34.361       -.43703E-07    .94087E-06
  19  Prefactor     11.081        7.6241        .60070E-06   -.21827E-03
  20  norm          .10000E-03    17.227        .12556E-05** at limit **
  21  Normalizat    1.1863        .20209        .26774E-06   -.58652E-04
  22  Prefactor     .97447        .86962E-01   -.47560E-06    .60650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 13.1955
  norm       = 133.03
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 26.7421
  Prefactor  = 4.72316
  norm       = 0.814256
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.52977
  Prefactor  = 0.0001
  norm       = 39.5956
  Prefactor  = 11.0813
  norm       = 0.000100001
  Normalizat = 1.18634
  Prefactor  = 0.974473
 **********
 **   18 **HESSE 
 **********

 FCN=   10027.15     FROM HESSE     STATUS=OK           336 CALLS     2656 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.196        5.8132        .11027E-03   -1.4981    
   4  norm          133.03        76.785        .34914E-04   -1.3396    
   5  Prefactor     .10000E-03    44.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0329        .17023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.742        55.221        .77408E-04   -1.4673    
  11  Prefactor     4.7232        7.9572        .92581E-03   -1.5273    
  12  norm          .81426        1.0359        .14808E-02   -1.5527    
  13  norm          .10000E-03    12.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5084        .15353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.9972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5298        4.3044        .25682E-03   -1.5390    
  17  Prefactor     .10000E-03    5.7179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          39.596        34.421        .63699E-04   -1.4449    
  19  Prefactor     11.081        7.6352        .60176E-03   -1.5042    
  20  norm          .10000E-03    17.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1863        .23909        .35928E-03   -.87026    
  22  Prefactor     .97447        .10330        .16845E-03   -.93585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63239e-09
Minuit parameter uncertainties:
  1  0.000286941
  2  0.000254033
  3  5.81346
  4  76.8431
  5  0.0005922
  6  0.000406454
  7  1.26297e-06
  8  0.000460041
  9  0.000571542
  10  55.3268
  11  7.95899
  12  1.03589
  13  1.68915e-05
  14  1.80741e-07
  15  3.95931e-06
  16  4.30494
  17  2.97954e-08
  18  34.4384
  19  7.63583
  20  0.000223396
  21  0.239309
  22  0.103323
Done.

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

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  5.715e-04  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.745e-01  1.033e-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.186e+00  2.393e-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: 8.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/220508/likelihoodResults_513820801_514080001_4FGL_J1751.6+2921_daily_bin1059.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) = 10027.1521269
delta logL = -0.000160350820806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10027.1519672
delta logL = -7.00832970324e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0359       1.0000          .0000       10.000    
     3 'Normalizat'    1.1863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97447       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=   10027.15     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      279 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10332E-03    8.8093        .18142E-01** at limit **
   2  Index         2.9435        8.3810        .50000        .10482E-04
   3  Normalizat    1.1863        .33157E-02    .35928E-03   -.15315E-04
   4  Prefactor     .97447        .14341E-02    .16845E-03   -.39901E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103319
  Index      = 2.94354
  Normalizat = 1.18634
  Prefactor  = 0.974473
 **********
 **   18 **HESSE 
 **********

 FCN=   10027.15     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10332E-03    458.90        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9435        8.3916        .50000       -.42387    
   3  Normalizat    1.1863        .24118E-01    .14371E-04   -.87026    
   4  Prefactor     .97447        .10431E-01    .33689E-04   -.93585    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00973e-08
Minuit parameter uncertainties:
  1  0.0786683
  2  762.56
  3  0.0241183
  4  0.0104313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220508': 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) = 10027.1519671
delta logL = -5.3991425375e-07

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.033e-04  7.867e-02  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.944e+00  7.626e+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.745e-01  1.043e-02  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.186e+00  2.412e-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/220508/cmap_HighResolution_513820801_514080001_4FGL_J1751.6+2921_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.39e-08', time_completed='2021-09-18 17:42:08.785643', job_id='220508', GAL2='0.97', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632012128.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-5.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1059' AND source_name='4FGL J1751.6+2921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 17:42:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 220508: <4FGL_J1751.6+2921_daily_bin1059> in cluster <slac> Done

Job <4FGL_J1751.6+2921_daily_bin1059> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 18 17:25:48 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 17:25:49 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:25:49 2021
Terminated at Sat Sep 18 17:42:09 2021
Results reported at Sat Sep 18 17:42:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.6+2921_daily_bin1059 267.904 29.3582 513820801 514080001 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 :                                   943.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             327.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

