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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin490
RA = 203.323, Dec = 27.4221
tmin = 366336001, tmax = 366595201
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='768291', job_status='RUN', time_executed='2021-09-08 03:07:57.180111', time_epoch_executed='1631095677.18' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/768291

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/768291/ft1_4FGL_J1333.2+2725_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/768291/ft2_4FGL_J1333.2+2725_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/768291/ft1_4FGL_J1333.2+2725_daily_bin490.fits outfile=/scratch/kocevski/768291/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin490.fits ra=203.323 dec=27.4221 rad=12.0 tmin=366336001.0 tmax=366595201.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 4.57
user 4.23
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/768291/ft1_filtered_4FGL_J1333.2+2725_daily_bin490.fits" evtable="EVENTS" scfile=/scratch/kocevski/768291/ft2_4FGL_J1333.2+2725_daily_bin490.fits sctable="SC_DATA" outfile=/scratch/kocevski/768291/ltcube_366336001_366595201_4FGL_J1333.2+2725_daily_bin490.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/768291/ft2_4FGL_J1333.2+2725_daily_bin490.fits
.....................!
real 10.31
user 9.92
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/768291/ft1_filtered_4FGL_J1333.2+2725_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/768291/ft2_4FGL_J1333.2+2725_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/768291/ltcube_366336001_366595201_4FGL_J1333.2+2725_daily_bin490.fits outfile=/scratch/kocevski/768291/expmap_366336001_366595201_4FGL_J1333.2+2725_daily_bin490.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/768291/ltcube_366336001_366595201_4FGL_J1333.2+2725_daily_bin490.fits
.....................!
real 156.64
user 150.84
sys 4.55

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/768291/ft1_filtered_4FGL_J1333.2+2725_daily_bin490.fits scfile=/scratch/kocevski/768291/ft2_4FGL_J1333.2+2725_daily_bin490.fits outfile=/scratch/kocevski/768291/cmap_366336001_366595201_4FGL_J1333.2+2725_daily_bin490.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.48
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/768291/ft1_filtered_4FGL_J1333.2+2725_daily_bin490.fits scfile=/scratch/kocevski/768291/ft2_4FGL_J1333.2+2725_daily_bin490.fits outfile=/scratch/kocevski/768291/cmap_HighResolution_366336001_366595201_4FGL_J1333.2+2725_daily_bin490.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.48
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9116       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.6558       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    69.281       1.0000         .10000E-03   10000.    
    15 'norm      '    10.452       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5684       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.674       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30235E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .56690       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.343       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7433       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1979       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84223       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=   5481.428     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2514 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    86.181        .25319E-06** at limit **
   2  Prefactor     5.9152        8.7775        .30263E-06   -.11562E-05
   3  norm          1.7198        5.2409        .13519E-05    .21469E-04
   4  Prefactor     .10000E-03    18.783       -.12682E-06** at limit **
   5  norm          7.6568        4.4956        .29806E-07    .21465E-04
   6  Prefactor     .10000E-03    6.4255       -.83172E-07** at limit **
   7  norm          .10000E-03    3.5248       -.19795E-06** at limit **
   8  norm          .10000E-03    3.4978       -.24578E-06** at limit **
   9  norm          .10000E-03    2.1974       -.40302E-07** at limit **
  10  norm          .10000E-03    6.5439        .35392E-07** at limit **
  11  Prefactor     .10000E-03    1.5894       -.78827E-06** at limit **
  12  Prefactor     .10000E-03    10.201       -.84774E-06** at limit **
  13  norm          .10000E-03    6.4855        .16219E-06** at limit **
  14  Prefactor     69.225        73.572       -.10951E-05   -.11783E-03
  15  norm          10.459        9.3953        .16347E-06   -.13297E-04
  16  Prefactor     5.5662        15.634        .59972E-05   -.61247E-04
  17  Prefactor     34.680        28.623       -.10404E-05    .31452E-04
  18  Prefactor     .10001E-03    243.48       -.34311E-05** at limit **
  19  Prefactor     .56672        3.2439       -.17628E-06    .18863E-04
  20  Prefactor     35.350        17.406        .17032E-06   -.48270E-04
  21  Prefactor     6.7447        5.9833        .99629E-07   -.27953E-05
  22  Normalizat    1.1976        .19149        .22306E-06   -.11016E-04
  23  Prefactor     .84225        .19070       -.16004E-05    .50396E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.91524
  norm       = 1.71977
  Prefactor  = 0.0001
  norm       = 7.65683
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 69.2248
  norm       = 10.4587
  Prefactor  = 5.56617
  Prefactor  = 34.6802
  Prefactor  = 0.000100009
  Prefactor  = 0.566721
  Prefactor  = 35.3496
  Prefactor  = 6.74466
  Normalizat = 1.19762
  Prefactor  = 0.842252
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.428     FROM HESSE     STATUS=OK           372 CALLS     2886 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.9152        8.7666        .16516E-03   -1.5221    
   3  norm          1.7198        5.2398        .28029E-03   -1.5446    
   4  Prefactor     .10000E-03    18.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.6568        4.4957        .11518E-03   -1.5154    
   6  Prefactor     .10000E-03    6.4309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.6551        .27133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.6129        .26986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.2033        .10717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.5457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.5937        .90863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.6245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     69.225        73.750        .24113E-03   -1.4042    
  15  norm          10.459        9.3652        .12393E-03   -1.5061    
  16  Prefactor     5.5662        15.687        .85126E-03   -1.5236    
  17  Prefactor     34.680        28.685        .68055E-04   -1.4529    
  18  Prefactor     .10001E-03    244.52        .21386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .56672        5.8420        .24979E-02   -1.5557    
  20  Prefactor     35.350        17.431        .67409E-04   -1.4518    
  21  Prefactor     6.7447        5.9923        .15452E-03   -1.5188    
  22  Normalizat    1.1976        .22740        .23346E-03   -.86676    
  23  Prefactor     .84225        .22431        .28207E-03   -.98189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47166e-10
