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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1765
RA = 203.323, Dec = 27.4221
tmin = 696816001, tmax = 697075201
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='635480', job_status='RUN', time_executed='2023-02-03 01:03:30.230978', time_epoch_executed='1675415010.23' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635480

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635480/ft1_4FGL_J1333.2+2725_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635480/ft2_4FGL_J1333.2+2725_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635480/ft1_4FGL_J1333.2+2725_daily_bin1765.fits outfile=/scratch/kocevski/635480/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1765.fits ra=203.323 dec=27.4221 rad=12.0 tmin=696816001.0 tmax=697075201.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.74
user 3.48
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/635480/ft2_4FGL_J1333.2+2725_daily_bin1765.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/635480/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/635480/ft1_filtered_4FGL_J1333.2+2725_daily_bin1765.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 671

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635480/ft1_filtered_4FGL_J1333.2+2725_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/635480/ft2_4FGL_J1333.2+2725_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/635480/ltcube_696816001_697075201_4FGL_J1333.2+2725_daily_bin1765.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/635480/ft2_4FGL_J1333.2+2725_daily_bin1765.fits
.....................!
real 16.50
user 16.00
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635480/ft1_filtered_4FGL_J1333.2+2725_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/635480/ft2_4FGL_J1333.2+2725_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/635480/ltcube_696816001_697075201_4FGL_J1333.2+2725_daily_bin1765.fits outfile=/scratch/kocevski/635480/expmap_696816001_697075201_4FGL_J1333.2+2725_daily_bin1765.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/635480/ltcube_696816001_697075201_4FGL_J1333.2+2725_daily_bin1765.fits
.....................!
real 192.28
user 186.98
sys 4.06

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/635480/ft1_filtered_4FGL_J1333.2+2725_daily_bin1765.fits scfile=/scratch/kocevski/635480/ft2_4FGL_J1333.2+2725_daily_bin1765.fits outfile=/scratch/kocevski/635480/cmap_696816001_697075201_4FGL_J1333.2+2725_daily_bin1765.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635480/ft1_filtered_4FGL_J1333.2+2725_daily_bin1765.fits scfile=/scratch/kocevski/635480/ft2_4FGL_J1333.2+2725_daily_bin1765.fits outfile=/scratch/kocevski/635480/cmap_HighResolution_696816001_697075201_4FGL_J1333.2+2725_daily_bin1765.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71976       1.0000          .0000       .10000E+07
     2 'norm      '    4.9937       1.0000          .0000       .10000E+07
     3 'Prefactor '    .33025E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .27756E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    9.2427       1.0000          .0000       .10000E+07
     6 'norm      '    4.9551       1.0000          .0000       .10000E+07
     7 'norm      '    47.237       1.0000          .0000       .10000E+07
     8 'norm      '    .42639E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .12310E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .32710E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .17547E-01   1.0000          .0000       .10000E+07
    12 'norm      '    73.232       1.0000          .0000       .10000E+07
    13 'Prefactor '    51.833       1.0000          .0000       .10000E+07
    14 'norm      '    .27327E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .11803E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .40429E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    11.665       1.0000          .0000       .10000E+07
    18 'Prefactor '    .41799E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    15.552       1.0000          .0000       .10000E+07
    20 'Normalizat'    .99499       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1593       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=   7313.688     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1674 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71160        1.3301        .74078E-07   -.45184E-01
   2  norm          4.9965        5.0232       -.61119E-07    .26908E-04
   3  Prefactor     .83267E-09    43.323       -.42907E-06** at limit **
   4  norm           .0000        1.2713       -.59101E-08** at limit **
   5  Prefactor     9.2568        1.3352        .60422E-08   -.97472E-02
   6  norm          4.9537        4.2357       -.65375E-07    .11782E-03
   7  norm          47.211        7.4824        .81919E-08   -.25781E-02
   8  norm          .55511E-10    14.523       -.10351E-06** at limit **
   9  norm           .0000        17.762        .37814E-06** at limit **
  10  Prefactor      .0000        2.0963        .31534E-07** at limit **
  11  Prefactor     .35116E-06    67.115       -.33460E-06** at limit **
  12  norm          73.146        12.519       -.18822E-08    .20143E-01
  13  Prefactor     52.095        7.1878       -.97906E-07    .12448    
  14  norm           .0000        3.5518        .60436E-07** at limit **
  15  Prefactor     .69167E-05    370.48        .36975E-05** at limit **
  16  Prefactor      .0000        6.4372       -.14301E-07** at limit **
  17  Prefactor     11.685        4.9954       -.88034E-07   -.13742E-02
  18  Prefactor     .55511E-10    5.0595        .96123E-07** at limit **
  19  Prefactor     15.580        6.1874        .65391E-08   -.74324E-03
  20  Normalizat    .99495        .22590       -.15694E-05   -.19740E-04
  21  Prefactor     1.1594        .23007        .18066E-06   -.61353E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.711598
  norm       = 4.99649
  Prefactor  = 8.32667e-10
  norm       = 0
  Prefactor  = 9.25685
  norm       = 4.95366
  norm       = 47.2113
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 0
  Prefactor  = 3.51164e-07
  norm       = 73.1463
  Prefactor  = 52.0946
  norm       = 0
  Prefactor  = 6.91674e-06
  Prefactor  = 0
  Prefactor  = 11.6847
  Prefactor  = 5.55112e-11
  Prefactor  = 15.5799
  Normalizat = 0.994947
  Prefactor  = 1.15944
 **********
 **   18 **HESSE 
 **********

 FCN=   7313.688     FROM HESSE     STATUS=OK           373 CALLS     2047 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71160        17.854        .59118E-03   -1.5691    
   2  norm          4.9965        5.0485        .44978E-03   -1.5663    
   3  Prefactor     .83267E-09    43.383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.2709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.2568        17.363        .32941E-03   -1.5647    
   6  norm          4.9537        4.3379        .45157E-03   -1.5663    
   7  norm          47.211        7.5718        .14551E-03   -1.5571    
   8  norm          .55511E-10    14.626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        17.787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.0959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35116E-06    6.9414        .12059E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          73.146        12.649        .11686E-03   -1.5537    
  13  Prefactor     52.095        59.044        .13891E-03   -1.5564    
  14  norm           .0000        3.5551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .69167E-05    19.819        .76780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        6.4528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.685        5.0031        .29306E-03   -1.5640    
  18  Prefactor     .55511E-10    5.0574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.580        6.1936        .25371E-03   -1.5629    
  20  Normalizat    .99495        .19119        .65900E-01   -.93200    
  21  Prefactor     1.1594        .19128        .64682E-01   -.87589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16969e-06
