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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1234
RA = 192.836, Dec = -2.0271
tmin = 559180801, tmax = 559440001
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='950710', job_status='RUN', time_executed='2021-09-06 07:13:39.745000', time_epoch_executed='1630937619.75' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950710/ft1_4FGL_J1251.3-0201_daily_bin1234.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950710/ft2_4FGL_J1251.3-0201_daily_bin1234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950710/ft1_4FGL_J1251.3-0201_daily_bin1234.fits outfile=/scratch/kocevski/950710/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1234.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=559180801.0 tmax=559440001.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.57
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950710/ft1_filtered_4FGL_J1251.3-0201_daily_bin1234.fits" evtable="EVENTS" scfile=/scratch/kocevski/950710/ft2_4FGL_J1251.3-0201_daily_bin1234.fits sctable="SC_DATA" outfile=/scratch/kocevski/950710/ltcube_559180801_559440001_4FGL_J1251.3-0201_daily_bin1234.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/950710/ft2_4FGL_J1251.3-0201_daily_bin1234.fits
.....................!
real 11.89
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950710/ft1_filtered_4FGL_J1251.3-0201_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/950710/ft2_4FGL_J1251.3-0201_daily_bin1234.fits sctable="SC_DATA" expcube=/scratch/kocevski/950710/ltcube_559180801_559440001_4FGL_J1251.3-0201_daily_bin1234.fits outfile=/scratch/kocevski/950710/expmap_559180801_559440001_4FGL_J1251.3-0201_daily_bin1234.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/950710/ltcube_559180801_559440001_4FGL_J1251.3-0201_daily_bin1234.fits
.....................!
real 191.15
user 185.82
sys 4.96

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/950710/ft1_filtered_4FGL_J1251.3-0201_daily_bin1234.fits scfile=/scratch/kocevski/950710/ft2_4FGL_J1251.3-0201_daily_bin1234.fits outfile=/scratch/kocevski/950710/cmap_559180801_559440001_4FGL_J1251.3-0201_daily_bin1234.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950710/ft1_filtered_4FGL_J1251.3-0201_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/950710/ft2_4FGL_J1251.3-0201_daily_bin1234.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950710/Model_4FGL_J1251.3-0201_daily_bin1234.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/950710/ft1_filtered_4FGL_J1251.3-0201_daily_bin1234.fits...........................!
real 16.08
user 14.73
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1224       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14935E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.451       1.0000         .10000E-03   10000.    
     4 'norm      '    .12532E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .23806E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    376.78       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23164       1.0000         .10000E-03   10000.    
     8 'norm      '    .28456       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10549       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3857       1.0000         .10000E-03   10000.    
    11 'norm      '    12.911       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23983E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .77248E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5629       1.0000         .10000E-03   10000.    
    15 'norm      '    .42871E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2981       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .48726       1.0000         .10000E-03   10000.    
    18 'norm      '    2.1008       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4699       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32816       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9237       1.0000         .10000E-03   10000.    
    22 'norm      '    .52823E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0064       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=   355.6498     FROM MIGRAD    STATUS=CONVERGED    226 CALLS      667 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    594.81       -.95255E-04** at limit **
   2  Prefactor     .10000E-03    59.025       -.50190E-06** at limit **
   3  Prefactor     62.017        102.92        .16732E-04    .83171E-05
   4  norm          .10005E-03    137.57        .10431E-03** at limit **
   5  norm          .10000E-03    160.96       -.11612E-03** at limit **
   6  norm          382.57        408.05        .83328E-04    .14355E-03
   7  Prefactor     .10000E-03    175.74        .26567E-05** at limit **
   8  norm          .19958        71.200       -.74337E-04    .95213E-04
   9  Prefactor     .10000E-03    70.845       -.23309E-05** at limit **
  10  Prefactor     4.3857        1.0066         .0000         .0000    
  11  norm          12.928        9.7518        .70248E-05    .68423E-03
  12  Prefactor     .10000E-03    67.675       -.21071E-06** at limit **
  13  Prefactor     .10000E-03    92.205        .10059E-05** at limit **
  14  Prefactor     6.5629        1.0029         .0000         .0000    
  15  norm          .10000E-03    185.86        .50924E-05** at limit **
  16  norm          3.2981        1.0120         .0000         .0000    
  17  Prefactor     .10003E-03    1181.2        .45358E-04** at limit **
  18  norm          .10000E-03    319.61       -.12706E-04** at limit **
  19  norm          1.4699        1.0743         .0000         .0000    
  20  Prefactor     .10000E-03    69.634        .60128E-05** at limit **
  21  Prefactor     4.9237        1.0052         .0000         .0000    
  22  norm          .10000E-03    43.145       -.37763E-05** at limit **
  23  Normalizat    .10000E-01    .43754        .69103E-05** at limit **
  24  Prefactor     1.0057        .31821       -.32329E-06    .98452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 62.0172
  norm       = 0.000100047
  norm       = 0.0001
  norm       = 382.566
  Prefactor  = 0.000100002
  norm       = 0.199577
  Prefactor  = 0.0001
  Prefactor  = 4.38571
  norm       = 12.9285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.56293
  norm       = 0.000100001
  norm       = 3.29806
  Prefactor  = 0.000100025
  norm       = 0.000100001
  norm       = 1.46991
  Prefactor  = 0.0001
  Prefactor  = 4.92373
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.00575
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   355.6498     FROM HESSE     STATUS=FAILED        57 CALLS      724 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    593.09        .11071E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     62.017        100.88        .13009E-02   -1.4131    
   4  norm          .10005E-03    133.42        .90856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    26.731        .68314E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          382.57        242.85        .52516E-03   -1.1771    
   7  Prefactor     .10000E-03    174.79        .10121E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .19958        11.219        .20458E-01   -1.5619    
   9  Prefactor     .10000E-03    70.779        .95374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     537.89        533.45         .0000       -1.5289    
  11  norm          12.928        1.0014        .70248E-05   -1.4989    
  12  Prefactor     .10000E-03    .20571       -.21071E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .22100        .10059E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5629        1.0029         .0000       -1.5196    
  15  norm          .10000E-03    .23539        .50924E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2981        1.0120         .0000       -1.5345    
  17  Prefactor     .10003E-03    .31464        .45358E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .12667       -.12706E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4699        1.0743         .0000       -1.5465    
  20  Prefactor     .10000E-03    .27814        .60128E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9237        1.0052         .0000       -1.5264    
  22  norm          .10000E-03    .27905       -.37763E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .25727        .69103E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.0057        1.2789       -.32329E-06   -.92538    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.60014e-10
