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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin230
RA = 192.836, Dec = -2.0271
tmin = 298944001, tmax = 299203201
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='945273', job_status='RUN', time_executed='2021-09-06 06:58:53.892662', time_epoch_executed='1630936733.89' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945273

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945273/ft1_4FGL_J1251.3-0201_daily_bin230.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945273/ft2_4FGL_J1251.3-0201_daily_bin230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945273/ft1_4FGL_J1251.3-0201_daily_bin230.fits outfile=/scratch/kocevski/945273/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin230.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=298944001.0 tmax=299203201.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.43
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945273/ft1_filtered_4FGL_J1251.3-0201_daily_bin230.fits" evtable="EVENTS" scfile=/scratch/kocevski/945273/ft2_4FGL_J1251.3-0201_daily_bin230.fits sctable="SC_DATA" outfile=/scratch/kocevski/945273/ltcube_298944001_299203201_4FGL_J1251.3-0201_daily_bin230.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/945273/ft2_4FGL_J1251.3-0201_daily_bin230.fits
.....................!
real 12.12
user 11.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945273/ft1_filtered_4FGL_J1251.3-0201_daily_bin230.fits evtable="EVENTS" scfile=/scratch/kocevski/945273/ft2_4FGL_J1251.3-0201_daily_bin230.fits sctable="SC_DATA" expcube=/scratch/kocevski/945273/ltcube_298944001_299203201_4FGL_J1251.3-0201_daily_bin230.fits outfile=/scratch/kocevski/945273/expmap_298944001_299203201_4FGL_J1251.3-0201_daily_bin230.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/945273/ltcube_298944001_299203201_4FGL_J1251.3-0201_daily_bin230.fits
.....................!
real 189.76
user 185.27
sys 4.05

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/945273/ft1_filtered_4FGL_J1251.3-0201_daily_bin230.fits scfile=/scratch/kocevski/945273/ft2_4FGL_J1251.3-0201_daily_bin230.fits outfile=/scratch/kocevski/945273/cmap_298944001_299203201_4FGL_J1251.3-0201_daily_bin230.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945273/ft1_filtered_4FGL_J1251.3-0201_daily_bin230.fits scfile=/scratch/kocevski/945273/ft2_4FGL_J1251.3-0201_daily_bin230.fits outfile=/scratch/kocevski/945273/cmap_HighResolution_298944001_299203201_4FGL_J1251.3-0201_daily_bin230.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.357       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.1261       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8821       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11339E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0753       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7050       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8702       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .45045       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0544       1.0000         .10000E-03   10000.    
    18 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.686       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1741       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9961       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6536       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70608       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=   6921.134     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2679 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8166        .13964E-06** at limit **
   2  Prefactor     17.356        30.539       -.48898E-06   -.14123E-04
   3  Prefactor     .10000E-03    4.2308        .94857E-08** at limit **
   4  norm          3.1269        2.5578        .95482E-07    .13608E-04
   5  norm          1.8802        3.9638        .78991E-06   -.78829E-04
   6  norm          .10000E-03    19.373        .94909E-06** at limit **
   7  Prefactor     .10000E-03    143.94       -.94589E-06** at limit **
   8  norm          3.0752        .79403       -.39978E-07   -.11794E-03
   9  Prefactor     .10000E-03    9.1228       -.12846E-05** at limit **
  10  Prefactor     8.7056        11.162        .22958E-05   -.15832E-03
  11  norm          1.8701        1.6461        .83937E-07   -.88822E-04
  12  Prefactor     .10000E-03    2.4448        .42757E-07** at limit **
  13  Prefactor     .10000E-03    17.166       -.11785E-05** at limit **
  14  Prefactor     .10000E-03    9.7507        .14268E-05** at limit **
  15  norm          .10000E-03    6.8335       -.29767E-08** at limit **
  16  norm          .45044        .20113        .14777E-07   -.89460E-04
  17  Prefactor     8.0389        65.936       -.26497E-05   -.34056E-04
  18  norm          .10000E-03    15.187       -.52012E-06** at limit **
  19  norm          15.685        12.224        .32997E-07    .18384E-05
  20  Prefactor     .10000E-03    5.3440       -.26074E-07** at limit **
  21  Prefactor     9.1728        12.312        .32190E-06    .10754E-04
  22  norm          2.9961        1.8093        .47091E-07   -.56763E-04
  23  Normalizat    1.6537        .22770       -.64790E-06    .24602E-04
  24  Prefactor     .70600        .15300       -.18952E-06   -.11899E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.3555
  Prefactor  = 0.0001
  norm       = 3.12691
  norm       = 1.88024
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.0752
  Prefactor  = 0.0001
  Prefactor  = 8.70556
  norm       = 1.87014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.450442
  Prefactor  = 8.03889
  norm       = 0.0001
  norm       = 15.6854
  Prefactor  = 0.0001
  Prefactor  = 9.17279
  norm       = 2.99609
  Normalizat = 1.65366
  Prefactor  = 0.706002
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.134     FROM HESSE     STATUS=OK           399 CALLS     3078 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.356        30.388        .96135E-04   -1.4875    
   3  Prefactor     .10000E-03    4.2358        .16698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.1269        2.5491        .11578E-03   -1.5354    
   5  norm          1.8802        3.9297        .21085E-03   -1.5434    
   6  norm          .10000E-03    19.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    144.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0752        .79512        .33351E-04   -1.5357    
   9  Prefactor     .10000E-03    9.4492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.7056        11.364        .67929E-03   -1.5118    
  11  norm          1.8701        1.6330        .94931E-04   -1.5434    
  12  Prefactor     .10000E-03    2.4533        .12704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.8369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .45044        .19946        .23764E-04   -1.5574    
  17  Prefactor     8.0389        67.771        .14127E-03   -1.5141    
  18  norm          .10000E-03    15.505        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.685        12.228        .10113E-03   -1.4916    
  20  Prefactor     .10000E-03    5.3491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.1728        12.335        .13232E-03   -1.5102    
  22  norm          2.9961        1.8095        .82972E-04   -1.5362    
  23  Normalizat    1.6537        .27257        .27360E-03   -.73548    
  24  Prefactor     .70600        .18187        .27831E-03   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86493e-10
