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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1081
RA = 192.836, Dec = -2.0271
tmin = 519523201, tmax = 519782401
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='950496', job_status='RUN', time_executed='2021-09-06 07:14:17.841637', time_epoch_executed='1630937657.84' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950496

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950496/ft1_4FGL_J1251.3-0201_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950496/ft2_4FGL_J1251.3-0201_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950496/ft1_4FGL_J1251.3-0201_daily_bin1081.fits outfile=/scratch/kocevski/950496/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1081.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=519523201.0 tmax=519782401.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 3.06
user 2.71
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950496/ft2_4FGL_J1251.3-0201_daily_bin1081.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/950496/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1081.fits evtable="EVENTS" outfile="/scratch/kocevski/950496/ft1_filtered_4FGL_J1251.3-0201_daily_bin1081.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.57
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950496/ft1_filtered_4FGL_J1251.3-0201_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/950496/ft2_4FGL_J1251.3-0201_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/950496/ltcube_519523201_519782401_4FGL_J1251.3-0201_daily_bin1081.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/950496/ft2_4FGL_J1251.3-0201_daily_bin1081.fits
.....................!
real 10.18
user 9.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950496/ft1_filtered_4FGL_J1251.3-0201_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/950496/ft2_4FGL_J1251.3-0201_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/950496/ltcube_519523201_519782401_4FGL_J1251.3-0201_daily_bin1081.fits outfile=/scratch/kocevski/950496/expmap_519523201_519782401_4FGL_J1251.3-0201_daily_bin1081.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/950496/ltcube_519523201_519782401_4FGL_J1251.3-0201_daily_bin1081.fits
.....................!
real 193.28
user 187.53
sys 4.45

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/950496/ft1_filtered_4FGL_J1251.3-0201_daily_bin1081.fits scfile=/scratch/kocevski/950496/ft2_4FGL_J1251.3-0201_daily_bin1081.fits outfile=/scratch/kocevski/950496/cmap_519523201_519782401_4FGL_J1251.3-0201_daily_bin1081.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.64
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950496/ft1_filtered_4FGL_J1251.3-0201_daily_bin1081.fits scfile=/scratch/kocevski/950496/ft2_4FGL_J1251.3-0201_daily_bin1081.fits outfile=/scratch/kocevski/950496/cmap_HighResolution_519523201_519782401_4FGL_J1251.3-0201_daily_bin1081.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.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950496/ft1_filtered_4FGL_J1251.3-0201_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/950496/ft2_4FGL_J1251.3-0201_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950496/Model_4FGL_J1251.3-0201_daily_bin1081.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/950496/ft1_filtered_4FGL_J1251.3-0201_daily_bin1081.fits.....................!
real 49.40
user 47.63
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950496/ft1_filtered_4FGL_J1251.3-0201_daily_bin1081.fits', '/scratch/kocevski/950496/ft2_4FGL_J1251.3-0201_daily_bin1081.fits', expMap='/scratch/kocevski/950496/expmap_519523201_519782401_4FGL_J1251.3-0201_daily_bin1081.fits', expCube='/scratch/kocevski/950496/ltcube_519523201_519782401_4FGL_J1251.3-0201_daily_bin1081.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950496/Model_4FGL_J1251.3-0201_daily_bin1081.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/950496/ft1_filtered_4FGL_J1251.3-0201_daily_bin1081.fits
Spacecraft file(s): /scratch/kocevski/950496/ft2_4FGL_J1251.3-0201_daily_bin1081.fits
Exposure map: /scratch/kocevski/950496/expmap_519523201_519782401_4FGL_J1251.3-0201_daily_bin1081.fits
Exposure cube: /scratch/kocevski/950496/ltcube_519523201_519782401_4FGL_J1251.3-0201_daily_bin1081.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950496/Model_4FGL_J1251.3-0201_daily_bin1081.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) = 5537.69486525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.424       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20434E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12044E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4192       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0073       1.0000         .10000E-03   10000.    
     6 'norm      '    .63217       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .63819E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3919       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10959E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7923       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16364E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .36030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    108.03       1.0000         .10000E-03   10000.    
    15 'norm      '    23.256       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7792       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .73666E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    6.4373       1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13317E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2168       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5263       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87415       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5537.614     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1603 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.414        1.1011       -.62940E-09    .89265E-04
   2  Prefactor     .10000E-03    22.662        .84259E-06** at limit **
   3  Prefactor     .10000E-03    6.6691       -.81755E-06** at limit **
   4  norm          2.4194        2.4014       -.22250E-06    .28940E-04
   5  norm          3.0268        3.8148        .46060E-05   -.10749E-03
   6  norm          .10000E-03    314.06        .39044E-05** at limit **
   7  Prefactor     .10000E-03    118.91       -.40054E-05** at limit **
   8  norm          1.3938        .73616        .25129E-06   -.87899E-04
   9  Prefactor     .10000E-03    4.4628        .86766E-07** at limit **
  10  Prefactor     3.9064        12.707       -.33142E-06    .54832E-05
  11  norm          .10000E-03    3.3516        .28153E-06** at limit **
  12  Prefactor     .10000E-03    5.0200        .14179E-06** at limit **
  13  Prefactor     .10000E-03    14.265        .18350E-05** at limit **
  14  Prefactor     109.56        74.175        .60980E-06   -.17358E-04
  15  norm          23.061        12.207        .73565E-06   -.93847E-03
  16  norm          3.7757        .58205        .40225E-08   -.14347E-04
  17  Prefactor     .10008E-03    75.155        .60124E-05** at limit **
  18  norm          6.4311        9.6012       -.61982E-06   -.16908E-04
  19  norm          .10000E-03    4.1681       -.16758E-06** at limit **
  20  Prefactor     .10000E-03    5.5779       -.54923E-06** at limit **
  21  Prefactor     .10000E-03    15.976       -.15096E-05** at limit **
  22  norm          1.2185        2.2538       -.27748E-06    .39858E-04
  23  Normalizat    1.5259        .33693       -.23568E-05    .19220E-04
  24  Prefactor     .87426        .22877        .19123E-05    .18662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.4194
  norm       = 3.02683
  norm       = 0.000100002
  Prefactor  = 0.000100004
  norm       = 1.39382
  Prefactor  = 0.0001
  Prefactor  = 3.90636
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 109.565
  norm       = 23.0613
  norm       = 3.77573
  Prefactor  = 0.000100076
  norm       = 6.43107
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21849
  Normalizat = 1.52585
  Prefactor  = 0.874257
 **********
 **   18 **HESSE 
 **********

 FCN=   5537.614     FROM HESSE     STATUS=OK           453 CALLS     2056 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.414        28.052        .18465E-02   -1.4623    
   2  Prefactor     .10000E-03    22.653        .10105E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.6573        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4194        2.4152        .65790E-02   -1.5397    
   5  norm          3.0268        3.8590        .58513E-02   -1.5360    
   6  norm          .10000E-03    311.00        .11799E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    120.63        .93373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3938        .74641        .92066E-02   -1.5472    
   9  Prefactor     .10000E-03    4.4580        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9064        12.713        .51822E-02   -1.5313    
  11  norm          .10000E-03    1.3678        .27207E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.268        .10655E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     109.56        73.676        .96738E-03   -1.3611    
  15  norm          23.061        22.321        .20765E-02   -1.4747    
  16  norm          3.7757        .57644        .45267E-02   -1.5319    
  17  Prefactor     .10008E-03    104.13        .93081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.4311        9.6125        .39547E-02   -1.5201    
  19  norm          .10000E-03    4.1720        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.784        .10281E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2185        2.2640        .10234E-01   -1.5487    
  23  Normalizat    1.5259        .27998        .71004E-01   -.77055    
  24  Prefactor     .87426        .18970        .63957E-01   -.97047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07626e-09
