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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin323
RA = 192.836, Dec = -2.0271
tmin = 323049601, tmax = 323308801
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='945419', job_status='RUN', time_executed='2021-09-06 06:58:03.240807', time_epoch_executed='1630936683.24' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945419

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945419/ft1_4FGL_J1251.3-0201_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945419/ft2_4FGL_J1251.3-0201_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945419/ft1_4FGL_J1251.3-0201_daily_bin323.fits outfile=/scratch/kocevski/945419/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin323.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=323049601.0 tmax=323308801.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.39
user 3.12
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/945419/ft2_4FGL_J1251.3-0201_daily_bin323.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/945419/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin323.fits evtable="EVENTS" outfile="/scratch/kocevski/945419/ft1_filtered_4FGL_J1251.3-0201_daily_bin323.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945419/ft1_filtered_4FGL_J1251.3-0201_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/945419/ft2_4FGL_J1251.3-0201_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/945419/ltcube_323049601_323308801_4FGL_J1251.3-0201_daily_bin323.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/945419/ft2_4FGL_J1251.3-0201_daily_bin323.fits
.....................!
real 11.82
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945419/ft1_filtered_4FGL_J1251.3-0201_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/945419/ft2_4FGL_J1251.3-0201_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/945419/ltcube_323049601_323308801_4FGL_J1251.3-0201_daily_bin323.fits outfile=/scratch/kocevski/945419/expmap_323049601_323308801_4FGL_J1251.3-0201_daily_bin323.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/945419/ltcube_323049601_323308801_4FGL_J1251.3-0201_daily_bin323.fits
.....................!
real 190.70
user 185.29
sys 5.01

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/945419/ft1_filtered_4FGL_J1251.3-0201_daily_bin323.fits scfile=/scratch/kocevski/945419/ft2_4FGL_J1251.3-0201_daily_bin323.fits outfile=/scratch/kocevski/945419/cmap_323049601_323308801_4FGL_J1251.3-0201_daily_bin323.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.57
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945419/ft1_filtered_4FGL_J1251.3-0201_daily_bin323.fits scfile=/scratch/kocevski/945419/ft2_4FGL_J1251.3-0201_daily_bin323.fits outfile=/scratch/kocevski/945419/cmap_HighResolution_323049601_323308801_4FGL_J1251.3-0201_daily_bin323.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.60
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7394       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-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      '    9.9170       1.0000         .10000E-03   10000.    
     6 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1603       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7513       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.252       1.0000         .10000E-03   10000.    
    11 'norm      '    6.6530       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37708E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.885       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    56.839       1.0000         .10000E-03   10000.    
    16 'norm      '    .94242       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.307       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.643       1.0000         .10000E-03   10000.    
    22 'norm      '    2.6930       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0386       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0420       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=   6060.341     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2310 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7383        45.460        .27502E-07   -.27889E-05
   2  Prefactor     .10000E-03    10.037        .44558E-09** at limit **
   3  Prefactor     .10000E-03    5.6106       -.25308E-08** at limit **
   4  norm          .10000E-03    .96186        .63101E-08** at limit **
   5  norm          9.9183        4.6221       -.21544E-07   -.69745E-06
   6  norm          .10000E-03    17.802       -.17853E-07** at limit **
   7  Prefactor     .10000E-03    44.292       -.73472E-07** at limit **
   8  norm          3.1600        .81829        .26135E-07    .37922E-04
   9  Prefactor     4.7426        8.5389        .85030E-06    .22141E-05
  10  Prefactor     11.253        9.8754        .54852E-06   -.27451E-04
  11  norm          6.6533        2.2069       -.14970E-07    .86831E-05
  12  Prefactor     .10007E-03    6.6922       -.55809E-06** at limit **
  13  Prefactor     15.881        16.093        .14744E-06    .18726E-05
  14  Prefactor     .10000E-03    46.072       -.19662E-06** at limit **
  15  norm          56.746        34.575        .21716E-05   -.36030E-04
  16  norm          .94231        .31278        .27072E-07    .10756E-03
  17  Prefactor     .10000E-03    55.585        .20726E-07** at limit **
  18  norm          15.310        12.082        .92763E-07   -.40813E-05
  19  norm          .10000E-03    3.5858        .60912E-08** at limit **
  20  Prefactor     .10000E-03    11.052        .15927E-07** at limit **
  21  Prefactor     25.647        14.516       -.11683E-06    .18873E-05
  22  norm          2.6938        2.0946        .13920E-07   -.17545E-04
  23  Normalizat    1.0385        .24880        .73055E-06    .21407E-04
  24  Prefactor     1.0420        .17311        .27978E-06    .39317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.73833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.91829
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.16003
  Prefactor  = 4.74257
  Prefactor  = 11.2529
  norm       = 6.65328
  Prefactor  = 0.00010007
  Prefactor  = 15.8812
  Prefactor  = 0.0001
  norm       = 56.7462
  norm       = 0.942309
  Prefactor  = 0.0001
  norm       = 15.3096
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6466
  norm       = 2.69382
  Normalizat = 1.03848
  Prefactor  = 1.04196
 **********
 **   18 **HESSE 
 **********

 FCN=   6060.341     FROM HESSE     STATUS=OK           411 CALLS     2721 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7383        45.617        .20880E-03   -1.5321    
   2  Prefactor     .10000E-03    10.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6228        .18005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .96657        .74529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.9183        4.6341        .10524E-03   -1.5078    
   6  norm          .10000E-03    17.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1600        .82208        .32325E-04   -1.5352    
   9  Prefactor     4.7426        8.5300        .18459E-03   -1.5272    
  10  Prefactor     11.253        9.8362        .59717E-03   -1.5037    
  11  norm          6.6533        2.2085        .63103E-04   -1.5192    
  12  Prefactor     .10007E-03    7.9535        .60773E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.881        16.098        .10049E-03   -1.4911    
  14  Prefactor     .10000E-03    46.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          56.746        35.135        .26605E-03   -1.4200    
  16  norm          .94231        .31169        .23585E-04   -1.5514    
  17  Prefactor     .10000E-03    55.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.310        12.075        .10237E-03   -1.4925    
  19  norm          .10000E-03    3.5864        .14397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.647        14.533        .79108E-04   -1.4695    
  22  norm          2.6938        2.0863        .94065E-04   -1.5380    
  23  Normalizat    1.0385        .28669        .33452E-03   -.91752    
  24  Prefactor     1.0420        .19939        .24594E-03   -.91344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94558e-11
