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


Performing analysis on: 4FGL_J1333.2+2725_weekly_bin759
RA = 203.323, Dec = 27.4221
tmin = 698025601, tmax = 698630401
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='591044', job_status='RUN', time_executed='2023-02-21 03:37:35.072860', time_epoch_executed='1676979455.07' WHERE source_name='4FGL J1333.2+2725' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591044

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591044/ft1_4FGL_J1333.2+2725_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591044/ft2_4FGL_J1333.2+2725_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591044/ft1_4FGL_J1333.2+2725_weekly_bin759.fits outfile=/scratch/kocevski/591044/ft1_filteredMKT_4FGL_J1333.2+2725_weekly_bin759.fits ra=203.323 dec=27.4221 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.48
user 8.19
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/591044/ft2_4FGL_J1333.2+2725_weekly_bin759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591044/ft2_4FGL_J1333.2+2725_weekly_bin759.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/591044/ft1_filteredMKT_4FGL_J1333.2+2725_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/591044/ft1_filtered_4FGL_J1333.2+2725_weekly_bin759.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.54
user 0.37
sys 0.15

Number of photons that the gtmktime cut: 1014

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591044/ft1_filtered_4FGL_J1333.2+2725_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/591044/ft2_4FGL_J1333.2+2725_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/591044/ltcube_698025601_698630401_4FGL_J1333.2+2725_weekly_bin759.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/591044/ft2_4FGL_J1333.2+2725_weekly_bin759.fits
.....................!
real 26.57
user 26.21
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591044/ft1_filtered_4FGL_J1333.2+2725_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/591044/ft2_4FGL_J1333.2+2725_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/591044/ltcube_698025601_698630401_4FGL_J1333.2+2725_weekly_bin759.fits outfile=/scratch/kocevski/591044/expmap_698025601_698630401_4FGL_J1333.2+2725_weekly_bin759.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/591044/ltcube_698025601_698630401_4FGL_J1333.2+2725_weekly_bin759.fits
.....................!
real 189.96
user 185.61
sys 4.00

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

