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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1289
RA = 195.757, Dec = 24.5821
tmin = 573436801, tmax = 573696001
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='163487', job_status='RUN', time_executed='2021-09-06 18:24:31.286166', time_epoch_executed='1630977871.29' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163487

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163487/ft1_4FGL_J1303.0+2434_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163487/ft2_4FGL_J1303.0+2434_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163487/ft1_4FGL_J1303.0+2434_daily_bin1289.fits outfile=/scratch/kocevski/163487/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1289.fits ra=195.757 dec=24.5821 rad=12.0 tmin=573436801.0 tmax=573696001.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 5.51
user 5.16
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163487/ft1_filtered_4FGL_J1303.0+2434_daily_bin1289.fits" evtable="EVENTS" scfile=/scratch/kocevski/163487/ft2_4FGL_J1303.0+2434_daily_bin1289.fits sctable="SC_DATA" outfile=/scratch/kocevski/163487/ltcube_573436801_573696001_4FGL_J1303.0+2434_daily_bin1289.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/163487/ft2_4FGL_J1303.0+2434_daily_bin1289.fits
.....................!
real 16.30
user 15.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163487/ft1_filtered_4FGL_J1303.0+2434_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/163487/ft2_4FGL_J1303.0+2434_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/163487/ltcube_573436801_573696001_4FGL_J1303.0+2434_daily_bin1289.fits outfile=/scratch/kocevski/163487/expmap_573436801_573696001_4FGL_J1303.0+2434_daily_bin1289.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/163487/ltcube_573436801_573696001_4FGL_J1303.0+2434_daily_bin1289.fits
.....................!
real 193.62
user 187.64
sys 5.08

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/163487/ft1_filtered_4FGL_J1303.0+2434_daily_bin1289.fits scfile=/scratch/kocevski/163487/ft2_4FGL_J1303.0+2434_daily_bin1289.fits outfile=/scratch/kocevski/163487/cmap_573436801_573696001_4FGL_J1303.0+2434_daily_bin1289.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163487/ft1_filtered_4FGL_J1303.0+2434_daily_bin1289.fits scfile=/scratch/kocevski/163487/ft2_4FGL_J1303.0+2434_daily_bin1289.fits outfile=/scratch/kocevski/163487/cmap_HighResolution_573436801_573696001_4FGL_J1303.0+2434_daily_bin1289.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.523       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3484       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8507       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.157       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8885       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9479       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .78895       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.891       1.0000         .10000E-03   10000.    
    14 'norm      '    11.540       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9347       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11936E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.678       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4142       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    152.90       1.0000         .10000E-03   10000.    
    23 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    29.903       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .55169       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.6772       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=   5856.149     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3269 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.522        6.3182        .13930E-08    .17708E-05
   2  Prefactor     1.3483        3.1974        .26620E-07    .60794E-05
   3  Prefactor     1.8503        2.3014        .18194E-07    .74924E-05
   4  Prefactor     .10000E-03    3.3523        .29905E-07** at limit **
   5  norm          .10000E-03    .11919       -.47462E-08** at limit **
   6  norm          10.157        5.8564        .18603E-07    .71147E-05
   7  Prefactor     .10000E-03    5.5519       -.79454E-08** at limit **
   8  Prefactor     .10000E-03    37.470        .30931E-06** at limit **
   9  Prefactor     7.8880        7.7893        .34108E-07   -.26998E-05
  10  norm          5.9477        4.9031        .77333E-07    .23257E-04
  11  Prefactor     .72563        11.962        .57563E-06   -.83651E-04
  12  Prefactor     .10000E-03    17.907        .31629E-06** at limit **
  13  norm          13.890        6.3095        .29952E-07   -.80180E-05
  14  norm          11.545        7.5427        .29816E-06    .13857E-03
  15  norm          4.9354        3.5059        .52576E-07    .12747E-03
  16  norm          .10000E-03    2.7315       -.13488E-07** at limit **
  17  norm          .10000E-03    15.439        .54417E-06** at limit **
  18  Prefactor     .10000E-03    5.8324       -.23410E-05** at limit **
  19  Prefactor     13.691        19.469        .11791E-05    .14358E-03
  20  norm          1.4142        12.169        .69100E-06    .56771E-06
  21  Prefactor     .10000E-03    17.754        .38087E-06** at limit **
  22  Prefactor     152.99        104.33       -.21749E-05    .40443E-04
  23  norm          .10000E-03    13.336        .43916E-06** at limit **
  24  Prefactor     .10000E-03    22.656       -.13891E-06** at limit **
  25  Prefactor     29.884        29.162        .62520E-06    .17558E-04
  26  Normalizat    .55166        .22540       -.72703E-06    .22047E-04
  27  Prefactor     1.6774        .22641        .32022E-07    .26976E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.5223
  Prefactor  = 1.34826
  Prefactor  = 1.85034
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.1571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.88803
  norm       = 5.9477
  Prefactor  = 0.725625
  Prefactor  = 0.0001
  norm       = 13.8899
  norm       = 11.5449
  norm       = 4.93541
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.691
  norm       = 1.41416
  Prefactor  = 0.0001
  Prefactor  = 152.989
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8838
  Normalizat = 0.551665
  Prefactor  = 1.67739
 **********
 **   18 **HESSE 
 **********

 FCN=   5856.149     FROM HESSE     STATUS=OK           494 CALLS     3763 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.522        6.2522        .95678E-04   -1.4871    
   2  Prefactor     1.3483        3.1305        .18222E-03   -1.5476    
   3  Prefactor     1.8503        2.2803        .12310E-03   -1.5436    
   4  Prefactor     .10000E-03    3.3646        .13679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .34837        .50754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.157        5.8448        .12573E-03   -1.5070    
   7  Prefactor     .10000E-03    5.5628        .17608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8880        7.7835        .14276E-03   -1.5146    
  10  norm          5.9477        4.9003        .73960E-03   -1.5220    
  11  Prefactor     .72563        68.112        .49443E-02   -1.5538    
  12  Prefactor     .10000E-03    17.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.890        6.3032        .10747E-03   -1.4962    
  14  norm          11.545        7.5867        .11793E-03   -1.5028    
  15  norm          4.9354        3.4977        .11412E-03   -1.5264    
  16  norm          .10000E-03    2.7342        .12338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9831        .35743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.691        20.002        .10830E-03   -1.4968    
  20  norm          1.4142        12.278        .18206E-02   -1.5470    
  21  Prefactor     .10000E-03    17.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     152.99        103.96        .16299E-03   -1.3228    
  23  norm          .10000E-03    13.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     29.884        29.250        .73269E-04   -1.4614    
  26  Normalizat    .55166        .25598        .36712E-03   -1.1008    
  27  Prefactor     1.6774        .26315        .24326E-03   -.72685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19745e-10
