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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1756
RA = 202.819, Dec = -13.4282
tmin = 694483201, tmax = 694742401
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='14519', job_status='RUN', time_executed='2023-01-07 00:56:17.255719', time_epoch_executed='1673081777.26' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14519/ft1_4FGL_J1331.2-1325_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14519/ft2_4FGL_J1331.2-1325_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14519/ft1_4FGL_J1331.2-1325_daily_bin1756.fits outfile=/scratch/kocevski/14519/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1756.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=694483201.0 tmax=694742401.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.97
user 2.74
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14519/ft2_4FGL_J1331.2-1325_daily_bin1756.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/14519/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1756.fits evtable="EVENTS" outfile="/scratch/kocevski/14519/ft1_filtered_4FGL_J1331.2-1325_daily_bin1756.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.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 871

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14519/ft1_filtered_4FGL_J1331.2-1325_daily_bin1756.fits" evtable="EVENTS" scfile=/scratch/kocevski/14519/ft2_4FGL_J1331.2-1325_daily_bin1756.fits sctable="SC_DATA" outfile=/scratch/kocevski/14519/ltcube_694483201_694742401_4FGL_J1331.2-1325_daily_bin1756.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/14519/ft2_4FGL_J1331.2-1325_daily_bin1756.fits
.....................!
real 15.65
user 15.19
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14519/ft1_filtered_4FGL_J1331.2-1325_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/14519/ft2_4FGL_J1331.2-1325_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/14519/ltcube_694483201_694742401_4FGL_J1331.2-1325_daily_bin1756.fits outfile=/scratch/kocevski/14519/expmap_694483201_694742401_4FGL_J1331.2-1325_daily_bin1756.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/14519/ltcube_694483201_694742401_4FGL_J1331.2-1325_daily_bin1756.fits
.....................!
real 192.66
user 186.09
sys 5.66

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/14519/ft1_filtered_4FGL_J1331.2-1325_daily_bin1756.fits scfile=/scratch/kocevski/14519/ft2_4FGL_J1331.2-1325_daily_bin1756.fits outfile=/scratch/kocevski/14519/cmap_694483201_694742401_4FGL_J1331.2-1325_daily_bin1756.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14519/ft1_filtered_4FGL_J1331.2-1325_daily_bin1756.fits scfile=/scratch/kocevski/14519/ft2_4FGL_J1331.2-1325_daily_bin1756.fits outfile=/scratch/kocevski/14519/cmap_HighResolution_694483201_694742401_4FGL_J1331.2-1325_daily_bin1756.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14519/ft1_filtered_4FGL_J1331.2-1325_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/14519/ft2_4FGL_J1331.2-1325_daily_bin1756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14519/Model_4FGL_J1331.2-1325_daily_bin1756.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/14519/ft1_filtered_4FGL_J1331.2-1325_daily_bin1756.fits.....................!
real 72.41
user 70.94
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/14519/ft1_filtered_4FGL_J1331.2-1325_daily_bin1756.fits', '/scratch/kocevski/14519/ft2_4FGL_J1331.2-1325_daily_bin1756.fits', expMap='/scratch/kocevski/14519/expmap_694483201_694742401_4FGL_J1331.2-1325_daily_bin1756.fits', expCube='/scratch/kocevski/14519/ltcube_694483201_694742401_4FGL_J1331.2-1325_daily_bin1756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/14519/Model_4FGL_J1331.2-1325_daily_bin1756.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/14519/ft1_filtered_4FGL_J1331.2-1325_daily_bin1756.fits
Spacecraft file(s): /scratch/kocevski/14519/ft2_4FGL_J1331.2-1325_daily_bin1756.fits
Exposure map: /scratch/kocevski/14519/expmap_694483201_694742401_4FGL_J1331.2-1325_daily_bin1756.fits
Exposure cube: /scratch/kocevski/14519/ltcube_694483201_694742401_4FGL_J1331.2-1325_daily_bin1756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/14519/Model_4FGL_J1331.2-1325_daily_bin1756.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) = 9416.37794033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13408       1.0000          .0000       .10000E+07
     2 'norm      '    10.294       1.0000          .0000       .10000E+07
     3 'norm      '    4.2128       1.0000          .0000       .10000E+07
     4 'Prefactor '    58.410       1.0000          .0000       .10000E+07
     5 'norm      '    .88749       1.0000          .0000       .10000E+07
     6 'norm      '    14.816       1.0000          .0000       .10000E+07
     7 'norm      '    .12900E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.9915       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.1637       1.0000          .0000       .10000E+07
    10 'Prefactor '    .15224E-02   1.0000          .0000       .10000E+07
    11 'norm      '    1.0263       1.0000          .0000       .10000E+07
    12 'norm      '    .94313E-07   1.0000          .0000       .10000E+07
    13 'norm      '    5.9449       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.9202       1.0000          .0000       .10000E+07
    15 'Prefactor '    32.583       1.0000          .0000       .10000E+07
    16 'norm      '    .94202E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    18 'norm      '    .69938E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .44627E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .65356E-02   1.0000          .0000       .10000E+07
    21 'norm      '    18.030       1.0000          .0000       .10000E+07
    22 'Normalizat'    .73932       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1879       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=   9416.298     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1933 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13375        .14681        .14710E-08** at limit **
   2  norm          10.300        8.1460        .10659E-05    .12534E-02
   3  norm          4.2024        5.4850       -.92950E-07   -.22439E-02
   4  Prefactor     60.110        55.817        .12125E-06   -.50592E-03
   5  norm          .88416        1.5516       -.52106E-08    .50623E-02
   6  norm          14.758        3.8367        .31140E-07   -.90780E-02
   7  norm           .0000        2.4458        .15566E-07** at limit **
   8  Prefactor     1.9627        8.8246        .13022E-05   -.12478E-02
   9  Prefactor     9.1779        8.3273       -.26681E-06   -.40033E-02
  10  Prefactor     .11102E-08    4.0383       -.11502E-06** at limit **
  11  norm          1.0271        1.1469        .30490E-07   -.18513E-02
  12  norm          .55511E-10    .73169       -.67993E-08** at limit **
  13  norm          5.9550        4.0552       -.10109E-08    .88081E-03
  14  Prefactor     5.9124        9.1225       -.45254E-07   -.57293E-02
  15  Prefactor     32.789        25.859       -.59220E-06   -.31277E-03
  16  norm           .0000        22.206       -.16366E-06** at limit **
  17  Prefactor      .0000        11.101        .11565E-07** at limit **
  18  norm           .0000        1.0673        .28796E-08** at limit **
  19  Prefactor     .55511E-10    1.8259        .39956E-08** at limit **
  20  norm          .55511E-10    7.5025       -.49364E-07** at limit **
  21  norm          18.049        3.6392        .11032E-07    .62687E-02
  22  Normalizat    .73863        .23650       -.15873E-05    .10221E-03
  23  Prefactor     1.1881        .12822       -.78113E-06    .21599E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.133753
  norm       = 10.2997
  norm       = 4.20242
  Prefactor  = 60.1104
  norm       = 0.884159
  norm       = 14.7578
  norm       = 0
  Prefactor  = 1.96272
  Prefactor  = 9.17789
  Prefactor  = 1.11022e-09
  norm       = 1.02714
  norm       = 5.55112e-11
  norm       = 5.95501
  Prefactor  = 5.91237
  Prefactor  = 32.7895
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  norm       = 18.0487
  Normalizat = 0.738632
  Prefactor  = 1.18806
 **********
 **   18 **HESSE 
 **********

 FCN=   9416.298     FROM HESSE     STATUS=OK           420 CALLS     2353 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13375        .16717        .85517E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.300        8.1535        .31205E-03   -1.5644    
   3  norm          4.2024        5.5021        .49073E-03   -1.5667    
   4  Prefactor     60.110        55.846        .13085E-03   -1.5553    
   5  norm          .88416        1.5551        .46629E-03   -1.5689    
   6  norm          14.758        10.286        .25995E-03   -1.5631    
   7  norm           .0000        2.4470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9627        8.9626        .73385E-03   -1.5680    
   9  Prefactor     9.1779        8.3130        .33084E-03   -1.5647    
  10  Prefactor     .11102E-08    4.0419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0271        1.1835        .12614E-02   -1.5688    
  12  norm          .55511E-10    .73098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9550        4.0570        .41161E-03   -1.5659    
  14  Prefactor     5.9124        9.5794        .41248E-03   -1.5659    
  15  Prefactor     32.789        25.882        .17521E-03   -1.5593    
  16  norm           .0000        22.212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        11.051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        1.0666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    1.8233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .55511E-10    7.4123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.049        3.6439        .23560E-03   -1.5623    
  22  Normalizat    .73863        .21493        .89751E-01   -1.0239    
  23  Prefactor     1.1881        .11344        .34923E-01   -.86700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25965e-07
