/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 5 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1333.2+2725_daily_bin337
RA = 203.323, Dec = 27.4221
tmin = 326678401, tmax = 326937601
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='767928', job_status='RUN', time_executed='2021-09-08 03:06:59.165608', time_epoch_executed='1631095619.17' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/767928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/767928/ft1_4FGL_J1333.2+2725_daily_bin337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/767928/ft2_4FGL_J1333.2+2725_daily_bin337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/767928/ft1_4FGL_J1333.2+2725_daily_bin337.fits outfile=/scratch/kocevski/767928/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin337.fits ra=203.323 dec=27.4221 rad=12.0 tmin=326678401.0 tmax=326937601.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.49
user 3.23
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/767928/ft1_filtered_4FGL_J1333.2+2725_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/767928/ft2_4FGL_J1333.2+2725_daily_bin337.fits sctable="SC_DATA" expcube=/scratch/kocevski/767928/ltcube_326678401_326937601_4FGL_J1333.2+2725_daily_bin337.fits outfile=/scratch/kocevski/767928/expmap_326678401_326937601_4FGL_J1333.2+2725_daily_bin337.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/767928/ltcube_326678401_326937601_4FGL_J1333.2+2725_daily_bin337.fits
.....................!
real 194.95
user 188.29
sys 5.09

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/767928/ft1_filtered_4FGL_J1333.2+2725_daily_bin337.fits scfile=/scratch/kocevski/767928/ft2_4FGL_J1333.2+2725_daily_bin337.fits outfile=/scratch/kocevski/767928/cmap_326678401_326937601_4FGL_J1333.2+2725_daily_bin337.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/767928/ft1_filtered_4FGL_J1333.2+2725_daily_bin337.fits scfile=/scratch/kocevski/767928/ft2_4FGL_J1333.2+2725_daily_bin337.fits outfile=/scratch/kocevski/767928/cmap_HighResolution_326678401_326937601_4FGL_J1333.2+2725_daily_bin337.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.59
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10896E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11296E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0157       1.0000         .10000E-03   10000.    
     7 'norm      '    7.8395       1.0000         .10000E-03   10000.    
     8 'norm      '    .10521E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.3649       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.610       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2526       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7178       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.920       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.827       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .94356       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97147       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0301       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=   5642.225     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2158 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.666        55.792       -.60993E-04   -.22790E-04
   2  Prefactor     .10000E-03    2.5903       -.29603E-07** at limit **
   3  norm          .10000E-03    1.3429        .33886E-06** at limit **
   4  Prefactor     .10000E-03    18.787        .35171E-05** at limit **
   5  norm          .10000E-03    .93711       -.55994E-07** at limit **
   6  Prefactor     3.0159        21.518       -.21406E-06   -.92041E-04
   7  norm          7.8377        5.9283       -.72264E-06   -.23300E-03
   8  norm          .10000E-03    2.0756        .52079E-06** at limit **
   9  norm          6.3463        5.4135        .74024E-06   -.38407E-03
  10  norm          .10000E-03    8.9583        .24894E-05** at limit **
  11  Prefactor     .10000E-03    1.3944        .28290E-07** at limit **
  12  Prefactor     13.595        11.721        .12551E-06   -.95348E-04
  13  norm          3.2524        5.6588        .27016E-05   -.44698E-03
  14  Prefactor     .10000E-03    17.612       -.18882E-05** at limit **
  15  norm          5.7185        7.5602        .59773E-06   -.18880E-03
  16  Prefactor     .10000E-03    13.620       -.23711E-05** at limit **
  17  Prefactor     39.930        23.725        .61603E-05    .77843E-04
  18  Prefactor     .10000E-03    34.205        .14436E-05** at limit **
  19  Prefactor     .10000E-03    2.0063       -.11058E-05** at limit **
  20  Prefactor     12.827        11.093       -.43320E-06   -.29606E-04
  21  Prefactor     .94193        2.3637       -.59425E-06   -.13366E-02
  22  Normalizat    .97115        .17073        .21196E-05    .38329E-04
  23  Prefactor     1.0305        .18248       -.39083E-06    .16635E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.6661
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.01587
  norm       = 7.83773
  norm       = 0.0001
  norm       = 6.34626
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5948
  norm       = 3.25238
  Prefactor  = 0.0001
  norm       = 5.71852
  Prefactor  = 0.0001
  Prefactor  = 39.9304
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 12.8268
  Prefactor  = 0.94193
  Normalizat = 0.971149
  Prefactor  = 1.03049
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.225     FROM HESSE     STATUS=OK           370 CALLS     2528 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.666        55.835        .25334E-03   -1.4123    
   2  Prefactor     .10000E-03    2.6085        .11806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.3487        .85014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .93972        .71006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0159        21.106        .23371E-03   -1.5361    
   7  norm          7.8377        5.8674        .14213E-03   -1.5148    
   8  norm          .10000E-03    8.6846        .19002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.3463        5.0623        .14613E-03   -1.5204    
  10  norm          .10000E-03    8.9752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.4073        .86444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.595        11.600        .10857E-03   -1.4970    
  13  norm          3.2524        5.6060        .21208E-03   -1.5347    
  14  Prefactor     .10000E-03    17.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7185        7.5127        .16798E-03   -1.5230    
  16  Prefactor     .10000E-03    13.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.930        23.784        .63441E-04   -1.4443    
  18  Prefactor     .10000E-03    34.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8577        .20283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.827        11.093        .11184E-03   -1.4992    
  21  Prefactor     .94193        1.9510        .17797E-02   -1.5514    
  22  Normalizat    .97115        .19608        .22855E-03   -.94003    
  23  Prefactor     1.0305        .21231        .24755E-03   -.91720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71282e-09
