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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin785
RA = 203.323, Dec = 27.4221
tmin = 442800001, tmax = 443059201
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='770439', job_status='RUN', time_executed='2021-09-08 03:13:07.996778', time_epoch_executed='1631095988.0' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/770439

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/770439/ft1_4FGL_J1333.2+2725_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/770439/ft2_4FGL_J1333.2+2725_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/770439/ft1_4FGL_J1333.2+2725_daily_bin785.fits outfile=/scratch/kocevski/770439/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin785.fits ra=203.323 dec=27.4221 rad=12.0 tmin=442800001.0 tmax=443059201.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.59
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/770439/ft1_filtered_4FGL_J1333.2+2725_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/770439/ft2_4FGL_J1333.2+2725_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/770439/ltcube_442800001_443059201_4FGL_J1333.2+2725_daily_bin785.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/770439/ft2_4FGL_J1333.2+2725_daily_bin785.fits
.....................!
real 13.63
user 13.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/770439/ft1_filtered_4FGL_J1333.2+2725_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/770439/ft2_4FGL_J1333.2+2725_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/770439/ltcube_442800001_443059201_4FGL_J1333.2+2725_daily_bin785.fits outfile=/scratch/kocevski/770439/expmap_442800001_443059201_4FGL_J1333.2+2725_daily_bin785.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/770439/ltcube_442800001_443059201_4FGL_J1333.2+2725_daily_bin785.fits
.....................!
real 190.88
user 185.56
sys 4.77

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/770439/ft1_filtered_4FGL_J1333.2+2725_daily_bin785.fits scfile=/scratch/kocevski/770439/ft2_4FGL_J1333.2+2725_daily_bin785.fits outfile=/scratch/kocevski/770439/cmap_442800001_443059201_4FGL_J1333.2+2725_daily_bin785.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.61
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/770439/ft1_filtered_4FGL_J1333.2+2725_daily_bin785.fits scfile=/scratch/kocevski/770439/ft2_4FGL_J1333.2+2725_daily_bin785.fits outfile=/scratch/kocevski/770439/cmap_HighResolution_442800001_443059201_4FGL_J1333.2+2725_daily_bin785.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.686       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2769       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5515       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.019       1.0000         .10000E-03   10000.    
     7 'norm      '    8.0699       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.083       1.0000         .10000E-03   10000.    
    10 'norm      '    6.5362       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.959       1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.243       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3002       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.647       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0781       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8254       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1655       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99952       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2164       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.

 FCN=   6442.266     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2535 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.699        78.843       -.77963E-06   -.19712E-04
   2  Prefactor     .10000E-03    4.3426        .80097E-07** at limit **
   3  norm          1.2758        3.6429        .99164E-06    .20193E-05
   4  Prefactor     .10000E-03    12.375       -.14468E-06** at limit **
   5  norm          4.5514        3.7358        .63680E-07   -.88501E-04
   6  Prefactor     28.021        19.733       -.22548E-06   -.16702E-03
   7  norm          8.0698        6.0522        .89265E-07    .40657E-05
   8  norm          .10000E-03    1.7543        .10266E-07** at limit **
   9  norm          11.082        5.8060       -.18665E-07   -.83894E-05
  10  norm          6.5357        12.392        .22804E-05   -.37172E-04
  11  Prefactor     .10000E-03    1.2544       -.20049E-07** at limit **
  12  Prefactor     .10000E-03    3.4420       -.46029E-08** at limit **
  13  norm          .10000E-03    1.7847        .25112E-07** at limit **
  14  Prefactor     46.964        50.478        .12034E-06    .74937E-05
  15  norm          .10000E-03    3.0455        .73550E-07** at limit **
  16  Prefactor     14.245        13.544       -.10456E-06   -.92432E-04
  17  Prefactor     7.3003        11.826        .14436E-06    .30205E-04
  18  Prefactor     11.385        114.81       -.71465E-07   -.80942E-05
  19  Prefactor     2.0786        4.0052        .60734E-06   -.17136E-04
  20  Prefactor     8.8218        11.062        .14160E-06   -.10041E-03
  21  Prefactor     1.1649        3.7902        .14827E-05   -.34261E-04
  22  Normalizat    .99931        .17617        .17541E-06   -.10188E-03
  23  Prefactor     1.2167        .18817       -.10178E-05   -.16887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.6985
  Prefactor  = 0.0001
  norm       = 1.27579
  Prefactor  = 0.0001
  norm       = 4.55139
  Prefactor  = 28.0213
  norm       = 8.0698
  norm       = 0.0001
  norm       = 11.0818
  norm       = 6.53571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.9643
  norm       = 0.0001
  Prefactor  = 14.2447
  Prefactor  = 7.30027
  Prefactor  = 11.3854
  Prefactor  = 2.07864
  Prefactor  = 8.82177
  Prefactor  = 1.1649
  Normalizat = 0.999306
  Prefactor  = 1.2167
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.266     FROM HESSE     STATUS=OK           372 CALLS     2907 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.699        78.247        .49897E-04   -1.4098    
   2  Prefactor     .10000E-03    4.4088        .16333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2758        3.5981        .24141E-03   -1.5482    
   4  Prefactor     .10000E-03    12.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5514        3.7307        .13527E-03   -1.5281    
   6  Prefactor     28.021        19.734        .75685E-04   -1.4649    
   7  norm          8.0698        6.0440        .14114E-03   -1.5140    
   8  norm          .10000E-03    1.7708        .10324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.082        5.7750        .12034E-03   -1.5042    
  10  norm          6.5357        12.374        .78486E-03   -1.5197    
  11  Prefactor     .10000E-03    1.2747        .87670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4460        .14542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7908        .10470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.964        50.500        .58512E-04   -1.4336    
  15  norm          .10000E-03    3.0651        .13678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.245        13.559        .10613E-03   -1.4953    
  17  Prefactor     7.3003        11.818        .14845E-03   -1.5168    
  18  Prefactor     11.385        115.65        .11738E-03   -1.5033    
  19  Prefactor     2.0786        4.0073        .20952E-03   -1.5420    
  20  Prefactor     8.8218        11.065        .13492E-03   -1.5114    
  21  Prefactor     1.1649        3.7916        .27093E-03   -1.5492    
  22  Normalizat    .99931        .20768        .24996E-03   -.93054    
  23  Prefactor     1.2167        .22045        .25577E-03   -.85819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87077e-11
