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


Performing analysis on: 4FGL_J1751.6+2921_daily_bin1518
RA = 267.904, Dec = 29.3582
tmin = 632793601, tmax = 633052801
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='223106', job_status='RUN', time_executed='2021-09-18 17:35:52.636166', time_epoch_executed='1632011752.64' WHERE source_name='4FGL J1751.6+2921' and cadence='daily' and bin_id='1518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223106/ft1_4FGL_J1751.6+2921_daily_bin1518.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223106/ft2_4FGL_J1751.6+2921_daily_bin1518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223106/ft1_4FGL_J1751.6+2921_daily_bin1518.fits outfile=/scratch/kocevski/223106/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin1518.fits ra=267.904 dec=29.3582 rad=12.0 tmin=632793601.0 tmax=633052801.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.64
user 3.40
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223106/ft1_filtered_4FGL_J1751.6+2921_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/223106/ft2_4FGL_J1751.6+2921_daily_bin1518.fits sctable="SC_DATA" expcube=/scratch/kocevski/223106/ltcube_632793601_633052801_4FGL_J1751.6+2921_daily_bin1518.fits outfile=/scratch/kocevski/223106/expmap_632793601_633052801_4FGL_J1751.6+2921_daily_bin1518.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/223106/ltcube_632793601_633052801_4FGL_J1751.6+2921_daily_bin1518.fits
.....................!
real 192.72
user 187.70
sys 4.63

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/223106/ft1_filtered_4FGL_J1751.6+2921_daily_bin1518.fits scfile=/scratch/kocevski/223106/ft2_4FGL_J1751.6+2921_daily_bin1518.fits outfile=/scratch/kocevski/223106/cmap_632793601_633052801_4FGL_J1751.6+2921_daily_bin1518.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223106/ft1_filtered_4FGL_J1751.6+2921_daily_bin1518.fits scfile=/scratch/kocevski/223106/ft2_4FGL_J1751.6+2921_daily_bin1518.fits outfile=/scratch/kocevski/223106/cmap_HighResolution_632793601_633052801_4FGL_J1751.6+2921_daily_bin1518.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/223106/ft1_filtered_4FGL_J1751.6+2921_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/223106/ft2_4FGL_J1751.6+2921_daily_bin1518.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/223106/Model_4FGL_J1751.6+2921_daily_bin1518.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/223106/ft1_filtered_4FGL_J1751.6+2921_daily_bin1518.fits.....................!
real 86.61
user 85.17
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.2072       1.0000         .10000E-03   10000.    
     3 'norm      '    8.7957       1.0000         .10000E-03   10000.    
     4 'norm      '    35.540       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.139       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8360       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.038       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15287E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .86390E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7260       1.0000         .10000E-03   10000.    
    13 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1806       1.0000         .10000E-03   10000.    
    15 'norm      '    17.008       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3868       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9622       1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60902       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2653       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=   10415.20     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2047 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0414        .11885E-06** at limit **
   2  Prefactor     1.1373        186.41        .10149E-05   -.38764E-04
   3  norm          8.7972        4.9372       -.10249E-06   -.30130E-03
   4  norm          35.520        43.201        .11900E-05   -.63919E-04
   5  Prefactor     .10000E-03    14.910        .18680E-06** at limit **
   6  Prefactor     13.148        107.27       -.26925E-06    .75635E-05
   7  Prefactor     8.8326        13.628       -.41829E-06   -.76611E-04
   8  Prefactor     .10000E-03    26.296       -.56166E-06** at limit **
   9  Prefactor     19.096        37.361       -.31308E-05    .82549E-04
  10  Prefactor     .10002E-03    57.225        .44340E-05** at limit **
  11  Prefactor     .10078E-03    3.8531        .17677E-05** at limit **
  12  norm          1.7256        1.3678        .65754E-07    .32794E-03
  13  norm          .10000E-03    29.658        .16678E-05** at limit **
  14  Prefactor     2.1802        4.4295        .65073E-05    .54713E-04
  15  norm          17.007        9.1901        .40488E-07   -.14158E-04
  16  Prefactor     2.3866        2.5721       -.91375E-07   -.43894E-05
  17  Prefactor     .10000E-03    8.9758       -.25128E-07** at limit **
  18  norm          .10000E-03    14.430       -.41030E-06** at limit **
  19  Prefactor     4.9631        7.2129        .54856E-07   -.61550E-04
  20  norm          .10000E-03    16.266        .26469E-06** at limit **
  21  Normalizat    .60899        .22749       -.13254E-05   -.14332E-03
  22  Prefactor     1.2653        .98568E-01    .11566E-07   -.37142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.13732
  norm       = 8.79723
  norm       = 35.5202
  Prefactor  = 0.0001
  Prefactor  = 13.1482
  Prefactor  = 8.83256
  Prefactor  = 0.000100003
  Prefactor  = 19.0962
  Prefactor  = 0.000100022
  Prefactor  = 0.00010078
  norm       = 1.72559
  norm       = 0.000100001
  Prefactor  = 2.18017
  norm       = 17.0075
  Prefactor  = 2.38655
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.96312
  norm       = 0.0001
  Normalizat = 0.608994
  Prefactor  = 1.2653
 **********
 **   18 **HESSE 
 **********

 FCN=   10415.20     FROM HESSE     STATUS=OK           352 CALLS     2399 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1373        192.56        .41223E-03   -1.5495    
   3  norm          8.7972        4.9174        .13515E-03   -1.5115    
   4  norm          35.520        43.225        .67223E-04   -1.4515    
   5  Prefactor     .10000E-03    14.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.148        106.90        .11050E-03   -1.4983    
   7  Prefactor     8.8326        13.600        .13484E-03   -1.5113    
   8  Prefactor     .10000E-03    26.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.096        37.366        .91794E-04   -1.4834    
  10  Prefactor     .10002E-03    57.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10078E-03    5.6302        .65029E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7256        1.3710        .10306E-03   -1.5445    
  13  norm          .10000E-03    29.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1802        4.4352        .13939E-02   -1.5413    
  15  norm          17.007        9.1913        .97117E-04   -1.4883    
  16  Prefactor     2.3866        2.5727        .16512E-03   -1.5399    
  17  Prefactor     .10000E-03    8.9994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    14.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9631        7.2113        .18054E-03   -1.5262    
  20  norm          .10000E-03    16.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .60899        .23988        .48356E-03   -1.0760    
  22  Prefactor     1.2653        .10565        .15686E-03   -.84345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10266e-09
