/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 154 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 = 7475
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1251.3-0201_daily_bin318
RA = 192.836, Dec = -2.0271
tmin = 321753601, tmax = 322012801
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='945411', job_status='RUN', time_executed='2021-09-06 06:58:36.582836', time_epoch_executed='1630936716.58' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945411

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945411/ft1_4FGL_J1251.3-0201_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945411/ft2_4FGL_J1251.3-0201_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945411/ft1_4FGL_J1251.3-0201_daily_bin318.fits outfile=/scratch/kocevski/945411/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin318.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=321753601.0 tmax=322012801.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.37
user 3.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945411/ft1_filtered_4FGL_J1251.3-0201_daily_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/945411/ft2_4FGL_J1251.3-0201_daily_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/945411/ltcube_321753601_322012801_4FGL_J1251.3-0201_daily_bin318.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/945411/ft2_4FGL_J1251.3-0201_daily_bin318.fits
.....................!
real 11.96
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945411/ft1_filtered_4FGL_J1251.3-0201_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/945411/ft2_4FGL_J1251.3-0201_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/945411/ltcube_321753601_322012801_4FGL_J1251.3-0201_daily_bin318.fits outfile=/scratch/kocevski/945411/expmap_321753601_322012801_4FGL_J1251.3-0201_daily_bin318.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/945411/ltcube_321753601_322012801_4FGL_J1251.3-0201_daily_bin318.fits
.....................!
real 191.02
user 185.76
sys 4.83

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/945411/ft1_filtered_4FGL_J1251.3-0201_daily_bin318.fits scfile=/scratch/kocevski/945411/ft2_4FGL_J1251.3-0201_daily_bin318.fits outfile=/scratch/kocevski/945411/cmap_321753601_322012801_4FGL_J1251.3-0201_daily_bin318.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.77
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945411/ft1_filtered_4FGL_J1251.3-0201_daily_bin318.fits scfile=/scratch/kocevski/945411/ft2_4FGL_J1251.3-0201_daily_bin318.fits outfile=/scratch/kocevski/945411/cmap_HighResolution_321753601_322012801_4FGL_J1251.3-0201_daily_bin318.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/945411/ft1_filtered_4FGL_J1251.3-0201_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/945411/ft2_4FGL_J1251.3-0201_daily_bin318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/945411/Model_4FGL_J1251.3-0201_daily_bin318.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/945411/ft1_filtered_4FGL_J1251.3-0201_daily_bin318.fits.....................!
real 57.31
user 55.59
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.294       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .25801E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .64153       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1669       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.8161       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.789       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3813       1.0000         .10000E-03   10000.    
    16 'norm      '    .94988       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .59086E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.990       1.0000         .10000E-03   10000.    
    22 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    2.1098       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .47429       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=   6874.074     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2751 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.293        20.126       -.59507E-06    .64094E-06
   2  Prefactor     .10000E-03    35.967       -.17491E-04** at limit **
   3  Prefactor     .10000E-03    5.8850       -.27556E-07** at limit **
   4  norm          .10000E-03    .90181       -.36939E-07** at limit **
   5  norm          .10000E-03    1.8339       -.11187E-06** at limit **
   6  norm          .10000E-03    15.329        .27433E-05** at limit **
   7  Prefactor     .10000E-03    86.343        .15305E-04** at limit **
   8  norm          .64164        .56351        .14185E-06    .40865E-03
   9  Prefactor     5.1671        8.7031        .84013E-07   -.12890E-03
  10  Prefactor     .10000E-03    24.589        .16186E-04** at limit **
  11  norm          3.8162        1.8627        .24631E-06    .65622E-04
  12  Prefactor     .10000E-03    6.8991       -.13447E-06** at limit **
  13  Prefactor     11.723        30.579       -.50061E-04   -.17180E-04
  14  Prefactor     .10000E-03    48.783        .17435E-04** at limit **
  15  norm          2.3915        91.476        .24771E-04   -.67431E-05
  16  norm          .94989        .27728       -.48623E-07   -.77555E-03
  17  Prefactor     .10000E-03    31.246       -.10971E-04** at limit **
  18  norm          .10002E-03    6.7479       -.83002E-06** at limit **
  19  norm          .10000E-03    4.0436       -.44495E-10** at limit **
  20  Prefactor     .10000E-03    17.180       -.63083E-05** at limit **
  21  Prefactor     24.993        13.242       -.27042E-06    .45621E-04
  22  norm          .10000E-03    .72481       -.56180E-07** at limit **
  23  Normalizat    2.1095        .23907        .22095E-05   -.17824E-03
  24  Prefactor     .47451        .15637       -.31965E-06   -.35558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.641636
  Prefactor  = 5.16709
  Prefactor  = 0.000100002
  norm       = 3.81619
  Prefactor  = 0.0001
  Prefactor  = 11.723
  Prefactor  = 0.0001
  norm       = 2.39146
  norm       = 0.949885
  Prefactor  = 0.0001
  norm       = 0.000100023
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9928
  norm       = 0.0001
  Normalizat = 2.10951
  Prefactor  = 0.474507
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.074     FROM HESSE     STATUS=OK           399 CALLS     3150 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.293        20.127        .91184E-04   -1.4829    
   2  Prefactor     .10000E-03    36.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .91180        .76854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.4583        .20826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    86.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .64164        .52777        .52611E-03   -1.5548    
   9  Prefactor     5.1671        8.6811        .17686E-03   -1.5253    
  10  Prefactor     .10000E-03    25.373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8162        1.8558        .74951E-04   -1.5317    
  12  Prefactor     .10000E-03    6.9314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.723        30.638        .11667E-03   -1.5023    
  14  Prefactor     .10000E-03    48.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3915        90.953        .26546E-03   -1.5399    
  16  norm          .94989        .27639        .22330E-04   -1.5513    
  17  Prefactor     .10000E-03    31.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10002E-03    48.962        .41064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0466        .16282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.993        13.236        .80132E-04   -1.4708    
  22  norm          .10000E-03    1.2338        .13674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.1095        .27191        .25472E-03   -.61833    
  24  Prefactor     .47451        .17721        .33224E-03   -1.1316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01497e-10