Minuit parameter uncertainties:
  1  7.12871
  2  5.04849
  3  0.000386344
  4  5.95393e-07
  5  17.363
  6  4.3379
  7  7.57178
  8  4.73786e-05
  9  2.49576e-05
  10  4.47477e-06
  11  0.00312256
  12  12.6488
  13  59.0447
  14  5.38906e-06
  15  0.0234167
  16  1.98927e-06
  17  5.00311
  18  3.73359e-05
  19  6.19361
  20  0.191317
  21  0.191394
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  1.989e-06  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.159e+00  1.914e-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:  9.949e-01  1.913e-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: 4.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/635480/likelihoodResults_696816001_697075201_4FGL_J1333.2+2725_daily_bin1765.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) = 7313.68959332
delta logL = -0.00187081330205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7313.68772253
delta logL = -2.9102920962e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94591E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.8110       1.0000          .0000       10.000    
     3 'Normalizat'    .99495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1595       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7313.688     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      230 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .94108        .42118E-03** at limit **
   2  Index         .55723        .51350        .12794E-03     .0000    
   3  Normalizat    .99495        1.3249        .10591E-04    .12423E-03
   4  Prefactor     1.1594        1.1179       -.69836E-05    .11011E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.557234
  Normalizat = 0.994948
  Prefactor  = 1.15944
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7313.688     FROM HESSE     STATUS=FAILED         9 CALLS      239 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .94108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .27863E-02    .66720        .12794E-03   -1.0942    
   3  Normalizat    .99495        1.3249        .10591E-04   -.93200    
   4  Prefactor     1.1594        1.1179       -.69836E-05   -.87589    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.95879e-11
Minuit parameter uncertainties:
  1  4.01538e-06
  2  0.517886
  3  1.37305
  4  1.14194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635480': 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) = 7313.6877225
delta logL = -9.09494701773e-12

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  4.015e-06  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  5.572e-01  5.179e-01  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.159e+00  1.142e+00  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:  9.949e-01  1.373e+00  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/635480/cmap_HighResolution_696816001_697075201_4FGL_J1333.2+2725_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2023-02-03 01:13:30.763623', job_id='635480', GAL2='1.16', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1675415610.76', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-9.09e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1765' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:13:30 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 635480: <4FGL_J1333.2+2725_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1765> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Feb  3 01:00:28 2023
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:01:48 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:01:48 2023
Terminated at Fri Feb  3 01:13:31 2023
Results reported at Fri Feb  3 01:13:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1765 203.323 27.4221 696816001 697075201 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 :                                   601.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            783 sec.

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