Minuit parameter uncertainties:
  1  0.008478
  2  7.98301e-05
  3  101.156
  4  0.00499602
  5  0.000127823
  6  243.506
  7  0.00115578
  8  2.99256
  9  5.76341e-05
  10  1.00665
  11  1.00141
  12  1.84183e-05
  13  4.48004e-06
  14  1.00293
  15  3.64046e-05
  16  1.01198
  17  0.000177851
  18  1.69746e-05
  19  1.07431
  20  1.62501e-05
  21  1.00525
  22  1.13895e-05
  23  1.35217e-06
  24  1.32095
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  3.640e-05  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.006e+00  1.321e+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  1.352e-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: 9.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.62e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950710/likelihoodResults_559180801_559440001_4FGL_J1251.3-0201_daily_bin1234.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) = 355.649841331
delta logL = -2.59220926182e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 355.649816342
delta logL = -9.32888724492e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17486E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9946       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0057       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=   355.6498     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      283 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10024E-03    7700.3        .16025E-01** at limit **
   2  alpha         1.4683        2.6014        .16887        .28473E-07
   3  Normalizat    .10000E-01    .29879E-01    .70918E-02** at limit **
   4  Prefactor     1.0057        .76902E-01    .18162E-03    .61180E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100235
  alpha      = 1.46832
  Normalizat = 0.01
  Prefactor  = 1.00575
 **********
 **   18 **HESSE 
 **********

 FCN=   355.6498     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10024E-03    317.04        .27069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4683        3.4238        .67549E-02   -.42539    
   3  Normalizat    .10000E-01    .43783        .14184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0057        .29593        .36324E-04   -.92538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78746e-09
Minuit parameter uncertainties:
  1  0.0173733
  2  2410.7
  3  2.19496e-05
  4  0.296409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950710': 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) = 355.649815374
delta logL = 3.4803122162e-08

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.002e-04  1.737e-02  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.468e+00  2.411e+03  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.006e+00  2.964e-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  2.195e-05  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/950710/cmap_HighResolution_559180801_559440001_4FGL_J1251.3-0201_daily_bin1234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-04', job_status='DONE', photon_flux_upper_limit='9.59e-07', time_completed='2021-09-06 07:21:05.513457', job_id='950710', GAL2='1.01', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630938065.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.01', dlogl='3.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1234' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:21:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 950710: <4FGL_J1251.3-0201_daily_bin1234> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1234> 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) <bullet0283>, 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:06 2021
Results reported at Mon Sep  6 07:21:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1234 192.836 -2.0271 559180801 559440001 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.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             234.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   592 sec.
    Turnaround time :                            594 sec.

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

