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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1039
RA = 195.757, Dec = 24.5821
tmin = 508636801, tmax = 508896001
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='162018', job_status='RUN', time_executed='2021-09-06 18:18:48.892003', time_epoch_executed='1630977528.89' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1039'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162018/ft1_4FGL_J1303.0+2434_daily_bin1039.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162018/ft2_4FGL_J1303.0+2434_daily_bin1039.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162018/ft1_4FGL_J1303.0+2434_daily_bin1039.fits outfile=/scratch/kocevski/162018/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1039.fits ra=195.757 dec=24.5821 rad=12.0 tmin=508636801.0 tmax=508896001.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.76
user 3.53
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162018/ft1_filtered_4FGL_J1303.0+2434_daily_bin1039.fits" evtable="EVENTS" scfile=/scratch/kocevski/162018/ft2_4FGL_J1303.0+2434_daily_bin1039.fits sctable="SC_DATA" outfile=/scratch/kocevski/162018/ltcube_508636801_508896001_4FGL_J1303.0+2434_daily_bin1039.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/162018/ft2_4FGL_J1303.0+2434_daily_bin1039.fits
.....................!
real 17.03
user 16.49
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162018/ft1_filtered_4FGL_J1303.0+2434_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/162018/ft2_4FGL_J1303.0+2434_daily_bin1039.fits sctable="SC_DATA" expcube=/scratch/kocevski/162018/ltcube_508636801_508896001_4FGL_J1303.0+2434_daily_bin1039.fits outfile=/scratch/kocevski/162018/expmap_508636801_508896001_4FGL_J1303.0+2434_daily_bin1039.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/162018/ltcube_508636801_508896001_4FGL_J1303.0+2434_daily_bin1039.fits
.....................!
real 193.91
user 188.37
sys 4.56

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/162018/ft1_filtered_4FGL_J1303.0+2434_daily_bin1039.fits scfile=/scratch/kocevski/162018/ft2_4FGL_J1303.0+2434_daily_bin1039.fits outfile=/scratch/kocevski/162018/cmap_508636801_508896001_4FGL_J1303.0+2434_daily_bin1039.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162018/ft1_filtered_4FGL_J1303.0+2434_daily_bin1039.fits scfile=/scratch/kocevski/162018/ft2_4FGL_J1303.0+2434_daily_bin1039.fits outfile=/scratch/kocevski/162018/cmap_HighResolution_508636801_508896001_4FGL_J1303.0+2434_daily_bin1039.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.57
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/162018/ft1_filtered_4FGL_J1303.0+2434_daily_bin1039.fits', '/scratch/kocevski/162018/ft2_4FGL_J1303.0+2434_daily_bin1039.fits', expMap='/scratch/kocevski/162018/expmap_508636801_508896001_4FGL_J1303.0+2434_daily_bin1039.fits', expCube='/scratch/kocevski/162018/ltcube_508636801_508896001_4FGL_J1303.0+2434_daily_bin1039.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/162018/Model_4FGL_J1303.0+2434_daily_bin1039.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/162018/ft1_filtered_4FGL_J1303.0+2434_daily_bin1039.fits
Spacecraft file(s): /scratch/kocevski/162018/ft2_4FGL_J1303.0+2434_daily_bin1039.fits
Exposure map: /scratch/kocevski/162018/expmap_508636801_508896001_4FGL_J1303.0+2434_daily_bin1039.fits
Exposure cube: /scratch/kocevski/162018/ltcube_508636801_508896001_4FGL_J1303.0+2434_daily_bin1039.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/162018/Model_4FGL_J1303.0+2434_daily_bin1039.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) = 5864.49030523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8619       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2368       1.0000         .10000E-03   10000.    
     5 'norm      '    .54607       1.0000         .10000E-03   10000.    
     6 'norm      '    10.490       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    72.755       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9556       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .94319       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.992       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.8800       1.0000         .10000E-03   10000.    
    17 'norm      '    34.791       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27075E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.297       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12650E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.153       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95409       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=   5864.482     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3331 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8607        3.8752        .52802E-06    .19973E-02
   2  Prefactor     .10000E-03    1.2850       -.10663E-05** at limit **
   3  Prefactor     .10000E-03    1.0172       -.45898E-06** at limit **
   4  Prefactor     3.2369        5.4152        .12808E-05    .88991E-03
   5  norm          .54606        .29949        .16114E-07    .17726E-02
   6  norm          10.491        5.8770       -.15534E-06    .26860E-03
   7  Prefactor     .10000E-03    3.0266       -.61437E-07** at limit **
   8  Prefactor     72.749        68.937        .21485E-06   -.20717E-04
   9  Prefactor     .10000E-03    6.1639       -.14155E-05** at limit **
  10  norm          3.9558        4.6729        .17427E-06    .11681E-02
  11  Prefactor     .94136        11.338        .44396E-05   -.11529E-05
  12  Prefactor     24.998        22.395        .14241E-06    .15632E-03
  13  norm          .10000E-03    1.3481       -.64865E-07** at limit **
  14  norm          .10000E-03    2.0046        .82951E-07** at limit **
  15  norm          .10000E-03    2.0697        .65811E-07** at limit **
  16  norm          4.8791        4.8782        .20861E-06    .17098E-04
  17  norm          34.785        23.720        .23437E-06   -.33057E-04
  18  Prefactor     .10000E-03    7.5775        .69415E-05** at limit **
  19  Prefactor     .10000E-03    8.6906        .50148E-07** at limit **
  20  norm          .10000E-03    3.2337       -.12966E-06** at limit **
  21  Prefactor     13.297        17.317       -.62073E-07   -.15151E-04
  22  Prefactor     .10000E-03    71.511        .55389E-06** at limit **
  23  norm          .10006E-03    6.3834        .24719E-05** at limit **
  24  Prefactor     .10000E-03    6.6449       -.22769E-07** at limit **
  25  Prefactor     23.150        25.364        .23146E-06   -.42737E-04
  26  Normalizat    1.0612        .19025        .33918E-06    .79872E-04
  27  Prefactor     .95411        .19449       -.34926E-07    .17563E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.86074
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.23692
  norm       = 0.546056
  norm       = 10.4905
  Prefactor  = 0.0001
  Prefactor  = 72.7492
  Prefactor  = 0.0001
  norm       = 3.95581
  Prefactor  = 0.941359
  Prefactor  = 24.9983
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.87909
  norm       = 34.7848
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.2966
  Prefactor  = 0.000100005
  norm       = 0.000100056
  Prefactor  = 0.0001
  Prefactor  = 23.1498
  Normalizat = 1.0612
  Prefactor  = 0.954111
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.482     FROM HESSE     STATUS=OK           490 CALLS     3821 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8607        3.8824        .92032E-04   -1.5080    
   2  Prefactor     .10000E-03    2.2908        .16485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8110        .14946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2369        5.5205        .21570E-03   -1.5348    
   5  norm          .54606        .29372        .29244E-04   -1.5560    
   6  norm          10.491        5.8700        .12370E-03   -1.5060    
   7  Prefactor     .10000E-03    3.0324        .13011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     72.749        68.766        .47068E-04   -1.4000    
   9  Prefactor     .10000E-03    25.298        .35708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9558        4.6226        .16401E-03   -1.5310    
  11  Prefactor     .94136        29.350        .44475E-02   -1.5514    
  12  Prefactor     24.998        22.314        .80129E-04   -1.4708    
  13  norm          .10000E-03    1.3565        .86817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0100        .10587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0809        .10695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.8791        4.8405        .16234E-03   -1.5266    
  17  norm          34.785        23.641        .67940E-04   -1.4528    
  18  Prefactor     .10000E-03    8.6732        .20917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.7143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2439        .13440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.297        17.316        .10985E-03   -1.4979    
  22  Prefactor     .10000E-03    71.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10006E-03    49.228        .33584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.6479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.150        25.345        .83246E-04   -1.4745    
  26  Normalizat    1.0612        .21745        .24471E-03   -.91007    
  27  Prefactor     .95411        .22751        .26787E-03   -.94275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99175e-08