Minuit parameter uncertainties:
  1  26.1421
  2  8.53097e-07
  3  7.10137e-06
  4  1.64411e-06
  5  4.63423
  6  2.08748e-06
  7  5.1979e-05
  8  0.822084
  9  8.53221
  10  9.83757
  11  2.20854
  12  0.00149374
  13  16.1023
  14  7.45703e-05
  15  35.1474
  16  0.311691
  17  5.39979e-05
  18  12.0767
  19  8.13559e-07
  20  1.18687e-05
  21  14.5351
  22  2.08636
  23  0.287123
  24  0.19953
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  5.675e+01  3.515e+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:  1.042e+00  1.995e-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.038e+00  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.88
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 4.87e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 2.08e-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) = 6060.19166073
delta logL = 0.148984357745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6060.18772513
delta logL = 0.152919960168

Fit tolerance = 1e-08

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

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

 FCN=   6060.188     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      229 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          59.512        122.66        .13002E-02    .22798E-03
   2  alpha         1.6283        1.4769        .40657       -.84452E-05
   3  Normalizat    1.0545        .26261        .75092E-01    .72373E-05
   4  Prefactor     1.0355        .18387        .40833E-01    .84961E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 59.5116
  alpha      = 1.6283
  Normalizat = 1.05445
  Prefactor  = 1.03547
 **********
 **   18 **HESSE 
 **********

 FCN=   6060.188     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          59.512        37.091        .52008E-04   -1.4164    
   2  alpha         1.6283        .55401        .15237E-01   -.35616    
   3  Normalizat    1.0545        .26622        .33233E-03   -.91228    
   4  Prefactor     1.0355        .19714        .24664E-03   -.91556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.207e-10
Minuit parameter uncertainties:
  1  37.1052
  2  0.559303
  3  0.266555
  4  0.197275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945419': 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) = 6060.18772459
delta logL = 0.152920494612

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  5.951e+01  3.711e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.628e+00  5.593e-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:  1.035e+00  1.973e-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.054e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.18
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 1.63 +/- 0.56
Photon Flux (Free Index): 3.62e-08 +/- 2.96e-08
Energy Flux (Free Index): 4.50e-05 +/- 3.85e-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/945419/cmap_HighResolution_323049601_323308801_4FGL_J1251.3-0201_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.87e-08', energy_flux2='4.50e-05', photon_flux_error='3.01e-08', dlogl='1.53e-01', energy_flux='3.36e-05', photon_flux2='3.62e-08', job_status='DONE', time_completed='2021-09-06 07:07:41.859679', photon_index_error2='0.56', photon_index2='1.63', ts='10.88', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='3.85e-05', EG='1.04', time_epoch_completed='1630937261.86', return_code='0', job_id='945419', GAL2='1.04', EG2='1.05', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='2.96e-08', ts2='11.18', photon_index='1.95' WHERE bin_id='323' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:07:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 945419: <4FGL_J1251.3-0201_daily_bin323> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin323> 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) <bullet0262>, 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:07:42 2021
Results reported at Mon Sep  6 07:07:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin323 192.836 -2.0271 323049601 323308801 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 :                                   576.00 sec.
    Max Memory :                                 1238 MB
    Average Memory :                             328.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            712 sec.

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

