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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1754
RA = 192.836, Dec = -2.0271
tmin = 693964801, tmax = 694224001
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='642061', job_status='RUN', time_executed='2023-01-01 01:11:05.930458', time_epoch_executed='1672564265.93' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642061/ft1_4FGL_J1251.3-0201_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642061/ft2_4FGL_J1251.3-0201_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642061/ft1_4FGL_J1251.3-0201_daily_bin1754.fits outfile=/scratch/kocevski/642061/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1754.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=693964801.0 tmax=694224001.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.95
user 3.68
sys 0.22

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

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

Number of photons that the gtmktime cut: 642

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642061/ft1_filtered_4FGL_J1251.3-0201_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/642061/ft2_4FGL_J1251.3-0201_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/642061/ltcube_693964801_694224001_4FGL_J1251.3-0201_daily_bin1754.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/642061/ft2_4FGL_J1251.3-0201_daily_bin1754.fits
.....................!
real 15.04
user 14.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642061/ft1_filtered_4FGL_J1251.3-0201_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/642061/ft2_4FGL_J1251.3-0201_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/642061/ltcube_693964801_694224001_4FGL_J1251.3-0201_daily_bin1754.fits outfile=/scratch/kocevski/642061/expmap_693964801_694224001_4FGL_J1251.3-0201_daily_bin1754.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/642061/ltcube_693964801_694224001_4FGL_J1251.3-0201_daily_bin1754.fits
.....................!
real 193.19
user 186.95
sys 5.15

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/642061/ft1_filtered_4FGL_J1251.3-0201_daily_bin1754.fits scfile=/scratch/kocevski/642061/ft2_4FGL_J1251.3-0201_daily_bin1754.fits outfile=/scratch/kocevski/642061/cmap_693964801_694224001_4FGL_J1251.3-0201_daily_bin1754.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642061/ft1_filtered_4FGL_J1251.3-0201_daily_bin1754.fits scfile=/scratch/kocevski/642061/ft2_4FGL_J1251.3-0201_daily_bin1754.fits outfile=/scratch/kocevski/642061/cmap_HighResolution_693964801_694224001_4FGL_J1251.3-0201_daily_bin1754.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83463E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    41.176       1.0000          .0000       .10000E+07
     3 'Prefactor '    .22214E-03   1.0000          .0000       .10000E+07
     4 'norm      '    1.1200       1.0000          .0000       .10000E+07
     5 'norm      '    .75189E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .64707E-02   1.0000          .0000       .10000E+07
     7 'norm      '    2.2550       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13028E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    8.1184       1.0000          .0000       .10000E+07
    10 'norm      '    .84854E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .34552E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .29141E-02   1.0000          .0000       .10000E+07
    13 'norm      '    20.908       1.0000          .0000       .10000E+07
    14 'norm      '    .25177       1.0000          .0000       .10000E+07
    15 'Prefactor '    .56149       1.0000          .0000       .10000E+07
    16 'norm      '    9.9373       1.0000          .0000       .10000E+07
    17 'norm      '    .16133E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    12.398       1.0000          .0000       .10000E+07
    19 'Prefactor '    .57322E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .51149       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.4228       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0183       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=   6850.083     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     1811 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    5.2033        .14269E-06** at limit **
   2  Prefactor     41.415        30.747        .52692E-07   -.19818    
   3  Prefactor     .27756E-09    3.3143       -.20057E-06** at limit **
   4  norm          1.1203        1.1764       -.35511E-07   -.49929E-02
   5  norm          .13267E-07    9.0622        .18649E-06** at limit **
   6  norm          .19207E-07    22.509        .41340E-06** at limit **
   7  norm          2.2544        .66765       -.18924E-07   -.16425E-01
   8  Prefactor     .13878E-08    6.2827        .12720E-06** at limit **
   9  Prefactor     8.1208        13.399        .81378E-08   -.37276E-01
  10  norm          .55511E-10    1.0952        .73390E-07** at limit **
  11  Prefactor     .55511E-10    14.521        .28502E-06** at limit **
  12  Prefactor     .94524E-04    157.03        .10729E-05** at limit **
  13  norm          21.730        28.527        .72410E-07    .43254E-01
  14  norm          .25179        .19337        .57761E-08    .76570E-02
  15  Prefactor     .21858E-02    245.09        .89464E-06** at limit **
  16  norm          9.9587        8.9407       -.79982E-08   -.47917E-02
  17  norm           .0000        2.6253        .24968E-07** at limit **
  18  Prefactor     12.410        11.539        .37997E-07    .64441E-01
  19  Prefactor     .55511E-10    4.1897       -.97864E-07** at limit **
  20  norm          .51148        1.1922        .11954E-07    .51546E-03
  21  Normalizat    1.4228        .26115        .17775E-05    .26462E-04
  22  Prefactor     1.0180        .19010       -.13922E-05   -.15482E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Prefactor  = 41.4153
  Prefactor  = 2.77556e-10
  norm       = 1.12027
  norm       = 1.32672e-08
  norm       = 1.92069e-08
  norm       = 2.25441
  Prefactor  = 1.38778e-09
  Prefactor  = 8.12085
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 9.45244e-05
  norm       = 21.7304
  norm       = 0.25179
  Prefactor  = 0.00218579
  norm       = 9.95872
  norm       = 0
  Prefactor  = 12.4103
  Prefactor  = 5.55112e-11
  norm       = 0.51148
  Normalizat = 1.42284
  Prefactor  = 1.01796
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.083     FROM HESSE     STATUS=OK           382 CALLS     2193 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    5.2038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.415        35.032        .15585E-03   -1.5579    
   3  Prefactor     .27756E-09    3.3134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1203        1.1824        .11096E-03   -1.5687    
   5  norm          .13267E-07    8.8528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .19207E-07    22.574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2544        .66489        .68389E-03   -1.5678    
   8  Prefactor     .13878E-08    6.2917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1208        13.439        .35164E-03   -1.5651    
  10  norm          .55511E-10    1.0798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    14.529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94524E-04    174.90        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.730        28.749        .21876E-03   -1.5615    
  14  norm          .25179        .19746        .68727E-03   -1.5698    
  15  Prefactor     .21858E-02    660.76        .72751E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.9587        8.9509        .31763E-03   -1.5645    
  17  norm           .0000        2.6335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.410        11.573        .28424E-03   -1.5638    
  19  Prefactor     .55511E-10    4.1914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .51148        1.1996        .77562E-03   -1.5694    
  21  Normalizat    1.4228        .22089        .64023E-01   -.79970    
  22  Prefactor     1.0180        .16111        .42310E-01   -.92133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9996e-06
