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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1151
RA = 203.323, Dec = 27.4221
tmin = 537667201, tmax = 537926401
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='772125', job_status='RUN', time_executed='2021-09-08 03:18:17.276796', time_epoch_executed='1631096297.28' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772125

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772125/ft1_4FGL_J1333.2+2725_daily_bin1151.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772125/ft2_4FGL_J1333.2+2725_daily_bin1151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772125/ft1_4FGL_J1333.2+2725_daily_bin1151.fits outfile=/scratch/kocevski/772125/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1151.fits ra=203.323 dec=27.4221 rad=12.0 tmin=537667201.0 tmax=537926401.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.98
user 4.73
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772125/ft1_filtered_4FGL_J1333.2+2725_daily_bin1151.fits" evtable="EVENTS" scfile=/scratch/kocevski/772125/ft2_4FGL_J1333.2+2725_daily_bin1151.fits sctable="SC_DATA" outfile=/scratch/kocevski/772125/ltcube_537667201_537926401_4FGL_J1333.2+2725_daily_bin1151.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/772125/ft2_4FGL_J1333.2+2725_daily_bin1151.fits
.....................!
real 13.14
user 12.78
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772125/ft1_filtered_4FGL_J1333.2+2725_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/772125/ft2_4FGL_J1333.2+2725_daily_bin1151.fits sctable="SC_DATA" expcube=/scratch/kocevski/772125/ltcube_537667201_537926401_4FGL_J1333.2+2725_daily_bin1151.fits outfile=/scratch/kocevski/772125/expmap_537667201_537926401_4FGL_J1333.2+2725_daily_bin1151.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/772125/ltcube_537667201_537926401_4FGL_J1333.2+2725_daily_bin1151.fits
.....................!
real 192.04
user 186.11
sys 5.33

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/772125/ft1_filtered_4FGL_J1333.2+2725_daily_bin1151.fits scfile=/scratch/kocevski/772125/ft2_4FGL_J1333.2+2725_daily_bin1151.fits outfile=/scratch/kocevski/772125/cmap_537667201_537926401_4FGL_J1333.2+2725_daily_bin1151.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772125/ft1_filtered_4FGL_J1333.2+2725_daily_bin1151.fits scfile=/scratch/kocevski/772125/ft2_4FGL_J1333.2+2725_daily_bin1151.fits outfile=/scratch/kocevski/772125/cmap_HighResolution_537667201_537926401_4FGL_J1333.2+2725_daily_bin1151.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.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40642       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9062       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1114       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16412E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.624       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6766       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    61.093       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.088       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.467       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1365       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75944       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=   3789.246     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2950 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13006E-01    136.48       -.43711E-05    .15569E-03
   2  Prefactor     .10000E-03    3.3914       -.15245E-07** at limit **
   3  norm          .10000E-03    4.5744        .52545E-06** at limit **
   4  Prefactor     9.9085        15.774       -.99533E-05    .11764E-03
   5  norm          .10000E-03    3.2266        .11056E-07** at limit **
   6  Prefactor     .10000E-03    4.3081        .54766E-07** at limit **
   7  norm          2.1097        4.2440       -.70981E-06    .22031E-03
   8  norm          .10000E-03    2.2484        .32449E-06** at limit **
   9  norm          .10000E-03    2.8088        .70764E-07** at limit **
  10  norm          .10000E-03    10.721        .75885E-08** at limit **
  11  Prefactor     .10014E-03    2.2951       -.27184E-05** at limit **
  12  Prefactor     .10000E-03    15.360        .58638E-05** at limit **
  13  norm          .10000E-03    2.2874        .42846E-07** at limit **
  14  Prefactor     71.609        68.582        .13035E-04    .24478E-03
  15  norm          3.6771        6.2057        .29754E-05   -.18288E-03
  16  Prefactor     .10000E-03    47.988       -.14756E-05** at limit **
  17  Prefactor     .10000E-03    17.828        .37713E-05** at limit **
  18  Prefactor     61.039        83.116        .81448E-04    .19966E-04
  19  Prefactor     .10000E-03    3.4372       -.22315E-06** at limit **
  20  Prefactor     51.089        19.154       -.18636E-04   -.32259E-05
  21  Prefactor     13.467        6.7292        .16747E-05    .96088E-05
  22  Normalizat    1.1364        .20728       -.19487E-05    .68398E-03
  23  Prefactor     .75948        .21533        .42295E-05    .24569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0130055
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 9.90846
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1097
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100135
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 71.6094
  norm       = 3.6771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.0395
  Prefactor  = 0.0001
  Prefactor  = 51.089
  Prefactor  = 13.4672
  Normalizat = 1.13639
  Prefactor  = 0.759482
 **********
 **   18 **HESSE 
 **********

 FCN=   3789.246     FROM HESSE     STATUS=OK           374 CALLS     3324 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13006E-01    116.23        .17910       -1.5685    
   2  Prefactor     .10000E-03    3.4000        .11071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.6928        .25633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.9085        15.707        .12731E-03   -1.5078    
   5  norm          .10000E-03    3.2703        .10793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3085        .12479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1097        4.1635        .17183E-03   -1.5417    
   8  norm          .10000E-03    4.3752        .17776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.8217        .10069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10014E-03    16.081        .17143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2896        .90896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     71.609        67.352        .23718E-03   -1.4013    
  15  norm          3.6771        6.1870        .19246E-03   -1.5324    
  16  Prefactor     .10000E-03    49.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     61.039        83.066        .25667E-03   -1.4144    
  19  Prefactor     .10000E-03    7.2728        .21976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.089        19.159        .56109E-04   -1.4277    
  21  Prefactor     13.467        6.7366        .10915E-03   -1.4974    
  22  Normalizat    1.1364        .23503        .20928E-03   -.88592    
  23  Prefactor     .75948        .24641        .27067E-03   -1.0124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04825e-08
