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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1744
RA = 202.819, Dec = -13.4282
tmin = 691372801, tmax = 691632001
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='582267', job_status='RUN', time_executed='2022-12-02 01:05:57.088606', time_epoch_executed='1669971957.09' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/582267

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/582267/ft1_4FGL_J1331.2-1325_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/582267/ft2_4FGL_J1331.2-1325_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/582267/ft1_4FGL_J1331.2-1325_daily_bin1744.fits outfile=/scratch/kocevski/582267/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1744.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=691372801.0 tmax=691632001.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 4.55
user 2.32
sys 0.20

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

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

Number of photons that the gtmktime cut: 737

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/582267/ft1_filtered_4FGL_J1331.2-1325_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/582267/ft2_4FGL_J1331.2-1325_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/582267/ltcube_691372801_691632001_4FGL_J1331.2-1325_daily_bin1744.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/582267/ft2_4FGL_J1331.2-1325_daily_bin1744.fits
.....................!
real 13.42
user 13.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/582267/ft1_filtered_4FGL_J1331.2-1325_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/582267/ft2_4FGL_J1331.2-1325_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/582267/ltcube_691372801_691632001_4FGL_J1331.2-1325_daily_bin1744.fits outfile=/scratch/kocevski/582267/expmap_691372801_691632001_4FGL_J1331.2-1325_daily_bin1744.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/582267/ltcube_691372801_691632001_4FGL_J1331.2-1325_daily_bin1744.fits
.....................!
real 191.52
user 185.39
sys 5.52

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/582267/ft1_filtered_4FGL_J1331.2-1325_daily_bin1744.fits scfile=/scratch/kocevski/582267/ft2_4FGL_J1331.2-1325_daily_bin1744.fits outfile=/scratch/kocevski/582267/cmap_691372801_691632001_4FGL_J1331.2-1325_daily_bin1744.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/582267/ft1_filtered_4FGL_J1331.2-1325_daily_bin1744.fits scfile=/scratch/kocevski/582267/ft2_4FGL_J1331.2-1325_daily_bin1744.fits outfile=/scratch/kocevski/582267/cmap_HighResolution_691372801_691632001_4FGL_J1331.2-1325_daily_bin1744.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/582267/ft1_filtered_4FGL_J1331.2-1325_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/582267/ft2_4FGL_J1331.2-1325_daily_bin1744.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/582267/Model_4FGL_J1331.2-1325_daily_bin1744.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/582267/ft1_filtered_4FGL_J1331.2-1325_daily_bin1744.fits.....................!
real 66.21
user 63.10
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22808       1.0000          .0000       .10000E+07
     2 'norm      '    5.7451       1.0000          .0000       .10000E+07
     3 'norm      '    10.466       1.0000          .0000       .10000E+07
     4 'Prefactor '    31.684       1.0000          .0000       .10000E+07
     5 'norm      '    .13556E-06   1.0000          .0000       .10000E+07
     6 'norm      '    3.9197       1.0000          .0000       .10000E+07
     7 'norm      '    .90048E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.4709       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.9763       1.0000          .0000       .10000E+07
    10 'Prefactor '    .61008E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .51416       1.0000          .0000       .10000E+07
    12 'norm      '    .82060       1.0000          .0000       .10000E+07
    13 'norm      '    .86569E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    22.548       1.0000          .0000       .10000E+07
    15 'Prefactor '    15.693       1.0000          .0000       .10000E+07
    16 'norm      '    48.015       1.0000          .0000       .10000E+07
    17 'Prefactor '    .56067       1.0000          .0000       .10000E+07
    18 'norm      '    .10270E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .20720       1.0000          .0000       .10000E+07
    20 'norm      '    1.3099       1.0000          .0000       .10000E+07
    21 'norm      '    15.627       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.5349       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68935       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=   8048.496     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1980 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22801        .12701       -.12101E-07** at limit **
   2  norm          5.7341        6.0852       -.61903E-07   -.11086E-01
   3  norm          10.467        3.7624       -.16732E-07   -.52180E-01
   4  Prefactor     31.703        2.4390       -.12662E-07   -.19484E-01
   5  norm           .0000        .76686        .37338E-07** at limit **
   6  norm          3.9239        5.1209       -.15138E-07   -.25275E-02
   7  norm          .16653E-09    3.1296       -.14048E-06** at limit **
   8  Prefactor     4.4686        2.3991        .90008E-08   -.68365E-02
   9  Prefactor     5.9715        5.6627        .42755E-07   -.18796E-01
  10  Prefactor      .0000        6.5126        .18331E-06** at limit **
  11  norm          .51419        1.4955        .39208E-07   -.95911E-04
  12  norm          .84190        2.0893       -.45326E-07   -.11532E-02
  13  norm          .55511E-10    3.0225       -.74198E-07** at limit **
  14  Prefactor     22.677        19.778       -.31897E-06   -.52979E-02
  15  Prefactor     15.701        4.0176        .40887E-07   -.29966E-01
  16  norm          47.995        5.6308        .23306E-07    .74433E-01
  17  Prefactor     .47207        83.426        .98811E-06   -.37212E-02
  18  norm           .0000        1.5217        .37959E-08** at limit **
  19  Prefactor     .20208        1.7011        .38437E-07** at limit **
  20  norm          1.2919        4.4144        .20879E-07   -.21317E-02
  21  norm          15.584        3.9972        .48749E-07   -.14360E-04
  22  Normalizat    1.5350        .23577       -.21273E-06    .68780E-05
  23  Prefactor     .68936        .12092        .60584E-06    .84675E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.228006
  norm       = 5.73405
  norm       = 10.4671
  Prefactor  = 31.7035
  norm       = 0
  norm       = 3.92392
  norm       = 1.66533e-10
  Prefactor  = 4.46858
  Prefactor  = 5.97153
  Prefactor  = 0
  norm       = 0.514186
  norm       = 0.841897
  norm       = 5.55112e-11
  Prefactor  = 22.677
  Prefactor  = 15.7014
  norm       = 47.9948
  Prefactor  = 0.472072
  norm       = 0
  Prefactor  = 0.202078
  norm       = 1.29191
  norm       = 15.5842
  Normalizat = 1.53497
  Prefactor  = 0.689365
 **********
 **   18 **HESSE 
 **********

 FCN=   8048.496     FROM HESSE     STATUS=OK           438 CALLS     2418 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22801        .12746        .52411E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.7341        6.1866        .41881E-03   -1.5660    
   3  norm          10.467        6.3458        .30946E-03   -1.5643    
   4  Prefactor     31.703        42.505        .17768E-03   -1.5595    
   5  norm           .0000        .76560        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9239        5.1660        .50932E-03   -1.5668    
   7  norm          .16653E-09    3.1546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4686        8.1893        .47596E-03   -1.5666    
   9  Prefactor     5.9715        7.1651        .41051E-03   -1.5659    
  10  Prefactor      .0000        6.5207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .51419        1.4986        .77297E-03   -1.5694    
  12  norm          .84190        2.1137        .51412E-03   -1.5690    
  13  norm          .55511E-10    3.0441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.677        19.962        .21065E-03   -1.5613    
  15  Prefactor     15.701        19.061        .25256E-03   -1.5629    
  16  norm          47.995        49.783        .14433E-03   -1.5569    
  17  Prefactor     .47207        12.018        .85115E-02   -1.5694    
  18  norm           .0000        1.5229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .20208        2.0919        .69918E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.2919        5.0392        .96313E-03   -1.5685    
  21  norm          15.584        4.0020        .25310E-03   -1.5629    
  22  Normalizat    1.5350        .20716        .63709E-01   -.76800    
  23  Prefactor     .68936        .10490        .42259E-01   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45998e-06
