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


Performing analysis on: 4FGL_J1751.6+2921_daily_bin1574
RA = 267.904, Dec = 29.3582
tmin = 647308801, tmax = 647568001
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='223196', job_status='RUN', time_executed='2021-09-18 17:36:01.087144', time_epoch_executed='1632011761.09' WHERE source_name='4FGL J1751.6+2921' and cadence='daily' and bin_id='1574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223196

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223196/ft1_4FGL_J1751.6+2921_daily_bin1574.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223196/ft2_4FGL_J1751.6+2921_daily_bin1574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223196/ft1_4FGL_J1751.6+2921_daily_bin1574.fits outfile=/scratch/kocevski/223196/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin1574.fits ra=267.904 dec=29.3582 rad=12.0 tmin=647308801.0 tmax=647568001.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.49
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223196/ft1_filtered_4FGL_J1751.6+2921_daily_bin1574.fits" evtable="EVENTS" scfile=/scratch/kocevski/223196/ft2_4FGL_J1751.6+2921_daily_bin1574.fits sctable="SC_DATA" outfile=/scratch/kocevski/223196/ltcube_647308801_647568001_4FGL_J1751.6+2921_daily_bin1574.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/223196/ft2_4FGL_J1751.6+2921_daily_bin1574.fits
.....................!
real 11.68
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223196/ft1_filtered_4FGL_J1751.6+2921_daily_bin1574.fits evtable="EVENTS" scfile=/scratch/kocevski/223196/ft2_4FGL_J1751.6+2921_daily_bin1574.fits sctable="SC_DATA" expcube=/scratch/kocevski/223196/ltcube_647308801_647568001_4FGL_J1751.6+2921_daily_bin1574.fits outfile=/scratch/kocevski/223196/expmap_647308801_647568001_4FGL_J1751.6+2921_daily_bin1574.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/223196/ltcube_647308801_647568001_4FGL_J1751.6+2921_daily_bin1574.fits
.....................!
real 189.68
user 185.17
sys 4.20

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/223196/ft1_filtered_4FGL_J1751.6+2921_daily_bin1574.fits scfile=/scratch/kocevski/223196/ft2_4FGL_J1751.6+2921_daily_bin1574.fits outfile=/scratch/kocevski/223196/cmap_647308801_647568001_4FGL_J1751.6+2921_daily_bin1574.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/223196/ft1_filtered_4FGL_J1751.6+2921_daily_bin1574.fits scfile=/scratch/kocevski/223196/ft2_4FGL_J1751.6+2921_daily_bin1574.fits outfile=/scratch/kocevski/223196/cmap_HighResolution_647308801_647568001_4FGL_J1751.6+2921_daily_bin1574.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.582       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .73624E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    81.725       1.0000         .10000E-03   10000.    
     6 'Prefactor '    154.42       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.773       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.246       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.834       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7725       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .17939E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11291E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.735       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45153E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.511       1.0000         .10000E-03   10000.    
    18 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    27.703       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .47500       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1357       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=   8367.590     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2476 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.572        26.193        .58761E-06   -.52269E-04
   2  Prefactor     .10000E-03    298.69        .16967E-06** at limit **
   3  norm          .10000E-03    21.442        .83997E-05** at limit **
   4  norm          .10000E-03    19.350        .68168E-07** at limit **
   5  Prefactor     81.965        73.796        .81304E-06    .50984E-04
   6  Prefactor     154.39        106.67        .32325E-07    .51371E-04
   7  Prefactor     19.771        20.431        .21658E-06    .63517E-04
   8  Prefactor     30.220        49.348        .14643E-05    .79498E-06
   9  Prefactor     12.882        82.222        .11114E-04    .70864E-04
  10  Prefactor     7.7409        410.12       -.22006E-04   -.37696E-05
  11  Prefactor     .10000E-03    7.7692        .76255E-06** at limit **
  12  norm          .10000E-03    .97427       -.21013E-06** at limit **
  13  norm          .10000E-03    55.203        .25560E-06** at limit **
  14  Prefactor     11.737        7.5787        .33316E-06   -.43220E-04
  15  norm          .10000E-03    5.7123       -.28777E-06** at limit **
  16  Prefactor     .10008E-03    6.5989        .32367E-05** at limit **
  17  Prefactor     18.500        21.109        .10529E-05   -.11272E-03
  18  norm          .10000E-03    12.332        .36513E-07** at limit **
  19  Prefactor     .10000E-03    12.536        .12506E-05** at limit **
  20  norm          27.718        28.210       -.17721E-06    .63214E-04
  21  Normalizat    .47483        .25387       -.49392E-05    .10107E-03
  22  Prefactor     1.1357        .10342        .33744E-06    .22594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.5723
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 81.9648
  Prefactor  = 154.386
  Prefactor  = 19.7708
  Prefactor  = 30.2199
  Prefactor  = 12.8824
  Prefactor  = 7.74092
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.7373
  norm       = 0.0001
  Prefactor  = 0.000100078
  Prefactor  = 18.5001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 27.7179
  Normalizat = 0.474831
  Prefactor  = 1.13575
 **********
 **   18 **HESSE 
 **********

 FCN=   8367.590     FROM HESSE     STATUS=OK           352 CALLS     2828 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.572        26.157        .84291E-04   -1.4757    
   2  Prefactor     .10000E-03    302.41        .41902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    22.568        .34780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    19.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     81.965        74.229        .22215E-03   -1.3895    
   6  Prefactor     154.39        106.37        .16221E-03   -1.3216    
   7  Prefactor     19.771        20.254        .90072E-04   -1.4818    
   8  Prefactor     30.220        49.207        .72853E-04   -1.4608    
   9  Prefactor     12.882        75.675        .11181E-03   -1.4990    
  10  Prefactor     7.7409        376.54        .14383E-03   -1.5151    
  11  Prefactor     .10000E-03    7.9459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.5318        .17274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    55.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.737        7.5515        .11694E-03   -1.5023    
  15  norm          .10000E-03    5.7459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10008E-03    3.8189        .51513E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.500        21.010        .93090E-04   -1.4847    
  18  norm          .10000E-03    12.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          27.718        28.164        .76115E-04   -1.4655    
  21  Normalizat    .47483        .25794        .49382E-03   -1.1360    
  22  Prefactor     1.1357        .10726        .14684E-03   -.88332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35084e-10