Minuit parameter uncertainties:
  1  78.3713
  2  2.15674e-06
  3  3.59866
  4  1.26763e-05
  5  3.73089
  6  19.7383
  7  6.04444
  8  5.80438e-07
  9  5.7753
  10  12.3784
  11  3.26988e-07
  12  1.38388e-07
  13  1.07839e-06
  14  50.5457
  15  3.98604e-07
  16  13.5622
  17  11.8219
  18  72.7559
  19  4.00779
  20  11.0671
  21  3.79239
  22  0.207846
  23  0.22062
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  7.300e+00  1.182e+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:  1.217e+00  2.206e-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.993e-01  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/770439/likelihoodResults_442800001_443059201_4FGL_J1333.2+2725_daily_bin785.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) = 6442.25352975
delta logL = 0.0122372386422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6442.24928513
delta logL = 0.0164818575868

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5938       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1307       1.0000          .0000       10.000    
     3 'Normalizat'    1.0009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2154       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=   6442.249     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5944        14.986        .13674E-03   -.21725E-03
   2  Index         2.1306        .99199        .13241E-01   -.72711E-04
   3  Normalizat    1.0009        .19460        .24977E-03    .84295E-04
   4  Prefactor     1.2153        .21785        .25588E-03    .89882E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.59439
  Index      = 2.1306
  Normalizat = 1.00089
  Prefactor  = 1.21535
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.249     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5944        14.561        .54696E-05   -1.5122    
   2  Index         2.1306        .96484        .52964E-03   -.61123    
   3  Normalizat    1.0009        .19476        .99910E-05   -.93001    
   4  Prefactor     1.2153        .21803        .10235E-04   -.85860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32642e-10
Minuit parameter uncertainties:
  1  14.567
  2  0.974
  3  0.194901
  4  0.218189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/770439': 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) = 6442.24928513
delta logL = 0.0164818636385

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  8.594e+00  1.457e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.131e+00  9.740e-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.215e+00  2.182e-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.001e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.55
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/770439/cmap_HighResolution_442800001_443059201_4FGL_J1333.2+2725_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', job_status='DONE', photon_flux_upper_limit='6.01e-08', time_completed='2021-09-08 03:23:58.180706', job_id='770439', GAL2='1.22', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631096638.18', return_code2='0', ts='0.55', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.65e-02', ts2='0.58', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='785' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:23:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 770439: <4FGL_J1333.2+2725_daily_bin785> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin785> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 03:10:36 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:11:05 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:11:05 2021
Terminated at Wed Sep  8 03:23:58 2021
Results reported at Wed Sep  8 03:23:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin785 203.323 27.4221 442800001 443059201 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 :                                   647.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            802 sec.

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

