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 14 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1333.7+5056_monthly_bin168
RA = 203.439, Dec = 50.9366
tmin = 672451201, tmax = 675043201
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='633917', job_status='RUN', time_executed='2022-05-24 03:11:59.065404', time_epoch_executed='1653387119.07' WHERE source_name='4FGL J1333.7+5056' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/633917

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/633917/ft1_4FGL_J1333.7+5056_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/633917/ft2_4FGL_J1333.7+5056_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/633917/ft1_4FGL_J1333.7+5056_monthly_bin168.fits outfile=/scratch/kocevski/633917/ft1_filteredMKT_4FGL_J1333.7+5056_monthly_bin168.fits ra=203.439 dec=50.9366 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.81
user 27.84
sys 0.70

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/633917/ft2_4FGL_J1333.7+5056_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/633917/ft2_4FGL_J1333.7+5056_monthly_bin168.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/633917/ft1_filteredMKT_4FGL_J1333.7+5056_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/633917/ft1_filtered_4FGL_J1333.7+5056_monthly_bin168.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.87
user 0.66
sys 0.18

Number of photons that the gtmktime cut: 8293

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/633917/ft1_filtered_4FGL_J1333.7+5056_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/633917/ft2_4FGL_J1333.7+5056_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/633917/ltcube_672451201_675043201_4FGL_J1333.7+5056_monthly_bin168.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/633917/ft2_4FGL_J1333.7+5056_monthly_bin168.fits
.....................!
real 133.43
user 132.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/633917/ft1_filtered_4FGL_J1333.7+5056_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/633917/ft2_4FGL_J1333.7+5056_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/633917/ltcube_672451201_675043201_4FGL_J1333.7+5056_monthly_bin168.fits outfile=/scratch/kocevski/633917/expmap_672451201_675043201_4FGL_J1333.7+5056_monthly_bin168.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/633917/ltcube_672451201_675043201_4FGL_J1333.7+5056_monthly_bin168.fits
.....................!
real 192.80
user 186.16
sys 5.43

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

