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


Performing analysis on: 4FGL_J1751.6+2921_daily_bin30
RA = 267.904, Dec = 29.3582
tmin = 247104001, tmax = 247363201
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='212399', job_status='RUN', time_executed='2021-09-18 17:00:41.215313', time_epoch_executed='1632009641.22' WHERE source_name='4FGL J1751.6+2921' and cadence='daily' and bin_id='30'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212399/ft1_4FGL_J1751.6+2921_daily_bin30.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212399/ft2_4FGL_J1751.6+2921_daily_bin30.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212399/ft1_4FGL_J1751.6+2921_daily_bin30.fits outfile=/scratch/kocevski/212399/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin30.fits ra=267.904 dec=29.3582 rad=12.0 tmin=247104001.0 tmax=247363201.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.49
user 1.32
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212399/ft2_4FGL_J1751.6+2921_daily_bin30.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/212399/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin30.fits evtable="EVENTS" outfile="/scratch/kocevski/212399/ft1_filtered_4FGL_J1751.6+2921_daily_bin30.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212399/ft1_filtered_4FGL_J1751.6+2921_daily_bin30.fits" evtable="EVENTS" scfile=/scratch/kocevski/212399/ft2_4FGL_J1751.6+2921_daily_bin30.fits sctable="SC_DATA" outfile=/scratch/kocevski/212399/ltcube_247104001_247363201_4FGL_J1751.6+2921_daily_bin30.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/212399/ft2_4FGL_J1751.6+2921_daily_bin30.fits
.....................!
real 12.52
user 12.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212399/ft1_filtered_4FGL_J1751.6+2921_daily_bin30.fits evtable="EVENTS" scfile=/scratch/kocevski/212399/ft2_4FGL_J1751.6+2921_daily_bin30.fits sctable="SC_DATA" expcube=/scratch/kocevski/212399/ltcube_247104001_247363201_4FGL_J1751.6+2921_daily_bin30.fits outfile=/scratch/kocevski/212399/expmap_247104001_247363201_4FGL_J1751.6+2921_daily_bin30.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/212399/ltcube_247104001_247363201_4FGL_J1751.6+2921_daily_bin30.fits
.....................!
real 190.30
user 184.90
sys 5.00

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/212399/ft1_filtered_4FGL_J1751.6+2921_daily_bin30.fits scfile=/scratch/kocevski/212399/ft2_4FGL_J1751.6+2921_daily_bin30.fits outfile=/scratch/kocevski/212399/cmap_247104001_247363201_4FGL_J1751.6+2921_daily_bin30.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212399/ft1_filtered_4FGL_J1751.6+2921_daily_bin30.fits scfile=/scratch/kocevski/212399/ft2_4FGL_J1751.6+2921_daily_bin30.fits outfile=/scratch/kocevski/212399/cmap_HighResolution_247104001_247363201_4FGL_J1751.6+2921_daily_bin30.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4713       1.0000         .10000E-03   10000.    
     4 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25388E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7952       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12918E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    128.58       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.258       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8362       1.0000         .10000E-03   10000.    
    13 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.633       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1504       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5833       1.0000         .10000E-03   10000.    
    20 'norm      '    .12045E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92020       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0361       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=   10584.88     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2353 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.522       -.52050E-05** at limit **
   2  Prefactor     .10000E-03    9.4520       -.11775E-06** at limit **
   3  norm          2.4698        3.7086       -.92127E-06   -.84572E-03
   4  norm          .10000E-03    17.763       -.91447E-06** at limit **
   5  Prefactor     .10000E-03    17.250        .38462E-05** at limit **
   6  Prefactor     .10000E-03    514.89       -.20140E-04** at limit **
   7  Prefactor     1.8178        24.835        .21314E-05   -.15554E-03
   8  Prefactor     .10000E-03    51.959       -.15078E-04** at limit **
   9  Prefactor     .10000E-03    19.989       -.13782E-04** at limit **
  10  Prefactor     128.48        71.769       -.37770E-04    .11037E-03
  11  Prefactor     13.260        9.0625        .10977E-05    .12909E-03
  12  norm          2.8358        1.8542       -.22971E-07   -.16671E-02
  13  norm          .10000E-03    16.038        .82676E-05** at limit **
  14  Prefactor     .10000E-03    1.4356        .38781E-08** at limit **
  15  norm          .10000E-03    2.6671        .41683E-07** at limit **
  16  Prefactor     .10000E-03    1.3691        .59081E-07** at limit **
  17  Prefactor     10.636        18.036       -.43549E-06    .75171E-04
  18  norm          1.1997        100.14       -.12237E-03    .58843E-04
  19  Prefactor     4.5870        7.7215       -.70272E-05    .17027E-03
  20  norm          .10000E-03    24.373        .11749E-04** at limit **
  21  Normalizat    .92012        .19587        .33125E-05    .40432E-03
  22  Prefactor     1.0362        .82894E-01    .20699E-05    .74160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.46976
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.8178
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 128.481
  Prefactor  = 13.2604
  norm       = 2.83579
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.636
  norm       = 1.19969
  Prefactor  = 4.58702
  norm       = 0.0001
  Normalizat = 0.920119
  Prefactor  = 1.03617
 **********
 **   18 **HESSE 
 **********

 FCN=   10584.88     FROM HESSE     STATUS=OK           338 CALLS     2691 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4698        3.6969        .23571E-03   -1.5394    
   4  norm          .10000E-03    17.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    529.84        .36597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8178        24.844        .31209E-03   -1.5438    
   8  Prefactor     .10000E-03    52.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     128.48        71.735        .17752E-03   -1.3436    
  11  Prefactor     13.260        9.0598        .11001E-03   -1.4980    
  12  norm          2.8358        1.8488        .54626E-03   -1.5371    
  13  norm          .10000E-03    16.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4401        .12037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6700        .16405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3781        .11751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.636        18.017        .12287E-03   -1.5056    
  18  norm          1.1997        104.07        .43151E-02   -1.5489    
  19  Prefactor     4.5870        7.7050        .18802E-03   -1.5280    
  20  norm          .10000E-03    24.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .92012        .22363        .38965E-03   -.95757    
  22  Prefactor     1.0362        .95568E-01    .15907E-03   -.91533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8945e-09
