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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin173
RA = 203.323, Dec = 27.4221
tmin = 284169601, tmax = 284428801
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='766275', job_status='RUN', time_executed='2021-09-08 03:00:52.585443', time_epoch_executed='1631095252.59' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='173'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766275/ft1_4FGL_J1333.2+2725_daily_bin173.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766275/ft2_4FGL_J1333.2+2725_daily_bin173.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766275/ft1_4FGL_J1333.2+2725_daily_bin173.fits outfile=/scratch/kocevski/766275/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin173.fits ra=203.323 dec=27.4221 rad=12.0 tmin=284169601.0 tmax=284428801.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.56
user 3.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766275/ft1_filtered_4FGL_J1333.2+2725_daily_bin173.fits" evtable="EVENTS" scfile=/scratch/kocevski/766275/ft2_4FGL_J1333.2+2725_daily_bin173.fits sctable="SC_DATA" outfile=/scratch/kocevski/766275/ltcube_284169601_284428801_4FGL_J1333.2+2725_daily_bin173.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/766275/ft2_4FGL_J1333.2+2725_daily_bin173.fits
.....................!
real 17.33
user 16.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766275/ft1_filtered_4FGL_J1333.2+2725_daily_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/766275/ft2_4FGL_J1333.2+2725_daily_bin173.fits sctable="SC_DATA" expcube=/scratch/kocevski/766275/ltcube_284169601_284428801_4FGL_J1333.2+2725_daily_bin173.fits outfile=/scratch/kocevski/766275/expmap_284169601_284428801_4FGL_J1333.2+2725_daily_bin173.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/766275/ltcube_284169601_284428801_4FGL_J1333.2+2725_daily_bin173.fits
.....................!
real 191.28
user 185.99
sys 4.66

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/766275/ft1_filtered_4FGL_J1333.2+2725_daily_bin173.fits scfile=/scratch/kocevski/766275/ft2_4FGL_J1333.2+2725_daily_bin173.fits outfile=/scratch/kocevski/766275/cmap_284169601_284428801_4FGL_J1333.2+2725_daily_bin173.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.55
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.627       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1245       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .13601E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .35398E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    18.079       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.796       1.0000         .10000E-03   10000.    
    15 'norm      '    .11797E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1239       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.000       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1649       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95805       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=   5651.801     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2532 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.650        39.876        .25783E-05    .78560E-04
   2  Prefactor     .10000E-03    3.6849        .21969E-07** at limit **
   3  norm          .10000E-03    1.1133        .18807E-07** at limit **
   4  Prefactor     .10000E-03    8.6527        .44312E-07** at limit **
   5  norm          .10000E-03    2.3775        .39913E-07** at limit **
   6  Prefactor     .10000E-03    30.055       -.26385E-06** at limit **
   7  norm          2.1240        4.1769        .10523E-05    .19499E-03
   8  norm          .10000E-03    1.0330        .28059E-07** at limit **
   9  norm          .10000E-03    1.7070       -.58181E-08** at limit **
  10  norm          .10000E-03    56.858       -.90893E-06** at limit **
  11  Prefactor     .10000E-03    3.3863       -.17974E-05** at limit **
  12  Prefactor     .10038E-03    17.381       -.36161E-05** at limit **
  13  norm          18.080        8.8486       -.37303E-06    .10975E-03
  14  Prefactor     26.696        75.163       -.32682E-05    .59261E-04
  15  norm          .10000E-03    12.550        .15665E-06** at limit **
  16  Prefactor     9.1193        12.359        .16191E-05    .11332E-03
  17  Prefactor     .10000E-03    9.7575       -.99743E-07** at limit **
  18  Prefactor     .10000E-03    22.256       -.22894E-06** at limit **
  19  Prefactor     .10000E-03    1.2988       -.50608E-07** at limit **
  20  Prefactor     13.003        13.661        .48898E-06   -.19127E-04
  21  Prefactor     .10000E-03    2.0419       -.12824E-07** at limit **
  22  Normalizat    1.1649        .19531        .61868E-05    .25242E-03
  23  Prefactor     .95799        .19563       -.34611E-05    .54699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.6503
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12396
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100385
  norm       = 18.0799
  Prefactor  = 26.6965
  norm       = 0.0001
  Prefactor  = 9.11931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0026
  Prefactor  = 0.0001
  Normalizat = 1.16487
  Prefactor  = 0.957993
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.801     FROM HESSE     STATUS=OK           358 CALLS     2890 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.650        40.079        .63674E-04   -1.4448    
   2  Prefactor     .10000E-03    3.6949        .14093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.1167        .77462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.6646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4150        .11316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1240        4.1576        .20855E-03   -1.5416    
   8  norm          .10000E-03    1.0357        .74570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7109        .95920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    58.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4797        .26852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10038E-03    120.49        .54404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          18.080        8.8267        .94197E-04   -1.4857    
  14  Prefactor     26.696        75.980        .77390E-04   -1.4674    
  15  norm          .10000E-03    12.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.1193        12.421        .66343E-03   -1.5104    
  17  Prefactor     .10000E-03    9.7729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3077        .83688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.003        13.674        .55547E-03   -1.4987    
  21  Prefactor     .10000E-03    2.0596        .10491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1649        .21343        .23102E-03   -.87696    
  23  Prefactor     .95799        .22192        .26466E-03   -.94143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95352e-09