Minuit parameter uncertainties:
  1  0.127455
  2  6.18666
  3  6.34578
  4  42.5056
  5  2.68032e-06
  6  5.16603
  7  4.27812e-05
  8  8.18937
  9  7.16508
  10  1.36045e-05
  11  1.49859
  12  2.11367
  13  2.36612e-05
  14  19.9618
  15  19.0607
  16  49.7839
  17  4.76381
  18  2.3731e-06
  19  1.30034
  20  5.03925
  21  4.00199
  22  0.207277
  23  0.104934
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  0.000e+00  1.360e-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:  6.894e-01  1.049e-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.535e+00  2.073e-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: 8.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/582267/likelihoodResults_691372801_691632001_4FGL_J1331.2-1325_daily_bin1744.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) = 8048.57000408
delta logL = -0.0742378560117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8048.49576635
delta logL = -1.29187355924e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56288E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.1309       1.0000          .0000       10.000    
     3 'Normalizat'    1.5350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68933       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.

 FCN=   8048.496     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      243 TOTAL
                     EDM=   .97E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .14339E-01    .42118E-03** at limit **
   2  Index         3.2733        6.1137        .36515        .37361E-10
   3  Normalizat    1.5350        .31811E-03    .63709E-01    .12464E-03
   4  Prefactor     .68936        .17007E-03    .42259E-01    .10459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 3.27328
  Normalizat = 1.53498
  Prefactor  = 0.689365
 **********
 **   18 **HESSE 
 **********

 FCN=   8048.496     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .44924E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2733        7.9815        .50000       -.35261    
   3  Normalizat    1.5350        .56103E-03    .28178E-03   -.76800    
   4  Prefactor     .68936        .29999E-03    .21364E-03   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.75838e-13
Minuit parameter uncertainties:
  1  3.27843e-06
  2  9629.32
  3  0.000561026
  4  0.000299993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/582267': 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): 102
logL (Free Index) = 8048.49576622
delta logL = -1.72803993337e-11

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.551e-11  3.278e-06  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  3.273e+00  9.629e+03  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:  6.894e-01  3.000e-04  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.535e+00  5.610e-04  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/582267/cmap_HighResolution_691372801_691632001_4FGL_J1331.2-1325_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', job_status='DONE', photon_flux_upper_limit='8.22e-08', time_completed='2022-12-02 01:16:54.974632', job_id='582267', GAL2='0.69', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1669972614.97', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-1.73e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1744' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 01:16:55 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 582267: <4FGL_J1331.2-1325_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1744> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec  2 01:05:12 2022
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 01:05:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 01:05:13 2022
Terminated at Fri Dec  2 01:16:57 2022
Results reported at Fri Dec  2 01:16:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1744 202.819 -13.4282 691372801 691632001 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.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

