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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1714
RA = 202.819, Dec = -13.4282
tmin = 683596801, tmax = 683856001
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='135081', job_status='RUN', time_executed='2022-09-16 17:41:14.217154', time_epoch_executed='1663375274.22' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135081

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135081/ft1_4FGL_J1331.2-1325_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135081/ft2_4FGL_J1331.2-1325_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135081/ft1_4FGL_J1331.2-1325_daily_bin1714.fits outfile=/scratch/kocevski/135081/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1714.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=683596801.0 tmax=683856001.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.56
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135081/ft2_4FGL_J1331.2-1325_daily_bin1714.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/135081/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1714.fits evtable="EVENTS" outfile="/scratch/kocevski/135081/ft1_filtered_4FGL_J1331.2-1325_daily_bin1714.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.35
sys 0.16

Number of photons that the gtmktime cut: 694

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135081/ft1_filtered_4FGL_J1331.2-1325_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/135081/ft2_4FGL_J1331.2-1325_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/135081/ltcube_683596801_683856001_4FGL_J1331.2-1325_daily_bin1714.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/135081/ft2_4FGL_J1331.2-1325_daily_bin1714.fits
.....................!
real 16.38
user 15.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135081/ft1_filtered_4FGL_J1331.2-1325_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/135081/ft2_4FGL_J1331.2-1325_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/135081/ltcube_683596801_683856001_4FGL_J1331.2-1325_daily_bin1714.fits outfile=/scratch/kocevski/135081/expmap_683596801_683856001_4FGL_J1331.2-1325_daily_bin1714.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/135081/ltcube_683596801_683856001_4FGL_J1331.2-1325_daily_bin1714.fits
.....................!
real 192.40
user 187.11
sys 4.78

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/135081/ft1_filtered_4FGL_J1331.2-1325_daily_bin1714.fits scfile=/scratch/kocevski/135081/ft2_4FGL_J1331.2-1325_daily_bin1714.fits outfile=/scratch/kocevski/135081/cmap_683596801_683856001_4FGL_J1331.2-1325_daily_bin1714.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.59
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135081/ft1_filtered_4FGL_J1331.2-1325_daily_bin1714.fits scfile=/scratch/kocevski/135081/ft2_4FGL_J1331.2-1325_daily_bin1714.fits outfile=/scratch/kocevski/135081/cmap_HighResolution_683596801_683856001_4FGL_J1331.2-1325_daily_bin1714.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/135081/ft1_filtered_4FGL_J1331.2-1325_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/135081/ft2_4FGL_J1331.2-1325_daily_bin1714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/135081/Model_4FGL_J1331.2-1325_daily_bin1714.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/135081/ft1_filtered_4FGL_J1331.2-1325_daily_bin1714.fits.....................!
real 61.59
user 60.10
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30745       1.0000          .0000       .10000E+07
     2 'norm      '    .64527E-05   1.0000          .0000       .10000E+07
     3 'norm      '    5.7348       1.0000          .0000       .10000E+07
     4 'Prefactor '    60.411       1.0000          .0000       .10000E+07
     5 'norm      '    1.2514       1.0000          .0000       .10000E+07
     6 'norm      '    8.9138       1.0000          .0000       .10000E+07
     7 'norm      '    7.1601       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15447E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    18.855       1.0000          .0000       .10000E+07
    10 'Prefactor '    .59832E-01   1.0000          .0000       .10000E+07
    11 'norm      '    1.6478       1.0000          .0000       .10000E+07
    12 'norm      '    2.7456       1.0000          .0000       .10000E+07
    13 'norm      '    .31913E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .20975E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .14987E-01   1.0000          .0000       .10000E+07
    16 'norm      '    4.7102       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.4777       1.0000          .0000       .10000E+07
    18 'norm      '    .60840E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.0147       1.0000          .0000       .10000E+07
    20 'norm      '    .91389       1.0000          .0000       .10000E+07
    21 'norm      '    12.756       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.7070       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89408       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=   7674.834     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1858 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30734        .22666       -.21509E-07   -.13722E-01
   2  norm          .23315E-08    4.0333        .20414E-07** at limit **
   3  norm          5.6457        5.2458        .13163E-08   -.60330E-03
   4  Prefactor     60.578        44.790       -.11305E-06   -.92706E-01
   5  norm          1.2525        1.6504       -.88487E-08   -.25955E-03
   6  norm          8.9124        2.9839       -.32987E-07    .16207E-01
   7  norm          7.1625        6.7937       -.58729E-07   -.49715E-01
   8  Prefactor     .72164E-09    5.6862       -.44099E-07** at limit **
   9  Prefactor     18.851        7.5190        .80865E-07   -.89877E-01
  10  Prefactor     .25362E-05    30.493       -.32482E-06** at limit **
  11  norm          1.6477        1.7714       -.24910E-07   -.15226E-02
  12  norm          2.7544        3.2767        .52339E-07    .31372E-02
  13  norm          .16653E-09    2.2008        .31643E-06** at limit **
  14  Prefactor     .28511E-06    42.541       -.31061E-06** at limit **
  15  Prefactor     .55511E-10    22.025        .21500E-06** at limit **
  16  norm          4.5950        50.636        .31863E-06   -.33934E-01
  17  Prefactor     3.4234        1.6376        .30840E-07   -.95400E-02
  18  norm           .0000        1.2060       -.70383E-07** at limit **
  19  Prefactor     1.0063        3.7905       -.25693E-07   -.42486E-02
  20  norm          1.0234        14.914        .66753E-07   -.13858E-02
  21  norm          12.745        4.4784        .40348E-07    .36565E-03
  22  Normalizat    1.7071        .29307       -.21453E-05   -.13956E-04
  23  Prefactor     .89411        .14677        .14188E-05    .41623E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.307345
  norm       = 2.33147e-09
  norm       = 5.64568
  Prefactor  = 60.5784
  norm       = 1.25246
  norm       = 8.91243
  norm       = 7.16246
  Prefactor  = 7.21645e-10
  Prefactor  = 18.8512
  Prefactor  = 2.53619e-06
  norm       = 1.64765
  norm       = 2.75436
  norm       = 1.66533e-10
  Prefactor  = 2.85105e-07
  Prefactor  = 5.55112e-11
  norm       = 4.59503
  Prefactor  = 3.42337
  norm       = 0
  Prefactor  = 1.00632
  norm       = 1.0234
  norm       = 12.7448
  Normalizat = 1.70706
  Prefactor  = 0.894112
 **********
 **   18 **HESSE 
 **********

 FCN=   7674.834     FROM HESSE     STATUS=OK           434 CALLS     2292 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30734        .23713        .78238E-03   -1.5697    
   2  norm          .23315E-08    4.0417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.6457        5.2513        .41919E-03   -1.5660    
   4  Prefactor     60.578        65.105        .12867E-03   -1.5552    
   5  norm          1.2525        1.6828        .99907E-03   -1.5686    
   6  norm          8.9124        11.160        .33547E-03   -1.5648    
   7  norm          7.1625        7.0937        .37464E-03   -1.5654    
   8  Prefactor     .72164E-09    5.6883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.851        11.071        .23038E-03   -1.5621    
  10  Prefactor     .25362E-05    15.237        .97741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6477        1.7905        .82234E-03   -1.5682    
  12  norm          2.7544        3.8838        .61414E-03   -1.5675    
  13  norm          .16653E-09    2.2018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .28511E-06    7.0790        .11963E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    21.767        .17392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.5950        101.40        .46341E-03   -1.5665    
  17  Prefactor     3.4234        11.608        .54199E-03   -1.5671    
  18  norm           .0000        1.2054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0063        9.9757        .44284E-03   -1.5688    
  20  norm          1.0234        17.573        .44804E-03   -1.5688    
  21  norm          12.745        4.4844        .28021E-03   -1.5637    
  22  Normalizat    1.7071        .25572        .73521E-01   -.72115    
  23  Prefactor     .89411        .12523        .44929E-01   -.96347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28278e-06
