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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1028
RA = 192.836, Dec = -2.0271
tmin = 505785601, tmax = 506044801
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='950440', job_status='RUN', time_executed='2021-09-06 07:12:42.899903', time_epoch_executed='1630937562.9' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950440

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950440/ft1_4FGL_J1251.3-0201_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950440/ft2_4FGL_J1251.3-0201_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950440/ft1_4FGL_J1251.3-0201_daily_bin1028.fits outfile=/scratch/kocevski/950440/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1028.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=505785601.0 tmax=506044801.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.12
user 3.34
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/950440/ft2_4FGL_J1251.3-0201_daily_bin1028.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950440/ft2_4FGL_J1251.3-0201_daily_bin1028.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/950440/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1028.fits evtable="EVENTS" outfile="/scratch/kocevski/950440/ft1_filtered_4FGL_J1251.3-0201_daily_bin1028.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.75
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950440/ft1_filtered_4FGL_J1251.3-0201_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/950440/ft2_4FGL_J1251.3-0201_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/950440/ltcube_505785601_506044801_4FGL_J1251.3-0201_daily_bin1028.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/950440/ft2_4FGL_J1251.3-0201_daily_bin1028.fits
.....................!
real 12.30
user 11.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950440/ft1_filtered_4FGL_J1251.3-0201_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/950440/ft2_4FGL_J1251.3-0201_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/950440/ltcube_505785601_506044801_4FGL_J1251.3-0201_daily_bin1028.fits outfile=/scratch/kocevski/950440/expmap_505785601_506044801_4FGL_J1251.3-0201_daily_bin1028.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/950440/ltcube_505785601_506044801_4FGL_J1251.3-0201_daily_bin1028.fits
.....................!
real 193.75
user 186.09
sys 4.42

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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1251.3-0201 @ 192.836 -2.0271

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/950440/ft1_filtered_4FGL_J1251.3-0201_daily_bin1028.fits scfile=/scratch/kocevski/950440/ft2_4FGL_J1251.3-0201_daily_bin1028.fits outfile=/scratch/kocevski/950440/cmap_505785601_506044801_4FGL_J1251.3-0201_daily_bin1028.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=192.836 yref=-2.0271 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.75
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950440/ft1_filtered_4FGL_J1251.3-0201_daily_bin1028.fits scfile=/scratch/kocevski/950440/ft2_4FGL_J1251.3-0201_daily_bin1028.fits outfile=/scratch/kocevski/950440/cmap_HighResolution_505785601_506044801_4FGL_J1251.3-0201_daily_bin1028.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=192.836 yref=-2.0271 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.61
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950440/ft1_filtered_4FGL_J1251.3-0201_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/950440/ft2_4FGL_J1251.3-0201_daily_bin1028.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950440/Model_4FGL_J1251.3-0201_daily_bin1028.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/950440/ft1_filtered_4FGL_J1251.3-0201_daily_bin1028.fits.....................!
real 60.41
user 54.73
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950440/ft1_filtered_4FGL_J1251.3-0201_daily_bin1028.fits', '/scratch/kocevski/950440/ft2_4FGL_J1251.3-0201_daily_bin1028.fits', expMap='/scratch/kocevski/950440/expmap_505785601_506044801_4FGL_J1251.3-0201_daily_bin1028.fits', expCube='/scratch/kocevski/950440/ltcube_505785601_506044801_4FGL_J1251.3-0201_daily_bin1028.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950440/Model_4FGL_J1251.3-0201_daily_bin1028.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1251.3-0201'

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  5.916e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.951e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/950440/ft1_filtered_4FGL_J1251.3-0201_daily_bin1028.fits
Spacecraft file(s): /scratch/kocevski/950440/ft2_4FGL_J1251.3-0201_daily_bin1028.fits
Exposure map: /scratch/kocevski/950440/expmap_505785601_506044801_4FGL_J1251.3-0201_daily_bin1028.fits
Exposure cube: /scratch/kocevski/950440/ltcube_505785601_506044801_4FGL_J1251.3-0201_daily_bin1028.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950440/Model_4FGL_J1251.3-0201_daily_bin1028.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) = 6936.54677926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9964       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.290       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.780       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9662       1.0000         .10000E-03   10000.    
     5 'norm      '    5.9633       1.0000         .10000E-03   10000.    
     6 'norm      '    .11117E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    158.56       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3170       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5602       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12730E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.299       1.0000         .10000E-03   10000.    
    15 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6248       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    24.078       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0663       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9680       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1017       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2936       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90542       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2352       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6936.537     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2717 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0649        72.122       -.12907E-05    .45653E-04
   2  Prefactor     23.262        51.953        .43380E-05    .13003E-03
   3  Prefactor     27.775        17.231        .84343E-06    .10727E-03
   4  norm          1.9661        2.1607        .81675E-07   -.15070E-03
   5  norm          5.9652        4.8631       -.69279E-06    .30229E-04
   6  norm          .10000E-03    17.523       -.12426E-06** at limit **
   7  Prefactor     158.48        143.49        .77085E-05    .17538E-03
   8  norm          2.3172        .74035        .22305E-07    .33613E-03
   9  Prefactor     .10000E-03    5.0182       -.45435E-06** at limit **
  10  Prefactor     .10000E-03    5.0488       -.47715E-06** at limit **
  11  norm          2.5602        1.4303       -.68127E-07    .18598E-03
  12  Prefactor     .10000E-03    2.2186       -.19644E-06** at limit **
  13  Prefactor     .10003E-03    256.77       -.75048E-04** at limit **
  14  Prefactor     21.282        24.783       -.49619E-06   -.17466E-04
  15  norm          .10000E-03    8.1388       -.13556E-06** at limit **
  16  norm          2.6250        .40592        .12274E-07    .23962E-02
  17  Prefactor     .10000E-03    41.727       -.13621E-06** at limit **
  18  norm          24.078        16.768        .12604E-05    .53320E-03
  19  norm          1.0667        37.333       -.11503E-04    .17620E-03
  20  Prefactor     3.9828        33.841       -.22334E-05    .40983E-04
  21  Prefactor     9.0986        11.980        .14672E-05    .52312E-03
  22  norm          1.2947        1.6094       -.31495E-06    .29696E-03
  23  Normalizat    .90470        .25486        .18666E-05    .59969E-03
  24  Prefactor     1.2355        .17665        .33693E-06    .38888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.0649
  Prefactor  = 23.2618
  Prefactor  = 27.7748
  norm       = 1.96608
  norm       = 5.96524
  norm       = 0.0001
  Prefactor  = 158.478
  norm       = 2.31724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.56024
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 21.2817
  norm       = 0.0001
  norm       = 2.625
  Prefactor  = 0.0001
  norm       = 24.0778
  norm       = 1.06671
  Prefactor  = 3.98279
  Prefactor  = 9.09864
  norm       = 1.29473
  Normalizat = 0.904701
  Prefactor  = 1.23555
 **********
 **   18 **HESSE 
 **********

 FCN=   6936.537     FROM HESSE     STATUS=OK           405 CALLS     3122 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0649        72.503        .29316E-03   -1.5421    
   2  Prefactor     23.262        52.020        .83001E-04   -1.4743    
   3  Prefactor     27.775        17.089        .76009E-04   -1.4653    
   4  norm          1.9661        2.1537        .12032E-03   -1.5428    
   5  norm          5.9652        4.8746        .13957E-03   -1.5219    
   6  norm          .10000E-03    17.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     158.48        144.86        .16011E-03   -1.3184    
   8  norm          2.3172        .73941        .36511E-04   -1.5404    
   9  Prefactor     .10000E-03    5.0524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5602        1.4268        .71636E-04   -1.5388    
  12  Prefactor     .10000E-03    2.2225        .12116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    23.470        .12235       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.282        24.807        .86788E-04   -1.4785    
  15  norm          .10000E-03    8.1433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6250        .40706        .19658E-04   -1.5384    
  17  Prefactor     .10000E-03    41.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.078        16.765        .81634E-04   -1.4726    
  19  norm          1.0667        37.816        .47208E-03   -1.5501    
  20  Prefactor     3.9828        33.925        .20249E-03   -1.5309    
  21  Prefactor     9.0986        11.984        .13285E-03   -1.5105    
  22  norm          1.2947        1.5831        .11223E-03   -1.5480    
  23  Normalizat    .90470        .29901        .38029E-03   -.96295    
  24  Prefactor     1.2355        .20699        .24315E-03   -.85244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94504e-09
