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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin946
RA = 195.757, Dec = 24.5821
tmin = 484531201, tmax = 484790401
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='160739', job_status='RUN', time_executed='2021-09-06 18:12:02.537132', time_epoch_executed='1630977122.54' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160739

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160739/ft1_4FGL_J1303.0+2434_daily_bin946.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160739/ft2_4FGL_J1303.0+2434_daily_bin946.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160739/ft1_4FGL_J1303.0+2434_daily_bin946.fits outfile=/scratch/kocevski/160739/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin946.fits ra=195.757 dec=24.5821 rad=12.0 tmin=484531201.0 tmax=484790401.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 7.20
user 6.86
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160739/ft1_filtered_4FGL_J1303.0+2434_daily_bin946.fits" evtable="EVENTS" scfile=/scratch/kocevski/160739/ft2_4FGL_J1303.0+2434_daily_bin946.fits sctable="SC_DATA" outfile=/scratch/kocevski/160739/ltcube_484531201_484790401_4FGL_J1303.0+2434_daily_bin946.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/160739/ft2_4FGL_J1303.0+2434_daily_bin946.fits
.....................!
real 16.34
user 15.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160739/ft1_filtered_4FGL_J1303.0+2434_daily_bin946.fits evtable="EVENTS" scfile=/scratch/kocevski/160739/ft2_4FGL_J1303.0+2434_daily_bin946.fits sctable="SC_DATA" expcube=/scratch/kocevski/160739/ltcube_484531201_484790401_4FGL_J1303.0+2434_daily_bin946.fits outfile=/scratch/kocevski/160739/expmap_484531201_484790401_4FGL_J1303.0+2434_daily_bin946.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/160739/ltcube_484531201_484790401_4FGL_J1303.0+2434_daily_bin946.fits
.....................!
real 194.51
user 189.06
sys 4.73

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/160739/ft1_filtered_4FGL_J1303.0+2434_daily_bin946.fits scfile=/scratch/kocevski/160739/ft2_4FGL_J1303.0+2434_daily_bin946.fits outfile=/scratch/kocevski/160739/cmap_484531201_484790401_4FGL_J1303.0+2434_daily_bin946.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160739/ft1_filtered_4FGL_J1303.0+2434_daily_bin946.fits scfile=/scratch/kocevski/160739/ft2_4FGL_J1303.0+2434_daily_bin946.fits outfile=/scratch/kocevski/160739/cmap_HighResolution_484531201_484790401_4FGL_J1303.0+2434_daily_bin946.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.640       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8628       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1737       1.0000         .10000E-03   10000.    
     5 'norm      '    .54521E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    4.6225       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4861       1.0000         .10000E-03   10000.    
    10 'norm      '    61.317       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17382E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .17257E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13462E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18248E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.684       1.0000         .10000E-03   10000.    
    20 'norm      '    10.229       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    61.900       1.0000         .10000E-03   10000.    
    23 'norm      '    4.4665       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    36.385       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98623       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99258       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=   5891.470     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3409 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.640        4.2175       -.91630E-08   -.18491E-04
   2  Prefactor     .10000E-03    .88745        .53083E-08** at limit **
   3  Prefactor     3.8625        2.2365        .86172E-08   -.19985E-04
   4  Prefactor     7.1732        5.7042       -.45037E-07   -.19856E-04
   5  norm          .54493E-01    .19041        .12772E-06   -.96643E-03
   6  norm          4.6233        4.1584       -.18042E-07   -.55579E-04
   7  Prefactor     .10000E-03    12.655       -.36662E-06** at limit **
   8  Prefactor     .10000E-03    20.334       -.24166E-06** at limit **
   9  Prefactor     8.4859        8.2757        .14391E-05   -.27079E-03
  10  norm          61.323        9.8526        .60157E-07    .37324E-03
  11  Prefactor     .10000E-03    14.780        .67104E-06** at limit **
  12  Prefactor     .10000E-03    147.27       -.67173E-07** at limit **
  13  norm          .10000E-03    1.0948       -.19472E-07** at limit **
  14  norm          .10000E-03    3.8705       -.52851E-07** at limit **
  15  norm          .10001E-03    2.5873       -.88721E-06** at limit **
  16  norm          .10000E-03    3.8444        .12979E-08** at limit **
  17  norm          .10000E-03    6.9186       -.63263E-07** at limit **
  18  Prefactor     .10000E-03    2.2702        .45269E-06** at limit **
  19  Prefactor     30.688        18.555        .34910E-06   -.93567E-04
  20  norm          10.227        7.4711       -.67044E-07   -.23415E-04
  21  Prefactor     .10000E-03    39.128        .11306E-06** at limit **
  22  Prefactor     61.885        56.052       -.33255E-05   -.28155E-03
  23  norm          4.4677        8.4622        .26245E-06   -.35470E-04
  24  Prefactor     .10000E-03    8.7941        .76074E-06** at limit **
  25  Prefactor     36.374        25.787        .28518E-06    .40578E-04
  26  Normalizat    .98621        .20347       -.14797E-06    .10604E-04
  27  Prefactor     .99267        .20666       -.34754E-06    .86887E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.6403
  Prefactor  = 0.0001
  Prefactor  = 3.86247
  Prefactor  = 7.17318
  norm       = 0.0544931
  norm       = 4.62334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.48592
  norm       = 61.3231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.00010001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6876
  norm       = 10.2272
  Prefactor  = 0.0001
  Prefactor  = 61.8848
  norm       = 4.46766
  Prefactor  = 0.0001
  Prefactor  = 36.374
  Normalizat = 0.986215
  Prefactor  = 0.992666
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.470     FROM HESSE     STATUS=OK           492 CALLS     3901 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.640        4.2131        .81328E-04   -1.4943    
   2  Prefactor     .10000E-03    .89841        .70509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8625        2.2357        .83436E-04   -1.5315    
   4  Prefactor     7.1732        5.6876        .14976E-03   -1.5172    
   5  norm          .54493E-01    .21886        .58019E-03   -1.5661    
   6  norm          4.6233        4.1506        .14154E-03   -1.5278    
   7  Prefactor     .10000E-03    12.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4859        8.8700        .68805E-03   -1.5125    
  10  norm          61.323        9.7160        .51241E-04   -1.4140    
  11  Prefactor     .10000E-03    14.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    150.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0971        .78428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.490        .28914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    8.1990        .20818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8685        .14674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.9222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.6091        .20223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.688        17.314        .72331E-04   -1.4599    
  20  norm          10.227        7.4500        .12528E-03   -1.5068    
  21  Prefactor     .10000E-03    39.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     61.885        61.822        .51001E-04   -1.4133    
  23  norm          4.4677        8.4440        .19053E-03   -1.5285    
  24  Prefactor     .10000E-03    8.8900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     36.374        25.860        .66441E-04   -1.4501    
  26  Normalizat    .98621        .23555        .26579E-03   -.93494    
  27  Prefactor     .99267        .24012        .28560E-03   -.92974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99077e-08