Minuit parameter uncertainties:
  1  2.45422
  2  2.63593e-06
  3  0.000115419
  4  15.7137
  5  3.64042e-06
  6  6.76199e-07
  7  4.1641
  8  9.03351e-05
  9  5.64289e-06
  10  6.20325e-06
  11  0.00295274
  12  0.000119302
  13  6.86865e-06
  14  67.4241
  15  6.18804
  16  8.42169e-05
  17  9.48646e-06
  18  83.2242
  19  7.57347e-05
  20  19.1615
  21  6.737
  22  0.235251
  23  0.246766
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  9.486e-06  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:  7.595e-01  2.468e-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.136e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/772125/likelihoodResults_537667201_537926401_4FGL_J1333.2+2725_daily_bin1151.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): 102
logL (Free Index) = 3789.24640997
delta logL = -0.000266749778348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3789.24614336
delta logL = -1.32799868879e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2172       1.0000          .0000       10.000    
     3 'Normalizat'    1.1364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75949       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=   3789.246     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      227 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2291.5        .90712E-02** at limit **
   2  Index         2.2258        6.2326        .50000       -.42064E-05
   3  Normalizat    1.1364        .74802E-01    .36680E-01    .52628E-05
   4  Prefactor     .75949        .80891E-01    .43188E-01    .12563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22578
  Normalizat = 1.13639
  Prefactor  = 0.759487
 **********
 **   18 **HESSE 
 **********

 FCN=   3789.246     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2258        5.9532        .50000       -.58818    
   3  Normalizat    1.1364        .22476        .20928E-03   -.88592    
   4  Prefactor     .75949        .24338        .27066E-03   -1.0124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19393e-11
Minuit parameter uncertainties:
  1  2.52815e-07
  2  5.58233
  3  0.22495
  4  0.243723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772125': 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) = 3789.24614331
delta logL = -8.60059117258e-08

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.528e-07  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.226e+00  5.582e+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:  7.595e-01  2.437e-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.136e+00  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.323 27.422

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/772125/cmap_HighResolution_537667201_537926401_4FGL_J1333.2+2725_daily_bin1151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', job_status='DONE', photon_flux_upper_limit='8.79e-08', time_completed='2021-09-08 03:27:40.208993', job_id='772125', GAL2='0.76', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631096860.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='-8.60e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1151' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:27:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 772125: <4FGL_J1333.2+2725_daily_bin1151> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1151 203.323 27.4221 537667201 537926401 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 :                                   545.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   580 sec.
    Turnaround time :                            715 sec.

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

