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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1116
RA = 203.323, Dec = 27.4221
tmin = 528595201, tmax = 528854401
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='772069', job_status='RUN', time_executed='2021-09-08 03:19:44.591440', time_epoch_executed='1631096384.59' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772069/ft1_4FGL_J1333.2+2725_daily_bin1116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772069/ft2_4FGL_J1333.2+2725_daily_bin1116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772069/ft1_4FGL_J1333.2+2725_daily_bin1116.fits outfile=/scratch/kocevski/772069/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1116.fits ra=203.323 dec=27.4221 rad=12.0 tmin=528595201.0 tmax=528854401.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.44
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772069/ft1_filtered_4FGL_J1333.2+2725_daily_bin1116.fits" evtable="EVENTS" scfile=/scratch/kocevski/772069/ft2_4FGL_J1333.2+2725_daily_bin1116.fits sctable="SC_DATA" outfile=/scratch/kocevski/772069/ltcube_528595201_528854401_4FGL_J1333.2+2725_daily_bin1116.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/772069/ft2_4FGL_J1333.2+2725_daily_bin1116.fits
.....................!
real 12.10
user 11.53
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772069/ft1_filtered_4FGL_J1333.2+2725_daily_bin1116.fits evtable="EVENTS" scfile=/scratch/kocevski/772069/ft2_4FGL_J1333.2+2725_daily_bin1116.fits sctable="SC_DATA" expcube=/scratch/kocevski/772069/ltcube_528595201_528854401_4FGL_J1333.2+2725_daily_bin1116.fits outfile=/scratch/kocevski/772069/expmap_528595201_528854401_4FGL_J1333.2+2725_daily_bin1116.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/772069/ltcube_528595201_528854401_4FGL_J1333.2+2725_daily_bin1116.fits
.....................!
real 191.98
user 186.40
sys 5.13

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/772069/ft1_filtered_4FGL_J1333.2+2725_daily_bin1116.fits scfile=/scratch/kocevski/772069/ft2_4FGL_J1333.2+2725_daily_bin1116.fits outfile=/scratch/kocevski/772069/cmap_528595201_528854401_4FGL_J1333.2+2725_daily_bin1116.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.58
user 0.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6084       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4842       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9035       1.0000         .10000E-03   10000.    
     7 'norm      '    7.5345       1.0000         .10000E-03   10000.    
     8 'norm      '    .21361       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    34.570       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    26.662       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.334       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.020       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.930       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.898       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.023       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3959       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76913       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1996       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=   5572.354     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2235 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6043        101.13       -.72774E-06   -.12429E-04
   2  Prefactor     .10000E-03    1.8786        .14928E-07** at limit **
   3  norm          .10000E-03    1.7317       -.35430E-07** at limit **
   4  Prefactor     .10000E-03    23.250       -.10260E-06** at limit **
   5  norm          2.4833        4.3015        .42474E-06   -.88105E-04
   6  Prefactor     7.9017        18.406       -.15269E-06   -.26796E-04
   7  norm          7.5348        6.7347       -.24547E-08   -.39893E-04
   8  norm          .21364        2.7577        .25883E-05   -.72596E-04
   9  norm          .10000E-03    4.2629       -.14533E-05** at limit **
  10  norm          34.571        31.278       -.58375E-07    .85698E-05
  11  Prefactor     .10000E-03    .99089       -.29791E-07** at limit **
  12  Prefactor     .10000E-03    5.0582       -.57183E-07** at limit **
  13  norm          26.662        12.336       -.18530E-07   -.16625E-04
  14  Prefactor     .10000E-03    18.325       -.49511E-07** at limit **
  15  norm          21.334        14.395        .59512E-07   -.16858E-04
  16  Prefactor     22.018        18.033       -.10922E-06   -.38791E-04
  17  Prefactor     14.924        18.017       -.11137E-06   -.70823E-04
  18  Prefactor     24.867        60.596       -.16123E-05   -.10490E-03
  19  Prefactor     .10000E-03    1.2167        .38033E-07** at limit **
  20  Prefactor     25.022        14.441        .87933E-07   -.28560E-04
  21  Prefactor     9.3960        4.8819        .33791E-07   -.54530E-05
  22  Normalizat    .76908        .18602        .73374E-06   -.11091E-03
  23  Prefactor     1.1997        .20067       -.11877E-05    .75792E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.60429
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.48327
  Prefactor  = 7.90168
  norm       = 7.53479
  norm       = 0.213636
  norm       = 0.000100001
  norm       = 34.5714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.6622
  Prefactor  = 0.0001
  norm       = 21.3335
  Prefactor  = 22.0177
  Prefactor  = 14.9239
  Prefactor  = 24.8667
  Prefactor  = 0.0001
  Prefactor  = 25.0219
  Prefactor  = 9.39599
  Normalizat = 0.769084
  Prefactor  = 1.19968
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.354     FROM HESSE     STATUS=OK           376 CALLS     2611 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6043        101.52        .16963E-03   -1.5234    
   2  Prefactor     .10000E-03    1.8796        .99917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7473        .95882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4833        4.2778        .19181E-03   -1.5393    
   6  Prefactor     7.9017        18.390        .14263E-03   -1.5146    
   7  norm          7.5348        6.7035        .14610E-03   -1.5159    
   8  norm          .21364        2.8985        .23992E-02   -1.5616    
   9  norm          .10000E-03    4.9488        .31673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          34.571        31.231        .68157E-04   -1.4531    
  11  Prefactor     .10000E-03    .99757        .72512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0766        .16396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          26.662        12.353        .77583E-04   -1.4675    
  14  Prefactor     .10000E-03    18.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.334        14.411        .86718E-04   -1.4784    
  16  Prefactor     22.018        18.058        .85359E-04   -1.4769    
  17  Prefactor     14.924        18.016        .10366E-03   -1.4935    
  18  Prefactor     24.867        61.096        .80279E-04   -1.4710    
  19  Prefactor     .10000E-03    1.2271        .80387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.022        14.451        .80079E-04   -1.4707    
  21  Prefactor     9.3960        4.8835        .11489E-03   -1.5095    
  22  Normalizat    .76908        .21733        .26488E-03   -1.0123    
  23  Prefactor     1.1997        .23414        .24528E-03   -.86341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51656e-08