Minuit parameter uncertainties:
  1  6.25243
  2  3.13092
  3  2.28042
  4  8.34913e-07
  5  2.74921e-06
  6  5.84517
  7  6.08702e-07
  8  5.34363e-06
  9  7.78449
  10  4.90067
  11  14.0759
  12  2.38758e-07
  13  6.30352
  14  7.58733
  15  3.49784
  16  1.54639e-06
  17  2.40048e-06
  18  2.5682e-05
  19  20.0115
  20  8.33583
  21  5.05544e-06
  22  104.087
  23  8.90551e-06
  24  3.54092e-05
  25  29.2639
  26  0.256534
  27  0.263369
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.389e+01  6.304e+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.677e+00  2.634e-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:  5.517e-01  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.89
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 9.42e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 4.88e-05 +/- 2.22e-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) = 5855.53098428
delta logL = 0.617823063651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5855.53055171
delta logL = 0.61825563227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.295       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4728       1.0000          .0000       5.0000    
     3 'Normalizat'    .51281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7026       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=   5855.531     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.313        87.348        .29801E-02    .94832E-04
   2  alpha         2.4740        3.7363        .19784        .45786E-04
   3  Normalizat    .51261        .14790        .85779E-01    .38277E-04
   4  Prefactor     1.7024        .14718        .54678E-01   -.42105E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.313
  alpha      = 2.47399
  Normalizat = 0.512605
  Prefactor  = 1.70243
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.531     FROM HESSE     STATUS=OK            33 CALLS      310 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.313        6.1658        .10255E-03   -1.5035    
   2  alpha         2.4740        .39109        .83188E-02   -.10406E-01
   3  Normalizat    .51261        .24140        .38001E-03   -1.1183    
   4  Prefactor     1.7024        .26192        .24171E-03   -.72017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.36579e-10
Minuit parameter uncertainties:
  1  6.16617
  2  0.392704
  3  0.241899
  4  0.262134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163487': 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) = 5855.53052745
delta logL = 0.618279901395

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.131e+01  6.166e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.474e+00  3.927e-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.702e+00  2.621e-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:  5.126e-01  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.11
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.47 +/- 0.39
Photon Flux (Free Index): 1.31e-07 +/- 6.14e-08
Energy Flux (Free Index): 4.01e-05 +/- 1.82e-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/163487/cmap_HighResolution_573436801_573696001_4FGL_J1303.0+2434_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.42e-08', energy_flux2='4.01e-05', photon_flux_error='4.27e-08', dlogl='6.18e-01', energy_flux='4.88e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-06 18:35:38.269189', photon_index_error2='0.39', photon_index2='2.47', ts='9.89', fit_tolerance='1e-08', GAL='1.68', photon_index_error='0.00', energy_flux_error2='1.82e-05', EG='0.55', time_epoch_completed='1630978538.27', return_code='0', job_id='163487', GAL2='1.70', EG2='0.51', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='6.14e-08', ts2='11.11', photon_index='2.07' WHERE bin_id='1289' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:35:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 163487: <4FGL_J1303.0+2434_daily_bin1289> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1289> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 18:20:30 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:20:35 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:20:35 2021
Terminated at Mon Sep  6 18:35:39 2021
Results reported at Mon Sep  6 18:35:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1289 195.757 24.5821 573436801 573696001 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 :                                   651.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            909 sec.

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