Setting source of interest to:
4FGL J1333.2+2725 @ 203.323 27.4221

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/591044/ft1_filtered_4FGL_J1333.2+2725_weekly_bin759.fits scfile=/scratch/kocevski/591044/ft2_4FGL_J1333.2+2725_weekly_bin759.fits outfile=/scratch/kocevski/591044/cmap_698025601_698630401_4FGL_J1333.2+2725_weekly_bin759.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=203.323 yref=27.4221 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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591044/ft1_filtered_4FGL_J1333.2+2725_weekly_bin759.fits scfile=/scratch/kocevski/591044/ft2_4FGL_J1333.2+2725_weekly_bin759.fits outfile=/scratch/kocevski/591044/cmap_HighResolution_698025601_698630401_4FGL_J1333.2+2725_weekly_bin759.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=203.323 yref=27.4221 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.57
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591044/ft1_filtered_4FGL_J1333.2+2725_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/591044/ft2_4FGL_J1333.2+2725_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591044/Model_4FGL_J1333.2+2725_weekly_bin759.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/591044/ft1_filtered_4FGL_J1333.2+2725_weekly_bin759.fits.....................!
real 78.18
user 76.90
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/591044/ft1_filtered_4FGL_J1333.2+2725_weekly_bin759.fits', '/scratch/kocevski/591044/ft2_4FGL_J1333.2+2725_weekly_bin759.fits', expMap='/scratch/kocevski/591044/expmap_698025601_698630401_4FGL_J1333.2+2725_weekly_bin759.fits', expCube='/scratch/kocevski/591044/ltcube_698025601_698630401_4FGL_J1333.2+2725_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/591044/Model_4FGL_J1333.2+2725_weekly_bin759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1333.2+2725'

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  6.668e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/591044/ft1_filtered_4FGL_J1333.2+2725_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/591044/ft2_4FGL_J1333.2+2725_weekly_bin759.fits
Exposure map: /scratch/kocevski/591044/expmap_698025601_698630401_4FGL_J1333.2+2725_weekly_bin759.fits
Exposure cube: /scratch/kocevski/591044/ltcube_698025601_698630401_4FGL_J1333.2+2725_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/591044/Model_4FGL_J1333.2+2725_weekly_bin759.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) = 10967.230686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14387E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .33524E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .65503E-08   1.0000          .0000       .10000E+07
     4 'norm      '    .98331       1.0000          .0000       .10000E+07
     5 'Prefactor '    .42435E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .41311E-04   1.0000          .0000       .10000E+07
     7 'norm      '    38.280       1.0000          .0000       .10000E+07
     8 'norm      '    6.4350       1.0000          .0000       .10000E+07
     9 'norm      '    13.727       1.0000          .0000       .10000E+07
    10 'Prefactor '    .50188E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .61997E-05   1.0000          .0000       .10000E+07
    12 'norm      '    41.227       1.0000          .0000       .10000E+07
    13 'Prefactor '    .81380E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .89810       1.0000          .0000       .10000E+07
    15 'Prefactor '    .92859E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.3393       1.0000          .0000       .10000E+07
    17 'Prefactor '    7.2751       1.0000          .0000       .10000E+07
    18 'Prefactor '    .24480E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    29.998       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0625       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10967.16     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1252 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    3.3586        .70638E-07** at limit **
   2  norm           .0000        1.6429        .66290E-07** at limit **
   3  Prefactor     .17597E-07    3.1408       -.31710E-06** at limit **
   4  norm          .98975        1.9618        .32638E-07   -.12129E-03
   5  Prefactor     .55511E-10    4.1311        .19882E-06** at limit **
   6  norm           .0000        1.7171       -.18510E-06** at limit **
   7  norm          38.277        4.4172        .82088E-09   -.36814E-01
   8  norm          6.4334        3.1104       -.27748E-07    .23553E-01
   9  norm          13.652        1.2031        .87383E-08    .33478E-02
  10  Prefactor     .55511E-10    1.1432       -.42301E-06** at limit **
  11  Prefactor     .12212E-07    3.1709       -.30541E-06** at limit **
  12  norm          41.263        6.7794        .64982E-07    .83884E-02
  13  Prefactor     .22204E-09    20.017        .53767E-06** at limit **
  14  norm          .92311        1.5963        .10024E-06   -.15753E-02
  15  Prefactor     .18874E-08    14.410        .42829E-06** at limit **
  16  Prefactor     1.9898        1.6272       -.25862E-07    .69441E-02
  17  Prefactor     7.2743        3.5718       -.11931E-08    .61548E-03
  18  Prefactor     .22204E-09    8.5834       -.24794E-06** at limit **
  19  Prefactor     30.024        5.1421       -.16094E-07    .10101E-02
  20  Normalizat    1.0630        .16432       -.20817E-05    .12764E-03
  21  Prefactor     1.0055        .16700       -.15907E-05    .11073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 1.7597e-08
  norm       = 0.989751
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 38.277
  norm       = 6.43343
  norm       = 13.6522
  Prefactor  = 5.55112e-11
  Prefactor  = 1.22125e-08
  norm       = 41.2629
  Prefactor  = 2.22045e-10
  norm       = 0.923113
  Prefactor  = 1.88738e-09
  Prefactor  = 1.98983
  Prefactor  = 7.27432
  Prefactor  = 2.22045e-10
  Prefactor  = 30.0239
  Normalizat = 1.06304
  Prefactor  = 1.00555
 **********
 **   18 **HESSE 
 **********

 FCN=   10967.16     FROM HESSE     STATUS=OK           359 CALLS     1611 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    3.3632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.6393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .17597E-07    6.2877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .98975        1.9746        .43174E-03   -1.5688    
   5  Prefactor     .55511E-10    4.1355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.7106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          38.277        7.0445        .16164E-03   -1.5584    
   8  norm          6.4334        8.9985        .39541E-03   -1.5657    
   9  norm          13.652        14.063        .27009E-03   -1.5634    
  10  Prefactor     .55511E-10    1.1397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .12212E-07    6.2504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          41.263        8.5323        .15576E-03   -1.5579    
  13  Prefactor     .22204E-09    20.044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .92311        5.6916        .45892E-03   -1.5689    
  15  Prefactor     .18874E-08    14.394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9898        29.553        .67010E-03   -1.5680    
  17  Prefactor     7.2743        3.5592        .37163E-03   -1.5654    
  18  Prefactor     .22204E-09    8.6291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.024        5.1393        .18261E-03   -1.5598    
  20  Normalizat    1.0630        .13872        .58606E-01   -.90947    
  21  Prefactor     1.0055        .13980        .62950E-01   -.92545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97143e-07