Minuit parameter uncertainties:
  1  20.134
  2  1.18621e-05
  3  6.70446e-06
  4  1.29821e-06
  5  3.06553e-05
  6  4.69419e-06
  7  2.49052e-05
  8  0.527777
  9  8.6832
  10  0.000454999
  11  1.85588
  12  3.08171e-05
  13  30.6788
  14  0.000100056
  15  29.5442
  16  0.276389
  17  8.02215e-07
  18  0.00211353
  19  7.73089e-07
  20  5.50704e-06
  21  13.2371
  22  7.9091e-06
  23  0.272116
  24  0.177412
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  2.391e+00  2.954e+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:  4.745e-01  1.774e-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:  2.110e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/945411/likelihoodResults_321753601_322012801_4FGL_J1251.3-0201_daily_bin318.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) = 6873.33107704
delta logL = 0.742656373453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6873.25773917
delta logL = 0.815994242381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1893       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4197       1.0000          .0000       5.0000    
     3 'Normalizat'    2.0381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49580       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.

 FCN=   6873.258     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      284 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1920        19.828        .14960E-03    .56007E-03
   2  alpha         3.4195        1.3894        .12908E-01    .11587E-03
   3  Normalizat    2.0381        .26851        .25762E-03    .48838E-03
   4  Prefactor     .49586        .17936        .32510E-03    .36785E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.19196
  alpha      = 3.41952
  Normalizat = 2.03806
  Prefactor  = 0.495857
 **********
 **   18 **HESSE 
 **********

 FCN=   6873.258     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1920        13.405        .59840E-05   -1.5172    
   2  alpha         3.4195        .97392        .51633E-03    .37665    
   3  Normalizat    2.0381        .26756        .51524E-04   -.63600    
   4  Prefactor     .49586        .17845        .13004E-04   -1.1217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52463e-10
Minuit parameter uncertainties:
  1  13.4108
  2  1.00492
  3  0.267758
  4  0.178648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945411': 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) = 6873.2577391
delta logL = 0.815994314433

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  7.192e+00  1.341e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  3.420e+00  1.005e+00  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:  4.959e-01  1.786e-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:  2.038e+00  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 3.42 +/- 1.00
Photon Flux (Free Index): 7.38e-08 +/- 7.00e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/945411/cmap_HighResolution_321753601_322012801_4FGL_J1251.3-0201_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-05', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='8.16e-01', photon_flux2='7.38e-08', job_status='DONE', time_completed='2021-09-06 07:10:51.431377', photon_index_error2='1.00', photon_index2='3.42', ts='0.01', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', photon_flux_upper_limit='6.76e-08', energy_flux_error2='1.28e-05', EG='2.11', time_epoch_completed='1630937451.43', return_code='0', job_id='945411', GAL2='0.50', EG2='2.04', return_code2='0', photon_flux_error2='7.00e-08', ts2='1.67', photon_index='1.95' WHERE bin_id='318' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:10:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 945411: <4FGL_J1251.3-0201_daily_bin318> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin318> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:55:50 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:55: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 06:55:51 2021
Terminated at Mon Sep  6 07:10:52 2021
Results reported at Mon Sep  6 07:10:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin318 192.836 -2.0271 321753601 322012801 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 :                                   725.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            902 sec.

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

