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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1753
RA = 202.819, Dec = -13.4282
tmin = 693705601, tmax = 693964801
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='455174', job_status='RUN', time_executed='2022-12-29 01:03:02.420340', time_epoch_executed='1672304582.42' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455174

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455174/ft1_4FGL_J1331.2-1325_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455174/ft2_4FGL_J1331.2-1325_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455174/ft1_4FGL_J1331.2-1325_daily_bin1753.fits outfile=/scratch/kocevski/455174/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1753.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=693705601.0 tmax=693964801.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.56
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/455174/ft2_4FGL_J1331.2-1325_daily_bin1753.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455174/ft2_4FGL_J1331.2-1325_daily_bin1753.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/455174/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/455174/ft1_filtered_4FGL_J1331.2-1325_daily_bin1753.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.45
user 0.29
sys 0.15

Number of photons that the gtmktime cut: 606

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455174/ft1_filtered_4FGL_J1331.2-1325_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/455174/ft2_4FGL_J1331.2-1325_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/455174/ltcube_693705601_693964801_4FGL_J1331.2-1325_daily_bin1753.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/455174/ft2_4FGL_J1331.2-1325_daily_bin1753.fits
.....................!
real 12.77
user 12.29
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455174/ft1_filtered_4FGL_J1331.2-1325_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/455174/ft2_4FGL_J1331.2-1325_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/455174/ltcube_693705601_693964801_4FGL_J1331.2-1325_daily_bin1753.fits outfile=/scratch/kocevski/455174/expmap_693705601_693964801_4FGL_J1331.2-1325_daily_bin1753.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/455174/ltcube_693705601_693964801_4FGL_J1331.2-1325_daily_bin1753.fits
.....................!
real 156.29
user 151.98
sys 3.75

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/455174/ft1_filtered_4FGL_J1331.2-1325_daily_bin1753.fits scfile=/scratch/kocevski/455174/ft2_4FGL_J1331.2-1325_daily_bin1753.fits outfile=/scratch/kocevski/455174/cmap_693705601_693964801_4FGL_J1331.2-1325_daily_bin1753.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=202.819 yref=-13.4282 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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455174/ft1_filtered_4FGL_J1331.2-1325_daily_bin1753.fits scfile=/scratch/kocevski/455174/ft2_4FGL_J1331.2-1325_daily_bin1753.fits outfile=/scratch/kocevski/455174/cmap_HighResolution_693705601_693964801_4FGL_J1331.2-1325_daily_bin1753.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=202.819 yref=-13.4282 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.50
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/455174/ft1_filtered_4FGL_J1331.2-1325_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/455174/ft2_4FGL_J1331.2-1325_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/455174/Model_4FGL_J1331.2-1325_daily_bin1753.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/455174/ft1_filtered_4FGL_J1331.2-1325_daily_bin1753.fits.....................!
real 44.68
user 43.41
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455174/ft1_filtered_4FGL_J1331.2-1325_daily_bin1753.fits', '/scratch/kocevski/455174/ft2_4FGL_J1331.2-1325_daily_bin1753.fits', expMap='/scratch/kocevski/455174/expmap_693705601_693964801_4FGL_J1331.2-1325_daily_bin1753.fits', expCube='/scratch/kocevski/455174/ltcube_693705601_693964801_4FGL_J1331.2-1325_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455174/Model_4FGL_J1331.2-1325_daily_bin1753.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1331.2-1325'

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.475e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/455174/ft1_filtered_4FGL_J1331.2-1325_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/455174/ft2_4FGL_J1331.2-1325_daily_bin1753.fits
Exposure map: /scratch/kocevski/455174/expmap_693705601_693964801_4FGL_J1331.2-1325_daily_bin1753.fits
Exposure cube: /scratch/kocevski/455174/ltcube_693705601_693964801_4FGL_J1331.2-1325_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455174/Model_4FGL_J1331.2-1325_daily_bin1753.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) = 6602.00617406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22926E-07   1.0000          .0000       .10000E+07
     2 'norm      '    .25890E-03   1.0000          .0000       .10000E+07
     3 'norm      '    4.5233       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.4990       1.0000          .0000       .10000E+07
     5 'norm      '    3.5242       1.0000          .0000       .10000E+07
     6 'norm      '    .13240E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .16203E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .43439E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.1951       1.0000          .0000       .10000E+07
    10 'Prefactor '    25.837       1.0000          .0000       .10000E+07
    11 'norm      '    .61062E-07   1.0000          .0000       .10000E+07
    12 'norm      '    .81657E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .57570E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    23.425       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10329E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .21963E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .13325E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .20037E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .11852E-06   1.0000          .0000       .10000E+07
    20 'norm      '    .99365E-08   1.0000          .0000       .10000E+07
    21 'norm      '    20.034       1.0000          .0000       .10000E+07
    22 'Normalizat'    .87801       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1343       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6598.861     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1118 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .16779        .13884E-07** at limit **
   2  norm          .29143E-07    8.2750        .14522E-06** at limit **
   3  norm          4.5154        7.5350       -.25834E-06   -.13458E-01
   4  Prefactor     5.4347        76.934       -.66259E-06   -.20384E-03
   5  norm          3.5241        3.3535       -.39007E-07    .90526E-03
   6  norm          .11102E-09    3.0424        .29615E-06** at limit **
   7  norm          .13867E-06    2.1091       -.12111E-07** at limit **
   8  Prefactor     .10547E-07    3.1400        .18184E-06** at limit **
   9  Prefactor     7.4075        1.2386        .18925E-07   -.20760E-03
  10  Prefactor     25.812        3.4161       -.51021E-07   -.10573E-02
  11  norm           .0000        .43998        .39752E-07** at limit **
  12  norm           .0000        1.2073        .10735E-06** at limit **
  13  norm          .55511E-10    2.4841       -.18518E-06** at limit **
  14  Prefactor     23.439        3.6812       -.51124E-07    .11763E-01
  15  Prefactor     .16653E-07    8.4068        .57181E-06** at limit **
  16  norm           .0000        21.133       -.10421E-05** at limit **
  17  Prefactor     .28866E-07    2.5624       -.15712E-06** at limit **
  18  norm          .28422E-07    2.1258        .12338E-06** at limit **
  19  Prefactor      .0000        2.3786       -.23521E-06** at limit **
  20  norm           .0000        2.1283        .24883E-06** at limit **
  21  norm          20.037        4.5837       -.26739E-07   -.30643E-03
  22  Normalizat    .87566        .25575        .60037E-05   -.17946E-04
  23  Prefactor     1.1348        .14493       -.55860E-06   -.23694E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 2.91434e-08
  norm       = 4.51545
  Prefactor  = 5.43465
  norm       = 3.52414
  norm       = 1.11022e-10
  norm       = 1.38667e-07
  Prefactor  = 1.05471e-08
  Prefactor  = 7.40754
  Prefactor  = 25.8123
  norm       = 0
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 23.4387
  Prefactor  = 1.66533e-08
  norm       = 0
  Prefactor  = 2.88658e-08
  norm       = 2.84217e-08
  Prefactor  = 0
  norm       = 0
  norm       = 20.0367
  Normalizat = 0.87566
  Prefactor  = 1.13478
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.861     FROM HESSE     STATUS=OK           414 CALLS     1532 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .88209E-01    .94957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .29143E-07    9.1833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5154        7.7807        .47312E-03   -1.5665    
   4  Prefactor     5.4347        76.968        .54027E-03   -1.5661    
   5  norm          3.5241        3.3551        .53824E-03   -1.5670    
   6  norm          .11102E-09    3.0350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .13867E-06    5.4837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10547E-07    6.0298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.4075        10.244        .37372E-03   -1.5654    
  10  Prefactor     25.812        14.286        .19677E-03   -1.5606    
  11  norm           .0000        .43791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.2059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    5.3748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.439        14.965        .20666E-03   -1.5611    
  15  Prefactor     .16653E-07    9.5876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        21.105        .16911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .28866E-07    5.1453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .28422E-07    6.2107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.3729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        2.1252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          20.037        4.5939        .22349E-03   -1.5618    
  22  Normalizat    .87566        .23577        .83089E-01   -.97321    
  23  Prefactor     1.1348        .12795        .36410E-01   -.88363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24456e-08