Minuit parameter uncertainties:
  1  2.49478e-05
  2  5.92418e-06
  3  3.69728
  4  1.06193e-05
  5  1.03914e-05
  6  0.00104279
  7  13.4469
  8  0.000587539
  9  0.000573443
  10  71.7832
  11  9.06076
  12  1.8488
  13  1.06626e-05
  14  1.57076e-06
  15  8.39208e-06
  16  8.07613e-06
  17  18.026
  18  22.3872
  19  7.70667
  20  4.95483e-05
  21  0.223851
  22  0.0955836
Done.

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

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  5.734e-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:  1.036e+00  9.558e-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:  9.201e-01  2.239e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212399/likelihoodResults_247104001_247363201_4FGL_J1751.6+2921_daily_bin30.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) = 10584.8802041
delta logL = -0.000239168752159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10584.8799673
delta logL = -2.42873647949e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6172       1.0000          .0000       10.000    
     3 'Normalizat'    .92007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0361       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=   10584.88     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6437.5        .90712E-02** at limit **
   2  Index         2.6168        5.3566        .50000        .13342E-06
   3  Normalizat    .92012        .84001E-01    .87990E-01    .39151E-04
   4  Prefactor     1.0362        .36257E-01    .40804E-01   -.34649E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.61682
  Normalizat = 0.920116
  Prefactor  = 1.03617
 **********
 **   18 **HESSE 
 **********

 FCN=   10584.88     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6168        6.2738        .50000       -.49682    
   3  Normalizat    .92012        .21648        .38964E-03   -.95757    
   4  Prefactor     1.0362        .94050E-01    .15907E-03   -.91533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18927e-13
Minuit parameter uncertainties:
  1  8.70936e-06
  2  5.45265
  3  0.216688
  4  0.0940653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212399': 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) = 10584.8799649
delta logL = 2.60115484707e-10

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  8.709e-06  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.617e+00  5.453e+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.036e+00  9.407e-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:  9.201e-01  2.167e-01  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/212399/cmap_HighResolution_247104001_247363201_4FGL_J1751.6+2921_daily_bin30.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-03', job_status='DONE', photon_flux_upper_limit='8.59e-08', time_completed='2021-09-18 17:16:58.883917', job_id='212399', GAL2='1.04', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632010618.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.60e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='30' AND source_name='4FGL J1751.6+2921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 17:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 212399: <4FGL_J1751.6+2921_daily_bin30> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.6+2921_daily_bin30 267.904 29.3582 247104001 247363201 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 :                                   975.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            998 sec.

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

