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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1233
RA = 192.836, Dec = -2.0271
tmin = 558921601, tmax = 559180801
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='950708', job_status='RUN', time_executed='2021-09-06 07:13:46.810589', time_epoch_executed='1630937626.81' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950708

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950708/ft1_4FGL_J1251.3-0201_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950708/ft2_4FGL_J1251.3-0201_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950708/ft1_4FGL_J1251.3-0201_daily_bin1233.fits outfile=/scratch/kocevski/950708/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1233.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=558921601.0 tmax=559180801.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.51
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950708/ft1_filtered_4FGL_J1251.3-0201_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/950708/ft2_4FGL_J1251.3-0201_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/950708/ltcube_558921601_559180801_4FGL_J1251.3-0201_daily_bin1233.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/950708/ft2_4FGL_J1251.3-0201_daily_bin1233.fits
.....................!
real 11.80
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950708/ft1_filtered_4FGL_J1251.3-0201_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/950708/ft2_4FGL_J1251.3-0201_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/950708/ltcube_558921601_559180801_4FGL_J1251.3-0201_daily_bin1233.fits outfile=/scratch/kocevski/950708/expmap_558921601_559180801_4FGL_J1251.3-0201_daily_bin1233.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/950708/ltcube_558921601_559180801_4FGL_J1251.3-0201_daily_bin1233.fits
.....................!
real 189.93
user 185.42
sys 3.95

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/950708/ft1_filtered_4FGL_J1251.3-0201_daily_bin1233.fits scfile=/scratch/kocevski/950708/ft2_4FGL_J1251.3-0201_daily_bin1233.fits outfile=/scratch/kocevski/950708/cmap_558921601_559180801_4FGL_J1251.3-0201_daily_bin1233.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950708/ft1_filtered_4FGL_J1251.3-0201_daily_bin1233.fits scfile=/scratch/kocevski/950708/ft2_4FGL_J1251.3-0201_daily_bin1233.fits outfile=/scratch/kocevski/950708/cmap_HighResolution_558921601_559180801_4FGL_J1251.3-0201_daily_bin1233.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950708/ft1_filtered_4FGL_J1251.3-0201_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/950708/ft2_4FGL_J1251.3-0201_daily_bin1233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950708/Model_4FGL_J1251.3-0201_daily_bin1233.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/950708/ft1_filtered_4FGL_J1251.3-0201_daily_bin1233.fits..................................!
real 16.89
user 15.67
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950708/ft1_filtered_4FGL_J1251.3-0201_daily_bin1233.fits', '/scratch/kocevski/950708/ft2_4FGL_J1251.3-0201_daily_bin1233.fits', expMap='/scratch/kocevski/950708/expmap_558921601_559180801_4FGL_J1251.3-0201_daily_bin1233.fits', expCube='/scratch/kocevski/950708/ltcube_558921601_559180801_4FGL_J1251.3-0201_daily_bin1233.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950708/Model_4FGL_J1251.3-0201_daily_bin1233.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/950708/ft1_filtered_4FGL_J1251.3-0201_daily_bin1233.fits
Spacecraft file(s): /scratch/kocevski/950708/ft2_4FGL_J1251.3-0201_daily_bin1233.fits
Exposure map: /scratch/kocevski/950708/expmap_558921601_559180801_4FGL_J1251.3-0201_daily_bin1233.fits
Exposure cube: /scratch/kocevski/950708/ltcube_558921601_559180801_4FGL_J1251.3-0201_daily_bin1233.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950708/Model_4FGL_J1251.3-0201_daily_bin1233.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 449.498817632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 447.413201218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46475E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .88526E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14227E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .12285E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    24.886       1.0000         .10000E-03   10000.    
     6 'norm      '    .34406       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5149       1.0000         .10000E-03   10000.    
     8 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .88443E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3857       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10093       1.0000         .10000E-03   10000.    
    13 'Prefactor '    130.44       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4834       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3043       1.0000         .10000E-03   10000.    
    16 'norm      '    .21503E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1167       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9918       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4699       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71009E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9237       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3895       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3421       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   447.3922     FROM MIGRAD    STATUS=CONVERGED    206 CALLS      516 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    181.99        .26798E-05** at limit **
   2  Prefactor     .10480E-03    569.30       -.65039E-04** at limit **
   3  Prefactor     .10000E-03    97.483       -.95913E-06** at limit **
   4  norm          .10000E-03    44.095       -.27654E-05** at limit **
   5  norm          24.481        15.264        .34306E-05    .44785E-03
   6  norm          .10000E-03    99.525        .82663E-06** at limit **
   7  Prefactor     64.382        1038.1       -.62830E-04    .42754E-03
   8  norm          .10000E-03    1.2223       -.34206E-07** at limit **
   9  Prefactor     .10000E-03    48.241        .31107E-06** at limit **
  10  Prefactor     4.3857        1.0066         .0000         .0000    
  11  norm          .10000E-03    3.5979        .19562E-07** at limit **
  12  Prefactor     .10000E-03    102.20        .67896E-05** at limit **
  13  Prefactor     129.89        8.1935        .93770E-07   -.41759E-01
  14  Prefactor     4.3151        12.178        .50630E-05    .43624E-02
  15  norm          .10091E-03    398.05       -.43626E-05** at limit **
  16  norm          .10000E-03    38.835        .97896E-06** at limit **
  17  Prefactor     .10392E-03    908.61       -.14335E-04** at limit **
  18  norm          .15016E-03    553.39       -.67188E-05** at limit **
  19  norm          1.4699        1.0743         .0000         .0000    
  20  Prefactor     .10000E-03    94.288       -.39675E-05** at limit **
  21  Prefactor     4.9237        1.0052         .0000         .0000    
  22  norm          2.3895        1.0238         .0000         .0000    
  23  Normalizat    .10000E-01    1.0291        .60581E-04** at limit **
  24  Prefactor     1.3306        .34036        .46850E-05    .64283E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000104802
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 24.4807
  norm       = 0.0001
  Prefactor  = 64.3825
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.38571
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 129.887
  Prefactor  = 4.31507
  norm       = 0.000100909
  norm       = 0.0001
  Prefactor  = 0.000103921
  norm       = 0.000150155
  norm       = 1.46991
  Prefactor  = 0.0001
  Prefactor  = 4.92373
  norm       = 2.38948
  Normalizat = 0.01
  Prefactor  = 1.33063
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   447.3922     FROM HESSE     STATUS=FAILED        47 CALLS      563 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    185.18        .92529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10480E-03    588.88        .94564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    97.328        .90940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    44.816        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          24.481        14.207        .20075E-02   -1.4718    
   6  norm          .10000E-03    99.235        .10617E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     64.382        799.78        .36574E-02   -1.4101    
   8  norm          .10000E-03    1.2152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    48.409        .91501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     537.89        533.45         .0000       -1.5289    
  11  norm          .10000E-03    .20571        .19562E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .22637        .67896E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     129.89        .99790        .93770E-07   -1.3424    
  14  Prefactor     4.3151        .81835        .50630E-05   -1.5292    
  15  norm          .10091E-03    .47584E-01   -.43626E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .25408        .97896E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10392E-03    .30991       -.14335E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .15016E-03    .50621E-01   -.67188E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4699        1.0743         .0000       -1.5465    
  20  Prefactor     .10000E-03    .21959       -.39675E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9237        1.0052         .0000       -1.5264    
  22  norm          2.3895        1.0238         .0000       -1.5399    
  23  Normalizat    .10000E-01    .25683        .60581E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3306        1.0656        .46850E-05   -.82401    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.07715e-09
