/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 198 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1303.0+2434_daily_bin39
RA = 195.757, Dec = 24.5821
tmin = 249436801, tmax = 249696001
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='152128', job_status='RUN', time_executed='2021-09-06 17:44:11.142357', time_epoch_executed='1630975451.14' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152128

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152128/ft1_4FGL_J1303.0+2434_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152128/ft2_4FGL_J1303.0+2434_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152128/ft1_4FGL_J1303.0+2434_daily_bin39.fits outfile=/scratch/kocevski/152128/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin39.fits ra=195.757 dec=24.5821 rad=12.0 tmin=249436801.0 tmax=249696001.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 1.57
user 1.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152128/ft1_filtered_4FGL_J1303.0+2434_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/152128/ft2_4FGL_J1303.0+2434_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/152128/ltcube_249436801_249696001_4FGL_J1303.0+2434_daily_bin39.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/152128/ft2_4FGL_J1303.0+2434_daily_bin39.fits
.....................!
real 18.73
user 18.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152128/ft1_filtered_4FGL_J1303.0+2434_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/152128/ft2_4FGL_J1303.0+2434_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/152128/ltcube_249436801_249696001_4FGL_J1303.0+2434_daily_bin39.fits outfile=/scratch/kocevski/152128/expmap_249436801_249696001_4FGL_J1303.0+2434_daily_bin39.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/152128/ltcube_249436801_249696001_4FGL_J1303.0+2434_daily_bin39.fits
.....................!
real 192.52
user 187.19
sys 4.70

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/152128/ft1_filtered_4FGL_J1303.0+2434_daily_bin39.fits scfile=/scratch/kocevski/152128/ft2_4FGL_J1303.0+2434_daily_bin39.fits outfile=/scratch/kocevski/152128/cmap_249436801_249696001_4FGL_J1303.0+2434_daily_bin39.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152128/ft1_filtered_4FGL_J1303.0+2434_daily_bin39.fits scfile=/scratch/kocevski/152128/ft2_4FGL_J1303.0+2434_daily_bin39.fits outfile=/scratch/kocevski/152128/cmap_HighResolution_249436801_249696001_4FGL_J1303.0+2434_daily_bin39.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17785E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3159       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .68655       1.0000         .10000E-03   10000.    
     6 'norm      '    .74246       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1808       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14122E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8259       1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.3213       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11492E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.795       1.0000         .10000E-03   10000.    
    23 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16608E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .51941       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1733       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1642       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=   5887.581     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3295 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7826       -.29903E-07** at limit **
   2  Prefactor     5.3166        2.7336       -.22345E-07   -.76377E-07
   3  Prefactor     6.6363        2.8408       -.86730E-07   -.79826E-04
   4  Prefactor     .10000E-03    2.3030       -.74430E-07** at limit **
   5  norm          .68658        .29268        .94454E-08   -.26810E-03
   6  norm          .73906        3.5599        .16323E-05   -.49820E-04
   7  Prefactor     7.1805        9.2778        .19227E-05   -.91556E-04
   8  Prefactor     .10000E-03    22.460        .61105E-06** at limit **
   9  Prefactor     .10000E-03    5.0482       -.88526E-08** at limit **
  10  norm          2.0101        3.7144        .29719E-06   -.23414E-04
  11  Prefactor     .10000E-03    25.516       -.86682E-06** at limit **
  12  Prefactor     .10000E-03    19.261       -.34948E-06** at limit **
  13  norm          5.8265        3.9853        .85485E-07   -.44033E-05
  14  norm          .10000E-03    2.1887        .35812E-07** at limit **
  15  norm          8.3220        4.4543       -.10473E-08   -.98177E-04
  16  norm          .10000E-03    3.3074       -.22281E-07** at limit **
  17  norm          .10000E-03    36.834        .15413E-06** at limit **
  18  Prefactor     .10000E-03    1.1091        .12330E-06** at limit **
  19  Prefactor     .10000E-03    5.9200        .15341E-06** at limit **
  20  norm          .10000E-03    2.3615       -.64255E-08** at limit **
  21  Prefactor     .10000E-03    11.756        .37678E-07** at limit **
  22  Prefactor     31.841        53.948        .38666E-05    .13550E-03
  23  norm          .10000E-03    4.4259       -.16785E-08** at limit **
  24  Prefactor     .10000E-03    23.664        .27769E-06** at limit **
  25  Prefactor     .44780        25.960        .18063E-05   -.13801E-03
  26  Normalizat    1.1732        .19596       -.89176E-06   -.14183E-03
  27  Prefactor     1.1647        .20580        .12075E-07   -.13954E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.31663
  Prefactor  = 6.6363
  Prefactor  = 0.0001
  norm       = 0.686582
  norm       = 0.739062
  Prefactor  = 7.18049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.82654
  norm       = 0.0001
  norm       = 8.32203
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.841
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.447799
  Normalizat = 1.17316
  Prefactor  = 1.16469
 **********
 **   18 **HESSE 
 **********

 FCN=   5887.581     FROM HESSE     STATUS=OK           490 CALLS     3785 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.7595        .19273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3166        2.6721        .85843E-04   -1.5247    
   3  Prefactor     6.6363        2.8230        .80034E-04   -1.5193    
   4  Prefactor     .10000E-03    2.3164        .11372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .68658        .29013        .25907E-04   -1.5542    
   6  norm          .73906        3.5641        .28094E-03   -1.5536    
   7  Prefactor     7.1805        9.3340        .74845E-03   -1.5172    
   8  Prefactor     .10000E-03    22.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1204        .16832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0101        3.6842        .19242E-03   -1.5424    
  11  Prefactor     .10000E-03    26.235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8265        3.9852        .12238E-03   -1.5225    
  14  norm          .10000E-03    2.1960        .11086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.3220        4.4545        .11194E-03   -1.5131    
  16  norm          .10000E-03    3.3163        .13610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    37.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.1140        .78863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3708        .11513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     31.841        56.616        .71060E-04   -1.4579    
  23  norm          .10000E-03    4.4562        .15761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .44780        31.405        .99838E-01   -1.5574    
  26  Normalizat    1.1732        .24096        .24905E-03   -.87436    
  27  Prefactor     1.1647        .25212        .27451E-03   -.87425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80596e-10
