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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1207
RA = 192.836, Dec = -2.0271
tmin = 552182401, tmax = 552441601
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='950668', job_status='RUN', time_executed='2021-09-06 07:13:38.681015', time_epoch_executed='1630937618.68' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950668

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950668/ft1_4FGL_J1251.3-0201_daily_bin1207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950668/ft2_4FGL_J1251.3-0201_daily_bin1207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950668/ft1_4FGL_J1251.3-0201_daily_bin1207.fits outfile=/scratch/kocevski/950668/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1207.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=552182401.0 tmax=552441601.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.85
user 3.49
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950668/ft1_filtered_4FGL_J1251.3-0201_daily_bin1207.fits" evtable="EVENTS" scfile=/scratch/kocevski/950668/ft2_4FGL_J1251.3-0201_daily_bin1207.fits sctable="SC_DATA" outfile=/scratch/kocevski/950668/ltcube_552182401_552441601_4FGL_J1251.3-0201_daily_bin1207.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/950668/ft2_4FGL_J1251.3-0201_daily_bin1207.fits
.....................!
real 15.85
user 15.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950668/ft1_filtered_4FGL_J1251.3-0201_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/950668/ft2_4FGL_J1251.3-0201_daily_bin1207.fits sctable="SC_DATA" expcube=/scratch/kocevski/950668/ltcube_552182401_552441601_4FGL_J1251.3-0201_daily_bin1207.fits outfile=/scratch/kocevski/950668/expmap_552182401_552441601_4FGL_J1251.3-0201_daily_bin1207.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/950668/ltcube_552182401_552441601_4FGL_J1251.3-0201_daily_bin1207.fits
.....................!
real 193.11
user 187.37
sys 4.48

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/950668/ft1_filtered_4FGL_J1251.3-0201_daily_bin1207.fits scfile=/scratch/kocevski/950668/ft2_4FGL_J1251.3-0201_daily_bin1207.fits outfile=/scratch/kocevski/950668/cmap_552182401_552441601_4FGL_J1251.3-0201_daily_bin1207.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.65
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950668/ft1_filtered_4FGL_J1251.3-0201_daily_bin1207.fits scfile=/scratch/kocevski/950668/ft2_4FGL_J1251.3-0201_daily_bin1207.fits outfile=/scratch/kocevski/950668/cmap_HighResolution_552182401_552441601_4FGL_J1251.3-0201_daily_bin1207.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950668/ft1_filtered_4FGL_J1251.3-0201_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/950668/ft2_4FGL_J1251.3-0201_daily_bin1207.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950668/Model_4FGL_J1251.3-0201_daily_bin1207.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/950668/ft1_filtered_4FGL_J1251.3-0201_daily_bin1207.fits.........................!
real 18.28
user 16.69
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    246.13       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26605       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18651E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .15879E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0858       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9720       1.0000         .10000E-03   10000.    
     8 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    81.849       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .22781E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32616E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26760E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    144.14       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9832       1.0000         .10000E-03   10000.    
    17 'Prefactor '    301.06       1.0000         .10000E-03   10000.    
    18 'norm      '    .17246E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    4.1585       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .48270E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7956       1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2615       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .48968       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   636.2736     FROM MIGRAD    STATUS=CONVERGED    210 CALLS      518 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     245.73        247.97        .64540E-03    .98320E-02
   2  Prefactor     .12173E-03    7203.6        .10275E-01** at limit **
   3  Prefactor     .12772E-03    88.328        .10145E-01** at limit **
   4  norm          .10000E-03    14.168        .90712E-02** at limit **
   5  norm          .10024E-03    129.41        .10213E-01** at limit **
   6  norm          .15200E-03    784.82        .49864E-02** at limit **
   7  Prefactor     6.9720        1.0026         .0000         .0000    
   8  norm          .10000E-03    .20571        .92248E-07** at limit **
   9  Prefactor     81.853        1.0000        .12753E-04    .31524E-01
  10  Prefactor     .10000E-03    .20571        .16338E-06** at limit **
  11  norm          .11689E-03    .25272        .15164E-04** at limit **
  12  Prefactor     .10000E-03    .20571       -.21201E-06** at limit **
  13  Prefactor     .10910E-03    .24344        .39266E-04** at limit **
  14  Prefactor     .10001E-03    .20958        .21303E-06** at limit **
  15  norm          146.05        1.0065        .43772E-04   -.88813E-02
  16  norm          1.9820        1.0356       -.19290E-06    .30494E-04
  17  Prefactor     301.46        1.0006        .93951E-05   -.14046E-01
  18  norm          .10000E-03    .25901        .30471E-06** at limit **
  19  norm          3.3038        .89798       -.81125E-04   -.98159E-03
  20  Prefactor     .10026E-03    .23161        .42960E-05** at limit **
  21  Prefactor     8.8855        .95370        .13119E-04    .96195E-03
  22  norm          .10000E-03    .20571        .10006E-07** at limit **
  23  Normalizat    1.2653        1.0897       -.70604E-05   -.32370E-06
  24  Prefactor     .49158        .83250        .72289E-05   -.13069E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 245.732
  Prefactor  = 0.000121734
  Prefactor  = 0.000127725
  norm       = 0.0001
  norm       = 0.00010024
  norm       = 0.000152004
  Prefactor  = 6.97203
  norm       = 0.0001
  Prefactor  = 81.8525
  Prefactor  = 0.0001
  norm       = 0.00011689
  Prefactor  = 0.0001
  Prefactor  = 0.000109102
  Prefactor  = 0.000100009
  norm       = 146.05
  norm       = 1.98198
  Prefactor  = 301.462
  norm       = 0.0001
  norm       = 3.30384
  Prefactor  = 0.000100258
  Prefactor  = 8.8855
  norm       = 0.0001
  Normalizat = 1.26529
  Prefactor  = 0.49158
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   636.2736     FROM HESSE     STATUS=FAILED        23 CALLS      541 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     245.73        247.97        .64540E-03   -1.2560    
   2  Prefactor     .12173E-03    7203.6        .10275E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12772E-03    88.328        .10145E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    14.168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10024E-03    129.41        .10213E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .15200E-03    784.82        .49864E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     513.51        506.50         .0000       -1.5180    
   8  norm          .10000E-03    .20571        .92248E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     81.853        1.0000        .12753E-04   -1.3896    
  10  Prefactor     .10000E-03    .20571        .16338E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .11689E-03    .25272        .15164E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .20571       -.21201E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10910E-03    .24344        .39266E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    .20958        .21303E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          146.05        1.0065        .43772E-04   -1.3285    
  16  norm          1.9820        1.0356       -.19290E-06   -1.5426    
  17  Prefactor     301.46        1.0006        .93951E-05   -1.2218    
  18  norm          .10000E-03    .25901        .30471E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.3038        .89798       -.81125E-04   -1.5344    
  20  Prefactor     .10026E-03    .23161        .42960E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.8855        .95370        .13119E-04   -1.5112    
  22  norm          .10000E-03    .20571        .10006E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2653        1.0897       -.70604E-05   -.84608    
  24  Prefactor     .49158        .83250        .72289E-05   -1.1236    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.9278e-09