Minuit parameter uncertainties:
  1  1.58381e-08
  2  0.00103418
  3  7.78071
  4  40.9052
  5  3.35507
  6  3.718e-05
  7  0.00174398
  8  0.00050415
  9  10.2436
  10  14.2863
  11  7.60653e-08
  12  4.99102e-08
  13  4.09428e-05
  14  14.9648
  15  0.000799162
  16  4.20323e-05
  17  0.000770817
  18  0.000840605
  19  7.66039e-06
  20  2.0712e-06
  21  4.5939
  22  0.236051
  23  0.127987
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.581e+01  1.429e+01  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  1.135e+00  1.280e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  8.757e-01  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.43
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 8.56e-08 +/- 4.73e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.24e-05

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) = 6598.42003908
delta logL = 0.440514071714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6598.41872633
delta logL = 0.441826820225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.031       1.0000          .0000       .10000E+07
     2 'Index     '    2.1218       1.0000          .0000       10.000    
     3 'Normalizat'    .90482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1259       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+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=   6598.419     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      300 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.033        25.015        .64032E-05   -.11604E-02
   2  Index         2.1218        .49585        .74219E-02    .27492E-03
   3  Normalizat    .90477        .25425        .36255E-03   -.10429E-03
   4  Prefactor     1.1260        .14262        .18446E-03   -.18926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.0331
  Index      = 2.12177
  Normalizat = 0.904773
  Prefactor  = 1.12596
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.419     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.033        24.705        .12806E-05   -1.5583    
   2  Index         2.1218        .48956        .14844E-02   -.61339    
   3  Normalizat    .90477        .25433        .14502E-04   -.96293    
   4  Prefactor     1.1260        .14270        .36892E-04   -.88641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92601e-11