Minuit parameter uncertainties:
  1  0.237132
  2  0.000193112
  3  5.25134
  4  65.1061
  5  1.68279
  6  11.1598
  7  7.09375
  8  0.000127492
  9  11.0707
  10  0.0124328
  11  1.79052
  12  3.88378
  13  3.57395e-05
  14  0.00284123
  15  7.45189e-05
  16  43.1722
  17  11.6078
  18  5.56565e-06
  19  6.33682
  20  8.48169
  21  4.48442
  22  0.255922
  23  0.125273
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.536e-06  1.243e-02  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:  8.941e-01  1.253e-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:  1.707e+00  2.559e-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: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135081/likelihoodResults_683596801_683856001_4FGL_J1331.2-1325_daily_bin1714.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) = 7674.84598429
delta logL = -0.0120306089893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7674.8339541
delta logL = -4.12671397498e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15971E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.5031       1.0000          .0000       10.000    
     3 'Normalizat'    1.7069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89416       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=   7674.834     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      246 TOTAL
                     EDM=   .71E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        47.360       -.24015E-06** at limit **
   2  Index         2.4673        6.2231        .54773E-05     .0000    
   3  Normalizat    1.7071        .27865        .47527E-05    .17686E-04
   4  Prefactor     .89411        .14424       -.72532E-05    .40137E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.46733
  Normalizat = 1.70706
  Prefactor  = 0.894111
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7674.834     FROM HESSE     STATUS=FAILED        11 CALLS      257 TOTAL
                     EDM=   .71E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        47.041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .68504        1.8937        .54773E-05   -.53116    
   3  Normalizat    1.7071        1.0334        .47527E-05   -.72115    
   4  Prefactor     .89411        1.2393       -.72532E-05   -.96347    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.06957e-13
Minuit parameter uncertainties:
  1  2.90564e-05
  2  1.28355
  3  1.04692
  4  1.28203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135081': 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) = 7674.83395366
delta logL = 2.71284079645e-08

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  0.000e+00  2.906e-05  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.467e+00  1.284e+00  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:  8.941e-01  1.282e+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:  1.707e+00  1.047e+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/135081/cmap_HighResolution_683596801_683856001_4FGL_J1331.2-1325_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2022-09-16 17:51:58.717084', job_id='135081', GAL2='0.89', fit_tolerance='1e-08', EG2='1.71', EG='1.71', time_epoch_completed='1663375918.72', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.71e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1714' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:51:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 135081: <4FGL_J1331.2-1325_daily_bin1714> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1714> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:40:17 2022
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:41:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:41:04 2022
Terminated at Fri Sep 16 17:51:59 2022
Results reported at Fri Sep 16 17:51:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1714 202.819 -13.4282 683596801 683856001 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 :                                   646.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            702 sec.

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

