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


Performing analysis on: 4FGL_J1751.5+0938_daily_bin974
RA = 267.878, Dec = 9.6456
tmin = 491788801, tmax = 492048001
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='205496', job_status='RUN', time_executed='2021-09-18 16:38:40.122294', time_epoch_executed='1632008320.12' WHERE source_name='4FGL J1751.5+0938' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205496

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205496/ft1_4FGL_J1751.5+0938_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205496/ft2_4FGL_J1751.5+0938_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205496/ft1_4FGL_J1751.5+0938_daily_bin974.fits outfile=/scratch/kocevski/205496/ft1_filteredMKT_4FGL_J1751.5+0938_daily_bin974.fits ra=267.878 dec=9.6456 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.19
user 3.97
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/205496/ft2_4FGL_J1751.5+0938_daily_bin974.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/205496/ft2_4FGL_J1751.5+0938_daily_bin974.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/205496/ft1_filteredMKT_4FGL_J1751.5+0938_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/205496/ft1_filtered_4FGL_J1751.5+0938_daily_bin974.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/205496/ft1_filtered_4FGL_J1751.5+0938_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/205496/ft2_4FGL_J1751.5+0938_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/205496/ltcube_491788801_492048001_4FGL_J1751.5+0938_daily_bin974.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/205496/ft2_4FGL_J1751.5+0938_daily_bin974.fits
.....................!
real 11.87
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205496/ft1_filtered_4FGL_J1751.5+0938_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/205496/ft2_4FGL_J1751.5+0938_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/205496/ltcube_491788801_492048001_4FGL_J1751.5+0938_daily_bin974.fits outfile=/scratch/kocevski/205496/expmap_491788801_492048001_4FGL_J1751.5+0938_daily_bin974.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/205496/ltcube_491788801_492048001_4FGL_J1751.5+0938_daily_bin974.fits
.....................!
real 192.66
user 187.39
sys 4.94

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Added 272 point sources and 11 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1751.5+0938 @ 267.878 9.6456

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/205496/ft1_filtered_4FGL_J1751.5+0938_daily_bin974.fits scfile=/scratch/kocevski/205496/ft2_4FGL_J1751.5+0938_daily_bin974.fits outfile=/scratch/kocevski/205496/cmap_491788801_492048001_4FGL_J1751.5+0938_daily_bin974.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.878 yref=9.6456 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205496/ft1_filtered_4FGL_J1751.5+0938_daily_bin974.fits scfile=/scratch/kocevski/205496/ft2_4FGL_J1751.5+0938_daily_bin974.fits outfile=/scratch/kocevski/205496/cmap_HighResolution_491788801_492048001_4FGL_J1751.5+0938_daily_bin974.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.878 yref=9.6456 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/205496/ft1_filtered_4FGL_J1751.5+0938_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/205496/ft2_4FGL_J1751.5+0938_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/205496/Model_4FGL_J1751.5+0938_daily_bin974.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source FHES J1723.5-0501
adding source G24.7+0.6
adding source G42.8+0.6
adding source GAL_V02
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 41
adding source W 44
Working on...
/scratch/kocevski/205496/ft1_filtered_4FGL_J1751.5+0938_daily_bin974.fits....................!
real 31.05
user 29.80
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/205496/ft1_filtered_4FGL_J1751.5+0938_daily_bin974.fits', '/scratch/kocevski/205496/ft2_4FGL_J1751.5+0938_daily_bin974.fits', expMap='/scratch/kocevski/205496/expmap_491788801_492048001_4FGL_J1751.5+0938_daily_bin974.fits', expCube='/scratch/kocevski/205496/ltcube_491788801_492048001_4FGL_J1751.5+0938_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/205496/Model_4FGL_J1751.5+0938_daily_bin974.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1751.5+0938'

4FGL J1751.5+0938
   Spectrum: LogParabola