Minuit parameter uncertainties:
  1  24.503
  2  52.1218
  3  17.0924
  4  2.15374
  5  4.87491
  6  1.75065e-05
  7  145.183
  8  0.739411
  9  3.22722e-05
  10  1.93377e-05
  11  1.42678
  12  6.62355e-06
  13  0.00167334
  14  24.819
  15  9.58582e-06
  16  0.407065
  17  8.29291e-05
  18  16.7678
  19  12.7107
  20  23.2654
  21  11.9873
  22  1.58317
  23  0.299561
  24  0.207122
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  9.586e-06  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.951e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.236e+00  2.071e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.047e-01  2.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.836 -2.027
Photon Flux Upper Limit: 3.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950440/likelihoodResults_505785601_506044801_4FGL_J1251.3-0201_daily_bin1028.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) = 6936.53763849
delta logL = -0.000580698309022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6936.53705779
delta logL = -4.52291715192e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9426       1.0000          .0000       5.0000    
     3 'Normalizat'    .90465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2356       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6936.537     FROM MIGRAD    STATUS=FAILED        93 CALLS      242 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1569.0        .18142E-02** at limit **
   2  alpha         1.7031        3.9056        .17010       -.16441E-07
   3  Normalizat    .90469        .12849        .38028E-03    .52078E-04
   4  Prefactor     1.2356        .94980E-01    .24315E-03    .92372E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6936.537     FROM SIMPLEX   STATUS=UNCHANGED    190 CALLS      432 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1569.0        .39475E-03** at limit **
   2  alpha         1.7031        3.9056        .41460E-06   -.16441E-07
   3  Normalizat    .90469        .12849        .11554E-07    .52078E-04
   4  Prefactor     1.2356        .94980E-01    .13156E-07    .92372E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6936.537     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      460 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.4817        .36285E-03** at limit **
   2  alpha         1.7055        4.0583        .68040E-02    .29407E-07
   3  Normalizat    .90469        .27478        .15211E-04    .52018E-04
   4  Prefactor     1.2356        .20326        .48629E-04    .92204E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.70546
  Normalizat = 0.90469
  Prefactor  = 1.23555
 **********
 **   18 **HESSE 
 **********

 FCN=   6936.537     FROM HESSE     STATUS=OK            23 CALLS      483 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.4800        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7055        4.1356        .13608E-02   -.32342    
   3  Normalizat    .90469        .27480        .30422E-05   -.96296    
   4  Prefactor     1.2356        .20327        .97259E-05   -.85244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42085e-11
Minuit parameter uncertainties:
  1  7.36214e-05
  2  352.631
  3  0.275231
  4  0.2034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950440': 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) = 6936.53705755
delta logL = 2.44391230808e-07

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  7.362e-05  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.705e+00  3.526e+02  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.236e+00  2.034e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.047e-01  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.836 -2.027

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/950440/cmap_HighResolution_505785601_506044801_4FGL_J1251.3-0201_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-05', job_status='DONE', photon_flux_upper_limit='3.69e-08', time_completed='2021-09-06 07:26:13.735438', job_id='950440', GAL2='1.24', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630938373.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='2.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1028' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:26:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 950440: <4FGL_J1251.3-0201_daily_bin1028> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1028> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:10:49 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:10:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:10:51 2021
Terminated at Mon Sep  6 07:26:14 2021
Results reported at Mon Sep  6 07:26:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1028 192.836 -2.0271 505785601 506044801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1251.3-0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   739.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

