/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 168 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7500
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1251.3-0201_daily_bin998
RA = 192.836, Dec = -2.0271
tmin = 498009601, tmax = 498268801
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='950393', job_status='RUN', time_executed='2021-09-06 07:13:53.174248', time_epoch_executed='1630937633.17' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950393

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950393/ft1_4FGL_J1251.3-0201_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950393/ft2_4FGL_J1251.3-0201_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950393/ft1_4FGL_J1251.3-0201_daily_bin998.fits outfile=/scratch/kocevski/950393/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin998.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.38
user 7.68
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950393/ft1_filtered_4FGL_J1251.3-0201_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/950393/ft2_4FGL_J1251.3-0201_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/950393/ltcube_498009601_498268801_4FGL_J1251.3-0201_daily_bin998.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/950393/ft2_4FGL_J1251.3-0201_daily_bin998.fits
.....................!
real 12.24
user 11.81
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950393/ft1_filtered_4FGL_J1251.3-0201_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/950393/ft2_4FGL_J1251.3-0201_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/950393/ltcube_498009601_498268801_4FGL_J1251.3-0201_daily_bin998.fits outfile=/scratch/kocevski/950393/expmap_498009601_498268801_4FGL_J1251.3-0201_daily_bin998.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/950393/ltcube_498009601_498268801_4FGL_J1251.3-0201_daily_bin998.fits
.....................!
real 192.48
user 186.31
sys 5.30

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/950393/ft1_filtered_4FGL_J1251.3-0201_daily_bin998.fits scfile=/scratch/kocevski/950393/ft2_4FGL_J1251.3-0201_daily_bin998.fits outfile=/scratch/kocevski/950393/cmap_498009601_498268801_4FGL_J1251.3-0201_daily_bin998.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 1.03
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950393/ft1_filtered_4FGL_J1251.3-0201_daily_bin998.fits scfile=/scratch/kocevski/950393/ft2_4FGL_J1251.3-0201_daily_bin998.fits outfile=/scratch/kocevski/950393/cmap_HighResolution_498009601_498268801_4FGL_J1251.3-0201_daily_bin998.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 1.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950393/ft1_filtered_4FGL_J1251.3-0201_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/950393/ft2_4FGL_J1251.3-0201_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950393/Model_4FGL_J1251.3-0201_daily_bin998.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/950393/ft1_filtered_4FGL_J1251.3-0201_daily_bin998.fits.....................!
real 61.27
user 49.24
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.2721       1.0000         .10000E-03   10000.    
     5 'norm      '    .21991E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4309       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10981E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.288       1.0000         .10000E-03   10000.    
    11 'norm      '    .17874E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9347       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.047       1.0000         .10000E-03   10000.    
    15 'norm      '    16.602       1.0000         .10000E-03   10000.    
    16 'norm      '    .75204       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    23.488       1.0000         .10000E-03   10000.    
    19 'norm      '    29.855       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.813       1.0000         .10000E-03   10000.    
    21 'Prefactor '    72.447       1.0000         .10000E-03   10000.    
    22 'norm      '    .58113       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1787       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4828       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=   5838.129     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2747 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.617       -.81359E-05** at limit **
   2  Prefactor     .10000E-03    23.470        .80857E-05** at limit **
   3  Prefactor     .10000E-03    16.965       -.91333E-06** at limit **
   4  norm          8.2737        4.5309       -.13421E-06    .14603E-03
   5  norm          .10000E-03    2.5151       -.12076E-06** at limit **
   6  norm          .10000E-03    60.399       -.33370E-04** at limit **
   7  Prefactor     .10000E-03    52.390        .59395E-05** at limit **
   8  norm          3.4313        .90771       -.48914E-07    .13242E-02
   9  Prefactor     .10000E-03    27.248       -.94116E-05** at limit **
  10  Prefactor     14.286        16.413       -.64846E-06   -.17775E-04
  11  norm          .10017E-03    .80461        .76466E-08** at limit **
  12  Prefactor     6.9360        12.895        .24456E-06    .48101E-05
  13  Prefactor     .10000E-03    49.853        .13748E-04** at limit **
  14  Prefactor     39.031        59.406       -.21286E-04    .11637E-04
  15  norm          16.600        26.049       -.19089E-05   -.22820E-05
  16  norm          .75203        .34873        .25776E-06   -.58442E-03
  17  Prefactor     .10000E-03    47.833        .18820E-04** at limit **
  18  norm          23.485        18.426        .56479E-08   -.25333E-04
  19  norm          29.856        20.680        .32099E-06   -.15679E-05
  20  Prefactor     28.801        25.782       -.71565E-05    .40387E-05
  21  Prefactor     72.443        23.496       -.14537E-05    .10617E-04
  22  norm          .58045        1.6437       -.55770E-06   -.13026E-02
  23  Normalizat    1.1793        .30528        .36586E-05    .53559E-04
  24  Prefactor     1.4826        .21967        .39100E-06    .17871E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.27369
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.43134
  Prefactor  = 0.0001
  Prefactor  = 14.2857
  norm       = 0.000100174
  Prefactor  = 6.936
  Prefactor  = 0.0001
  Prefactor  = 39.0312
  norm       = 16.5997
  norm       = 0.752026
  Prefactor  = 0.0001
  norm       = 23.4848
  norm       = 29.8559
  Prefactor  = 28.8014
  Prefactor  = 72.4426
  norm       = 0.580452
  Normalizat = 1.17928
  Prefactor  = 1.48255
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.129     FROM HESSE     STATUS=OK           405 CALLS     3152 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.2737        4.5214        .11519E-03   -1.5133    
   5  norm          .10000E-03    5.2356        .23223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    60.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4313        .90042        .34673E-04   -1.5337    
   9  Prefactor     .10000E-03    27.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.286        16.410        .10596E-03   -1.4952    
  11  norm          .10017E-03    27.102        .12987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9360        12.864        .15235E-03   -1.5181    
  13  Prefactor     .10000E-03    49.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.031        59.420        .64143E-04   -1.4458    
  15  norm          16.600        26.039        .98297E-04   -1.4893    
  16  norm          .75203        .34728        .27840E-04   -1.5535    
  17  Prefactor     .10000E-03    47.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          23.485        18.407        .82650E-04   -1.4738    
  19  norm          29.856        20.691        .73326E-04   -1.4615    
  20  Prefactor     28.801        25.801        .74637E-04   -1.4634    
  21  Prefactor     72.443        23.457        .47167E-04   -1.4004    
  22  norm          .58045        1.6144        .15877E-03   -1.5556    
  23  Normalizat    1.1793        .35580        .38524E-03   -.87245    
  24  Prefactor     1.4826        .26000        .26415E-03   -.78029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04462e-09