Minuit parameter uncertainties:
  1  0.000803048
  2  0.107424
  3  0.000360586
  4  0.00010864
  5  14.2092
  6  0.000287242
  7  461.699
  8  4.39404e-07
  9  6.94454e-05
  10  1.00665
  11  1.11613e-06
  12  3.82491e-05
  13  0.997903
  14  0.81835
  15  0.00041602
  16  7.28326e-06
  17  0.00220466
  18  0.0031868
  19  1.07431
  20  1.10651e-05
  21  1.00525
  22  1.02377
  23  4.27777e-06
  24  1.0839
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 447.392154985

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.009e-04  4.160e-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:  1.331e+00  1.084e+00  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.000e-02  4.278e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/950708/likelihoodResults_558921601_559180801_4FGL_J1251.3-0201_daily_bin1233.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): 102
logL (Free Index) = 447.392167713
delta logL = -1.27283447e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 447.392166886
delta logL = -1.19018851024e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96057E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9505       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3306       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=   447.3922     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      240 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12996E-03    7648.3        .18148E-01** at limit **
   2  alpha         1.5569        3.1718        .16994        .25417E-06
   3  Normalizat    .10000E-01    .17524E-01    .10582E-01** at limit **
   4  Prefactor     1.3306        .39318E-01    .18690E-03   -.22697E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000129956
  alpha      = 1.55689
  Normalizat = 0.01
  Prefactor  = 1.33063
 **********
 **   18 **HESSE 
 **********

 FCN=   447.3922     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      263 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12996E-03    8443.0        .36297E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5569        3.7375        .33987E-01   -.38682    
   3  Normalizat    .10000E-01    .13583        .21165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3306        .10956        .74758E-05   -.82401    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.84642e-08
Minuit parameter uncertainties:
  1  2.36754
  2  10733.5
  3  4.56168e-07
  4  0.109582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950708': 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): 102
logL (Free Index) = 447.392154939
delta logL = 4.51677806268e-08

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.300e-04  2.368e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.557e+00  1.073e+04  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.331e+00  1.096e-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.000e-02  4.562e-07  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/950708/cmap_HighResolution_558921601_559180801_4FGL_J1251.3-0201_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-04', job_status='DONE', photon_flux_upper_limit='8.63e-07', time_completed='2021-09-06 07:21:31.390031', job_id='950708', GAL2='1.33', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630938091.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.33', dlogl='4.52e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1233' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:21:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 950708: <4FGL_J1251.3-0201_daily_bin1233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1233 192.836 -2.0271 558921601 559180801 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 :                                   325.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            620 sec.

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