Minuit parameter uncertainties:
  1  2.53765e-05
  2  3.82069e-07
  3  0.00066521
  4  1.97456
  5  3.67304e-05
  6  1.26938e-05
  7  7.04454
  8  8.99852
  9  14.0633
  10  1.58225e-05
  11  0.000552207
  12  8.53225
  13  0.000138112
  14  4.58433
  15  0.000331866
  16  15.3371
  17  3.55918
  18  9.03232e-05
  19  5.13934
  20  0.13877
  21  0.139849
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.990e+00  1.534e+01  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.006e+00  1.398e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.063e+00  1.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 203.323 27.422
Photon Flux Upper Limit: 5.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591044/likelihoodResults_698025601_698630401_4FGL_J1333.2+2725_weekly_bin759.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) = 10967.1029493
delta logL = 0.0618925543022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10967.0970426
delta logL = 0.0677992522687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4541       1.0000          .0000       .10000E+07
     2 'Index     '    3.3872       1.0000          .0000       10.000    
     3 'Normalizat'    1.0496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0140       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10967.10     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      280 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4579        20.257        .31289E-04    .13516E-03
   2  Index         3.3891        3.5450        .55838E-02    .11919E-04
   3  Normalizat    1.0495        .16379        .26065E-03    .87232E-07
   4  Prefactor     1.0141        .16849        .27736E-03    .27873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45786
  Index      = 3.38913
  Normalizat = 1.04946
  Prefactor  = 1.0141
 **********
 **   18 **HESSE 
 **********

 FCN=   10967.10     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4579        8.9088        .12516E-05   -1.5684    
   2  Index         3.3891        2.5171        .22335E-03   -.32802    
   3  Normalizat    1.0495        .16398        .10426E-04   -.91392    
   4  Prefactor     1.0141        .16847        .11094E-04   -.92261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70204e-11
Minuit parameter uncertainties:
  1  7.20773
  2  2.65397
  3  0.16406
  4  0.168555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591044': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10967.0970397
delta logL = 0.0678021635376

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.458e+00  7.208e+00  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  3.389e+00  2.654e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.014e+00  1.686e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.049e+00  1.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 203.323 27.422

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/591044/cmap_HighResolution_698025601_698630401_4FGL_J1333.2+2725_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2023-02-21 03:49:28.610213', job_id='591044', GAL2='1.01', fit_tolerance='1e-08', EG2='1.05', EG='1.06', time_epoch_completed='1676980168.61', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.78e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='759' AND source_name='4FGL J1333.2+2725' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:49:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 591044: <4FGL_J1333.2+2725_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1333.2+2725_weekly_bin759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 03:35:25 2023
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:35:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:35:26 2023
Terminated at Tue Feb 21 03:49:28 2023
Results reported at Tue Feb 21 03:49:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_weekly_bin759 203.323 27.4221 698025601 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1333.2+2725 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   713.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

