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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1481
RA = 192.836, Dec = -2.0271
tmin = 623203201, tmax = 623462401
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='952104', job_status='RUN', time_executed='2021-09-06 07:19:30.061852', time_epoch_executed='1630937970.06' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952104

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952104/ft1_4FGL_J1251.3-0201_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952104/ft2_4FGL_J1251.3-0201_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952104/ft1_4FGL_J1251.3-0201_daily_bin1481.fits outfile=/scratch/kocevski/952104/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1481.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=623203201.0 tmax=623462401.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.07
user 2.71
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952104/ft1_filtered_4FGL_J1251.3-0201_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/952104/ft2_4FGL_J1251.3-0201_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/952104/ltcube_623203201_623462401_4FGL_J1251.3-0201_daily_bin1481.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/952104/ft2_4FGL_J1251.3-0201_daily_bin1481.fits
.....................!
real 15.06
user 12.62
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952104/ft1_filtered_4FGL_J1251.3-0201_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/952104/ft2_4FGL_J1251.3-0201_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/952104/ltcube_623203201_623462401_4FGL_J1251.3-0201_daily_bin1481.fits outfile=/scratch/kocevski/952104/expmap_623203201_623462401_4FGL_J1251.3-0201_daily_bin1481.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/952104/ltcube_623203201_623462401_4FGL_J1251.3-0201_daily_bin1481.fits
.....................!
real 194.06
user 186.23
sys 6.08

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/952104/ft1_filtered_4FGL_J1251.3-0201_daily_bin1481.fits scfile=/scratch/kocevski/952104/ft2_4FGL_J1251.3-0201_daily_bin1481.fits outfile=/scratch/kocevski/952104/cmap_623203201_623462401_4FGL_J1251.3-0201_daily_bin1481.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952104/ft1_filtered_4FGL_J1251.3-0201_daily_bin1481.fits scfile=/scratch/kocevski/952104/ft2_4FGL_J1251.3-0201_daily_bin1481.fits outfile=/scratch/kocevski/952104/cmap_HighResolution_623203201_623462401_4FGL_J1251.3-0201_daily_bin1481.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/952104/ft1_filtered_4FGL_J1251.3-0201_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/952104/ft2_4FGL_J1251.3-0201_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952104/Model_4FGL_J1251.3-0201_daily_bin1481.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/952104/ft1_filtered_4FGL_J1251.3-0201_daily_bin1481.fits.......................!
real 28.89
user 27.14
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    27.747       1.0000         .10000E-03   10000.    
     6 'norm      '    .10568E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6155       1.0000         .10000E-03   10000.    
    11 'norm      '    7.2518       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    189.91       1.0000         .10000E-03   10000.    
    15 'norm      '    .28235E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10453E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    231.16       1.0000         .10000E-03   10000.    
    18 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.0357       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0882       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1754       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=   1936.773     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2852 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    104.36       -.10205E-06** at limit **
   2  Prefactor     .10000E-03    30.877        .49993E-06** at limit **
   3  Prefactor     .10000E-03    32.434        .56335E-06** at limit **
   4  norm          .10000E-03    3.8390        .70906E-07** at limit **
   5  norm          27.736        11.532       -.14685E-06   -.12068E-03
   6  norm          .10000E-03    217.90        .51487E-05** at limit **
   7  Prefactor     .10000E-03    95.299        .40004E-07** at limit **
   8  norm          .10000E-03    4.1113        .16262E-06** at limit **
   9  Prefactor     .10000E-03    42.579       -.69678E-06** at limit **
  10  Prefactor    10000.0        8960.1        .50556E-03** at limit **
  11  norm          7.2498        4.3801       -.27308E-07   -.97503E-04
  12  Prefactor     .10000E-03    59.488        .58077E-06** at limit **
  13  Prefactor     .10000E-03    88.106        .72750E-07** at limit **
  14  Prefactor     189.55        391.32        .26915E-05    .35811E-06
  15  norm          .10000E-03    524.78       -.18029E-04** at limit **
  16  norm          .10000E-03    1.3228        .33396E-06** at limit **
  17  Prefactor     231.30        321.62       -.83916E-05   -.27332E-05
  18  norm          .10000E-03    26.373        .28058E-06** at limit **
  19  norm          .10000E-03    23.831        .25041E-06** at limit **
  20  Prefactor     .10000E-03    194.87       -.19502E-04** at limit **
  21  Prefactor     .10000E-03    14.242        .53855E-07** at limit **
  22  norm          8.0213        4.9299       -.80169E-07    .34640E-04
  23  Normalizat    1.0880        .47728        .27003E-05   -.37490E-04
  24  Prefactor     1.1753        .35407       -.43878E-05    .46153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 27.7356
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 7.2498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 189.548
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 231.297
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.02126
  Normalizat = 1.08798
  Prefactor  = 1.17525
 **********
 **   18 **HESSE 
 **********

 FCN=   1936.773     FROM HESSE     STATUS=OK           391 CALLS     3243 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    109.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.8522        .84276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          27.736        11.636        .76055E-04   -1.4654    
   6  norm          .10000E-03    238.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    99.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.1753        .12245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        8928.0        .93674E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.2498        4.3802        .66269E-04   -1.5169    
  12  Prefactor     .10000E-03    61.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    91.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     189.55        393.62        .14653E-03   -1.2946    
  15  norm          .10000E-03    536.95        .19893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3212        .79979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     231.30        326.38        .13309E-03   -1.2654    
  18  norm          .10000E-03    26.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    24.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    206.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.326        .16272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.0213        4.9602        .73504E-04   -1.5141    
  23  Normalizat    1.0880        .57782        .37074E-03   -.90139    
  24  Prefactor     1.1753        .42304        .26525E-03   -.87096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73018e-10
