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 93 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_J1331.2-1325_daily_bin1754
RA = 202.819, Dec = -13.4282
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='643486', job_status='RUN', time_executed='2023-01-01 01:13:09.087638', time_epoch_executed='1672564389.09' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643486

Creating custom pfile directory:
/scratch/kocevski/643486/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/643486/ft1_4FGL_J1331.2-1325_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/643486/ft2_4FGL_J1331.2-1325_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643486/ft1_4FGL_J1331.2-1325_daily_bin1754.fits outfile=/scratch/kocevski/643486/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1754.fits ra=202.819 dec=-13.4282 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.92
user 3.68
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/643486/ft2_4FGL_J1331.2-1325_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/643486/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/643486/ft1_filtered_4FGL_J1331.2-1325_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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 681

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643486/ft1_filtered_4FGL_J1331.2-1325_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/643486/ft2_4FGL_J1331.2-1325_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/643486/ltcube_693964801_694224001_4FGL_J1331.2-1325_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/643486/ft2_4FGL_J1331.2-1325_daily_bin1754.fits
.....................!
real 14.07
user 13.57
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643486/ft1_filtered_4FGL_J1331.2-1325_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/643486/ft2_4FGL_J1331.2-1325_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/643486/ltcube_693964801_694224001_4FGL_J1331.2-1325_daily_bin1754.fits outfile=/scratch/kocevski/643486/expmap_693964801_694224001_4FGL_J1331.2-1325_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/643486/ltcube_693964801_694224001_4FGL_J1331.2-1325_daily_bin1754.fits
.....................!
real 194.22
user 187.66
sys 5.14

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/643486/ft1_filtered_4FGL_J1331.2-1325_daily_bin1754.fits scfile=/scratch/kocevski/643486/ft2_4FGL_J1331.2-1325_daily_bin1754.fits outfile=/scratch/kocevski/643486/cmap_693964801_694224001_4FGL_J1331.2-1325_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=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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643486/ft1_filtered_4FGL_J1331.2-1325_daily_bin1754.fits scfile=/scratch/kocevski/643486/ft2_4FGL_J1331.2-1325_daily_bin1754.fits outfile=/scratch/kocevski/643486/cmap_HighResolution_693964801_694224001_4FGL_J1331.2-1325_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=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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/643486/ft1_filtered_4FGL_J1331.2-1325_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/643486/ft2_4FGL_J1331.2-1325_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/643486/Model_4FGL_J1331.2-1325_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/643486/ft1_filtered_4FGL_J1331.2-1325_daily_bin1754.fits.....................!
real 62.47
user 60.72
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19563       1.0000          .0000       .10000E+07
     2 'norm      '    .25431E-03   1.0000          .0000       .10000E+07
     3 'norm      '    4.3565       1.0000          .0000       .10000E+07
     4 'Prefactor '    30.947       1.0000          .0000       .10000E+07
     5 'norm      '    3.0041       1.0000          .0000       .10000E+07
     6 'norm      '    11.008       1.0000          .0000       .10000E+07
     7 'norm      '    .10415E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    7.2274       1.0000          .0000       .10000E+07
     9 'Prefactor '    .59522E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .46633E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .89277       1.0000          .0000       .10000E+07
    12 'norm      '    .45555E-04   1.0000          .0000       .10000E+07
    13 'norm      '    8.1292       1.0000          .0000       .10000E+07
    14 'Prefactor '    12.382       1.0000          .0000       .10000E+07
    15 'Prefactor '    31.318       1.0000          .0000       .10000E+07
    16 'norm      '    .57553E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .34842       1.0000          .0000       .10000E+07
    18 'norm      '    .24884E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.0664       1.0000          .0000       .10000E+07
    20 'norm      '    .39690E-07   1.0000          .0000       .10000E+07
    21 'norm      '    16.026       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.6460       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72007       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=   7261.992     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1997 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19508        .18457        .97998E-07** at limit **
   2  norm           .0000        2.2256       -.38523E-06** at limit **
   3  norm          4.3560        6.8435        .10745E-05   -.30056E-02
   4  Prefactor     32.558        76.429       -.39200E-05   -.94218E-02
   5  norm          3.0055        2.4448        .13936E-06   -.14426E-02
   6  norm          10.970        6.8093        .11495E-05   -.31319E-01
   7  norm           .0000        2.7551       -.18821E-06** at limit **
   8  Prefactor     7.2269        5.8428       -.12089E-05   -.49752E-01
   9  Prefactor     .55511E-10    4.0637        .24552E-06** at limit **
  10  Prefactor      .0000        23.968        .13696E-06** at limit **
  11  norm          .89422        1.2211        .31350E-06   -.97061E-03
  12  norm           .0000        1.8457       -.21639E-06** at limit **
  13  norm          8.2212        5.4017       -.38531E-06    .13238E-02
  14  Prefactor     12.597        11.486        .20087E-05    .54682E-01
  15  Prefactor     31.485        6.0123       -.66372E-06    .15815    
  16  norm          .28921E-07    21.138       -.39830E-05** at limit **
  17  Prefactor     .23615        35.253        .44508E-05** at limit **
  18  norm           .0000        1.2002       -.38857E-07** at limit **
  19  Prefactor     2.0611        3.7988        .92167E-07   -.13353E-02
  20  norm          .22204E-09    3.8498        .21654E-07** at limit **
  21  norm          16.048        3.7990        .98833E-07   -.27620E-02
  22  Normalizat    1.6450        .25368       -.29315E-05   -.59794E-05
  23  Prefactor     .72013        .13041       -.85734E-05   -.21413E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.195085
  norm       = 0
  norm       = 4.35598
  Prefactor  = 32.5577
  norm       = 3.0055
  norm       = 10.9702
  norm       = 0
  Prefactor  = 7.2269
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0.894216
  norm       = 0
  norm       = 8.22119
  Prefactor  = 12.5974
  Prefactor  = 31.4852
  norm       = 2.89213e-08
  Prefactor  = 0.236152
  norm       = 0
  Prefactor  = 2.06115
  norm       = 2.22045e-10
  norm       = 16.0483
  Normalizat = 1.64502
  Prefactor  = 0.720127
 **********
 **   18 **HESSE 
 **********

 FCN=   7261.992     FROM HESSE     STATUS=OK           422 CALLS     2419 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19508        .19282        .76899E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        2.2259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.3560        6.8759        .48233E-03   -1.5666    
   4  Prefactor     32.558        76.957        .17979E-03   -1.5594    
   5  norm          3.0055        2.4501        .58536E-03   -1.5673    
   6  norm          10.970        9.3149        .30172E-03   -1.5642    
   7  norm           .0000        2.7544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.2269        8.3124        .37287E-03   -1.5654    
   9  Prefactor     .55511E-10    4.0562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        25.640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .89422        1.2268        .46261E-03   -1.5689    
  12  norm           .0000        1.8323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.2212        5.4069        .35140E-03   -1.5651    
  14  Prefactor     12.597        18.715        .28442E-03   -1.5637    
  15  Prefactor     31.485        32.478        .17872E-03   -1.5596    
  16  norm          .28921E-07    22.894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .23615        7.7597        .95724E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        1.2011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0611        3.8285        .71846E-03   -1.5679    
  20  norm          .22204E-09    3.8403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          16.048        3.8027        .24992E-03   -1.5628    
  22  Normalizat    1.6450        .22195        .65266E-01   -.73781    
  23  Prefactor     .72013        .11346        .42668E-01   -1.0274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01963e-06
