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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1244
RA = 192.836, Dec = -2.0271
tmin = 561772801, tmax = 562032001
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='950725', job_status='RUN', time_executed='2021-09-06 07:14:14.861419', time_epoch_executed='1630937654.86' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950725

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950725/ft1_4FGL_J1251.3-0201_daily_bin1244.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950725/ft2_4FGL_J1251.3-0201_daily_bin1244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950725/ft1_4FGL_J1251.3-0201_daily_bin1244.fits outfile=/scratch/kocevski/950725/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1244.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=561772801.0 tmax=562032001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.00
user 3.76
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950725/ft1_filtered_4FGL_J1251.3-0201_daily_bin1244.fits" evtable="EVENTS" scfile=/scratch/kocevski/950725/ft2_4FGL_J1251.3-0201_daily_bin1244.fits sctable="SC_DATA" outfile=/scratch/kocevski/950725/ltcube_561772801_562032001_4FGL_J1251.3-0201_daily_bin1244.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/950725/ft2_4FGL_J1251.3-0201_daily_bin1244.fits
.....................!
real 11.98
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950725/ft1_filtered_4FGL_J1251.3-0201_daily_bin1244.fits evtable="EVENTS" scfile=/scratch/kocevski/950725/ft2_4FGL_J1251.3-0201_daily_bin1244.fits sctable="SC_DATA" expcube=/scratch/kocevski/950725/ltcube_561772801_562032001_4FGL_J1251.3-0201_daily_bin1244.fits outfile=/scratch/kocevski/950725/expmap_561772801_562032001_4FGL_J1251.3-0201_daily_bin1244.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/950725/ltcube_561772801_562032001_4FGL_J1251.3-0201_daily_bin1244.fits
.....................!
real 192.61
user 187.01
sys 5.16

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/950725/ft1_filtered_4FGL_J1251.3-0201_daily_bin1244.fits scfile=/scratch/kocevski/950725/ft2_4FGL_J1251.3-0201_daily_bin1244.fits outfile=/scratch/kocevski/950725/cmap_561772801_562032001_4FGL_J1251.3-0201_daily_bin1244.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950725/ft1_filtered_4FGL_J1251.3-0201_daily_bin1244.fits scfile=/scratch/kocevski/950725/ft2_4FGL_J1251.3-0201_daily_bin1244.fits outfile=/scratch/kocevski/950725/cmap_HighResolution_561772801_562032001_4FGL_J1251.3-0201_daily_bin1244.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.65
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950725/ft1_filtered_4FGL_J1251.3-0201_daily_bin1244.fits evtable="EVENTS" scfile=/scratch/kocevski/950725/ft2_4FGL_J1251.3-0201_daily_bin1244.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950725/Model_4FGL_J1251.3-0201_daily_bin1244.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/950725/ft1_filtered_4FGL_J1251.3-0201_daily_bin1244.fits.....................!
real 22.22
user 20.96
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.859       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10295E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.025       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    77.974       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    354.72       1.0000         .10000E-03   10000.    
    15 'norm      '    .10393E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6717       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    20.562       1.0000         .10000E-03   10000.    
    20 'Prefactor '    65.876       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.704       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5351       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .26323       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=   1184.981     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2681 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.970        .21969E-06** at limit **
   2  Prefactor     .10001E-03    1249.8       -.22628E-05** at limit **
   3  Prefactor     .10000E-03    31.136       -.74057E-09** at limit **
   4  norm          10.860        11.015        .78208E-07    .21183E-04
   5  norm          .10000E-03    42.890       -.27501E-07** at limit **
   6  norm          .10000E-03    309.17        .41738E-06** at limit **
   7  Prefactor     .10004E-03    7897.6       -.40373E-05** at limit **
   8  norm          .10000E-03    2.1416       -.31355E-07** at limit **
   9  Prefactor     .10000E-03    25.303       -.34775E-06** at limit **
  10  Prefactor     24.022        27.612        .15721E-05    .11049E-03
  11  norm          .10000E-03    10.215       -.95092E-08** at limit **
  12  Prefactor     77.945        61.622        .31725E-06    .51973E-04
  13  Prefactor     .10000E-03    147.66       -.14997E-07** at limit **
  14  Prefactor     353.91        249.10       -.11646E-04    .12722E-04
  15  norm          .10000E-03    92.899       -.75106E-06** at limit **
  16  norm          2.6756        1.1380        .84473E-06    .45819E-03
  17  Prefactor     .10000E-03    85.571        .84244E-07** at limit **
  18  norm          .10000E-03    9.8542        .87730E-07** at limit **
  19  norm          20.563        21.505        .20878E-06    .54491E-05
  20  Prefactor     65.817        99.048       -.31926E-06   -.72473E-05
  21  Prefactor     13.689        22.708       -.72932E-06    .10109E-04
  22  norm          .10002E-03    4.5218        .15740E-05** at limit **
  23  Normalizat    1.5370        .72463        .15275E-04   -.17553E-03
  24  Prefactor     .26203        .38206       -.29704E-04   -.73174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 10.8596
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100041
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0217
  norm       = 0.0001
  Prefactor  = 77.9452
  Prefactor  = 0.0001
  Prefactor  = 353.914
  norm       = 0.0001
  norm       = 2.67557
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.5629
  Prefactor  = 65.8174
  Prefactor  = 13.6891
  norm       = 0.000100016
  Normalizat = 1.53702
  Prefactor  = 0.262031
 **********
 **   18 **HESSE 
 **********

 FCN=   1184.981     FROM HESSE     STATUS=OK           387 CALLS     3068 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    1253.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.860        11.019        .11232E-03   -1.5049    
   5  norm          .10000E-03    42.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    309.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    7901.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1429        .49201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.308        .16919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.022        28.072        .40862E-03   -1.4727    
  11  norm          .10000E-03    10.216        .10749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     77.945        61.782        .45477E-04   -1.3940    
  13  Prefactor     .10000E-03    147.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     353.91        248.38        .10813E-03   -1.1923    
  15  norm          .10000E-03    92.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6756        1.1683        .20103E-04   -1.5381    
  17  Prefactor     .10000E-03    85.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.8546        .10556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          20.563        21.492        .88329E-04   -1.4801    
  20  Prefactor     65.817        99.509        .49447E-04   -1.4084    
  21  Prefactor     13.689        23.130        .10820E-03   -1.4968    
  22  norm          .10002E-03    13.415        .13453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5370        .78323        .30855E-03   -.76743    
  24  Prefactor     .26203        .39846        .39645E-03   -1.2456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08862e-09
