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


Performing analysis on: 4FGL_J1751.6+2921_daily_bin73
RA = 267.904, Dec = 29.3582
tmin = 258249601, tmax = 258508801
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='212461', job_status='RUN', time_executed='2021-09-18 17:03:38.233409', time_epoch_executed='1632009818.23' WHERE source_name='4FGL J1751.6+2921' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212461

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212461/ft1_4FGL_J1751.6+2921_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212461/ft2_4FGL_J1751.6+2921_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212461/ft1_4FGL_J1751.6+2921_daily_bin73.fits outfile=/scratch/kocevski/212461/ft1_filteredMKT_4FGL_J1751.6+2921_daily_bin73.fits ra=267.904 dec=29.3582 rad=12.0 tmin=258249601.0 tmax=258508801.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.16
user 0.97
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212461/ft1_filtered_4FGL_J1751.6+2921_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/212461/ft2_4FGL_J1751.6+2921_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/212461/ltcube_258249601_258508801_4FGL_J1751.6+2921_daily_bin73.fits outfile=/scratch/kocevski/212461/expmap_258249601_258508801_4FGL_J1751.6+2921_daily_bin73.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/212461/ltcube_258249601_258508801_4FGL_J1751.6+2921_daily_bin73.fits
.....................!
real 195.14
user 187.67
sys 5.07

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/212461/ft1_filtered_4FGL_J1751.6+2921_daily_bin73.fits scfile=/scratch/kocevski/212461/ft2_4FGL_J1751.6+2921_daily_bin73.fits outfile=/scratch/kocevski/212461/cmap_258249601_258508801_4FGL_J1751.6+2921_daily_bin73.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212461/ft1_filtered_4FGL_J1751.6+2921_daily_bin73.fits scfile=/scratch/kocevski/212461/ft2_4FGL_J1751.6+2921_daily_bin73.fits outfile=/scratch/kocevski/212461/cmap_HighResolution_258249601_258508801_4FGL_J1751.6+2921_daily_bin73.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.487       1.0000         .10000E-03   10000.    
     3 'norm      '    33.370       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0324       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .79907E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.876       1.0000         .10000E-03   10000.    
    18 'norm      '    14.342       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    63.153       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96355       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0075       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=   7124.911     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2327 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.885        .46623E-05** at limit **
   2  Prefactor     12.462        45.492       -.48338E-04   -.42259E-05
   3  norm          33.367        10.131        .12367E-05    .15966E-04
   4  norm          .10000E-03    30.907       -.97683E-05** at limit **
   5  Prefactor     .10000E-03    59.278        .26860E-05** at limit **
   6  Prefactor     .10000E-03    24.169       -.14970E-04** at limit **
   7  Prefactor     .10000E-03    6.4082        .87483E-07** at limit **
   8  Prefactor     .10000E-03    14.526       -.67843E-05** at limit **
   9  Prefactor     19.366        28.894       -.67321E-05   -.71115E-04
  10  Prefactor     .10000E-03    41.996        .25925E-04** at limit **
  11  Prefactor     .10000E-03    2.1583        .33109E-07** at limit **
  12  norm          3.0326        2.1353       -.15852E-06   -.11890E-02
  13  norm          .10000E-03    32.527       -.41935E-05** at limit **
  14  Prefactor     .10002E-03    4.8329        .10284E-05** at limit **
  15  norm          .10000E-03    2.7907       -.11615E-07** at limit **
  16  Prefactor     .10000E-03    3.8183       -.19888E-06** at limit **
  17  Prefactor     19.881        26.801        .41185E-05   -.81637E-04
  18  norm          14.287        28.749       -.51256E-04   -.43235E-04
  19  Prefactor     .10000E-03    17.349        .12665E-04** at limit **
  20  norm          63.171        71.592        .20120E-04   -.40881E-04
  21  Normalizat    .96404        .24026       -.71659E-06   -.16597E-03
  22  Prefactor     1.0074        .99599E-01    .12401E-05   -.67384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.4617
  norm       = 33.3667
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.03259
  norm       = 0.0001
  Prefactor  = 0.000100017
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8812
  norm       = 14.2872
  Prefactor  = 0.0001
  norm       = 63.1713
  Normalizat = 0.964038
  Prefactor  = 1.00745
 **********
 **   18 **HESSE 
 **********

 FCN=   7124.911     FROM HESSE     STATUS=OK           336 CALLS     2663 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.462        45.501        .11336E-03   -1.5002    
   3  norm          33.367        10.146        .69368E-04   -1.4552    
   4  norm          .10000E-03    30.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    59.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.366        28.914        .90996E-04   -1.4828    
  10  Prefactor     .10000E-03    42.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1604        .12110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0326        2.1349        .50349E-03   -1.5360    
  13  norm          .10000E-03    32.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    14.337        .35511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7915        .13770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.8400        .16070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.881        26.746        .89840E-04   -1.4816    
  18  norm          14.287        28.835        .10576E-03   -1.4952    
  19  Prefactor     .10000E-03    17.958        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          63.171        71.567        .50495E-04   -1.4117    
  21  Normalizat    .96404        .27590        .38688E-03   -.94245    
  22  Prefactor     1.0074        .11598        .16098E-03   -.92482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5824e-09