Minuit parameter uncertainties:
  1  55.8816
  2  2.74986e-06
  3  4.15601e-05
  4  0.00026818
  5  1.31547e-06
  6  15.9642
  7  5.86779
  8  3.73591e-05
  9  5.06262
  10  2.58575e-05
  11  2.32361e-06
  12  11.6023
  13  5.60689
  14  5.10481e-06
  15  7.51389
  16  0.000130855
  17  23.7895
  18  2.00724e-05
  19  0.000301292
  20  11.0949
  21  1.95116
  22  0.196222
  23  0.212479
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  3.993e+01  2.379e+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.030e+00  2.125e-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.711e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.87
Ra Dec: 203.323 27.422
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 5.74e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.26e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5642.22058568
delta logL = 0.004271561731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5642.21874095
delta logL = 0.00611629212744

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.426       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3715       1.0000          .0000       10.000    
     3 'Normalizat'    .96765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0328       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=   5642.219     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      261 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.444        27.416        .64658E-04    .11109E-03
   2  Index         2.3711        .51970        .57737E-02    .33091E-03
   3  Normalizat    .96797        .19169        .22887E-03    .17594E-03
   4  Prefactor     1.0324        .21040        .24733E-03   -.14553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4442
  Index      = 2.3711
  Normalizat = 0.967966
  Prefactor  = 1.03243
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.219     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.444        26.794        .12932E-04   -1.4467    
   2  Index         2.3711        .50755        .11547E-02   -.55363    
   3  Normalizat    .96797        .19183        .91549E-05   -.94111    
   4  Prefactor     1.0324        .21058        .98933E-05   -.91656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6629e-10
Minuit parameter uncertainties:
  1  26.8024
  2  0.508763
  3  0.191964
  4  0.210744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/767928': 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) = 5642.21873914
delta logL = 0.00611810438659

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  3.844e+01  2.680e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.371e+00  5.088e-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.032e+00  2.107e-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.680e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.87
Ra Dec: 203.323 27.422
Photon Index (Free Index): 2.37 +/- 0.51
Photon Flux (Free Index): 6.01e-08 +/- 4.29e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.35e-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/767928/cmap_HighResolution_326678401_326937601_4FGL_J1333.2+2725_daily_bin337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.74e-08', energy_flux2='2.05e-05', photon_flux_error='3.42e-08', dlogl='6.12e-03', energy_flux='2.12e-05', photon_flux2='6.01e-08', job_status='DONE', time_completed='2021-09-08 03:16:07.879397', photon_index_error2='0.51', photon_index2='2.37', ts='6.87', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.97', time_epoch_completed='1631096167.88', return_code='0', job_id='767928', GAL2='1.03', EG2='0.97', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.29e-08', ts2='6.87', photon_index='2.32' WHERE bin_id='337' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:16:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 767928: <4FGL_J1333.2+2725_daily_bin337> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin337 203.323 27.4221 326678401 326937601 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 :                                   544.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            639 sec.

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

