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


Performing analysis on: 4FGL_J1751.6+2921_daily_bin1177
RA = 267.904, Dec = 29.3582
tmin = 544406401, tmax = 544665601
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='221499', job_status='RUN', time_executed='2021-09-18 17:34:24.582298', time_epoch_executed='1632011664.58' WHERE source_name='4FGL J1751.6+2921' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221499

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221499/ft1_4FGL_J1751.6+2921_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221499/ft2_4FGL_J1751.6+2921_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221499/ft1_4FGL_J1751.6+2921_daily_bin1177.fits outfile=/scratch/kocevski/221499/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin1177.fits ra=267.904 dec=29.3582 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.66
user 7.34
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221499/ft1_filtered_4FGL_J1751.6+2921_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/221499/ft2_4FGL_J1751.6+2921_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/221499/ltcube_544406401_544665601_4FGL_J1751.6+2921_daily_bin1177.fits outfile=/scratch/kocevski/221499/expmap_544406401_544665601_4FGL_J1751.6+2921_daily_bin1177.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/221499/ltcube_544406401_544665601_4FGL_J1751.6+2921_daily_bin1177.fits
.....................!
real 190.37
user 185.24
sys 4.77

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/221499/ft1_filtered_4FGL_J1751.6+2921_daily_bin1177.fits scfile=/scratch/kocevski/221499/ft2_4FGL_J1751.6+2921_daily_bin1177.fits outfile=/scratch/kocevski/221499/cmap_544406401_544665601_4FGL_J1751.6+2921_daily_bin1177.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.52
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221499/ft1_filtered_4FGL_J1751.6+2921_daily_bin1177.fits scfile=/scratch/kocevski/221499/ft2_4FGL_J1751.6+2921_daily_bin1177.fits outfile=/scratch/kocevski/221499/cmap_HighResolution_544406401_544665601_4FGL_J1751.6+2921_daily_bin1177.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.55
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    28.103       1.0000         .10000E-03   10000.    
     4 'norm      '    58.136       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.264       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30380E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.719       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16202E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.679       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8179       1.0000         .10000E-03   10000.    
    13 'norm      '    .16649E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.325       1.0000         .10000E-03   10000.    
    15 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .61583       1.0000         .10000E-03   10000.    
    18 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21686E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92729       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91628       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=   3628.216     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2678 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.173        .11827E-06** at limit **
   2  Prefactor     .10000E-03    142.41        .54294E-06** at limit **
   3  norm          28.090        37.863       -.12680E-05   -.62716E-04
   4  norm          57.998        74.770       -.23457E-06    .10668E-03
   5  Prefactor     10.573        6894.0        .37944E-04    .31715E-05
   6  Prefactor     .10000E-03    165.11        .77658E-06** at limit **
   7  Prefactor     .10000E-03    20.907        .26003E-06** at limit **
   8  Prefactor     .10000E-03    30.428        .40302E-06** at limit **
   9  Prefactor     55.770        83.610        .45204E-05   -.12784E-04
  10  Prefactor     .10004E-03    2285.9        .38592E-04** at limit **
  11  Prefactor     14.685        14.423        .19063E-06   -.87322E-04
  12  norm          2.8177        3.4470       -.19921E-07   -.14620E-03
  13  norm          .10000E-03    56.772        .14122E-06** at limit **
  14  Prefactor     25.316        21.841       -.86153E-06   -.22695E-03
  15  norm          .10000E-03    10.194        .93489E-07** at limit **
  16  Prefactor     .10000E-03    7.2385        .16299E-06** at limit **
  17  Prefactor     .62993        218.76        .32634E-04   -.16496E-03
  18  norm          .10000E-03    21.317       -.21003E-07** at limit **
  19  Prefactor     .10008E-03    52.596        .18483E-04** at limit **
  20  norm          .10000E-03    43.333       -.15772E-06** at limit **
  21  Normalizat    .92747        .37065       -.27296E-05   -.32105E-03
  22  Prefactor     .91621        .13495       -.59877E-06   -.42054E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.09
  norm       = 57.9982
  Prefactor  = 10.5728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.7697
  Prefactor  = 0.000100041
  Prefactor  = 14.6848
  norm       = 2.81767
  norm       = 0.0001
  Prefactor  = 25.3158
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.629934
  norm       = 0.0001
  Prefactor  = 0.000100077
  norm       = 0.0001
  Normalizat = 0.927467
  Prefactor  = 0.916208
 **********
 **   18 **HESSE 
 **********

 FCN=   3628.216     FROM HESSE     STATUS=OK           338 CALLS     3016 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    142.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          28.090        37.227        .75572E-04   -1.4647    
   4  norm          57.998        74.764        .26308E-03   -1.4183    
   5  Prefactor     10.573        6802.0        .12507E-03   -1.5058    
   6  Prefactor     .10000E-03    165.21        .21384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     55.770        85.771        .53739E-04   -1.4213    
  10  Prefactor     .10004E-03    2265.2        .18208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.685        14.427        .10454E-03   -1.4941    
  12  norm          2.8177        3.4361        .11995E-03   -1.5372    
  13  norm          .10000E-03    56.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.316        21.930        .79601E-04   -1.4701    
  15  norm          .10000E-03    10.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2588        .15793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .62993        82.048        .11559       -1.5549    
  18  norm          .10000E-03    21.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10008E-03    61.016        .39056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    43.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .92747        .43116        .41848E-03   -.95502    
  22  Prefactor     .91621        .15515        .15666E-03   -.95577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39223e-09