Minuit parameter uncertainties:
  1  0.167175
  2  8.15352
  3  5.50214
  4  55.8462
  5  1.55513
  6  10.2864
  7  1.27981e-05
  8  8.38835
  9  8.31302
  10  0.000132585
  11  1.18349
  12  1.12601e-05
  13  4.05695
  14  9.57942
  15  25.882
  16  1.70789e-05
  17  7.09259e-06
  18  4.23446e-06
  19  1.77523e-05
  20  3.2016e-05
  21  3.64395
  22  0.215173
  23  0.113466
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.110e-09  1.326e-04  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.188e+00  1.135e-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:  7.386e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14519/likelihoodResults_694483201_694742401_4FGL_J1331.2-1325_daily_bin1756.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): 102
logL (Free Index) = 9416.30779641
delta logL = -0.0096670329458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9416.29813428
delta logL = -4.89800913783e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24533E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.7172       1.0000          .0000       10.000    
     3 'Normalizat'    .73837       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1881       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9416.298     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      227 TOTAL
                     EDM=   .36E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.3679        .42118E-03** at limit **
   2  Index         1.1768        .72957       -.25008E-04     .0000    
   3  Normalizat    .73863        1.0782       -.16565E-05    .56850E-04
   4  Prefactor     1.1881        1.1070        .10447E-05    .10462E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.17682
  Normalizat = 0.738632
  Prefactor  = 1.18806
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9416.298     FROM HESSE     STATUS=FAILED         9 CALLS      236 TOTAL
                     EDM=   .36E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.3679        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .90281E-01    1.1858       -.25008E-04   -.87048    
   3  Normalizat    .73863        1.0782       -.16565E-05   -1.0239    
   4  Prefactor     1.1881        1.1070        .10447E-05   -.86700    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.6054e-12
Minuit parameter uncertainties:
  1  2.78789e-06
  2  0.735951
  3  1.11184
  4  1.12981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14519': 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): 101
logL (Free Index) = 9416.29812938
delta logL = 1.4370016288e-10

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  0.000e+00  2.788e-06  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  1.177e+00  7.360e-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.188e+00  1.130e+00  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:  7.386e-01  1.112e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.819 -13.428

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/14519/cmap_HighResolution_694483201_694742401_4FGL_J1331.2-1325_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2023-01-07 01:08:27.508089', job_id='14519', GAL2='1.19', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1673082507.51', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.44e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1756' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 01:08:27 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 14519: <4FGL_J1331.2-1325_daily_bin1756> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1756> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Jan  7 00:55:14 2023
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 00:55:42 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 00:55:42 2023
Terminated at Sat Jan  7 01:08:28 2023
Results reported at Sat Jan  7 01:08:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1756 202.819 -13.4282 694483201 694742401 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 :                                   731.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             370.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            794 sec.

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