Minuit parameter uncertainties:
  1  40.1058
  2  1.25624e-05
  3  2.39301e-06
  4  1.44626e-05
  5  1.56623e-05
  6  0.000161854
  7  4.15817
  8  2.17634e-06
  9  1.16453e-06
  10  0.000188108
  11  1.51304e-05
  12  0.0136438
  13  8.8273
  14  76.2576
  15  7.84627e-05
  16  12.4247
  17  3.35924e-05
  18  1.46561e-05
  19  6.6602e-06
  20  13.677
  21  1.01497e-05
  22  0.213592
  23  0.222133
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.359e-05  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:  9.580e-01  2.221e-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.165e+00  2.136e-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: 6.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/766275/likelihoodResults_284169601_284428801_4FGL_J1333.2+2725_daily_bin173.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) = 5651.80128882
delta logL = -0.000487300422719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5651.80080207
delta logL = -5.55471160624e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3132       1.0000          .0000       10.000    
     3 'Normalizat'    1.1649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95796       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=   5651.801     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    314.87        .18142E-02** at limit **
   2  Index         2.2948        7.8187        .50000        .12977E-05
   3  Normalizat    1.1649        .26508E-01    .23101E-03    .37254E-04
   4  Prefactor     .95799        .27984E-01    .26467E-03    .24312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010005
  Index      = 2.29482
  Normalizat = 1.16487
  Prefactor  = 0.957987
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.801     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    1226.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2948        6.8398        .50000       -.57167    
   3  Normalizat    1.1649        .62767E-01    .92405E-05   -.87695    
   4  Prefactor     .95799        .66231E-01    .10587E-04   -.94143    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.80013e-09
Minuit parameter uncertainties:
  1  0.0159792
  2  2638.85
  3  0.0627707
  4  0.0662365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766275': 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): 102
logL (Free Index) = 5651.80080151
delta logL = 5.12045517098e-09

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.598e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.295e+00  2.639e+03  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:  9.580e-01  6.624e-02  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.165e+00  6.277e-02  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/766275/cmap_HighResolution_284169601_284428801_4FGL_J1333.2+2725_daily_bin173.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2021-09-08 03:11:00.030285', job_id='766275', GAL2='0.96', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631095860.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.12e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='173' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:11:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 766275: <4FGL_J1333.2+2725_daily_bin173> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin173> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 03:00:30 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:00:35 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:00:35 2021
Terminated at Wed Sep  8 03:11:00 2021
Results reported at Wed Sep  8 03:11:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin173 203.323 27.4221 284169601 284428801 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 :                                   602.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            630 sec.

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