Minuit parameter uncertainties:
  1  4.95181e-06
  2  45.6278
  3  10.1464
  4  4.86516e-06
  5  1.92336e-05
  6  1.01378e-05
  7  6.93936e-06
  8  5.88475e-06
  9  28.9347
  10  0.000134072
  11  7.52228e-07
  12  2.13498
  13  1.71607e-06
  14  0.000976823
  15  5.886e-06
  16  2.73269e-05
  17  26.7623
  18  28.863
  19  4.6085e-05
  20  71.6651
  21  0.276303
  22  0.116006
Done.

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

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  1.937e+01  2.893e+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.007e+00  1.160e-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.640e-01  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/212461/likelihoodResults_258249601_258508801_4FGL_J1751.6+2921_daily_bin73.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) = 7124.88710943
delta logL = 0.0241264864462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7124.8776565
delta logL = 0.0335794187231

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.129       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3079       1.0000          .0000       10.000    
     3 'Normalizat'    .97084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0056       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=   7124.878     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      213 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.129        38.986        .20387E-02   -.71482E-03
   2  Index         2.3078        1.1512        .24275E-01    .23901E-03
   3  Normalizat    .97084        .23255        .87095E-01   -.18498E-04
   4  Prefactor     1.0056        .98706E-01    .44075E-01   -.10107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.1287
  Index      = 2.30782
  Normalizat = 0.970839
  Prefactor  = 1.00557
 **********
 **   18 **HESSE 
 **********

 FCN=   7124.878     FROM HESSE     STATUS=OK            27 CALLS      240 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.129        37.345        .81548E-04   -1.4725    
   2  Index         2.3078        1.1065        .48549E-02   -.56858    
   3  Normalizat    .97084        .26995        .38564E-03   -.94014    
   4  Prefactor     1.0056        .11488        .16111E-03   -.92544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94137e-09
Minuit parameter uncertainties:
  1  37.3807
  2  1.11966
  3  0.270334
  4  0.114912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212461': 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) = 7124.8776565
delta logL = 0.0335794203083

Extracting fit parameters...

4FGL J1751.6+2921
   Spectrum: PowerLaw
339    Prefactor:  2.413e+01  3.738e+01  1.000e-04  1.000e+04 ( 1.000e-13)
340        Index:  2.308e+00  1.120e+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.006e+00  1.149e-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.708e-01  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.65
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/212461/cmap_HighResolution_258249601_258508801_4FGL_J1751.6+2921_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.75e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-18 17:16:09.635567', job_id='212461', GAL2='1.01', fit_tolerance='1e-08', EG2='0.97', EG='0.96', time_epoch_completed='1632010569.64', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.36e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='73' AND source_name='4FGL J1751.6+2921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 17:16:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 212461: <4FGL_J1751.6+2921_daily_bin73> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.6+2921_daily_bin73 267.904 29.3582 258249601 258508801 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 :                                   748.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             314.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