Minuit parameter uncertainties:
  1  24.7046
  2  0.490738
  3  0.254668
  4  0.142746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455174': 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) = 6598.4187263
delta logL = 0.441826846743

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  3.903e+01  2.470e+01  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.122e+00  4.907e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  1.126e+00  1.427e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  9.048e-01  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.28
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 2.12 +/- 0.49
Photon Flux (Free Index): 5.82e-08 +/- 4.58e-08
Energy Flux (Free Index): 3.05e-05 +/- 2.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/455174/cmap_HighResolution_693705601_693964801_4FGL_J1331.2-1325_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.56e-08', energy_flux2='3.05e-05', photon_flux_error='4.73e-08', dlogl='4.42e-01', energy_flux='2.25e-05', photon_flux2='5.82e-08', job_status='DONE', time_completed='2022-12-29 01:10:03.063808', photon_index_error2='0.49', photon_index2='2.12', ts='9.43', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.37e-05', EG='0.88', time_epoch_completed='1672305003.06', return_code='0', job_id='455174', GAL2='1.13', EG2='0.90', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.58e-08', ts2='10.28', photon_index='2.60' WHERE bin_id='1753' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:10:03 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 455174: <4FGL_J1331.2-1325_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1753> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec 29 00:55:19 2022
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 01:00:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 01:00:45 2022
Terminated at Thu Dec 29 01:10:03 2022
Results reported at Thu Dec 29 01:10:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1753 202.819 -13.4282 693705601 693964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1331.2-1325 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   421.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            884 sec.

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