Minuit parameter uncertainties:
  1  4.12441e-05
  2  5.29086e-05
  3  37.2575
  4  74.8858
  5  440.382
  6  0.000119808
  7  4.53002e-05
  8  0.000130723
  9  85.9615
  10  0.0202074
  11  14.4302
  12  3.43633
  13  8.81532e-06
  14  21.9374
  15  4.1388e-06
  16  7.88979e-06
  17  14.3974
  18  5.7143e-05
  19  0.00433262
  20  0.000238653
  21  0.432779
  22  0.155229
Done.

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

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  5.577e+01  8.596e+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:  9.162e-01  1.552e-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:  9.275e-01  4.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/221499/likelihoodResults_544406401_544665601_4FGL_J1751.6+2921_daily_bin1177.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) = 3628.15503928
delta logL = 0.0607789864516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3628.13157619
delta logL = 0.0842420733679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.782       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1086       1.0000          .0000       10.000    
     3 'Normalizat'    .89062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92434       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=   3628.132     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      269 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.812        87.254        .63550E-04   -.19460E-03
   2  Index         3.1084        1.4211        .81264E-02   -.99181E-04
   3  Normalizat    .89064        .42611        .42618E-03    .97456E-03
   4  Prefactor     .92434        .15407        .15601E-03    .24084E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.8119
  Index      = 3.10841
  Normalizat = 0.89064
  Prefactor  = 0.924343
 **********
 **   18 **HESSE 
 **********

 FCN=   3628.132     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.812        76.328        .12710E-04   -1.4445    
   2  Index         3.1084        1.2428        .32506E-03   -.38798    
   3  Normalizat    .89064        .42610        .85236E-04   -.96790    
   4  Prefactor     .92434        .15396        .31202E-04   -.95296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19296e-09
Minuit parameter uncertainties:
  1  76.516
  2  1.25827
  3  0.427722
  4  0.154036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221499': 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) = 3628.13157607
delta logL = 0.0842421950824

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  3.981e+01  7.652e+01  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  3.108e+00  1.258e+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:  9.243e-01  1.540e-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:  8.906e-01  4.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
Ra Dec: 267.904 29.358

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/221499/cmap_HighResolution_544406401_544665601_4FGL_J1751.6+2921_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-02', job_status='DONE', photon_flux_upper_limit='3.21e-07', time_completed='2021-09-18 17:43:53.628580', job_id='221499', GAL2='0.92', fit_tolerance='1e-08', EG2='0.89', EG='0.93', time_epoch_completed='1632012233.63', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='8.42e-02', ts2='0.75', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1177' AND source_name='4FGL J1751.6+2921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 17:43:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 221499: <4FGL_J1751.6+2921_daily_bin1177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.6+2921_daily_bin1177 267.904 29.3582 544406401 544665601 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 :                                   568.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            810 sec.

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