Minuit parameter uncertainties:
  1  8.22646e-05
  2  35.0325
  3  6.29292e-05
  4  1.18243
  5  0.00068607
  6  0.00131683
  7  0.664886
  8  0.000188024
  9  13.4389
  10  1.29205e-05
  11  5.59372e-05
  12  0.257161
  13  28.7495
  14  0.197459
  15  2.40383
  16  8.95092
  17  3.40054e-06
  18  11.573
  19  3.28417e-05
  20  1.19962
  21  0.221038
  22  0.161183
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  2.173e+01  2.875e+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:  1.018e+00  1.612e-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.423e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/642061/likelihoodResults_693964801_694224001_4FGL_J1251.3-0201_daily_bin1754.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) = 6849.90779322
delta logL = 0.174979767828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6849.90403547
delta logL = 0.178737519291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.006       1.0000          .0000       .10000E+07
     2 'alpha     '    2.5431       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0257       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=   6849.904     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      277 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.997        29.953        .10003E-04   -.46179E-02
   2  alpha         2.5442        1.1937        .15979E-01   -.10410E-03
   3  Normalizat    1.4041        .25441        .28472E-03   -.10928E-02
   4  Prefactor     1.0259        .18962        .24366E-03   -.16144E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 15.9974
  alpha      = 2.54423
  Normalizat = 1.40411
  Prefactor  = 1.02586
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.997        26.476        .20006E-05   -1.5628    
   2  alpha         2.5442        1.0641        .63916E-03    .17692E-01
   3  Normalizat    1.4041        .25376        .56944E-04   -.80510    
   4  Prefactor     1.0259        .18920        .48732E-04   -.91872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2713e-09
Minuit parameter uncertainties:
  1  26.4758
  2  1.09914
  3  0.253987
  4  0.189324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642061': 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) = 6849.90403337
delta logL = 0.17873962645

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.600e+01  2.648e+01  0.000e+00  1.000e+06 ( 1.000e-13)
291        alpha:  2.544e+00  1.099e+00  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:  1.026e+00  1.893e-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.404e+00  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 2.54 +/- 1.10
Photon Flux (Free Index): 3.29e-08 +/- 4.16e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.28e-05

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/642061/cmap_HighResolution_693964801_694224001_4FGL_J1251.3-0201_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-05', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='1.79e-01', photon_flux2='3.29e-08', job_status='DONE', time_completed='2023-01-01 01:21:37.478564', photon_index_error2='1.10', photon_index2='2.54', ts='0.80', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='7.89e-08', energy_flux_error2='1.28e-05', EG='1.42', time_epoch_completed='1672564897.48', return_code='0', job_id='642061', GAL2='1.03', EG2='1.40', return_code2='0', photon_flux_error2='4.16e-08', ts2='1.15', photon_index='1.95' WHERE bin_id='1754' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:21:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 642061: <4FGL_J1251.3-0201_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 01:05:23 2023
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:07:06 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:07:06 2023
Terminated at Sun Jan  1 01:21:38 2023
Results reported at Sun Jan  1 01:21:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1754 192.836 -2.0271 693964801 694224001 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            975 sec.

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