Minuit parameter uncertainties:
  1  249.043
  2  0.676856
  3  0.0991185
  4  9.35456e-06
  5  0.0111588
  6  0.409529
  7  1.00259
  8  1.15389e-06
  9  1.00004
  10  5.46826e-07
  11  0.00413203
  12  2.58472e-06
  13  0.00297714
  14  8.47258e-05
  15  1.00652
  16  1.03565
  17  1.00065
  18  1.48911e-06
  19  0.897982
  20  0.000488831
  21  0.953703
  22  1.3324e-07
  23  1.11037
  24  0.854579
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.460e+02  1.007e+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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  4.916e-01  8.546e-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.265e+00  1.110e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.32
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 1.25e-07 +/- 8.63e-10
Energy Flux (Fixed Index): 8.65e-05 +/- 5.96e-07

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

Saving results to:
/scratch/kocevski/950668/likelihoodResults_552182401_552441601_4FGL_J1251.3-0201_daily_bin1207.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) = 635.109232907
delta logL = 1.16436026257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 635.073382028
delta logL = 1.20021114152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    101.83       1.0000         .10000E-03   10000.    
     2 'alpha     '    .61789       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48621       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=   635.0734     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .51E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          101.29        147.79       -.36624E-04    .77376E-05
   2  alpha         .61613        .75141       -.39522E-03   -.59690E-06
   3  Normalizat    1.2734        .74315       -.67598E-06   -.66307E-05
   4  Prefactor     .48627        .42963        .45510E-06   -.19708E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 101.291
  alpha      = 0.616125
  Normalizat = 1.27339
  Prefactor  = 0.486268
 **********
 **   18 **HESSE 
 **********

 FCN=   635.0734     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          101.29        147.53        .19921E-03   -1.3692    
   2  alpha         .61613        .75082        .83648E-03   -.85345    
   3  Normalizat    1.2734        .92077        .30347E-03   -.84364    
   4  Prefactor     .48627        .53237        .27036E-03   -1.1261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22515e-11
Minuit parameter uncertainties:
  1  148.069
  2  0.77975
  3  0.932995
  4  0.537964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950668': 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) = 635.073375232
delta logL = 1.20021793684

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.013e+02  1.481e+02  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  6.161e-01  7.798e-01  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:  4.863e-01  5.380e-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.273e+00  9.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.72
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 0.62 +/- 0.78
Photon Flux (Free Index): 6.50e-08 +/- 6.78e-08
Energy Flux (Free Index): 6.97e-04 +/- 1.16e-03

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/950668/cmap_HighResolution_552182401_552441601_4FGL_J1251.3-0201_daily_bin1207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-04', comment='SUCCESS', photon_flux='1.25e-07', energy_flux2='6.97e-04', photon_flux_error='8.63e-10', dlogl='1.20e+00', energy_flux='8.65e-05', photon_flux2='6.50e-08', job_status='DONE', time_completed='2021-09-06 07:21:24.748444', photon_index_error2='0.78', photon_index2='0.62', ts='2.32', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', photon_flux_upper_limit='6.51e-07', energy_flux_error2='1.16e-03', EG='1.27', time_epoch_completed='1630938084.75', return_code='101', job_id='950668', GAL2='0.49', EG2='1.27', return_code2='0', energy_flux_error='5.96e-07', photon_flux_error2='6.78e-08', ts2='4.72', photon_index='1.95' WHERE bin_id='1207' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:21:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 950668: <4FGL_J1251.3-0201_daily_bin1207> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1207 192.836 -2.0271 552182401 552441601 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 :                                   336.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            617 sec.

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

