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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1489
RA = 195.757, Dec = 24.5821
tmin = 625276801, tmax = 625536001
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='164880', job_status='RUN', time_executed='2021-09-06 18:28:35.816014', time_epoch_executed='1630978115.82' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164880/ft1_4FGL_J1303.0+2434_daily_bin1489.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164880/ft2_4FGL_J1303.0+2434_daily_bin1489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164880/ft1_4FGL_J1303.0+2434_daily_bin1489.fits outfile=/scratch/kocevski/164880/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1489.fits ra=195.757 dec=24.5821 rad=12.0 tmin=625276801.0 tmax=625536001.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.57
user 3.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164880/ft1_filtered_4FGL_J1303.0+2434_daily_bin1489.fits" evtable="EVENTS" scfile=/scratch/kocevski/164880/ft2_4FGL_J1303.0+2434_daily_bin1489.fits sctable="SC_DATA" outfile=/scratch/kocevski/164880/ltcube_625276801_625536001_4FGL_J1303.0+2434_daily_bin1489.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/164880/ft2_4FGL_J1303.0+2434_daily_bin1489.fits
.....................!
real 14.33
user 13.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164880/ft1_filtered_4FGL_J1303.0+2434_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/164880/ft2_4FGL_J1303.0+2434_daily_bin1489.fits sctable="SC_DATA" expcube=/scratch/kocevski/164880/ltcube_625276801_625536001_4FGL_J1303.0+2434_daily_bin1489.fits outfile=/scratch/kocevski/164880/expmap_625276801_625536001_4FGL_J1303.0+2434_daily_bin1489.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/164880/ltcube_625276801_625536001_4FGL_J1303.0+2434_daily_bin1489.fits
.....................!
real 193.11
user 188.05
sys 4.54

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/164880/ft1_filtered_4FGL_J1303.0+2434_daily_bin1489.fits scfile=/scratch/kocevski/164880/ft2_4FGL_J1303.0+2434_daily_bin1489.fits outfile=/scratch/kocevski/164880/cmap_625276801_625536001_4FGL_J1303.0+2434_daily_bin1489.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.60
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0615       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.581       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4032       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8619       1.0000         .10000E-03   10000.    
     5 'norm      '    .40224       1.0000         .10000E-03   10000.    
     6 'norm      '    .19067       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15783       1.0000         .10000E-03   10000.    
    10 'norm      '    11.215       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36529       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5341       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7289       1.0000         .10000E-03   10000.    
    15 'norm      '    4.4539       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1894       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.0101       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    50.553       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95354       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0407       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=   4836.295     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3366 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0615        2.2195       -.16193E-07    .82858E-04
   2  Prefactor     10.581        3.5892        .61343E-07    .90658E-04
   3  Prefactor     1.4031        1.8182       -.95713E-07   -.29015E-03
   4  Prefactor     1.8617        6.6450       -.14797E-05   -.57836E-03
   5  norm          .40220        .25851       -.65351E-08    .27792E-03
   6  norm          .18873        2.9659       -.16032E-06   -.83578E-04
   7  Prefactor     .10000E-03    6.5510        .10435E-06** at limit **
   8  Prefactor     .10000E-03    43.635       -.22491E-04** at limit **
   9  Prefactor     .96100E-01    7.9817       -.31692E-05    .60987E-03
  10  norm          11.215        6.4638       -.11600E-05    .10711E-03
  11  Prefactor     .34550        9.1985       -.17693E-05    .89891E-04
  12  Prefactor     .10000E-03    14.374       -.45527E-05** at limit **
  13  norm          3.5359        3.9720        .14523E-05    .14789E-03
  14  norm          2.7287        4.0005        .96260E-06   -.92910E-04
  15  norm          4.4553        7.6365        .43679E-06   -.35568E-03
  16  norm          4.1865        10.803       -.11331E-05   -.21024E-03
  17  norm          .10000E-03    6.6290       -.25165E-06** at limit **
  18  Prefactor     .10000E-03    1.9287       -.93064E-09** at limit **
  19  Prefactor     .10000E-03    13.467        .32308E-05** at limit **
  20  norm          3.0091        4.7993       -.44929E-06   -.27443E-03
  21  Prefactor     .10000E-03    55.705        .37417E-04** at limit **
  22  Prefactor     .10000E-03    19.151        .40532E-05** at limit **
  23  norm          .10000E-03    3.3502        .21987E-07** at limit **
  24  Prefactor     50.550        22.437       -.20039E-05    .11593E-04
  25  Prefactor     .10000E-03    16.501       -.69184E-06** at limit **
  26  Normalizat    .95361        .18994        .10261E-05    .35172E-03
  27  Prefactor     1.0408        .20035        .28662E-06    .32912E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.06145
  Prefactor  = 10.5809
  Prefactor  = 1.40308
  Prefactor  = 1.86165
  norm       = 0.402202
  norm       = 0.188735
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0960998
  norm       = 11.2152
  Prefactor  = 0.345504
  Prefactor  = 0.0001
  norm       = 3.53594
  norm       = 2.72868
  norm       = 4.45529
  norm       = 4.18655
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.00907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 50.5503
  Prefactor  = 0.0001
  Normalizat = 0.953613
  Prefactor  = 1.0408
 **********
 **   18 **HESSE 
 **********

 FCN=   4836.295     FROM HESSE     STATUS=OK           502 CALLS     3868 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0615        2.2214        .10274E-03   -1.5421    
   2  Prefactor     10.581        3.5861        .72811E-04   -1.5057    
   3  Prefactor     1.4031        1.7860        .10218E-03   -1.5471    
   4  Prefactor     1.8617        6.7200        .30537E-03   -1.5435    
   5  norm          .40220        .25376        .26636E-04   -1.5581    
   6  norm          .18873        20.722        .21799E-02   -1.5621    
   7  Prefactor     .10000E-03    6.5851        .17379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    43.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .96100E-01    9.3341        .55564E-01   -1.5646    
  10  norm          11.215        6.4589        .11963E-03   -1.5038    
  11  Prefactor     .34550        60.609        .40437E-02   -1.5590    
  12  Prefactor     .10000E-03    14.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5359        3.9591        .14009E-03   -1.5332    
  14  norm          2.7287        3.9823        .16356E-03   -1.5378    
  15  norm          4.4553        7.9164        .14593E-03   -1.5286    
  16  norm          4.1865        11.213        .19690E-03   -1.5299    
  17  norm          .10000E-03    6.6302        .17488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9576        .94104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0091        4.7920        .18597E-03   -1.5361    
  21  Prefactor     .10000E-03    55.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.3647        .12427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     50.550        22.511        .56404E-04   -1.4285    
  25  Prefactor     .10000E-03    16.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .95361        .22362        .24115E-03   -.94601    
  27  Prefactor     1.0408        .23722        .25594E-03   -.91382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14196e-08
