/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 3 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 = 7431
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1303.0+2434_daily_bin352
RA = 195.757, Dec = 24.5821
tmin = 330566401, tmax = 330825601
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='156307', job_status='RUN', time_executed='2021-09-06 17:56:02.027192', time_epoch_executed='1630976162.03' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156307

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156307/ft1_4FGL_J1303.0+2434_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156307/ft2_4FGL_J1303.0+2434_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156307/ft1_4FGL_J1303.0+2434_daily_bin352.fits outfile=/scratch/kocevski/156307/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin352.fits ra=195.757 dec=24.5821 rad=12.0 tmin=330566401.0 tmax=330825601.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 4.04
user 3.80
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/156307/ft2_4FGL_J1303.0+2434_daily_bin352.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/156307/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin352.fits evtable="EVENTS" outfile="/scratch/kocevski/156307/ft1_filtered_4FGL_J1303.0+2434_daily_bin352.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/156307/ft1_filtered_4FGL_J1303.0+2434_daily_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/156307/ft2_4FGL_J1303.0+2434_daily_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/156307/ltcube_330566401_330825601_4FGL_J1303.0+2434_daily_bin352.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/156307/ft2_4FGL_J1303.0+2434_daily_bin352.fits
.....................!
real 16.75
user 16.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156307/ft1_filtered_4FGL_J1303.0+2434_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/156307/ft2_4FGL_J1303.0+2434_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/156307/ltcube_330566401_330825601_4FGL_J1303.0+2434_daily_bin352.fits outfile=/scratch/kocevski/156307/expmap_330566401_330825601_4FGL_J1303.0+2434_daily_bin352.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/156307/ltcube_330566401_330825601_4FGL_J1303.0+2434_daily_bin352.fits
.....................!
real 191.27
user 185.82
sys 4.61

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/156307/ft1_filtered_4FGL_J1303.0+2434_daily_bin352.fits scfile=/scratch/kocevski/156307/ft2_4FGL_J1303.0+2434_daily_bin352.fits outfile=/scratch/kocevski/156307/cmap_330566401_330825601_4FGL_J1303.0+2434_daily_bin352.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/156307/ft1_filtered_4FGL_J1303.0+2434_daily_bin352.fits scfile=/scratch/kocevski/156307/ft2_4FGL_J1303.0+2434_daily_bin352.fits outfile=/scratch/kocevski/156307/cmap_HighResolution_330566401_330825601_4FGL_J1303.0+2434_daily_bin352.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.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.028       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3745       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8917       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91621E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .20520       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4911       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.071       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12279E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1946       1.0000         .10000E-03   10000.    
    17 'norm      '    26.366       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.709       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6415       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    103.63       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10748E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6880       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1962       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1276       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=   5637.981     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3335 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.028        4.7790       -.88459E-07   -.22496E-04
   2  Prefactor     1.3743        2.5124        .26560E-06    .52199E-04
   3  Prefactor     2.8930        2.7365        .19983E-07   -.79297E-04
   4  Prefactor     .32804E-01    6.5200        .65726E-06   -.29330E-03
   5  norm          .20525        .18445        .25850E-07   -.10902E-03
   6  norm          2.4996        3.7813        .10069E-06   -.13753E-03
   7  Prefactor     .10000E-03    8.6850       -.84849E-07** at limit **
   8  Prefactor     37.933        70.966        .28970E-06    .32562E-05
   9  Prefactor     .10000E-03    14.664        .97459E-06** at limit **
  10  norm          .10000E-03    4.8735       -.34472E-05** at limit **
  11  Prefactor     .10000E-03    39.407        .17930E-05** at limit **
  12  Prefactor     .10000E-03    10.002       -.52022E-06** at limit **
  13  norm          .10000E-03    1.9427        .12151E-06** at limit **
  14  norm          .10000E-03    1.9753       -.94199E-07** at limit **
  15  norm          .10000E-03    3.0368       -.48935E-06** at limit **
  16  norm          2.1963        4.0727        .29313E-06    .12008E-03
  17  norm          26.365        21.997       -.16361E-06   -.71754E-05
  18  Prefactor     .10000E-03    2.8974       -.78562E-06** at limit **
  19  Prefactor     22.708        17.897       -.20525E-07    .10203E-03
  20  norm          3.6395        6.0055        .35685E-06    .31886E-04
  21  Prefactor     .10000E-03    30.780        .31527E-06** at limit **
  22  Prefactor     103.56        87.791       -.46377E-07   -.85585E-06
  23  norm          .10000E-03    2.6682        .95263E-07** at limit **
  24  Prefactor     .10000E-03    39.361       -.43756E-07** at limit **
  25  Prefactor     4.6621        39.639       -.29067E-06    .29571E-05
  26  Normalizat    1.1963        .20760        .18099E-05   -.61950E-04
  27  Prefactor     1.1277        .21513       -.21753E-05    .73053E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0282
  Prefactor  = 1.37426
  Prefactor  = 2.89298
  Prefactor  = 0.0328042
  norm       = 0.205247
  norm       = 2.49964
  Prefactor  = 0.0001
  Prefactor  = 37.9327
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.19628
  norm       = 26.3649
  Prefactor  = 0.0001
  Prefactor  = 22.7083
  norm       = 3.63952
  Prefactor  = 0.0001
  Prefactor  = 103.559
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.66211
  Normalizat = 1.19627
  Prefactor  = 1.12774
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.981     FROM HESSE     STATUS=OK           498 CALLS     3833 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.028        4.7682        .99587E-04   -1.5075    
   2  Prefactor     1.3743        2.4624        .14282E-03   -1.5474    
   3  Prefactor     2.8930        2.7197        .11286E-03   -1.5368    
   4  Prefactor     .32804E-01    7.1980        .52248E-01   -1.5672    
   5  norm          .20525        .17444        .29514E-03   -1.5617    
   6  norm          2.4996        3.7633        .16739E-03   -1.5392    
   7  Prefactor     .10000E-03    8.7669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.933        71.073        .32479E-03   -1.4475    
   9  Prefactor     .10000E-03    15.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.9673        .32258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9601        .10217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9780        .10306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.0790        .25402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1963        4.0316        .19979E-03   -1.5412    
  17  norm          26.365        21.980        .78017E-04   -1.4681    
  18  Prefactor     .10000E-03    2.9589        .24887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.708        17.922        .84055E-04   -1.4755    
  20  norm          3.6395        5.9918        .21170E-03   -1.5326    
  21  Prefactor     .10000E-03    30.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     103.56        87.737        .19750E-03   -1.3669    
  23  norm          .10000E-03    2.6700        .11973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    39.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.6621        39.791        .18586E-03   -1.5276    
  26  Normalizat    1.1963        .24546        .25247E-03   -.86718    
  27  Prefactor     1.1277        .25209        .27505E-03   -.88585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78337e-10