Minuit parameter uncertainties:
  1  3.88254
  2  8.55685e-05
  3  3.24426e-05
  4  5.52135
  5  0.293722
  6  5.87034
  7  7.4476e-06
  8  68.8408
  9  4.24381e-05
  10  4.62299
  11  10.5178
  12  22.3214
  13  5.25048e-06
  14  3.16163e-06
  15  3.63752e-06
  16  4.84086
  17  23.6472
  18  0.000392574
  19  4.4076e-06
  20  2.57222e-05
  21  17.3222
  22  0.00119168
  23  0.00332506
  24  6.91059e-05
  25  25.3568
  26  0.217629
  27  0.227737
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  5.250e-06  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:  9.541e-01  2.277e-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:  1.061e+00  2.176e-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: 4.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/162018/likelihoodResults_508636801_508896001_4FGL_J1303.0+2434_daily_bin1039.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) = 5864.48508534
delta logL = -0.00346446533149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5864.48159759
delta logL = 2.32821594182e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7638       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95412       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.

 FCN=   5864.467     FROM MIGRAD    STATUS=CONVERGED    172 CALLS      371 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11854E-01    .55247E-01    .59642E-02   -.54901E-02
   2  alpha         5.0000        3.0696        .50000    ** at limit **
   3  Normalizat    1.0474        .18736        .39862E-01   -.25622E-04
   4  Prefactor     .96341        .19291        .45691E-01   -.20093E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.011854
  alpha      = 5
  Normalizat = 1.0474
  Prefactor  = 0.963415
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.467     FROM HESSE     STATUS=OK            37 CALLS      408 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11854E-01    .10296        .32506E-03   -1.5730    
   2  alpha         5.0000        3.4283        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0474        .23124        .24615E-03   -.91459    
   4  Prefactor     .96341        .23132        .26675E-03   -.93959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32786e-08
Minuit parameter uncertainties:
  1  0.0695742
  2  0.000122658
  3  0.231458
  4  0.231562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162018': 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) = 5864.46656453
delta logL = 0.0150563366315

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.185e-02  6.957e-02  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  1.227e-04  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:  9.634e-01  2.316e-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:  1.047e+00  2.315e-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/162018/cmap_HighResolution_508636801_508896001_4FGL_J1303.0+2434_daily_bin1039.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-05', job_status='DONE', photon_flux_upper_limit='4.40e-08', time_completed='2021-09-06 18:31:05.657257', job_id='162018', GAL2='0.96', fit_tolerance='1e-08', EG2='1.05', EG='1.06', time_epoch_completed='1630978265.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.51e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1039' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:31:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 162018: <4FGL_J1303.0+2434_daily_bin1039> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1039> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 18:15:30 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:15:59 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:59 2021
Terminated at Mon Sep  6 18:31:06 2021
Results reported at Mon Sep  6 18:31:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1039 195.757 24.5821 508636801 508896001 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 :                                   729.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            936 sec.

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