Minuit parameter uncertainties:
  1  28.0641
  2  3.74508e-05
  3  2.43587e-07
  4  2.41533
  5  3.85928
  6  0.00171602
  7  0.00139026
  8  0.746417
  9  1.21449e-06
  10  12.722
  11  4.93196e-07
  12  3.33004e-06
  13  2.73443e-05
  14  73.7375
  15  22.3293
  16  0.576438
  17  0.00565186
  18  9.61484
  19  1.52766e-06
  20  5.99954e-06
  21  3.01233e-05
  22  2.2642
  23  0.280269
  24  0.189847
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  2.306e+01  2.233e+01  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:  8.743e-01  1.898e-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:  1.526e+00  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.59
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 1.98e-08 +/- 1.92e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.32e-05

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) = 5536.64463932
delta logL = 0.969016802485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5536.46603341
delta logL = 1.14762270745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9988       1.0000         .10000E-03   10000.    
     2 'alpha     '    .66955       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87566       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=   5536.466     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      222 TOTAL
                     EDM=   .88E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.008        16.033        .77491E-05   -.10432E-03
   2  alpha         .67038        .76942        .12939E-03    .62800E-05
   3  Normalizat    1.5321        .26639        .13713E-06   -.39206E-04
   4  Prefactor     .87561        .18910       -.23932E-06   -.31363E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0083
  alpha      = 0.670382
  Normalizat = 1.53209
  Prefactor  = 0.875613
 **********
 **   18 **HESSE 
 **********

 FCN=   5536.466     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.008        15.245        .12672E-03   -1.5075    
   2  alpha         .67038        .73236        .22889E-01   -.82103    
   3  Normalizat    1.5321        .32013        .31370E-03   -.76881    
   4  Prefactor     .87561        .22720        .28276E-03   -.96999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88208e-11
Minuit parameter uncertainties:
  1  15.2514
  2  0.75703
  3  0.32056
  4  0.227444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950496': 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) = 5536.46603279
delta logL = 1.14762333298

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.001e+01  1.525e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  6.704e-01  7.570e-01  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:  8.756e-01  2.274e-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:  1.532e+00  3.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.88
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 0.67 +/- 0.76
Photon Flux (Free Index): 6.05e-09 +/- 6.43e-09
Energy Flux (Free Index): 5.86e-05 +/- 8.60e-05

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/950496/cmap_HighResolution_519523201_519782401_4FGL_J1251.3-0201_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.98e-08', energy_flux2='5.86e-05', photon_flux_error='1.92e-08', dlogl='1.15e+00', energy_flux='1.37e-05', photon_flux2='6.05e-09', job_status='DONE', time_completed='2021-09-06 07:24:30.615809', photon_index_error2='0.76', photon_index2='0.67', ts='8.59', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='8.60e-05', EG='1.53', time_epoch_completed='1630938270.62', return_code='0', job_id='950496', GAL2='0.88', EG2='1.53', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='6.43e-09', ts2='10.88', photon_index='1.95' WHERE bin_id='1081' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:24:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 950496: <4FGL_J1251.3-0201_daily_bin1081> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1081> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:10:56 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:10:56 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:56 2021
Terminated at Mon Sep  6 07:24:31 2021
Results reported at Mon Sep  6 07:24:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1081 192.836 -2.0271 519523201 519782401 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 :                                   510.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             248.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

