aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 96 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1745
RA = 192.836, Dec = -2.0271
tmin = 691632001, tmax = 691891201
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='645423', job_status='RUN', time_executed='2022-12-05 00:37:07.141411', time_epoch_executed='1670229427.14' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/645423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/645423/ft1_4FGL_J1251.3-0201_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/645423/ft2_4FGL_J1251.3-0201_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/645423/ft1_4FGL_J1251.3-0201_daily_bin1745.fits outfile=/scratch/kocevski/645423/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1745.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.40
user 2.17
sys 0.19

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

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

Number of photons that the gtmktime cut: 883

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/645423/ft1_filtered_4FGL_J1251.3-0201_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/645423/ft2_4FGL_J1251.3-0201_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/645423/ltcube_691632001_691891201_4FGL_J1251.3-0201_daily_bin1745.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/645423/ft2_4FGL_J1251.3-0201_daily_bin1745.fits
.....................!
real 12.28
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/645423/ft1_filtered_4FGL_J1251.3-0201_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/645423/ft2_4FGL_J1251.3-0201_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/645423/ltcube_691632001_691891201_4FGL_J1251.3-0201_daily_bin1745.fits outfile=/scratch/kocevski/645423/expmap_691632001_691891201_4FGL_J1251.3-0201_daily_bin1745.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/645423/ltcube_691632001_691891201_4FGL_J1251.3-0201_daily_bin1745.fits
.....................!
real 190.69
user 185.22
sys 5.05

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1251.3-0201 @ 192.836 -2.0271

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/645423/ft1_filtered_4FGL_J1251.3-0201_daily_bin1745.fits scfile=/scratch/kocevski/645423/ft2_4FGL_J1251.3-0201_daily_bin1745.fits outfile=/scratch/kocevski/645423/cmap_691632001_691891201_4FGL_J1251.3-0201_daily_bin1745.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/645423/ft1_filtered_4FGL_J1251.3-0201_daily_bin1745.fits scfile=/scratch/kocevski/645423/ft2_4FGL_J1251.3-0201_daily_bin1745.fits outfile=/scratch/kocevski/645423/cmap_HighResolution_691632001_691891201_4FGL_J1251.3-0201_daily_bin1745.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/645423/ft1_filtered_4FGL_J1251.3-0201_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/645423/ft2_4FGL_J1251.3-0201_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/645423/Model_4FGL_J1251.3-0201_daily_bin1745.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/645423/ft1_filtered_4FGL_J1251.3-0201_daily_bin1745.fits.....................!
real 70.35
user 68.97
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/645423/ft1_filtered_4FGL_J1251.3-0201_daily_bin1745.fits', '/scratch/kocevski/645423/ft2_4FGL_J1251.3-0201_daily_bin1745.fits', expMap='/scratch/kocevski/645423/expmap_691632001_691891201_4FGL_J1251.3-0201_daily_bin1745.fits', expCube='/scratch/kocevski/645423/ltcube_691632001_691891201_4FGL_J1251.3-0201_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/645423/Model_4FGL_J1251.3-0201_daily_bin1745.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  0.000e+00  1.000e+06 ( 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 -5.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/645423/ft1_filtered_4FGL_J1251.3-0201_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/645423/ft2_4FGL_J1251.3-0201_daily_bin1745.fits
Exposure map: /scratch/kocevski/645423/expmap_691632001_691891201_4FGL_J1251.3-0201_daily_bin1745.fits
Exposure cube: /scratch/kocevski/645423/ltcube_691632001_691891201_4FGL_J1251.3-0201_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/645423/Model_4FGL_J1251.3-0201_daily_bin1745.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) = 9560.80013839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.702       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17767E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .34136E-03   1.0000          .0000       .10000E+07
     4 'norm      '    1.2345       1.0000          .0000       .10000E+07
     5 'norm      '    2.0886       1.0000          .0000       .10000E+07
     6 'norm      '    .74169E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .69249       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.4595       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2637       1.0000          .0000       .10000E+07
    10 'norm      '    .66685E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.2234       1.0000          .0000       .10000E+07
    12 'Prefactor '    10.879       1.0000          .0000       .10000E+07
    13 'norm      '    19.100       1.0000          .0000       .10000E+07
    14 'norm      '    .23338       1.0000          .0000       .10000E+07
    15 'Prefactor '    .59474E-02   1.0000          .0000       .10000E+07
    16 'norm      '    9.9096       1.0000          .0000       .10000E+07
    17 'norm      '    .86630E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .26593E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    14.399       1.0000          .0000       .10000E+07
    20 'norm      '    .53541E-06   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.6040       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .61438       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=   9560.788     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1821 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.710        1.4130        .65451E-08   -.80157E-01
   2  Prefactor     .27756E-09    29.550       -.16709E-06** at limit **
   3  Prefactor     .72164E-09    9.4480        .27192E-06** at limit **
   4  norm          1.2374        1.2047        .12045E-07    .10702E-03
   5  norm          2.0880        1.8451        .17035E-08   -.30091E-03
   6  norm          .33307E-08    18.742       -.13099E-06** at limit **
   7  norm          .69265        .33741        .57745E-09   -.12621E-02
   8  Prefactor     4.4511        4.4195        .11449E-07    .28089E-03
   9  Prefactor     2.2774        6.3888       -.70102E-07    .12980E-01
  10  norm          .65013E-01    3.3000       -.26463E-07** at limit **
  11  Prefactor     3.1891        5.9748        .34274E-07    .15678E-02
  12  Prefactor     10.874        1.0316       -.25927E-08   -.97409E-02
  13  norm          19.086        1.0616       -.13178E-09    .85691E-04
  14  norm          .23328        .12754       -.11220E-08** at limit **
  15  Prefactor     .55511E-10    12.632        .22261E-06** at limit **
  16  norm          9.8986        8.0586       -.27254E-07   -.16613E-02
  17  norm           .0000        2.1160       -.27459E-08** at limit **
  18  Prefactor     .22204E-09    46.097       -.54807E-06** at limit **
  19  Prefactor     14.423        4.3359        .12030E-07    .50675E-01
  20  norm           .0000        .43242        .57835E-08** at limit **
  21  Normalizat    1.6043        .19212       -.12536E-05   -.13617E-03
  22  Prefactor     .61426        .13330       -.88417E-08   -.10217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.7097
  Prefactor  = 2.77556e-10
  Prefactor  = 7.21645e-10
  norm       = 1.23743
  norm       = 2.08796
  norm       = 3.33067e-09
  norm       = 0.692655
  Prefactor  = 4.45109
  Prefactor  = 2.27739
  norm       = 0.0650126
  Prefactor  = 3.18912
  Prefactor  = 10.8737
  norm       = 19.0858
  norm       = 0.233283
  Prefactor  = 5.55112e-11
  norm       = 9.89858
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 14.4232
  norm       = 0
  Normalizat = 1.60428
  Prefactor  = 0.614262
 **********
 **   18 **HESSE 
 **********

 FCN=   9560.788     FROM HESSE     STATUS=OK           406 CALLS     2227 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.710        17.309        .18669E-03   -1.5601    
   2  Prefactor     .27756E-09    7.9761        .10592E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .72164E-09    9.3972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2374        1.2142        .10106E-02   -1.5686    
   5  norm          2.0880        1.8493        .71409E-03   -1.5679    
   6  norm          .33307E-08    18.793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .69265        .34343        .61320E-03   -1.5691    
   8  Prefactor     4.4511        4.4321        .47658E-03   -1.5666    
   9  Prefactor     2.2774        7.7480        .68243E-03   -1.5678    
  10  norm          .65013E-01    .44251        .36079E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1891        6.1153        .56398E-03   -1.5672    
  12  Prefactor     10.874        20.619        .30350E-03   -1.5642    
  13  norm          19.086        18.412        .22889E-03   -1.5621    
  14  norm          .23328        .13370        .56862E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    12.659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.8986        8.0745        .31807E-03   -1.5645    
  17  norm           .0000        2.1100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .22204E-09    45.569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.423        7.6091        .26370E-03   -1.5632    
  20  norm           .0000        .43682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6043        .16584        .54441E-01   -.74889    
  22  Prefactor     .61426        .11553        .59670E-01   -1.0699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92062e-08
