/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 112 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 = 7340
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1093
RA = 203.323, Dec = 27.4221
tmin = 522633601, tmax = 522892801
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='772036', job_status='RUN', time_executed='2021-09-08 03:19:33.643036', time_epoch_executed='1631096373.64' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772036

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772036/ft1_4FGL_J1333.2+2725_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772036/ft2_4FGL_J1333.2+2725_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772036/ft1_4FGL_J1333.2+2725_daily_bin1093.fits outfile=/scratch/kocevski/772036/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1093.fits ra=203.323 dec=27.4221 rad=12.0 tmin=522633601.0 tmax=522892801.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.64
user 3.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772036/ft1_filtered_4FGL_J1333.2+2725_daily_bin1093.fits" evtable="EVENTS" scfile=/scratch/kocevski/772036/ft2_4FGL_J1333.2+2725_daily_bin1093.fits sctable="SC_DATA" outfile=/scratch/kocevski/772036/ltcube_522633601_522892801_4FGL_J1333.2+2725_daily_bin1093.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/772036/ft2_4FGL_J1333.2+2725_daily_bin1093.fits
.....................!
real 18.47
user 17.99
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772036/ft1_filtered_4FGL_J1333.2+2725_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/772036/ft2_4FGL_J1333.2+2725_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/772036/ltcube_522633601_522892801_4FGL_J1333.2+2725_daily_bin1093.fits outfile=/scratch/kocevski/772036/expmap_522633601_522892801_4FGL_J1333.2+2725_daily_bin1093.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/772036/ltcube_522633601_522892801_4FGL_J1333.2+2725_daily_bin1093.fits
.....................!
real 195.89
user 189.51
sys 5.34

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/772036/ft1_filtered_4FGL_J1333.2+2725_daily_bin1093.fits scfile=/scratch/kocevski/772036/ft2_4FGL_J1333.2+2725_daily_bin1093.fits outfile=/scratch/kocevski/772036/cmap_522633601_522892801_4FGL_J1333.2+2725_daily_bin1093.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.60
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772036/ft1_filtered_4FGL_J1333.2+2725_daily_bin1093.fits scfile=/scratch/kocevski/772036/ft2_4FGL_J1333.2+2725_daily_bin1093.fits outfile=/scratch/kocevski/772036/cmap_HighResolution_522633601_522892801_4FGL_J1333.2+2725_daily_bin1093.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.61
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/772036/ft1_filtered_4FGL_J1333.2+2725_daily_bin1093.fits', '/scratch/kocevski/772036/ft2_4FGL_J1333.2+2725_daily_bin1093.fits', expMap='/scratch/kocevski/772036/expmap_522633601_522892801_4FGL_J1333.2+2725_daily_bin1093.fits', expCube='/scratch/kocevski/772036/ltcube_522633601_522892801_4FGL_J1333.2+2725_daily_bin1093.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/772036/Model_4FGL_J1333.2+2725_daily_bin1093.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  1.000e-04  1.000e+04 ( 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/772036/ft1_filtered_4FGL_J1333.2+2725_daily_bin1093.fits
Spacecraft file(s): /scratch/kocevski/772036/ft2_4FGL_J1333.2+2725_daily_bin1093.fits
Exposure map: /scratch/kocevski/772036/expmap_522633601_522892801_4FGL_J1333.2+2725_daily_bin1093.fits
Exposure cube: /scratch/kocevski/772036/ltcube_522633601_522892801_4FGL_J1333.2+2725_daily_bin1093.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/772036/Model_4FGL_J1333.2+2725_daily_bin1093.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) = 5866.64637347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4030       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.198       1.0000         .10000E-03   10000.    
     5 'norm      '    6.1632       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.108       1.0000         .10000E-03   10000.    
     7 'norm      '    5.2315       1.0000         .10000E-03   10000.    
     8 'norm      '    5.4077       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0311       1.0000         .10000E-03   10000.    
    10 'norm      '    7.2021       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4152       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.513       1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.246       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.512       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1024       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .59552E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2977       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70710       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=   5866.637     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     2950 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    230.79        .18142E-02** at limit **
   2  Prefactor     6.4026        6.8002        .15862E-03   -.22936E-05
   3  norm          .10000E-03    2.6347        .12092E-02** at limit **
   4  Prefactor     17.198        36.936        .96578E-04   -.36609E-04
   5  norm          6.1633        4.2077        .12435E-03   -.12708E-04
   6  Prefactor     23.108        20.087        .83327E-04   -.66853E-05
   7  norm          5.2315        5.0891        .16000E-03   -.14567E-04
   8  norm          5.4084        8.4474        .65218E-03    .66258E-04
   9  norm          1.0329        26.451        .39365E-03    .44273E-04
  10  norm          7.2014        16.005        .14947E-03   -.40313E-05
  11  Prefactor     3.4159        3.3968        .13118E-03   -.13953E-04
  12  Prefactor     .10000E-03    4.8720        .16502E-02** at limit **
  13  norm          14.512        7.9288        .10514E-03   -.22167E-04
  14  Prefactor     41.247        45.891        .62416E-04   -.18214E-06
  15  norm          .10000E-03    9.0819        .18142E-02** at limit **
  16  Prefactor     .10000E-03    5.6939        .17842E-02** at limit **
  17  Prefactor     54.515        30.216        .54327E-04   -.29297E-05
  18  Prefactor     .10000E-03    34.887        .18142E-02** at limit **
  19  Prefactor     2.1025        2.4041        .12352E-03    .46940E-05
  20  Prefactor     .10000E-03    19.483        .69348E-01** at limit **
  21  Prefactor     .10000E-03    1.7088        .97474E-03** at limit **
  22  Normalizat    1.2976        .22402        .22790E-03   -.14707E-03
  23  Prefactor     .70732        .21610        .30144E-03   -.39826E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.40257
  norm       = 0.0001
  Prefactor  = 17.1981
  norm       = 6.16325
  Prefactor  = 23.1077
  norm       = 5.23152
  norm       = 5.40843
  norm       = 1.03292
  norm       = 7.20138
  Prefactor  = 3.41585
  Prefactor  = 0.0001
  norm       = 14.5122
  Prefactor  = 41.2472
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.5148
  Prefactor  = 0.0001
  Prefactor  = 2.10249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29755
  Prefactor  = 0.707319
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.637     FROM HESSE     STATUS=OK           358 CALLS     3308 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    230.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4026        6.8000        .63447E-05   -1.5202    
   3  norm          .10000E-03    2.6349        .24185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.198        36.995        .38631E-05   -1.4878    
   5  norm          6.1633        4.2075        .49741E-05   -1.5211    
   6  Prefactor     23.108        20.089        .33331E-05   -1.4746    
   7  norm          5.2315        5.0885        .63998E-05   -1.5250    
   8  norm          5.4084        8.5790        .26087E-04   -1.5243    
   9  norm          1.0329        27.296        .15746E-04   -1.5505    
  10  norm          7.2014        16.006        .59787E-05   -1.5171    
  11  Prefactor     3.4159        3.3967        .52473E-05   -1.5338    
  12  Prefactor     .10000E-03    4.8721        .33004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.512        7.9284        .42054E-05   -1.4946    
  14  Prefactor     41.247        45.890        .12483E-04   -1.4423    
  15  norm          .10000E-03    9.0871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6940        .35685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     54.515        30.220        .21731E-05   -1.4230    
  18  Prefactor     .10000E-03    34.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1025        2.4041        .49408E-05   -1.5418    
  20  Prefactor     .10000E-03    15.914        .78494E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.7089        .19495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2976        .22430        .45579E-04   -.83639    
  23  Prefactor     .70732        .21623        .12058E-04   -1.0324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09061e-11