309         norm:  1.159e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.145e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  7.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/205496/ft1_filtered_4FGL_J1751.5+0938_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/205496/ft2_4FGL_J1751.5+0938_daily_bin974.fits
Exposure map: /scratch/kocevski/205496/expmap_491788801_492048001_4FGL_J1751.5+0938_daily_bin974.fits
Exposure cube: /scratch/kocevski/205496/ltcube_491788801_492048001_4FGL_J1751.5+0938_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/205496/Model_4FGL_J1751.5+0938_daily_bin974.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) = 1079.17787755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    175.89       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.283       1.0000         .10000E-03   10000.    
    13 'Prefactor '    314.67       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    55.795       1.0000         .10000E-03   10000.    
    16 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.992       1.0000         .10000E-03   10000.    
    18 'Prefactor '    769.38       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4694       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92741       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .47930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1011E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1079.121     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2355 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    148.69        .61296E-07** at limit **
   2  Prefactor     .10000E-03    12.171       -.51753E-07** at limit **
   3  norm          .10027E-03    31.014        .71455E-06** at limit **
   4  Prefactor     .10000E-03    21.980       -.79054E-07** at limit **
   5  norm          .10000E-03    25.171       -.12670E-06** at limit **
   6  Prefactor     .10000E-03    220.11       -.20229E-06** at limit **
   7  Prefactor     .10000E-03    8.3515       -.30909E-06** at limit **
   8  norm          175.90        83.631       -.52620E-06   -.10242E-04
   9  norm          .10000E-03    10.204       -.79209E-07** at limit **
  10  norm          .10000E-03    44.188       -.16870E-06** at limit **
  11  norm          .10000E-03    203.96       -.15935E-06** at limit **
  12  norm          21.284        7.1556       -.72072E-07   -.19456E-04
  13  Prefactor     314.72        225.20       -.37602E-07   -.25330E-06
  14  norm          .10000E-03    150.77        .62871E-06** at limit **
  15  norm          55.807        88.813        .10532E-05    .64913E-06
  16  norm          .10000E-03    32.688        .28927E-06** at limit **
  17  Prefactor     49.011        50.925        .94559E-07   -.11710E-04
  18  Prefactor     769.94        448.25       -.98795E-05   -.19541E-04
  19  Prefactor     .10000E-03    66.723       -.17072E-06** at limit **
  20  Prefactor     2.2916        1154.7       -.21009E-05   -.31087E-06
  21  Normalizat    .92702        .81205        .93715E-05   -.10080E-04
  22  Prefactor     .47932        .14960       -.16430E-05    .66527E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100269
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 175.897
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 21.2838
  Prefactor  = 314.725
  norm       = 0.0001
  norm       = 55.8065
  norm       = 0.0001
  Prefactor  = 49.0106
  Prefactor  = 769.939
  Prefactor  = 0.0001
  Prefactor  = 2.29162
  Normalizat = 0.927023
  Prefactor  = 0.479316
 **********
 **   18 **HESSE 
 **********

 FCN=   1079.121     FROM HESSE     STATUS=OK           338 CALLS     2693 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    148.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.175        .11197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10027E-03    169.76        .32909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.986        .15049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    25.175        .16105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    219.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4124        .92763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          175.90        83.539        .15215E-03   -1.3048    
   9  norm          .10000E-03    10.230        .10251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    44.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    203.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.284        7.1398        .48463E-04   -1.4785    
  13  Prefactor     314.72        224.61        .11456E-03   -1.2141    
  14  norm          .10000E-03    151.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          55.807        88.835        .53702E-04   -1.4212    
  16  norm          .10000E-03    32.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.011        51.360        .57291E-04   -1.4307    
  18  Prefactor     769.94        454.82        .75049E-04   -1.0085    
  19  Prefactor     .10000E-03    66.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2916        1233.6        .26022E-02   -1.5405    
  21  Normalizat    .92702        .82169        .58231E-03   -.95517    
  22  Prefactor     .47932        .15909        .14560E-03   -1.1294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58336e-09
Minuit parameter uncertainties:
  1  0.000112466
  2  3.99597e-06
  3  0.0135438
  4  4.59436e-06
  5  2.09914e-05
  6  0.000272321
  7  2.04249e-05
  8  83.5951
  9  8.97153e-08
  10  2.4649e-05
  11  0.000168366
  12  7.14009
  13  225.235
  14  0.000170333
  15  89.0465
  16  5.36569e-05
  17  51.4068
  18  457.052
  19  6.02451e-06
  20  108.669
  21  0.833231
  22  0.159238
