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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1019
RA = 195.757, Dec = 24.5821
tmin = 503452801, tmax = 503712001
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='161987', job_status='RUN', time_executed='2021-09-06 18:19:51.778797', time_epoch_executed='1630977591.78' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161987

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161987/ft1_4FGL_J1303.0+2434_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161987/ft2_4FGL_J1303.0+2434_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161987/ft1_4FGL_J1303.0+2434_daily_bin1019.fits outfile=/scratch/kocevski/161987/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1019.fits ra=195.757 dec=24.5821 rad=12.0 tmin=503452801.0 tmax=503712001.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 6.48
user 6.16
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/161987/ft2_4FGL_J1303.0+2434_daily_bin1019.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/161987/ft2_4FGL_J1303.0+2434_daily_bin1019.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/161987/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/161987/ft1_filtered_4FGL_J1303.0+2434_daily_bin1019.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.45
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161987/ft1_filtered_4FGL_J1303.0+2434_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/161987/ft2_4FGL_J1303.0+2434_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/161987/ltcube_503452801_503712001_4FGL_J1303.0+2434_daily_bin1019.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/161987/ft2_4FGL_J1303.0+2434_daily_bin1019.fits
.....................!
real 15.25
user 14.88
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161987/ft1_filtered_4FGL_J1303.0+2434_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/161987/ft2_4FGL_J1303.0+2434_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/161987/ltcube_503452801_503712001_4FGL_J1303.0+2434_daily_bin1019.fits outfile=/scratch/kocevski/161987/expmap_503452801_503712001_4FGL_J1303.0+2434_daily_bin1019.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/161987/ltcube_503452801_503712001_4FGL_J1303.0+2434_daily_bin1019.fits
.....................!
real 158.21
user 152.99
sys 4.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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1303.0+2434 @ 195.757 24.5821

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/161987/ft1_filtered_4FGL_J1303.0+2434_daily_bin1019.fits scfile=/scratch/kocevski/161987/ft2_4FGL_J1303.0+2434_daily_bin1019.fits outfile=/scratch/kocevski/161987/cmap_503452801_503712001_4FGL_J1303.0+2434_daily_bin1019.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=195.757 yref=24.5821 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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161987/ft1_filtered_4FGL_J1303.0+2434_daily_bin1019.fits scfile=/scratch/kocevski/161987/ft2_4FGL_J1303.0+2434_daily_bin1019.fits outfile=/scratch/kocevski/161987/cmap_HighResolution_503452801_503712001_4FGL_J1303.0+2434_daily_bin1019.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=195.757 yref=24.5821 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.49
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/161987/ft1_filtered_4FGL_J1303.0+2434_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/161987/ft2_4FGL_J1303.0+2434_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/161987/Model_4FGL_J1303.0+2434_daily_bin1019.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/161987/ft1_filtered_4FGL_J1303.0+2434_daily_bin1019.fits.....................!
real 34.08
user 32.80
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/161987/ft1_filtered_4FGL_J1303.0+2434_daily_bin1019.fits', '/scratch/kocevski/161987/ft2_4FGL_J1303.0+2434_daily_bin1019.fits', expMap='/scratch/kocevski/161987/expmap_503452801_503712001_4FGL_J1303.0+2434_daily_bin1019.fits', expCube='/scratch/kocevski/161987/ltcube_503452801_503712001_4FGL_J1303.0+2434_daily_bin1019.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/161987/Model_4FGL_J1303.0+2434_daily_bin1019.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1303.0+2434'

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.013e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/161987/ft1_filtered_4FGL_J1303.0+2434_daily_bin1019.fits
Spacecraft file(s): /scratch/kocevski/161987/ft2_4FGL_J1303.0+2434_daily_bin1019.fits
Exposure map: /scratch/kocevski/161987/expmap_503452801_503712001_4FGL_J1303.0+2434_daily_bin1019.fits
Exposure cube: /scratch/kocevski/161987/ltcube_503452801_503712001_4FGL_J1303.0+2434_daily_bin1019.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/161987/Model_4FGL_J1303.0+2434_daily_bin1019.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) = 4160.99349362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.713       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2614       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .19781       1.0000         .10000E-03   10000.    
     6 'norm      '    11.079       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7160       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1398       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0625       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11802E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.2481       1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.223       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.327       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .85317       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2193       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4160.870     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     2766 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.713        4.9541       -.23482E-06   -.21545E-03
   2  Prefactor     .10000E-03    1.2675       -.17602E-07** at limit **
   3  Prefactor     3.2613        2.7487        .25350E-06   -.84282E-03
   4  Prefactor     .10000E-03    6.2850        .24714E-06** at limit **
   5  norm          .19779        .29775        .23342E-07   -.49949E-03
   6  norm          11.077        6.6751       -.50310E-07   -.47742E-05
   7  Prefactor     5.7155        8.6259        .10190E-05   -.47736E-03
   8  Prefactor     .10000E-03    81.671       -.51786E-06** at limit **
   9  Prefactor     .10000E-03    7.2937        .63922E-07** at limit **
  10  norm          4.1347        5.3327       -.31029E-06   -.15024E-03
  11  Prefactor     8.0349        21.267       -.10632E-05   -.59785E-04
  12  Prefactor     .10000E-03    33.924       -.31705E-05** at limit **
  13  norm          .10000E-03    1.4881        .20332E-08** at limit **
  14  norm          5.2466        6.1172       -.10036E-06   -.76954E-04
  15  norm          .10000E-03    1.1322        .23807E-08** at limit **
  16  norm          .10000E-03    2.2298       -.60499E-08** at limit **
  17  norm          .10000E-03    10.381        .82938E-06** at limit **
  18  Prefactor     13.222        5.6151       -.15588E-06   -.18541E-03
  19  Prefactor     .10000E-03    12.952        .12775E-06** at limit **
  20  norm          16.334        9.7110       -.27385E-06   -.22210E-03
  21  Prefactor     .10000E-03    31.599       -.23109E-06** at limit **
  22  Prefactor     .10000E-03    43.044        .24600E-05** at limit **
  23  norm          .10000E-03    29.553        .14925E-05** at limit **
  24  Prefactor     .10000E-03    6.5214       -.30072E-06** at limit **
  25  Prefactor     .10000E-03    10.638       -.92050E-06** at limit **
  26  Normalizat    .85320        .22517        .35696E-06   -.15436E-04
  27  Prefactor     1.2193        .23401       -.10299E-06    .31553E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7131
  Prefactor  = 0.0001
  Prefactor  = 3.26126
  Prefactor  = 0.0001
  norm       = 0.197787
  norm       = 11.0768
  Prefactor  = 5.71552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.13473
  Prefactor  = 8.03489
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 5.24661
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.222
  Prefactor  = 0.0001
  norm       = 16.3344
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.853196
  Prefactor  = 1.21927
 **********
 **   18 **HESSE 
 **********

 FCN=   4160.870     FROM HESSE     STATUS=OK           484 CALLS     3250 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.713        4.9421        .88572E-04   -1.5023    
   2  Prefactor     .10000E-03    1.2701        .70758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2613        2.8490        .47627E-03   -1.5347    
   4  Prefactor     .10000E-03    6.3313        .15766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .19779        .28234        .40655E-03   -1.5619    
   6  norm          11.077        6.6573        .12036E-03   -1.5042    
   7  Prefactor     5.7155        9.7810        .84002E-03   -1.5230    
   8  Prefactor     .10000E-03    81.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.3630        .17009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1347        5.3525        .16225E-03   -1.5301    
  11  Prefactor     8.0349        21.541        .14120E-03   -1.5141    
  12  Prefactor     .10000E-03    34.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4942        .76838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2466        6.1144        .16551E-03   -1.5250    
  15  norm          .10000E-03    1.1368        .67014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2372        .94064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.222        5.6407        .94191E-04   -1.4981    
  19  Prefactor     .10000E-03    12.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.334        9.8376        .99120E-04   -1.4899    
  21  Prefactor     .10000E-03    31.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    43.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    30.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.5438        .16104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .85320        .26580        .27480E-03   -.98125    
  27  Prefactor     1.2193        .27686        .25316E-03   -.85740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06047e-10