Setting source of interest to:
4FGL J1333.7+5056 @ 203.439 50.9366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/633917/ft1_filtered_4FGL_J1333.7+5056_monthly_bin168.fits scfile=/scratch/kocevski/633917/ft2_4FGL_J1333.7+5056_monthly_bin168.fits outfile=/scratch/kocevski/633917/cmap_672451201_675043201_4FGL_J1333.7+5056_monthly_bin168.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.439 yref=50.9366 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.80
user 0.63
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/633917/ft1_filtered_4FGL_J1333.7+5056_monthly_bin168.fits scfile=/scratch/kocevski/633917/ft2_4FGL_J1333.7+5056_monthly_bin168.fits outfile=/scratch/kocevski/633917/cmap_HighResolution_672451201_675043201_4FGL_J1333.7+5056_monthly_bin168.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.439 yref=50.9366 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.79
user 0.64
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/633917/ft1_filtered_4FGL_J1333.7+5056_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/633917/ft2_4FGL_J1333.7+5056_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/633917/Model_4FGL_J1333.7+5056_monthly_bin168.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/633917/ft1_filtered_4FGL_J1333.7+5056_monthly_bin168.fits.....................!
real 577.06
user 572.45
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/633917/ft1_filtered_4FGL_J1333.7+5056_monthly_bin168.fits', '/scratch/kocevski/633917/ft2_4FGL_J1333.7+5056_monthly_bin168.fits', expMap='/scratch/kocevski/633917/expmap_672451201_675043201_4FGL_J1333.7+5056_monthly_bin168.fits', expCube='/scratch/kocevski/633917/ltcube_672451201_675043201_4FGL_J1333.7+5056_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/633917/Model_4FGL_J1333.7+5056_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1333.7+5056'

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  2.543e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  7.642e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/633917/ft1_filtered_4FGL_J1333.7+5056_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/633917/ft2_4FGL_J1333.7+5056_monthly_bin168.fits
Exposure map: /scratch/kocevski/633917/expmap_672451201_675043201_4FGL_J1333.7+5056_monthly_bin168.fits
Exposure cube: /scratch/kocevski/633917/ltcube_672451201_675043201_4FGL_J1333.7+5056_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/633917/Model_4FGL_J1333.7+5056_monthly_bin168.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) = 90369.8125828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8199       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43444       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.0629       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.571       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5045       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3619       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .65378       1.0000         .10000E-03   10000.    
     9 'norm      '    7.5536       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4468       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6306       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7511       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .67648E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0691       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .57451E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .24330       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0951       1.0000         .10000E-03   10000.    
    19 'norm      '    .40699       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3952       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.963       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.474       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.9740       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .78717       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.0334       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.2672       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.8154       1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.444       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.2380       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .20972E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1047       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .97689       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   90369.62     FROM MIGRAD    STATUS=CONVERGED    889 CALLS     4045 TOTAL
                     EDM=   .35E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8210        1.3263         .0000        .69816E-02
   2  Prefactor     .41842        1.3307         .0000        .37874E-02
   3  Prefactor     .10000E-03    .20968         .0000    ** at limit **
   4  norm          3.0630        .53186         .0000        .43343E-03
   5  Prefactor     11.572        4.3259         .0000       -.51371E-03
   6  norm          1.5044        .43060         .0000        .46689E-02
   7  Prefactor     6.3618        6.6956         .0000        .11719E-03
   8  Prefactor     .65375        1.3980         .0000        .48049    
   9  norm          7.5536        2.8551         .0000        .18474E-02
  10  norm          1.4469        .68934         .0000        .61093E-02
  11  Prefactor     9.6353        7.3243         .0000        .25029E-03
  12  Prefactor     4.7509        3.0842         .0000        .23776E-01
  13  Prefactor     .10005E-03    1.1686         .0000    ** at limit **
  14  norm          1.0692        .91127         .0000        .15538E-01
  15  Prefactor     .10007E-03    2.1093         .0000    ** at limit **
  16  Prefactor     .10000E-03    4.8341         .0000    ** at limit **
  17  norm          .24334        .21065         .0000        .15125E-01
  18  norm          4.0949        6.1006         .0000        .21596E-03
  19  norm          .40701        .68235         .0000        .26675E-01
  20  norm          1.3952        3.1139         .0000        .37872E-02
  21  Prefactor     22.963        27.783         .0000        .29952E-03
  22  Prefactor     24.475        9.5064         .0000       -.13245E-03
  23  Prefactor     7.9722        8.0058         .0000        .42603E-03
  24  Prefactor     .78744        .53446         .0000       -.28094E-03
  25  Prefactor     4.0340        4.3496         .0000        .14185E-02
  26  Prefactor     4.2673        .76014         .0000        .34700E-02
  27  Prefactor     5.8149        4.5191         .0000        .10733E-01
  28  Prefactor     16.445        6.7141         .0000        .42891E-02
  29  Prefactor     .10001E-03    8.3497         .0000    ** at limit **
  30  Prefactor     2.2381        3.4423         .0000       -.16451E-02
  31  Prefactor     .10000E-03    .67678         .0000    ** at limit **
  32  Normalizat    1.1047        .44881E-01     .0000        .17442E-02
  33  Prefactor     .97695        .52645E-01     .0000        .16826E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82097
  Prefactor  = 0.418421
  Prefactor  = 0.0001
  norm       = 3.06297
  Prefactor  = 11.5719
  norm       = 1.50445
  Prefactor  = 6.3618
  Prefactor  = 0.653751
  norm       = 7.55356
  norm       = 1.44686
  Prefactor  = 9.63533
  Prefactor  = 4.75091
  Prefactor  = 0.000100052
  norm       = 1.06915
  Prefactor  = 0.000100074
  Prefactor  = 0.0001
  norm       = 0.243339
  norm       = 4.09489
  norm       = 0.407008
  norm       = 1.39516
  Prefactor  = 22.9629
  Prefactor  = 24.4745
  Prefactor  = 7.97222
  Prefactor  = 0.78744
  Prefactor  = 4.03397
  Prefactor  = 4.26731
  Prefactor  = 5.81492
  Prefactor  = 16.4445
  Prefactor  = 0.000100006
  Prefactor  = 2.23812
  Prefactor  = 0.0001
  Normalizat = 1.1047
  Prefactor  = 0.976949
 **********
 **   18 **HESSE 
 **********

 FCN=   90369.62     FROM HESSE     STATUS=OK           725 CALLS     4770 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8210        1.3186        .27322E-03   -1.5438    
   2  Prefactor     .41842        9.9057        .56247E-02   -1.5579    
   3  Prefactor     .10000E-03    .48283        .26284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.0630        .52340        .86552E-04   -1.5358    
   5  Prefactor     11.572        4.3161        .11777E-03   -1.5027    
   6  norm          1.5044        .42764        .10211E-03   -1.5463    
   7  Prefactor     6.3618        6.6906        .15913E-03   -1.5203    
   8  Prefactor     .65375        1.3849        .23767E-02   -1.5546    
   9  norm          7.5536        2.8537        .14592E-03   -1.5158    
  10  norm          1.4469        .68040        .16511E-03   -1.5467    
  11  Prefactor     9.6353        6.9696        .12913E-03   -1.5087    
  12  Prefactor     4.7509        3.0070        .92297E-03   -1.5272    
  13  Prefactor     .10005E-03    8.3176        .58567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0692        .87673        .23351E-03   -1.5501    
  15  Prefactor     .10007E-03    15.669        .83136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.9173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .24334        .19420        .12095E-02   -1.5609    
  18  norm          4.0949        6.0829        .19922E-03   -1.5303    
  19  norm          .40701        .67669        .30367E-03   -1.5580    
  20  norm          1.3952        3.0893        .36763E-03   -1.5472    
  21  Prefactor     22.963        27.783        .83589E-04   -1.4749    
  22  Prefactor     24.475        9.4963        .80971E-04   -1.4718    
  23  Prefactor     7.9722        7.9739        .14199E-03   -1.5143    
  24  Prefactor     .78744        .53851        .17474E-03   -1.5530    
  25  Prefactor     4.0340        4.3392        .20078E-03   -1.5306    
  26  Prefactor     4.2673        .75618        .96719E-04   -1.5295    
  27  Prefactor     5.8149        4.5002        .83271E-03   -1.5226    
  28  Prefactor     16.445        6.6917        .49384E-03   -1.4897    
  29  Prefactor     .10001E-03    8.4504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.2381        3.4180        .27475E-03   -1.5409    
  31  Prefactor     .10000E-03    3.3198        .47700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1047        .51254E-01    .21488E-03   -.89601    
  33  Prefactor     .97695        .61035E-01    .28127E-03   -.93502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11491e-08