Minuit parameter uncertainties:
  1  2.19297e-05
  2  1.63467e-05
  3  1.22793e-05
  4  4.52156
  5  1.68493e-05
  6  2.46261e-05
  7  7.40095e-06
  8  0.900425
  9  2.34054e-05
  10  16.4152
  11  0.00434943
  12  12.8686
  13  8.89272e-05
  14  59.5106
  15  26.0573
  16  0.347278
  17  1.72925e-06
  18  18.4115
  19  20.6963
  20  25.8108
  21  23.4599
  22  1.61456
  23  0.356533
  24  0.260236
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.660e+01  2.606e+01  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.483e+00  2.602e-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.179e+00  3.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.71
Ra Dec: 192.836 -2.027
Photon Flux Upper Limit: 8.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950393/likelihoodResults_498009601_498268801_4FGL_J1251.3-0201_daily_bin998.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) = 5838.08977452
delta logL = 0.0392925973038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5838.08628948
delta logL = 0.0427776287661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.475       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5029       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4883       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=   5838.086     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      268 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.466        30.756        .10528E-03   -.19542E-03
   2  alpha         2.5057        3.5651        .29374E-01   -.40355E-04
   3  Normalizat    1.1629        .35642        .38756E-03   -.64416E-03
   4  Prefactor     1.4886        .26169        .26368E-03   -.13464E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 14.4661
  alpha      = 2.50569
  Normalizat = 1.16295
  Prefactor  = 1.48859
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.086     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.466        27.201        .21055E-04   -1.4947    
   2  alpha         2.5057        1.9519        .11749E-02    .22764E-02
   3  Normalizat    1.1629        .35116        .77512E-04   -.87756    
   4  Prefactor     1.4886        .26018        .52736E-04   -.77860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26156e-09
Minuit parameter uncertainties:
  1  27.2239
  2  2.23969
  3  0.35187
  4  0.26041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950393': 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) = 5838.08628799
delta logL = 0.0427791248676

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.447e+01  2.722e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.506e+00  2.240e+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.489e+00  2.604e-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.163e+00  3.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.71
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/950393/cmap_HighResolution_498009601_498268801_4FGL_J1251.3-0201_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-05', job_status='DONE', photon_flux_upper_limit='8.59e-08', time_completed='2021-09-06 07:25:51.762097', job_id='950393', GAL2='1.49', fit_tolerance='1e-08', EG2='1.16', EG='1.18', time_epoch_completed='1630938351.76', return_code2='0', ts='0.71', comment='SUCCESS', return_code='0', GAL='1.48', dlogl='4.28e-02', ts2='0.79', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='998' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:25:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 950393: <4FGL_J1251.3-0201_daily_bin998> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin998> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:10:45 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:10:46 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:10:46 2021
Terminated at Mon Sep  6 07:25:52 2021
Results reported at Mon Sep  6 07:25:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin998 192.836 -2.0271 498009601 498268801 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 :                                   691.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            907 sec.

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