Minuit parameter uncertainties:
  1  2.01234e-05
  2  29.6933
  3  4.9176
  4  43.2634
  5  4.29998e-05
  6  75.1644
  7  13.6048
  8  0.000515964
  9  37.4113
  10  0.00227223
  11  0.00419127
  12  1.37098
  13  0.000292193
  14  4.43587
  15  9.19205
  16  2.57279
  17  3.47238e-05
  18  2.8867e-05
  19  7.2126
  20  2.97385e-05
  21  0.240294
  22  0.105666
Done.

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

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.910e+01  3.741e+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.265e+00  1.057e-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:  6.090e-01  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/223106/likelihoodResults_632793601_633052801_4FGL_J1751.6+2921_daily_bin1518.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) = 10415.1899193
delta logL = 0.00821194855962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10415.1860762
delta logL = 0.012055095729

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.617       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8451       1.0000          .0000       10.000    
     3 'Normalizat'    .60351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2669       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=   10415.19     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      265 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.619        52.342        .10135E-03    .25880E-03
   2  Index         2.8451        1.9460        .13875E-01    .12485E-03
   3  Normalizat    .60348        .23411        .48565E-03    .19884E-03
   4  Prefactor     1.2669        .10470        .15677E-03    .55705E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6188
  Index      = 2.84509
  Normalizat = 0.603479
  Prefactor  = 1.26691
 **********
 **   18 **HESSE 
 **********

 FCN=   10415.19     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.619        40.691        .20270E-04   -1.4917    
   2  Index         2.8451        1.5283        .55498E-03   -.44558    
   3  Normalizat    .60348        .23388        .19426E-04   -1.0784    
   4  Prefactor     1.2669        .10443        .31354E-04   -.84296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78418e-10
Minuit parameter uncertainties:
  1  40.7631
  2  1.55915
  3  0.234259
  4  0.10445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223106': 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) = 10415.1860761
delta logL = 0.0120551084274

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.562e+01  4.076e+01  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.845e+00  1.559e+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.267e+00  1.044e-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:  6.035e-01  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/223106/cmap_HighResolution_632793601_633052801_4FGL_J1751.6+2921_daily_bin1518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-18 17:51:51.786240', job_id='223106', GAL2='1.27', fit_tolerance='1e-08', EG2='0.60', EG='0.61', time_epoch_completed='1632012711.79', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.21e-02', ts2='0.33', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1518' AND source_name='4FGL J1751.6+2921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 17:51:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 223106: <4FGL_J1751.6+2921_daily_bin1518> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.6+2921_daily_bin1518 267.904 29.3582 632793601 633052801 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 :                                   937.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