Minuit parameter uncertainties:
  1  0.000498052
  2  6.80083
  3  2.18766e-06
  4  37.0447
  5  4.20774
  6  20.095
  7  5.08895
  8  8.581
  9  10.6246
  10  16.015
  11  3.39687
  12  1.97929e-06
  13  7.92893
  14  45.9296
  15  8.626e-05
  16  2.72033e-06
  17  30.2288
  18  2.95148e-07
  19  2.40421
  20  6.17749e-05
  21  2.25825e-07
  22  0.224466
  23  0.216485
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  5.451e+01  3.023e+01  1.000e-04  1.000e+04 ( 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:  7.073e-01  2.165e-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.298e+00  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.73
Ra Dec: 203.323 27.422
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 7.83e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 2.90e-05 +/- 1.61e-05

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) = 5866.62795936
delta logL = 0.00940147830715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5866.62635423
delta logL = 0.0110065999552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.015       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2329       1.0000          .0000       10.000    
     3 'Normalizat'    1.3059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70227       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=   5866.626     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      300 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.013        32.864        .53597E-04    .25835E-04
   2  Index         2.2329        .56178        .75001E-02    .26965E-03
   3  Normalizat    1.3059        .22005        .22730E-03    .89028E-05
   4  Prefactor     .70227        .21502        .30242E-03    .58944E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.0132
  Index      = 2.23287
  Normalizat = 1.30589
  Prefactor  = 0.702269
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.626     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.013        32.530        .10719E-04   -1.4210    
   2  Index         2.2329        .55516        .15000E-02   -.58647    
   3  Normalizat    1.3059        .22014        .90921E-05   -.83391    
   4  Prefactor     .70227        .21515        .12097E-04   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11094e-11
Minuit parameter uncertainties:
  1  32.5399
  2  0.556821
  3  0.220299
  4  0.21541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772036': 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) = 5866.62635423
delta logL = 0.0110066026627

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  5.601e+01  3.254e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.233e+00  5.568e-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:  7.023e-01  2.154e-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.306e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.72
Ra Dec: 203.323 27.422
Photon Index (Free Index): 2.23 +/- 0.56
Photon Flux (Free Index): 7.12e-08 +/- 6.27e-08
Energy Flux (Free Index): 3.02e-05 +/- 1.93e-05

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/772036/cmap_HighResolution_522633601_522892801_4FGL_J1333.2+2725_daily_bin1093.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.83e-08', energy_flux2='3.02e-05', photon_flux_error='4.34e-08', dlogl='1.10e-02', energy_flux='2.90e-05', photon_flux2='7.12e-08', job_status='DONE', time_completed='2021-09-08 03:30:33.600975', photon_index_error2='0.56', photon_index2='2.23', ts='6.73', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='1.30', time_epoch_completed='1631097033.6', return_code='0', job_id='772036', GAL2='0.70', EG2='1.31', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='6.27e-08', ts2='6.72', photon_index='2.32' WHERE bin_id='1093' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:30:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 772036: <4FGL_J1333.2+2725_daily_bin1093> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1093> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 03:15:39 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:17:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 03:17:29 2021
Terminated at Wed Sep  8 03:30:34 2021
Results reported at Wed Sep  8 03:30:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1093 203.323 27.4221 522633601 522892801 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 :                                   600.61 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            895 sec.

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