Minuit parameter uncertainties:
  1  26.1705
  2  0.000771488
  3  0.000391018
  4  8.54702e-06
  5  74.3128
  6  106.506
  7  20.2613
  8  49.2727
  9  62.5655
  10  108.709
  11  1.06e-05
  12  5.89078e-05
  13  0.000100137
  14  7.55213
  15  4.01558e-06
  16  0.00109291
  17  21.0189
  18  6.54216e-07
  19  5.91964e-06
  20  28.1771
  21  0.258591
  22  0.107285
Done.

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

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.288e+01  6.257e+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.136e+00  1.073e-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:  4.748e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 267.904 29.358
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/223196/likelihoodResults_647308801_647568001_4FGL_J1751.6+2921_daily_bin1574.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) = 8367.27968519
delta logL = 0.310694990865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8367.25355673
delta logL = 0.336823448026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2354       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9638       1.0000          .0000       10.000    
     3 'Normalizat'    .43444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1460       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8367.254     FROM MIGRAD    STATUS=FAILED        85 CALLS      294 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2365        271.16        .19580E-03    .20233E-02
   2  Index         3.9634        6.6489        .72238E-02    .65468E-03
   3  Normalizat    .43445        .21219        .51519E-03    .56778E-03
   4  Prefactor     1.1459        .94602E-01    .14622E-03    .15004E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8367.254     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      385 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2365        271.16        .30359E-03    .20233E-02
   2  Index         3.9634        6.6489        .16629E-02    .65468E-03
   3  Normalizat    .43445        .21219        .23822E-03    .56778E-03
   4  Prefactor     1.1459        .94602E-01    .57938E-04    .15004E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8367.254     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      419 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2382        16.080        .78318E-05    .15097E-04
   2  Index         3.9631        2.1045        .28895E-03    .27541E-05
   3  Normalizat    .43445        .24071        .20608E-04   -.17874E-04
   4  Prefactor     1.1459        .10593        .29243E-04   -.76042E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.23817
  Index      = 3.96308
  Normalizat = 0.43445
  Prefactor  = 1.14595
 **********
 **   18 **HESSE 
 **********

 FCN=   8367.254     FROM HESSE     STATUS=OK            23 CALLS      442 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2382        15.527        .15664E-05   -1.5296    
   2  Index         3.9631        2.0374        .11558E-04   -.20890    
   3  Normalizat    .43445        .24027        .41215E-05   -1.1556    
   4  Prefactor     1.1459        .10577        .58487E-05   -.88011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91191e-12
Minuit parameter uncertainties:
  1  15.5422
  2  2.10147
  3  0.240843
  4  0.10579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223196': 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) = 8367.25355653
delta logL = 0.336823648311

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  4.238e+00  1.554e+01  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  3.963e+00  2.101e+00  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.146e+00  1.058e-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:  4.345e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/223196/cmap_HighResolution_647308801_647568001_4FGL_J1751.6+2921_daily_bin1574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.96e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-18 17:51:01.990733', job_id='223196', GAL2='1.15', fit_tolerance='1e-08', EG2='0.43', EG='0.47', time_epoch_completed='1632012661.99', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.37e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1574' AND source_name='4FGL J1751.6+2921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 17:51:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 223196: <4FGL_J1751.6+2921_daily_bin1574> in cluster <slac> Done

Job <4FGL_J1751.6+2921_daily_bin1574> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 17:35:46 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 17:35:47 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:35:47 2021
Terminated at Sat Sep 18 17:51:02 2021
Results reported at Sat Sep 18 17:51:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.6+2921_daily_bin1574 267.904 29.3582 647308801 647568001 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 :                                   895.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

