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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1011
RA = 203.323, Dec = 27.4221
tmin = 501379201, tmax = 501638401
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='771917', job_status='RUN', time_executed='2021-09-08 03:16:49.948101', time_epoch_executed='1631096209.95' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771917

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771917/ft1_4FGL_J1333.2+2725_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771917/ft2_4FGL_J1333.2+2725_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771917/ft1_4FGL_J1333.2+2725_daily_bin1011.fits outfile=/scratch/kocevski/771917/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1011.fits ra=203.323 dec=27.4221 rad=12.0 tmin=501379201.0 tmax=501638401.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.57
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/771917/ft1_filtered_4FGL_J1333.2+2725_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/771917/ft2_4FGL_J1333.2+2725_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/771917/ltcube_501379201_501638401_4FGL_J1333.2+2725_daily_bin1011.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/771917/ft2_4FGL_J1333.2+2725_daily_bin1011.fits
.....................!
real 13.10
user 12.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771917/ft1_filtered_4FGL_J1333.2+2725_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/771917/ft2_4FGL_J1333.2+2725_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/771917/ltcube_501379201_501638401_4FGL_J1333.2+2725_daily_bin1011.fits outfile=/scratch/kocevski/771917/expmap_501379201_501638401_4FGL_J1333.2+2725_daily_bin1011.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/771917/ltcube_501379201_501638401_4FGL_J1333.2+2725_daily_bin1011.fits
.....................!
real 191.09
user 185.48
sys 5.21

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/771917/ft1_filtered_4FGL_J1333.2+2725_daily_bin1011.fits scfile=/scratch/kocevski/771917/ft2_4FGL_J1333.2+2725_daily_bin1011.fits outfile=/scratch/kocevski/771917/cmap_501379201_501638401_4FGL_J1333.2+2725_daily_bin1011.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.63
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771917/ft1_filtered_4FGL_J1333.2+2725_daily_bin1011.fits scfile=/scratch/kocevski/771917/ft2_4FGL_J1333.2+2725_daily_bin1011.fits outfile=/scratch/kocevski/771917/cmap_HighResolution_501379201_501638401_4FGL_J1333.2+2725_daily_bin1011.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12146E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10794E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1550       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .37442E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    15.845       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0389       1.0000         .10000E-03   10000.    
     8 'norm      '    .56380       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    30.118       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5608       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.773       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8086       1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2443       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.901       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9171       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25466E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.165       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1985       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80791       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=   5834.910     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2263 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    164.98       -.89232E-06** at limit **
   2  Prefactor     .10000E-03    5.3203       -.91413E-06** at limit **
   3  norm          4.1743        5.5058        .32076E-06   -.76565E-04
   4  Prefactor     .10020E-03    19.462        .14175E-05** at limit **
   5  norm          15.843        5.4800        .77142E-07    .27901E-03
   6  Prefactor     .10000E-03    7.2549       -.29814E-07** at limit **
   7  norm          2.0397        2.9229        .89109E-07    .67889E-04
   8  norm          .56145        1.7726        .70832E-06    .32010E-03
   9  norm          .10000E-03    2.9897       -.26845E-06** at limit **
  10  norm          30.106        22.675       -.77266E-07    .31432E-04
  11  Prefactor     4.5616        2.9113        .12495E-06    .15346E-03
  12  Prefactor     .10000E-03    3.9301       -.60907E-08** at limit **
  13  norm          11.769        6.8557        .15039E-07    .91743E-04
  14  Prefactor     2.8340        297.06        .40119E-05    .14547E-04
  15  norm          .10000E-03    2.8736       -.21091E-06** at limit **
  16  Prefactor     5.2380        13.326        .76875E-06    .81145E-04
  17  Prefactor     21.879        20.973        .60112E-07    .65966E-04
  18  Prefactor     8.0661        263.46       -.37436E-05    .23293E-05
  19  Prefactor     .10003E-03    2.3363       -.90903E-06** at limit **
  20  Prefactor     19.168        12.600       -.14077E-06    .66009E-04
  21  Prefactor     .10000E-03    2.2138       -.36116E-06** at limit **
  22  Normalizat    1.1989        .19601       -.23307E-05    .58893E-03
  23  Prefactor     .80750        .19961        .45270E-05    .44416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.17427
  Prefactor  = 0.000100198
  norm       = 15.8426
  Prefactor  = 0.0001
  norm       = 2.03971
  norm       = 0.561447
  norm       = 0.0001
  norm       = 30.1059
  Prefactor  = 4.56163
  Prefactor  = 0.0001
  norm       = 11.7694
  Prefactor  = 2.83402
  norm       = 0.0001
  Prefactor  = 5.23802
  Prefactor  = 21.8785
  Prefactor  = 8.06615
  Prefactor  = 0.000100033
  Prefactor  = 19.1681
  Prefactor  = 0.0001
  Normalizat = 1.19892
  Prefactor  = 0.807499
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.910     FROM HESSE     STATUS=OK           376 CALLS     2639 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    165.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.939        .33478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1743        5.1334        .18052E-03   -1.5299    
   4  Prefactor     .10020E-03    81.274        .57038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.843        5.4641        .10008E-03   -1.4912    
   6  Prefactor     .10000E-03    7.2934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0397        2.9020        .15154E-03   -1.5422    
   8  norm          .56145        1.7070        .17042E-03   -1.5558    
   9  norm          .10000E-03    3.0649        .12903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          30.106        22.671        .73007E-04   -1.4610    
  11  Prefactor     4.5616        2.8801        .96290E-04   -1.5281    
  12  Prefactor     .10000E-03    3.9367        .14787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.769        6.8508        .11675E-03   -1.5022    
  14  Prefactor     2.8340        289.91        .24273E-03   -1.5371    
  15  norm          .10000E-03    2.8821        .12650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2380        13.262        .17552E-03   -1.5250    
  17  Prefactor     21.879        20.961        .85590E-04   -1.4772    
  18  Prefactor     8.0661        260.73        .14250E-03   -1.5140    
  19  Prefactor     .10003E-03    14.298        .20387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.168        12.596        .91490E-04   -1.4832    
  21  Prefactor     .10000E-03    5.0929        .21919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1989        .20532        .22037E-03   -.86636    
  23  Prefactor     .80750        .20944        .28385E-03   -.99453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08799e-09
