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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1711
RA = 203.323, Dec = 27.4221
tmin = 682819201, tmax = 683078401
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='135143', job_status='RUN', time_executed='2022-09-16 17:42:39.696993', time_epoch_executed='1663375359.7' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135143

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135143/ft1_4FGL_J1333.2+2725_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135143/ft2_4FGL_J1333.2+2725_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135143/ft1_4FGL_J1333.2+2725_daily_bin1711.fits outfile=/scratch/kocevski/135143/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1711.fits ra=203.323 dec=27.4221 rad=12.0 tmin=682819201.0 tmax=683078401.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.61
user 4.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135143/ft2_4FGL_J1333.2+2725_daily_bin1711.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/135143/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1711.fits evtable="EVENTS" outfile="/scratch/kocevski/135143/ft1_filtered_4FGL_J1333.2+2725_daily_bin1711.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.55
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 505

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135143/ft1_filtered_4FGL_J1333.2+2725_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/135143/ft2_4FGL_J1333.2+2725_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/135143/ltcube_682819201_683078401_4FGL_J1333.2+2725_daily_bin1711.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/135143/ft2_4FGL_J1333.2+2725_daily_bin1711.fits
.....................!
real 14.03
user 13.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135143/ft1_filtered_4FGL_J1333.2+2725_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/135143/ft2_4FGL_J1333.2+2725_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/135143/ltcube_682819201_683078401_4FGL_J1333.2+2725_daily_bin1711.fits outfile=/scratch/kocevski/135143/expmap_682819201_683078401_4FGL_J1333.2+2725_daily_bin1711.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/135143/ltcube_682819201_683078401_4FGL_J1333.2+2725_daily_bin1711.fits
.....................!
real 194.28
user 188.19
sys 5.67

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/135143/ft1_filtered_4FGL_J1333.2+2725_daily_bin1711.fits scfile=/scratch/kocevski/135143/ft2_4FGL_J1333.2+2725_daily_bin1711.fits outfile=/scratch/kocevski/135143/cmap_682819201_683078401_4FGL_J1333.2+2725_daily_bin1711.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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135143/ft1_filtered_4FGL_J1333.2+2725_daily_bin1711.fits scfile=/scratch/kocevski/135143/ft2_4FGL_J1333.2+2725_daily_bin1711.fits outfile=/scratch/kocevski/135143/cmap_HighResolution_682819201_683078401_4FGL_J1333.2+2725_daily_bin1711.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.56
user 0.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/135143/ft1_filtered_4FGL_J1333.2+2725_daily_bin1711.fits', '/scratch/kocevski/135143/ft2_4FGL_J1333.2+2725_daily_bin1711.fits', expMap='/scratch/kocevski/135143/expmap_682819201_683078401_4FGL_J1333.2+2725_daily_bin1711.fits', expCube='/scratch/kocevski/135143/ltcube_682819201_683078401_4FGL_J1333.2+2725_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/135143/Model_4FGL_J1333.2+2725_daily_bin1711.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/135143/ft1_filtered_4FGL_J1333.2+2725_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/135143/ft2_4FGL_J1333.2+2725_daily_bin1711.fits
Exposure map: /scratch/kocevski/135143/expmap_682819201_683078401_4FGL_J1333.2+2725_daily_bin1711.fits
Exposure cube: /scratch/kocevski/135143/ltcube_682819201_683078401_4FGL_J1333.2+2725_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/135143/Model_4FGL_J1333.2+2725_daily_bin1711.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) = 5726.26874889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23989E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .37394E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .39770E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .76761E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.5286       1.0000          .0000       .10000E+07
     6 'norm      '    .25690E-03   1.0000          .0000       .10000E+07
     7 'norm      '    15.484       1.0000          .0000       .10000E+07
     8 'norm      '    .82767E-07   1.0000          .0000       .10000E+07
     9 'norm      '    .14567E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .36967E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.0551       1.0000          .0000       .10000E+07
    12 'norm      '    2.4066       1.0000          .0000       .10000E+07
    13 'Prefactor '    75.119       1.0000          .0000       .10000E+07
    14 'norm      '    2.6111       1.0000          .0000       .10000E+07
    15 'Prefactor '    .16381       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14802E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.2721       1.0000          .0000       .10000E+07
    18 'Prefactor '    .92026E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    15.585       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.3275       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88745       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=   5726.225     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     1780 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91593E-08    6.7461        .56259E-06** at limit **
   2  norm          .29976E-07    15.147       -.14587E-05** at limit **
   3  Prefactor     .23648E-07    22.372        .11797E-06** at limit **
   4  norm          .22627E-05    3.5637       -.19102E-08** at limit **
   5  Prefactor     6.5074        15.261        .84586E-06    .11043E-03
   6  norm           .0000        4.4939       -.54895E-06** at limit **
   7  norm          15.542        5.9278       -.14107E-06   -.92793E-02
   8  norm           .0000        4.2506       -.47925E-06** at limit **
   9  norm          .13767E-07    6.5267       -.15364E-05** at limit **
  10  Prefactor     .61728E-07    15.578       -.86253E-06** at limit **
  11  Prefactor     1.7980        20.037       -.13807E-05    .35355E-01
  12  norm          2.4074        3.7321       -.13760E-06    .89081E-04
  13  Prefactor     73.648        80.191        .13173E-05    .30171E-01
  14  norm          2.6029        7.3515        .13189E-05    .78337E-03
  15  Prefactor     .64803E-05    386.70       -.54602E-05** at limit **
  16  Prefactor     .48850E-07    85.619       -.23306E-06** at limit **
  17  Prefactor     7.2798        5.9921       -.27165E-07   -.36655E-03
  18  Prefactor     .14988E-08    6.9888        .82013E-06** at limit **
  19  Prefactor     15.531        6.7137        .88421E-07    .12399E-03
  20  Normalizat    1.3289        .24076       -.23599E-04   -.34296E-04
  21  Prefactor     .88698        .23966        .59363E-05   -.39116E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.15934e-09
  norm       = 2.9976e-08
  Prefactor  = 2.36478e-08
  norm       = 2.26275e-06
  Prefactor  = 6.50742
  norm       = 0
  norm       = 15.5415
  norm       = 0
  norm       = 1.37668e-08
  Prefactor  = 6.17284e-08
  Prefactor  = 1.79802
  norm       = 2.40738
  Prefactor  = 73.6479
  norm       = 2.60288
  Prefactor  = 6.48032e-06
  Prefactor  = 4.88498e-08
  Prefactor  = 7.27981
  Prefactor  = 1.4988e-09
  Prefactor  = 15.531
  Normalizat = 1.32886
  Prefactor  = 0.886984
 **********
 **   18 **HESSE 
 **********

 FCN=   5726.225     FROM HESSE     STATUS=OK           369 CALLS     2149 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91593E-08    6.7399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .29976E-07    14.990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .23648E-07    22.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .22627E-05    2.8005        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5074        15.284        .39253E-03   -1.5657    
   6  norm           .0000        4.5100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.542        6.5845        .25427E-03   -1.5629    
   8  norm           .0000        4.2663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .13767E-07    6.5764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61728E-07    15.498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7980        87.688        .72071E-03   -1.5681    
  12  norm          2.4074        3.7601        .65969E-03   -1.5677    
  13  Prefactor     73.648        82.633        .11539E-03   -1.5536    
  14  norm          2.6029        7.3730        .63100E-03   -1.5676    
  15  Prefactor     .64803E-05    16.690        .12459E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .48850E-07    85.374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.2798        5.9904        .37171E-03   -1.5654    
  18  Prefactor     .14988E-08    6.9981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.531        6.7165        .25344E-03   -1.5629    
  20  Normalizat    1.3289        .20221        .53961E-01   -.82709    
  21  Prefactor     .88698        .19878        .66642E-01   -.96597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25469e-07