Minuit parameter uncertainties:
  1  4.21316
  2  2.99054e-07
  3  2.2357
  4  5.68804
  5  0.218218
  6  4.1509
  7  5.19063e-05
  8  4.46919e-05
  9  8.8714
  10  9.71628
  11  9.64132e-05
  12  0.000187363
  13  1.13722e-06
  14  9.06317e-05
  15  0.000564873
  16  1.07758e-05
  17  7.23015e-06
  18  2.2146e-05
  19  17.317
  20  7.4507
  21  2.4827e-05
  22  61.886
  23  8.44621
  24  9.11162e-05
  25  25.8681
  26  0.235797
  27  0.240377
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  1.137e-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.927e-01  2.404e-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:  9.862e-01  2.358e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160739/likelihoodResults_484531201_484790401_4FGL_J1303.0+2434_daily_bin946.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) = 5891.47390747
delta logL = -0.00417017043219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5891.4697373
delta logL = -7.1322574513e-09

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.0650       1.0000          .0000       5.0000    
     3 'Normalizat'    .98622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99268       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5891.470     FROM MIGRAD    STATUS=FAILED        80 CALLS      218 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1.7919        .78432E-03** at limit **
   2  alpha         2.0443        3.0834        .16787        .26780E-05
   3  Normalizat    .98621        .21937        .26579E-03    .15976E-03
   4  Prefactor     .99267        .23760        .28560E-03    .14442E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5891.470     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      342 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    1.7919        .98869E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0443        3.0834        .72803E-03   -.18329    
   3  Normalizat    .98621        .21937        .85704E-04   -.93494    
   4  Prefactor     .99267        .23760        .11916E-03   -.92974    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5891.470     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      369 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0982        .15686E-03** at limit **
   2  alpha         2.0162        3.5534        .67148E-02   -.30272E-06
   3  Normalizat    .98621        .21958        .10632E-04   -.90466E-04
   4  Prefactor     .99267        .23783        .11424E-04   -.83195E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.01616
  Normalizat = 0.986214
  Prefactor  = 0.992666
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.470     FROM HESSE     STATUS=OK            23 CALLS      392 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0982        .31373E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0162        3.6069        .13430E-02   -.19476    
   3  Normalizat    .98621        .21937        .21263E-05   -.93494    
   4  Prefactor     .99267        .23764        .22848E-05   -.92974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24299e-09
Minuit parameter uncertainties:
  1  6.51892e-05
  2  151.758
  3  0.219567
  4  0.237889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160739': 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) = 5891.46973725
delta logL = 4.68344296678e-08

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  6.519e-05  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.016e+00  1.518e+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:  9.927e-01  2.379e-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:  9.862e-01  2.196e-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/160739/cmap_HighResolution_484531201_484790401_4FGL_J1303.0+2434_daily_bin946.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-05', job_status='DONE', photon_flux_upper_limit='4.08e-08', time_completed='2021-09-06 18:25:54.286252', job_id='160739', GAL2='0.99', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630977954.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='946' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:25:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 160739: <4FGL_J1303.0+2434_daily_bin946> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin946> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 18:10:40 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:11: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:11:51 2021
Terminated at Mon Sep  6 18:25:55 2021
Results reported at Mon Sep  6 18:25:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin946 195.757 24.5821 484531201 484790401 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 :                                   823.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            915 sec.

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