Minuit parameter uncertainties:
  1  1.01369e-05
  2  30.4147
  3  1.14689e-06
  4  2.54918
  5  3.93027
  6  0.000115625
  7  0.000332395
  8  0.795124
  9  9.68544e-05
  10  11.3666
  11  1.63303
  12  3.01682e-06
  13  0.000140263
  14  0.000133465
  15  1.1466e-06
  16  0.199457
  17  46.7535
  18  3.41461e-05
  19  12.23
  20  7.20756e-08
  21  12.3382
  22  1.80954
  23  0.272815
  24  0.182027
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  1.147e-06  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.060e-01  1.820e-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.654e+00  2.728e-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.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945273/likelihoodResults_298944001_299203201_4FGL_J1251.3-0201_daily_bin230.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) = 6921.13446267
delta logL = -0.000678363666339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6921.13378431
delta logL = -4.22005541623e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9472       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70601       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=   6921.134     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      245 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1450.5        .18142E-02** at limit **
   2  alpha         1.7945        4.0474        .17000        .10700E-08
   3  Normalizat    1.6537        .15213        .27360E-03    .67731E-05
   4  Prefactor     .70600        .10692        .27831E-03    .66992E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.79448
  Normalizat = 1.65366
  Prefactor  = 0.706002
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.134     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7945        3.8843        .68002E-02   -.28610    
   3  Normalizat    1.6537        .25398        .10944E-04   -.73548    
   4  Prefactor     .70600        .17850        .11133E-04   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35198e-13
Minuit parameter uncertainties:
  1  1.03353e-05
  2  385.913
  3  0.254176
  4  0.178649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945273': 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) = 6921.13378423
delta logL = 8.04166120361e-08

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  1.034e-05  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.794e+00  3.859e+02  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:  7.060e-01  1.786e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.654e+00  2.542e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/945273/cmap_HighResolution_298944001_299203201_4FGL_J1251.3-0201_daily_bin230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-05', job_status='DONE', photon_flux_upper_limit='3.17e-08', time_completed='2021-09-06 07:11:29.029359', job_id='945273', GAL2='0.71', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1630937489.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='8.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='230' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:11:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 945273: <4FGL_J1251.3-0201_daily_bin230> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin230 192.836 -2.0271 298944001 299203201 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 :                                   719.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            949 sec.

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