Minuit parameter uncertainties:
  1  0.00014789
  2  0.00823106
  3  6.22148e-06
  4  11.0207
  5  9.7256e-06
  6  0.000756217
  7  0.0351129
  8  4.2498e-07
  9  9.54001e-06
  10  28.0873
  11  8.48674e-07
  12  61.8324
  13  3.15922e-05
  14  249.134
  15  0.000187703
  16  1.16834
  17  0.000107684
  18  6.24851e-06
  19  21.4998
  20  99.7621
  21  23.1455
  22  0.000935357
  23  0.789558
  24  0.402717
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  1.877e-04  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:  2.620e-01  4.027e-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.537e+00  7.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.836 -2.027
Photon Flux Upper Limit: 3.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950725/likelihoodResults_561772801_562032001_4FGL_J1251.3-0201_daily_bin1244.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) = 1184.98090462
delta logL = -4.94563539633e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1184.980903
delta logL = -4.78417184695e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90223E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9513       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26195       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=   1184.981     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      199 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    91.954        .91321E-02** at limit **
   2  alpha         1.9711        3.4084        .42480       -.11235E-05
   3  Normalizat    1.5370        .62399        .69748E-01   -.15328E-05
   4  Prefactor     .26203        .35415        .89409E-01    .79773E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.97106
  Normalizat = 1.53703
  Prefactor  = 0.262026
 **********
 **   18 **HESSE 
 **********

 FCN=   1184.981     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    91.188        .18264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9711        3.4066        .50000       -.21319    
   3  Normalizat    1.5370        .66762        .30854E-03   -.76743    
   4  Prefactor     .26203        .37769        .39646E-03   -1.2456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83071e-12
Minuit parameter uncertainties:
  1  0.000213132
  2  2.44405
  3  0.671514
  4  0.381297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950725': 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) = 1184.98085515
delta logL = 9.59357748798e-09

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  2.131e-04  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.971e+00  2.444e+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:  2.620e-01  3.813e-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.537e+00  6.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/950725/cmap_HighResolution_561772801_562032001_4FGL_J1251.3-0201_daily_bin1244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-04', job_status='DONE', photon_flux_upper_limit='3.39e-07', time_completed='2021-09-06 07:22:53.285617', job_id='950725', GAL2='0.26', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1630938173.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.26', dlogl='9.59e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1244' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:22:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 950725: <4FGL_J1251.3-0201_daily_bin1244> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1244> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:11:13 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:11:15 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:11:15 2021
Terminated at Mon Sep  6 07:22:54 2021
Results reported at Mon Sep  6 07:22:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1244 192.836 -2.0271 561772801 562032001 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 :                                   387.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

