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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin300
RA = 192.836, Dec = -2.0271
tmin = 317088001, tmax = 317347201
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='945384', job_status='RUN', time_executed='2021-09-06 06:59:29.305832', time_epoch_executed='1630936769.31' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945384

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945384/ft1_4FGL_J1251.3-0201_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945384/ft2_4FGL_J1251.3-0201_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945384/ft1_4FGL_J1251.3-0201_daily_bin300.fits outfile=/scratch/kocevski/945384/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin300.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=317088001.0 tmax=317347201.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.91
user 3.63
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945384/ft1_filtered_4FGL_J1251.3-0201_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/945384/ft2_4FGL_J1251.3-0201_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/945384/ltcube_317088001_317347201_4FGL_J1251.3-0201_daily_bin300.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/945384/ft2_4FGL_J1251.3-0201_daily_bin300.fits
.....................!
real 12.41
user 11.98
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945384/ft1_filtered_4FGL_J1251.3-0201_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/945384/ft2_4FGL_J1251.3-0201_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/945384/ltcube_317088001_317347201_4FGL_J1251.3-0201_daily_bin300.fits outfile=/scratch/kocevski/945384/expmap_317088001_317347201_4FGL_J1251.3-0201_daily_bin300.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/945384/ltcube_317088001_317347201_4FGL_J1251.3-0201_daily_bin300.fits
.....................!
real 190.53
user 184.91
sys 5.03

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/945384/ft1_filtered_4FGL_J1251.3-0201_daily_bin300.fits scfile=/scratch/kocevski/945384/ft2_4FGL_J1251.3-0201_daily_bin300.fits outfile=/scratch/kocevski/945384/cmap_317088001_317347201_4FGL_J1251.3-0201_daily_bin300.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/945384/ft1_filtered_4FGL_J1251.3-0201_daily_bin300.fits scfile=/scratch/kocevski/945384/ft2_4FGL_J1251.3-0201_daily_bin300.fits outfile=/scratch/kocevski/945384/cmap_HighResolution_317088001_317347201_4FGL_J1251.3-0201_daily_bin300.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.67
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/945384/ft1_filtered_4FGL_J1251.3-0201_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/945384/ft2_4FGL_J1251.3-0201_daily_bin300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/945384/Model_4FGL_J1251.3-0201_daily_bin300.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/945384/ft1_filtered_4FGL_J1251.3-0201_daily_bin300.fits.....................!
real 58.24
user 56.51
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25759E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.450       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.012       1.0000         .10000E-03   10000.    
     4 'norm      '    .37818       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4778       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8680       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.7703       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.216       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.122       1.0000         .10000E-03   10000.    
    15 'norm      '    34.603       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6404       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3065       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.869       1.0000         .10000E-03   10000.    
    22 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5248       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78008       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=   7074.799     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2748 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    21.267       -.48874E-06** at limit **
   2  Prefactor     30.451        27.888        .27116E-06   -.37307E-05
   3  Prefactor     16.005        13.571       -.22737E-05   -.43254E-04
   4  norm          .37882        1.4224        .16410E-06   -.81107E-03
   5  norm          1.4773        4.0891       -.15011E-05   -.14318E-02
   6  norm          .10000E-03    21.105        .35975E-04** at limit **
   7  Prefactor     .10000E-03    48.776        .12030E-04** at limit **
   8  norm          2.8680        .82554        .11555E-06   -.66638E-03
   9  Prefactor     .10000E-03    12.201        .32618E-06** at limit **
  10  Prefactor     .10000E-03    3.3984       -.79150E-08** at limit **
  11  norm          4.7702        2.0558        .45055E-07   -.13491E-04
  12  Prefactor     10.218        11.739        .48621E-06   -.22504E-04
  13  Prefactor     .10000E-03    24.833       -.27736E-04** at limit **
  14  Prefactor     49.130        59.097        .62274E-05   -.70772E-05
  15  norm          34.602        31.409       -.22233E-06    .21697E-04
  16  norm          1.6402        .35754       -.75478E-07    .96463E-03
  17  Prefactor     .10000E-03    18.321       -.14266E-04** at limit **
  18  norm          .10000E-03    3.9196       -.91326E-08** at limit **
  19  norm          .10000E-03    4.9128       -.27484E-07** at limit **
  20  Prefactor     4.2918        33.395        .81272E-05   -.26564E-04
  21  Prefactor     20.868        12.905        .35671E-06   -.20316E-04
  22  norm          .10000E-03    .79408       -.55978E-07** at limit **
  23  Normalizat    1.5251        .24650       -.75692E-06    .81600E-04
  24  Prefactor     .77989        .16055       -.91549E-07    .33407E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100829
  Prefactor  = 30.4509
  Prefactor  = 16.0046
  norm       = 0.378816
  norm       = 1.47734
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.86795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.77021
  Prefactor  = 10.2183
  Prefactor  = 0.0001
  Prefactor  = 49.1299
  norm       = 34.6022
  norm       = 1.64024
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.29184
  Prefactor  = 20.8679
  norm       = 0.0001
  Normalizat = 1.52513
  Prefactor  = 0.779886
 **********
 **   18 **HESSE 
 **********

 FCN=   7074.799     FROM HESSE     STATUS=OK           407 CALLS     3155 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10083E-03    173.87        .73345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.451        27.777        .72608E-04   -1.4604    
   3  Prefactor     16.005        12.938        .10009E-03   -1.4908    
   4  norm          .37882        1.7341        .16894E-02   -1.5585    
   5  norm          1.4773        4.0757        .25131E-03   -1.5465    
   6  norm          .10000E-03    21.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8680        .82105        .36104E-04   -1.5369    
   9  Prefactor     .10000E-03    12.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4069        .15142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.7702        2.0569        .74919E-04   -1.5271    
  12  Prefactor     10.218        11.705        .12536E-03   -1.5069    
  13  Prefactor     .10000E-03    24.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.130        59.695        .57215E-04   -1.4305    
  15  norm          34.602        31.380        .68124E-04   -1.4531    
  16  norm          1.6402        .36191        .20917E-04   -1.5452    
  17  Prefactor     .10000E-03    18.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9326        .16262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.9220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2918        33.719        .19413E-03   -1.5294    
  21  Prefactor     20.868        12.909        .87678E-04   -1.4794    
  22  norm          .10000E-03    1.4036        .14500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5251        .29755        .30131E-03   -.77074    
  24  Prefactor     .77989        .19310        .28171E-03   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01349e-09