Minuit parameter uncertainties:
  1  4.51052e-05
  2  2.67214
  3  2.8231
  4  4.60231e-06
  5  0.290127
  6  3.24609
  7  9.33592
  8  0.000113071
  9  3.67455e-06
  10  3.68459
  11  7.07056e-05
  12  5.44914e-05
  13  3.98537
  14  3.32988e-07
  15  4.45469
  16  1.13886e-07
  17  5.24665e-05
  18  1.12869e-06
  19  2.40357e-06
  20  1.29689e-06
  21  6.74709e-06
  22  56.7115
  23  3.95502e-06
  24  1.61352e-05
  25  7.50343
  26  0.241188
  27  0.252385
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  5.827e+00  3.985e+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

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.165e+00  2.524e-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.173e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.63
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 3.95e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.40e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5887.55383776
delta logL = 0.0268582890394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5887.54979421
delta logL = 0.0309018387552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4901       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2043       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1688       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=   5887.550     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4900        4.1438        .11674E-03    .11148E-02
   2  alpha         2.2043        .56756        .12847E-01    .90835E-04
   3  Normalizat    1.1671        .22737        .24961E-03   -.71462E-04
   4  Prefactor     1.1688        .24928        .27409E-03   -.85236E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.48996
  alpha      = 2.20429
  Normalizat = 1.16711
  Prefactor  = 1.1688
 **********
 **   18 **HESSE 
 **********

 FCN=   5887.550     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4900        4.0721        .46697E-05   -1.5239    
   2  alpha         2.2043        .55772        .51386E-03   -.11856    
   3  Normalizat    1.1671        .22756        .99843E-05   -.87625    
   4  Prefactor     1.1688        .24951        .10964E-04   -.87297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63967e-10
Minuit parameter uncertainties:
  1  4.07235
  2  0.562526
  3  0.22775
  4  0.249757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152128': 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) = 5887.54979231
delta logL = 0.0309037404832

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  5.490e+00  4.072e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.204e+00  5.625e-01  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.169e+00  2.498e-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.167e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.68
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.20 +/- 0.56
Photon Flux (Free Index): 4.41e-08 +/- 3.45e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/152128/cmap_HighResolution_249436801_249696001_4FGL_J1303.0+2434_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.95e-08', energy_flux2='1.85e-05', photon_flux_error='2.70e-08', dlogl='3.09e-02', energy_flux='2.05e-05', photon_flux2='4.41e-08', job_status='DONE', time_completed='2021-09-06 17:55:15.189793', photon_index_error2='0.56', photon_index2='2.20', ts='4.63', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.17', time_epoch_completed='1630976115.19', return_code='0', job_id='152128', GAL2='1.17', EG2='1.17', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='3.45e-08', ts2='4.68', photon_index='2.07' WHERE bin_id='39' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:55:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 152128: <4FGL_J1303.0+2434_daily_bin39> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin39> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 17:40:42 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:40:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 17:40:44 2021
Terminated at Mon Sep  6 17:55:15 2021
Results reported at Mon Sep  6 17:55:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin39 195.757 24.5821 249436801 249696001 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 :                                   663.00 sec.
    Max Memory :                                 1067 MB
    Average Memory :                             268.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