Minuit parameter uncertainties:
  1  0.000574971
  2  0.000149135
  3  5.13394
  4  0.00803293
  5  5.46425
  6  6.726e-06
  7  2.90215
  8  1.70715
  9  2.89956e-05
  10  22.6777
  11  2.88019
  12  5.04715e-06
  13  6.85124
  14  57.6158
  15  1.07463e-05
  16  13.2696
  17  20.968
  18  92.1595
  19  0.00138091
  20  12.5981
  21  5.99653e-05
  22  0.205455
  23  0.209642
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  2.188e+01  2.097e+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:  8.075e-01  2.096e-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.199e+00  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.94
Ra Dec: 203.323 27.422
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.14e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 1.11e-05

TS (Fixed Index): 1.94
Ra Dec: 203.323 27.422
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/771917/likelihoodResults_501379201_501638401_4FGL_J1333.2+2725_daily_bin1011.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) = 5834.89682013
delta logL = 0.0129253858231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5834.88328213
delta logL = 0.0264633918414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.067       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6575       1.0000          .0000       10.000    
     3 'Normalizat'    1.1823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81974       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.

 FCN=   5834.883     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      235 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.006        402.26        .24237E-02    .93101E-04
   2  Index         2.6621        6.2003        .15111        .11320E-03
   3  Normalizat    1.1823        .93811E-01    .35340E-01   -.22891E-05
   4  Prefactor     .81975        .66723E-01    .63752E-01    .33850E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0062
  Index      = 2.66211
  Normalizat = 1.18229
  Prefactor  = 0.819747
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.883     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.006        49.253        .96947E-04   -1.4883    
   2  Index         2.6621        2.5187        .92296E-02   -.48655    
   3  Normalizat    1.1823        .23152        .22170E-03   -.87152    
   4  Prefactor     .81975        .22983        .28198E-03   -.99004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82702e-11
Minuit parameter uncertainties:
  1  49.3711
  2  2.6799
  3  0.231718
  4  0.230098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771917': 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) = 5834.88327751
delta logL = 0.0264680048285

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.701e+01  4.937e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.662e+00  2.680e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  8.197e-01  2.301e-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.182e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 203.323 27.422
Photon Index (Free Index): 2.66 +/- 2.68
Photon Flux (Free Index): 4.24e-08 +/- 8.12e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.11e-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/771917/cmap_HighResolution_501379201_501638401_4FGL_J1333.2+2725_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', comment='SUCCESS', photon_flux='3.14e-08', energy_flux2='1.05e-05', photon_flux_error='3.01e-08', dlogl='2.65e-02', energy_flux='1.16e-05', photon_flux2='4.24e-08', job_status='DONE', time_completed='2021-09-08 03:27:02.151782', photon_index_error2='2.68', photon_index2='2.66', ts='1.94', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.11e-05', EG='1.20', time_epoch_completed='1631096822.15', return_code='0', job_id='771917', GAL2='0.82', EG2='1.18', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='8.12e-08', ts2='2.01', photon_index='2.32' WHERE bin_id='1011' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:27:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 771917: <4FGL_J1333.2+2725_daily_bin1011> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1011> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 03:15:32 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:16:40 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:16:40 2021
Terminated at Wed Sep  8 03:27:02 2021
Results reported at Wed Sep  8 03:27:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1011 203.323 27.4221 501379201 501638401 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 :                                   608.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            690 sec.

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