Minuit parameter uncertainties:
  1  1.78785e-05
  2  8.7685
  3  5.24119
  4  4.31931e-05
  5  4.49588
  6  1.09017e-06
  7  7.04515e-06
  8  1.21825e-05
  9  2.15883e-06
  10  8.35076e-07
  11  5.79984e-06
  12  6.27459e-06
  13  4.81958e-06
  14  73.848
  15  9.36652
  16  15.6982
  17  28.6959
  18  0.00293624
  19  3.63926
  20  17.4339
  21  5.9928
  22  0.227589
  23  0.224552
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  3.468e+01  2.870e+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.423e-01  2.246e-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.198e+00  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 203.323 27.422
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.98e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.52e-05

TS (Fixed Index): 2.25
Ra Dec: 203.323 27.422
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/768291/likelihoodResults_366336001_366595201_4FGL_J1333.2+2725_daily_bin490.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) = 5481.41186768
delta logL = 0.0158553175697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5481.40194852
delta logL = 0.0257744797318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.939       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0786       1.0000          .0000       10.000    
     3 'Normalizat'    1.2109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83235       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=   5481.402     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      225 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.873        979.40        .16058E-02    .66809E-04
   2  Index         2.0779        5.0055        .18912        .24680E-05
   3  Normalizat    1.2110        .15257        .52547E-01    .54452E-05
   4  Prefactor     .83271        .91891E-01    .64087E-01    .16389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.8733
  Index      = 2.07786
  Normalizat = 1.211
  Prefactor  = 0.832706
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.402     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .87E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.873        33.012        .32116E-03   -1.4460    
   2  Index         2.0779        .92366        .10503E-01   -.62417    
   3  Normalizat    1.2110        .22028        .23233E-03   -.86264    
   4  Prefactor     .83271        .22279        .28347E-03   -.98534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70794e-14
Minuit parameter uncertainties:
  1  33.0271
  2  0.931829
  3  0.220453
  4  0.223029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/768291': 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) = 5481.4019386
delta logL = 0.0257843965164

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  3.887e+01  3.303e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.078e+00  9.318e-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:  8.327e-01  2.230e-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.211e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 203.323 27.422
Photon Index (Free Index): 2.08 +/- 0.93
Photon Flux (Free Index): 3.98e-08 +/- 5.12e-08
Energy Flux (Free Index): 2.29e-05 +/- 3.08e-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/768291/cmap_HighResolution_366336001_366595201_4FGL_J1333.2+2725_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.98e-08', energy_flux2='2.29e-05', photon_flux_error='4.12e-08', dlogl='2.58e-02', energy_flux='1.84e-05', photon_flux2='3.98e-08', job_status='DONE', time_completed='2021-09-08 03:16:15.925690', photon_index_error2='0.93', photon_index2='2.08', ts='2.25', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='3.08e-05', EG='1.20', time_epoch_completed='1631096175.93', return_code='0', job_id='768291', GAL2='0.83', EG2='1.21', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='5.12e-08', ts2='2.28', photon_index='2.32' WHERE bin_id='490' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:16:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 768291: <4FGL_J1333.2+2725_daily_bin490> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin490> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 03:05:45 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:07:46 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:07:46 2021
Terminated at Wed Sep  8 03:16:16 2021
Results reported at Wed Sep  8 03:16:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin490 203.323 27.4221 366336001 366595201 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 :                                   488.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   510 sec.
    Turnaround time :                            631 sec.

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