Minuit parameter uncertainties:
  1  47.7988
  2  1.11697e-07
  3  2.16056e-06
  4  5.36477e-05
  5  4.27829
  6  18.403
  7  6.70413
  8  1.57355
  9  0.000148731
  10  31.2455
  11  1.85636e-06
  12  7.55719e-06
  13  12.3547
  14  8.71626e-06
  15  14.4134
  16  18.0625
  17  18.0227
  18  61.2507
  19  5.51267e-08
  20  14.4527
  21  4.88368
  22  0.217577
  23  0.234348
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.492e+01  1.802e+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.200e+00  2.343e-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:  7.691e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 203.323 27.422
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.14e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 7.93e-06 +/- 9.57e-06

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

Saving results to:
/scratch/kocevski/772069/likelihoodResults_528595201_528854401_4FGL_J1333.2+2725_daily_bin1116.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) = 5572.30146655
delta logL = 0.0529959595788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5572.30012553
delta logL = 0.0543369782336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.525       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9430       1.0000          .0000       10.000    
     3 'Normalizat'    .78019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1922       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=   5572.300     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      195 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.545        19.349        .25413E-02    .68035E-04
   2  Index         1.9460        1.0414        .26128E-01   -.29797E-03
   3  Normalizat    .78004        .17368        .43351E-01    .13177E-04
   4  Prefactor     1.1923        .19586        .55619E-01   -.34838E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5446
  Index      = 1.94601
  Normalizat = 0.780043
  Prefactor  = 1.19229
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.300     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.545        19.629        .50825E-03   -1.4919    
   2  Index         1.9460        1.0601        .52256E-02   -.65707    
   3  Normalizat    .78004        .20453        .26321E-03   -1.0081    
   4  Prefactor     1.1923        .23064        .24593E-03   -.86569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93288e-12
Minuit parameter uncertainties:
  1  19.6374
  2  1.07323
  3  0.20473
  4  0.230837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772069': 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) = 5572.30012138
delta logL = 0.0543411278231

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.554e+01  1.964e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.946e+00  1.073e+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:  1.192e+00  2.308e-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:  7.800e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 203.323 27.422
Photon Index (Free Index): 1.95 +/- 1.07
Photon Flux (Free Index): 1.34e-08 +/- 2.69e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.86e-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/772069/cmap_HighResolution_528595201_528854401_4FGL_J1333.2+2725_daily_bin1116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', comment='SUCCESS', photon_flux='2.14e-08', energy_flux2='1.07e-05', photon_flux_error='2.59e-08', dlogl='5.43e-02', energy_flux='7.93e-06', photon_flux2='1.34e-08', job_status='DONE', time_completed='2021-09-08 03:30:41.939498', photon_index_error2='1.07', photon_index2='1.95', ts='1.31', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='8.81e-08', energy_flux_error2='1.86e-05', EG='0.77', time_epoch_completed='1631097041.94', return_code='0', job_id='772069', GAL2='1.19', EG2='0.78', return_code2='0', energy_flux_error='9.57e-06', photon_flux_error2='2.69e-08', ts2='1.42', photon_index='2.32' WHERE bin_id='1116' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:30:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 772069: <4FGL_J1333.2+2725_daily_bin1116> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1116 203.323 27.4221 528595201 528854401 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 :                                   588.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            901 sec.

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