Minuit parameter uncertainties:
  1  0.000496413
  2  0.00134054
  3  0.00145967
  4  0.00503461
  5  15.2836
  6  1.08738e-05
  7  6.58452
  8  5.65749e-06
  9  0.00060212
  10  0.00195585
  11  25.1133
  12  3.76014
  13  82.6341
  14  7.37299
  15  0.0207999
  16  0.00408362
  17  5.99037
  18  0.0002036
  19  6.71648
  20  0.202328
  21  0.198939
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  4.885e-08  4.084e-03  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:  8.870e-01  1.989e-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.329e+00  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/135143/likelihoodResults_682819201_683078401_4FGL_J1333.2+2725_daily_bin1711.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) = 5726.23121657
delta logL = -0.0060266939081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5726.10583881
delta logL = 0.119351067891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6285       1.0000          .0000       .10000E+07
     2 'Index     '    3.3241       1.0000          .0000       10.000    
     3 'Normalizat'    1.2941       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90642       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=   5726.106     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      272 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6262        27.228        .21205E-04   -.76468E-02
   2  Index         3.3243        2.4623        .86546E-02   -.23423E-03
   3  Normalizat    1.2941        .23957        .24134E-03    .61412E-03
   4  Prefactor     .90646        .24125        .29195E-03    .78059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.62621
  Index      = 3.32431
  Normalizat = 1.29411
  Prefactor  = 0.906462
 **********
 **   18 **HESSE 
 **********

 FCN=   5726.106     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6262        13.107        .84821E-06   -1.5670    
   2  Index         3.3243        1.6690        .34618E-03   -.34175    
   3  Normalizat    1.2941        .23993        .48267E-04   -.83742    
   4  Prefactor     .90646        .24156        .58391E-04   -.95916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29575e-09
Minuit parameter uncertainties:
  1  13.107
  2  1.7061
  3  0.24014
  4  0.241847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135143': 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) = 5726.10583878
delta logL = 0.119351098298

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  3.626e+00  1.311e+01  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  3.324e+00  1.706e+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:  9.065e-01  2.418e-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.294e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.323 27.422

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/135143/cmap_HighResolution_682819201_683078401_4FGL_J1333.2+2725_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2022-09-16 17:52:02.625499', job_id='135143', GAL2='0.91', fit_tolerance='1e-08', EG2='1.29', EG='1.33', time_epoch_completed='1663375922.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.19e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1711' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:52:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 135143: <4FGL_J1333.2+2725_daily_bin1711> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1711> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:40:21 2022
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:42: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:42:04 2022
Terminated at Fri Sep 16 17:52:03 2022
Results reported at Fri Sep 16 17:52:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1711 203.323 27.4221 682819201 683078401 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 :                                   565.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            702 sec.

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