Minuit parameter uncertainties:
  1  4.94226
  2  1.84592e-06
  3  2.84909
  4  1.26695e-05
  5  0.282338
  6  6.65771
  7  9.78373
  8  8.85308e-05
  9  7.22527e-07
  10  5.35311
  11  21.5618
  12  0.000441756
  13  3.72619e-07
  14  6.11509
  15  1.20994e-06
  16  1.11961e-06
  17  7.39576e-05
  18  5.6409
  19  2.60882e-05
  20  9.83859
  21  3.6073e-05
  22  0.000452419
  23  0.000276048
  24  2.15347e-05
  25  8.33938e-05
  26  0.266212
  27  0.277195
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  3.726e-07  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.219e+00  2.772e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  8.532e-01  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.757 24.582
Photon Flux Upper Limit: 5.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/161987/likelihoodResults_503452801_503712001_4FGL_J1303.0+2434_daily_bin1019.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) = 4160.8725463
delta logL = -0.00301156489786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4160.86953475
delta logL = -1.17543095257e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0656       1.0000          .0000       5.0000    
     3 'Normalizat'    .85320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2193       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+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=   4160.870     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      226 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4076        .76839E-03** at limit **
   2  alpha         2.0586        3.3946        .16786        .75868E-06
   3  Normalizat    .85320        .25393        .27480E-03    .36406E-05
   4  Prefactor     1.2193        .27566        .25316E-03    .56584E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 2.0586
  Normalizat = 0.853196
  Prefactor  = 1.21927
 **********
 **   18 **HESSE 
 **********

 FCN=   4160.870     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4946        .15368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0586        3.9272        .67144E-02   -.17749    
   3  Normalizat    .85320        .25422        .10992E-04   -.98125    
   4  Prefactor     1.2193        .27597        .10126E-04   -.85740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61599e-09
Minuit parameter uncertainties:
  1  0.000135828
  2  165.12
  3  0.254573
  4  0.276301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161987': 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) = 4160.86953474
delta logL = 2.26282281801e-09

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  1.358e-04  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.059e+00  1.651e+02  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.219e+00  2.763e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  8.532e-01  2.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.757 24.582

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/161987/cmap_HighResolution_503452801_503712001_4FGL_J1303.0+2434_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-05', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2021-09-06 18:28:24.977479', job_id='161987', GAL2='1.22', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630978104.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.26e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1019' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:28:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 161987: <4FGL_J1303.0+2434_daily_bin1019> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1019> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 18:15:27 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:15:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 18:15:51 2021
Terminated at Mon Sep  6 18:28:25 2021
Results reported at Mon Sep  6 18:28:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1019 195.757 24.5821 503452801 503712001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1303.0+2434 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   503.50 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            778 sec.

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