Minuit parameter uncertainties:
  1  4.76838
  2  2.46257
  3  2.71977
  4  0.970491
  5  0.174439
  6  3.76366
  7  5.10115e-06
  8  71.2318
  9  2.42616e-05
  10  4.30557e-05
  11  6.64639e-05
  12  8.95241e-06
  13  4.435e-07
  14  7.38411e-07
  15  1.01602e-05
  16  4.03212
  17  21.9868
  18  8.91323e-06
  19  17.9267
  20  5.99274
  21  2.59675e-05
  22  87.8474
  23  3.02879e-07
  24  2.12735e-05
  25  27.2647
  26  0.245692
  27  0.252359
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  4.435e-07  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.128e+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.196e+00  2.457e-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: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/156307/likelihoodResults_330566401_330825601_4FGL_J1303.0+2434_daily_bin352.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): 102
logL (Free Index) = 5637.98294959
delta logL = -0.00240205569844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5637.97026891
delta logL = 0.0102786207035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72431E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8989       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1345       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=   5637.970     FROM MIGRAD    STATUS=FAILED        95 CALLS      324 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72592E-01    143.22        .87843E-03    .79725E-02
   2  alpha         3.8986        3.0276        .84686E-01    .18434E-03
   3  Normalizat    1.1853        .13482        .25350E-03    .74130E-04
   4  Prefactor     1.1345        .11753        .27434E-03    .64315E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5637.970     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      418 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72592E-01    143.22        .13522E-03    .79725E-02
   2  alpha         3.8986        3.0276        .38811E-02    .18434E-03
   3  Normalizat    1.1853        .13482        .16570E-03    .74130E-04
   4  Prefactor     1.1345        .11753        .80600E-04    .64315E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5637.970     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      455 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72594E-01    2.7754        .17569E-03   -.33734E-03
   2  alpha         3.8986        4.4111        .16937E-01   -.46744E-05
   3  Normalizat    1.1853        .24732        .10140E-04    .76911E-04
   4  Prefactor     1.1345        .25462        .10974E-04    .64439E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0725942
  alpha      = 3.8986
  Normalizat = 1.18526
  Prefactor  = 1.13454
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.970     FROM HESSE     STATUS=OK            25 CALLS      480 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72594E-01    1.6641        .70274E-05   -1.5654    
   2  alpha         3.8986        4.3951        .67749E-03    .59371    
   3  Normalizat    1.1853        .24707        .20280E-05   -.87059    
   4  Prefactor     1.1345        .25477        .21947E-05   -.88370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.5382e-11
Minuit parameter uncertainties:
  1  0.694679
  2  3.87291
  3  0.247317
  4  0.255046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156307': 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) = 5637.97026887
delta logL = 0.010278660935

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  7.259e-02  6.947e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.899e+00  3.873e+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.135e+00  2.550e-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.185e+00  2.473e-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/156307/cmap_HighResolution_330566401_330825601_4FGL_J1303.0+2434_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-05', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-09-06 18:08:14.624467', job_id='156307', GAL2='1.13', fit_tolerance='1e-08', EG2='1.19', EG='1.20', time_epoch_completed='1630976894.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.03e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='352' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:08:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 156307: <4FGL_J1303.0+2434_daily_bin352> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin352> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 17:55:28 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:55: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 17:55:51 2021
Terminated at Mon Sep  6 18:08:15 2021
Results reported at Mon Sep  6 18:08:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin352 195.757 24.5821 330566401 330825601 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 :                                   726.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            767 sec.

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