Minuit parameter uncertainties:
  1  17.3095
  2  9.15426e-05
  3  0.000162442
  4  1.21424
  5  1.84926
  6  0.000498722
  7  0.343432
  8  4.43206
  9  7.748
  10  0.339227
  11  6.11532
  12  20.6195
  13  18.412
  14  0.133695
  15  4.12834e-05
  16  8.0745
  17  8.55308e-06
  18  0.000210728
  19  7.60915
  20  3.77178e-08
  21  0.165895
  22  0.115577
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.909e+01  1.841e+01  0.000e+00  1.000e+06 ( 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 -5.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:  6.143e-01  1.156e-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.604e+00  1.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 1.64e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/645423/likelihoodResults_691632001_691891201_4FGL_J1251.3-0201_daily_bin1745.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) = 9560.33027733
delta logL = 0.457263575618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9560.32558266
delta logL = 0.461958245754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.711       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7811       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62498       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9560.326     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      316 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.694        19.276        .56142E-04   -.16443E-03
   2  alpha         2.7835        1.0598        .14146E-01    .24290E-03
   3  Normalizat    1.5763        .19206        .24233E-03   -.41059E-04
   4  Prefactor     .62520        .13570        .26172E-03   -.51866E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6938
  alpha      = 2.78355
  Normalizat = 1.57629
  Prefactor  = 0.625203
 **********
 **   18 **HESSE 
 **********

 FCN=   9560.326     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.694        16.473        .22457E-05   -1.5637    
   2  alpha         2.7835        .91286        .28293E-02    .11366    
   3  Normalizat    1.5763        .19105        .48466E-04   -.75657    
   4  Prefactor     .62520        .13526        .10469E-04   -1.0654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40626e-12