Minuit parameter uncertainties:
  1  0.192816
  2  5.24754e-06
  3  6.87592
  4  76.9593
  5  2.45011
  6  9.3149
  7  8.0919e-06
  8  8.31237
  9  3.56975e-05
  10  1.97714e-05
  11  1.22684
  12  4.18558e-06
  13  5.40688
  14  18.7147
  15  32.4785
  16  0.00162747
  17  2.70739
  18  3.50667e-06
  19  3.82851
  20  5.73802e-05
  21  3.80271
  22  0.22208
  23  0.113496
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  0.000e+00  1.977e-05  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:  7.201e-01  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:  1.645e+00  2.221e-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.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/643486/likelihoodResults_693964801_694224001_4FGL_J1331.2-1325_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) = 7262.01313287
delta logL = -0.0210317780675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7261.99211096
delta logL = -9.86595114227e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15311E-03   1.0000          .0000       .10000E+07
     2 'Index     '    4.3372       1.0000          .0000       10.000    
     3 'Normalizat'    1.6443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72038       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=   7261.992     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      259 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.1903        .42118E-03** at limit **
   2  Index         .56604        .46646       -.12111E-03     .0000    
   3  Normalizat    1.6450        1.0376       -.68313E-05   -.18676E-03
   4  Prefactor     .72013        1.0699        .46416E-05   -.25110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.566042
  Normalizat = 1.64502
  Prefactor  = 0.720127
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7261.992     FROM HESSE     STATUS=FAILED         9 CALLS      268 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .21843E-02    .65513       -.12111E-03   -1.0904    
   3  Normalizat    1.6450        1.0376       -.68313E-05   -.73781    
   4  Prefactor     .72013        1.0699        .46416E-05   -1.0274    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.66836e-10
Minuit parameter uncertainties:
  1  6.60254e-07
  2  0.469689
  3  1.05169
  4  1.10311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643486': 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) = 7261.9921011
delta logL = -2.27373675443e-11

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  0.000e+00  6.603e-07  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  5.660e-01  4.697e-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:  7.201e-01  1.103e+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.645e+00  1.052e+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/643486/cmap_HighResolution_693964801_694224001_4FGL_J1331.2-1325_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2023-01-01 01:24:05.244510', job_id='643486', GAL2='0.72', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1672565045.24', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-2.27e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1754' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:24:05 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 643486: <4FGL_J1331.2-1325_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1754> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jan  1 01:10:20 2023
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:11:25 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:11:25 2023
Terminated at Sun Jan  1 01:24:06 2023
Results reported at Sun Jan  1 01:24:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1754 202.819 -13.4282 693964801 694224001 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 :                                   655.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            826 sec.

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