Minuit parameter uncertainties:
  1  2.22149
  2  3.58622
  3  1.78605
  4  6.72276
  5  0.253758
  6  3.95554
  7  1.8673e-06
  8  5.10683e-05
  9  1.89353
  10  6.45926
  11  9.16029
  12  2.41471e-05
  13  3.95938
  14  3.98269
  15  7.91821
  16  11.2183
  17  2.14954e-06
  18  3.75164e-06
  19  1.56186e-05
  20  4.79265
  21  0.000114344
  22  1.64691e-06
  23  7.47165e-07
  24  22.5152
  25  3.59938e-05
  26  0.223836
  27  0.23746
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.536e+00  3.959e+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.041e+00  2.375e-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.536e-01  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 2.68e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/164880/likelihoodResults_625276801_625536001_4FGL_J1303.0+2434_daily_bin1489.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) = 4834.91456662
delta logL = 1.38029588886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4834.8982527
delta logL = 1.39660980615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1052       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8033       1.0000          .0000       5.0000    
     3 'Normalizat'    .83012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1250       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=   4834.898     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      255 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1050        9.6706        .89394E-02    .94506E-03
   2  alpha         3.8036        4.2289        .24185        .65727E-04
   3  Normalizat    .83004        .60755E-01    .44002E-01    .17411E-04
   4  Prefactor     1.1250        .64745E-01    .55948E-01    .66581E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10501
  alpha      = 3.80363
  Normalizat = 0.830043
  Prefactor  = 1.125
 **********
 **   18 **HESSE 
 **********

 FCN=   4834.898     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1050        16.446        .40047E-04   -1.5498    
   2  alpha         3.8036        4.3916        .10200E-01    .54855    
   3  Normalizat    .83004        .28361        .25646E-03   -.98964    
   4  Prefactor     1.1250        .28945        .24738E-03   -.88671    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.51418e-10
Minuit parameter uncertainties:
  1  8.52833
  2  4.79365
  3  0.284114
  4  0.289856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164880': 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): 102
logL (Free Index) = 4834.89825253
delta logL = 1.39660997424

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.105e+00  8.528e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.804e+00  4.794e+00  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.125e+00  2.899e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  8.300e-01  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.49
Ra Dec: 195.757 24.582
Photon Index (Free Index): 3.80 +/- 4.79
Photon Flux (Free Index): 1.12e-07 +/- 1.11e-07
Energy Flux (Free Index): 1.81e-05 +/- 1.17e-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/164880/cmap_HighResolution_625276801_625536001_4FGL_J1303.0+2434_daily_bin1489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-05', comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='1.81e-05', photon_flux_error='2.68e-08', dlogl='1.40e+00', energy_flux='1.24e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-06 18:40:32.438911', photon_index_error2='4.79', photon_index2='3.80', ts='1.39', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.13e-08', energy_flux_error2='1.17e-05', EG='0.95', time_epoch_completed='1630978832.44', return_code='0', job_id='164880', GAL2='1.13', EG2='0.83', return_code2='102', energy_flux_error='1.39e-05', photon_flux_error2='1.11e-07', ts2='4.49', photon_index='2.07' WHERE bin_id='1489' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:40:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 164880: <4FGL_J1303.0+2434_daily_bin1489> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1489> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 18:25:27 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:25:53 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:25:53 2021
Terminated at Mon Sep  6 18:40:32 2021
Results reported at Mon Sep  6 18:40:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1489 195.757 24.5821 625276801 625536001 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 :                                   675.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             265.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            905 sec.

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