Minuit parameter uncertainties:
  1  16.4735
  2  0.934768
  3  0.191143
  4  0.135333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/645423': 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) = 9560.32557451
delta logL = 0.461966399193

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.269e+01  1.647e+01  0.000e+00  1.000e+06 ( 1.000e-13)
291        alpha:  2.784e+00  9.348e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.558e-01  0.000e+00 -5.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:  6.252e-01  1.353e-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.576e+00  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 2.78 +/- 0.93
Photon Flux (Free Index): 3.94e-08 +/- 3.87e-08
Energy Flux (Free Index): 1.07e-05 +/- 8.27e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/645423/cmap_HighResolution_691632001_691891201_4FGL_J1251.3-0201_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-05', comment='SUCCESS', photon_flux='1.64e-08', energy_flux2='1.07e-05', photon_flux_error='1.58e-08', dlogl='4.62e-01', energy_flux='1.13e-05', photon_flux2='3.94e-08', job_status='DONE', time_completed='2022-12-05 00:49:10.047028', photon_index_error2='0.93', photon_index2='2.78', ts='1.60', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='5.30e-08', energy_flux_error2='8.27e-06', EG='1.60', time_epoch_completed='1670230150.05', return_code='0', job_id='645423', GAL2='0.63', EG2='1.58', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.87e-08', ts2='2.52', photon_index='1.95' WHERE bin_id='1745' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:49:10 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 645423: <4FGL_J1251.3-0201_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 00:35:21 2022
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:35:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:35:22 2022
Terminated at Mon Dec  5 00:49:10 2022
Results reported at Mon Dec  5 00:49:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1745 192.836 -2.0271 691632001 691891201 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 :                                   725.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            829 sec.

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