Minuit parameter uncertainties:
  1  3.32851e-05
  2  1.39174e-05
  3  1.48721e-06
  4  2.17703e-06
  5  11.6366
  6  1.80913e-05
  7  4.34412e-06
  8  9.84646e-06
  9  7.40768e-05
  10  0.569055
  11  4.38042
  12  3.2036e-05
  13  3.19676e-05
  14  399.304
  15  0.00286687
  16  4.31877e-06
  17  329.004
  18  2.84723e-05
  19  8.61573e-07
  20  0.000730475
  21  1.34107e-07
  22  4.96044
  23  0.58122
  24  0.424265
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  2.867e-03  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.175e+00  4.243e-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.088e+00  5.812e-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.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.09e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/952104/likelihoodResults_623203201_623462401_4FGL_J1251.3-0201_daily_bin1481.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) = 1936.77302764
delta logL = -8.71917745826e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1936.77302763
delta logL = -8.71840165928e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9506       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1753       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=   1936.154     FROM MIGRAD    STATUS=CONVERGED    197 CALLS      332 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.429        1024.9        .90712E-02   -.27544E-03
   2  alpha         3.5085        3.9234        .24003       -.90203E-04
   3  Normalizat    .97122        .19640        .87533E-01   -.40734E-04
   4  Prefactor     1.1869        .13949        .59422E-01   -.48890E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 31.429
  alpha      = 3.5085
  Normalizat = 0.971216
  Prefactor  = 1.18695
 **********
 **   18 **HESSE 
 **********

 FCN=   1936.154     FROM HESSE     STATUS=OK            33 CALLS      365 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.429        66.548        .23603E-03   -1.4586    
   2  alpha         3.5085        1.1725        .98383E-02    .41523    
   3  Normalizat    .97122        .56756        .38770E-03   -.94001    
   4  Prefactor     1.1869        .41689        .26277E-03   -.86734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96879e-10
Minuit parameter uncertainties:
  1  66.7053
  2  1.23106
  3  0.571126
  4  0.418049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952104': 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) = 1936.15379089
delta logL = 0.619228028733

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.143e+01  6.671e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  3.509e+00  1.231e+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:  1.187e+00  4.180e-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:  9.712e-01  5.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 3.51 +/- 1.23
Photon Flux (Free Index): 3.84e-07 +/- 4.54e-07
Energy Flux (Free Index): 7.28e-05 +/- 7.57e-05

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/952104/cmap_HighResolution_623203201_623462401_4FGL_J1251.3-0201_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-04', comment='SUCCESS', energy_flux2='7.28e-05', dlogl='6.19e-01', photon_flux2='3.84e-07', job_status='DONE', time_completed='2021-09-06 07:29:21.140998', photon_index_error2='1.23', photon_index2='3.51', ts='-0.00', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='3.02e-07', energy_flux_error2='7.57e-05', EG='1.09', time_epoch_completed='1630938561.14', return_code='0', job_id='952104', GAL2='1.19', EG2='0.97', return_code2='0', photon_flux_error2='4.54e-07', ts2='1.26', photon_index='1.95' WHERE bin_id='1481' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:29:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 952104: <4FGL_J1251.3-0201_daily_bin1481> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1481> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:15:51 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:15:53 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:15:53 2021
Terminated at Mon Sep  6 07:29:21 2021
Results reported at Mon Sep  6 07:29:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1481 192.836 -2.0271 623203201 623462401 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 :                                   430.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             221.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            810 sec.

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