Done.

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

Extracting fit parameters...

4FGL J1751.5+0938
   Spectrum: LogParabola
309         norm:  2.128e+01  7.140e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.145e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  7.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
987    Prefactor:  4.793e-01  1.592e-01  0.000e+00  1.000e+01 ( 1.000e+00)
988        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
989        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
970   Normalization:  9.270e-01  8.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.52
Ra Dec: 267.878 9.646
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.24e-06 +/- 4.15e-07
Energy Flux (Fixed Index): 5.47e-04 +/- 1.84e-04

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) = 1079.06801319
delta logL = 0.0525626187846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1079.04733695
delta logL = 0.0732388553599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.778       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0081       1.0000          .0000       5.0000    
     3 'Normalizat'    .98203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47402       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1011E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1079.047     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      197 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.778        9.8891        .20982E-02   -.44856E-02
   2  alpha         2.0081        .40812        .92420E-01    .61700E-05
   3  Normalizat    .98215        .77151        .12845        .49151E-05
   4  Prefactor     .47401        .14083        .39307E-01    .75549E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 22.7782
  alpha      = 2.00811
  Normalizat = 0.982148
  Prefactor  = 0.474009
 **********
 **   18 **HESSE 
 **********

 FCN=   1079.047     FROM HESSE     STATUS=OK            29 CALLS      226 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.778        8.3565        .50767E-04   -1.4753    
   2  alpha         2.0081        .34872        .40479E-03   -.19805    
   3  Normalizat    .98215        .82080        .57019E-03   -.93631    
   4  Prefactor     .47401        .15068        .14642E-03   -1.1318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18057e-09
Minuit parameter uncertainties:
  1  8.35691
  2  0.349904
  3  0.83169
  4  0.150806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205496': 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) = 1079.04733694
delta logL = 0.0732388699219

Extracting fit parameters...

4FGL J1751.5+0938
   Spectrum: LogParabola
309         norm:  2.278e+01  8.357e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.008e+00  3.499e-01  0.000e+00  5.000e+00 ( 1.000e+00)
311         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  7.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
987    Prefactor:  4.740e-01  1.508e-01  0.000e+00  1.000e+01 ( 1.000e+00)
988        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
989        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
970   Normalization:  9.821e-01  8.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.66
Ra Dec: 267.878 9.646
Photon Index (Free Index): 2.01 +/- 0.35
Photon Flux (Free Index): 1.14e-06 +/- 4.59e-07
Energy Flux (Free Index): 6.21e-04 +/- 3.04e-04

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/205496/cmap_HighResolution_491788801_492048001_4FGL_J1751.5+0938_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-06', energy_flux2='6.21e-04', photon_flux_error='4.15e-07', dlogl='7.32e-02', energy_flux='5.47e-04', photon_flux2='1.14e-06', job_status='DONE', time_completed='2021-09-18 16:45:51.180222', photon_index_error2='0.35', photon_index2='2.01', ts='34.52', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', energy_flux_error2='3.04e-04', EG='0.93', time_epoch_completed='1632008751.18', return_code='0', job_id='205496', GAL2='0.47', EG2='0.98', return_code2='0', energy_flux_error='1.84e-04', photon_flux_error2='4.59e-07', ts2='33.66', photon_index='2.14' WHERE bin_id='974' AND source_name='4FGL J1751.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 16:45:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 205496: <4FGL_J1751.5+0938_daily_bin974> in cluster <slac> Done

Job <4FGL_J1751.5+0938_daily_bin974> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 18 16:35:32 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 16:35:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 16:35:33 2021
Terminated at Sat Sep 18 16:45:51 2021
Results reported at Sat Sep 18 16:45:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1751.5+0938_daily_bin974 267.878 9.6456 491788801 492048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1751.5+0938 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   428.38 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             264.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            619 sec.

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