Minuit parameter uncertainties:
  1  0.0240871
  2  27.7892
  3  12.9402
  4  1.62087
  5  4.07648
  6  3.36272e-05
  7  8.03182e-06
  8  0.821054
  9  3.68588e-07
  10  1.05707e-06
  11  2.05696
  12  11.7076
  13  1.64031e-05
  14  59.7673
  15  31.3949
  16  0.361906
  17  3.00533e-06
  18  3.8143e-06
  19  2.05308e-08
  20  24.0781
  21  12.9111
  22  6.98586e-06
  23  0.297892
  24  0.193268
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.460e+01  3.139e+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:  7.799e-01  1.933e-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.525e+00  2.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.47
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 2.97e-08 +/- 2.69e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.86e-05

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

Saving results to:
/scratch/kocevski/945384/likelihoodResults_317088001_317347201_4FGL_J1251.3-0201_daily_bin300.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) = 7074.18231635
delta logL = 0.616974362025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7074.17186507
delta logL = 0.627425637158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.479       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9163       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80121       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=   7074.172     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      298 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.480        26.563        .90750E-04    .11914E-03
   2  alpha         2.9162        .86982        .11815E-01    .25961E-04
   3  Normalizat    1.4738        .27791        .30517E-03    .19823E-03
   4  Prefactor     .80116        .19183        .27810E-03    .24839E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.4802
  alpha      = 2.91618
  Normalizat = 1.47383
  Prefactor  = 0.801156
 **********
 **   18 **HESSE 
 **********

 FCN=   7074.172     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.480        23.386        .36300E-05   -1.4825    
   2  alpha         2.9162        .76871        .47261E-03    .16725    
   3  Normalizat    1.4738        .27750        .61034E-04   -.78516    
   4  Prefactor     .80116        .19167        .11124E-04   -.99686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62558e-11
Minuit parameter uncertainties:
  1  23.3967
  2  0.781743
  3  0.277781
  4  0.191826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945384': 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) = 7074.17186493
delta logL = 0.627425780108

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.948e+01  2.340e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.916e+00  7.817e-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.012e-01  1.918e-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.474e+00  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.75
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 2.92 +/- 0.78
Photon Flux (Free Index): 7.68e-08 +/- 6.41e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.35e-05

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/945384/cmap_HighResolution_317088001_317347201_4FGL_J1251.3-0201_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-05', comment='SUCCESS', photon_flux='2.97e-08', energy_flux2='1.91e-05', photon_flux_error='2.69e-08', dlogl='6.27e-01', energy_flux='2.05e-05', photon_flux2='7.68e-08', job_status='DONE', time_completed='2021-09-06 07:12:10.575172', photon_index_error2='0.78', photon_index2='2.92', ts='2.47', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='9.31e-08', energy_flux_error2='1.35e-05', EG='1.53', time_epoch_completed='1630937530.58', return_code='0', job_id='945384', GAL2='0.80', EG2='1.47', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='6.41e-08', ts2='3.75', photon_index='1.95' WHERE bin_id='300' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:12:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 945384: <4FGL_J1251.3-0201_daily_bin300> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin300 192.836 -2.0271 317088001 317347201 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 :                                   750.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