Minuit parameter uncertainties:
  1  1.31866
  2  4.07201
  3  4.19523e-06
  4  0.523397
  5  4.31619
  6  0.427638
  7  6.6914
  8  1.38496
  9  2.85379
  10  0.6804
  11  6.97015
  12  3.00713
  13  0.00132005
  14  0.876741
  15  0.00216092
  16  2.31821e-05
  17  0.194198
  18  6.08384
  19  0.676702
  20  3.0897
  21  27.7983
  22  9.49689
  23  7.97495
  24  0.538515
  25  4.33957
  26  0.756181
  27  4.50048
  28  6.69202
  29  0.000445453
  30  3.4183
  31  3.84739e-05
  32  0.0512559
  33  0.0610389
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.069e+00  8.767e-01  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  7.642e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.769e-01  6.104e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.105e+00  5.126e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 203.439 50.937
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 6.93e-09 +/- 5.68e-09
Energy Flux (Fixed Index): 2.65e-06 +/- 2.17e-06

TS (Fixed Index): 2.02
Ra Dec: 203.439 50.937
Photon Flux Upper Limit: 1.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/633917/likelihoodResults_672451201_675043201_4FGL_J1333.7+5056_monthly_bin168.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) = 90369.4327846
delta logL = 0.182753730041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 90369.4250201
delta logL = 0.190518225558

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0048       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5648       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+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=   90369.43     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      250 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0047        .87428        .20292E-03    .75030E-03
   2  alpha         2.5648        .57046        .40910E-01    .93595E-04
   3  Normalizat    1.1011        .49318E-01    .21519E-03   -.14877E-03
   4  Prefactor     .97956        .60938E-01    .28093E-03   -.12496E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00474
  alpha      = 2.56482
  Normalizat = 1.10107
  Prefactor  = 0.979556
 **********
 **   18 **HESSE 
 **********

 FCN=   90369.43     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0047        .78323        .81167E-05   -1.5507    
   2  alpha         2.5648        .51225        .16364E-02    .25931E-01
   3  Normalizat    1.1011        .49322E-01    .86075E-05   -.89718    
   4  Prefactor     .97956        .60911E-01    .11237E-04   -.93414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1084e-11
Minuit parameter uncertainties:
  1  0.783237
  2  0.515902
  3  0.0493244
  4  0.0609156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/633917': 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) = 90369.4250201
delta logL = 0.190518225849

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  1.005e+00  7.832e-01  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.565e+00  5.159e-01  0.000e+00  5.000e+00 ( 1.000e+00)
352         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  7.642e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.796e-01  6.092e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.101e+00  4.932e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 203.439 50.937
Photon Index (Free Index): 2.56 +/- 0.52
Photon Flux (Free Index): 9.65e-09 +/- 7.53e-09
Energy Flux (Free Index): 2.69e-06 +/- 1.89e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/633917/cmap_HighResolution_672451201_675043201_4FGL_J1333.7+5056_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-06', comment='SUCCESS', photon_flux='6.93e-09', energy_flux2='2.69e-06', photon_flux_error='5.68e-09', dlogl='1.91e-01', energy_flux='2.65e-06', photon_flux2='9.65e-09', job_status='DONE', time_completed='2022-05-24 06:11:14.552511', photon_index_error2='0.52', photon_index2='2.56', ts='2.02', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.72e-08', energy_flux_error2='1.89e-06', EG='1.10', time_epoch_completed='1653397874.55', return_code='0', job_id='633917', GAL2='0.98', EG2='1.10', return_code2='0', energy_flux_error='2.17e-06', photon_flux_error2='7.53e-09', ts2='2.40', photon_index='2.25' WHERE bin_id='168' AND source_name='4FGL J1333.7+5056' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:11:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 633917: <4FGL_J1333.7+5056_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1333.7+5056_monthly_bin168> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 03:05:38 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:11:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:11:36 2022
Terminated at Tue May 24 06:11:15 2022
Results reported at Tue May 24 06:11:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_monthly_bin168 203.439 50.9366 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1333.7+5056 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10684.00 sec.
    Max Memory :                                 788 MB
    Average Memory :                             441.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10779 sec.
    Turnaround time :                            11137 sec.

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

