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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1171
RA = 195.757, Dec = 24.5821
tmin = 542851201, tmax = 543110401
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='162226', job_status='RUN', time_executed='2021-09-06 18:20:00.143560', time_epoch_executed='1630977600.14' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162226

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162226/ft1_4FGL_J1303.0+2434_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162226/ft2_4FGL_J1303.0+2434_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162226/ft1_4FGL_J1303.0+2434_daily_bin1171.fits outfile=/scratch/kocevski/162226/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1171.fits ra=195.757 dec=24.5821 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.79
user 0.62
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162226/ft1_filtered_4FGL_J1303.0+2434_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/162226/ft2_4FGL_J1303.0+2434_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/162226/ltcube_542851201_543110401_4FGL_J1303.0+2434_daily_bin1171.fits outfile=/scratch/kocevski/162226/expmap_542851201_543110401_4FGL_J1303.0+2434_daily_bin1171.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/162226/ltcube_542851201_543110401_4FGL_J1303.0+2434_daily_bin1171.fits
.....................!
real 191.75
user 186.10
sys 4.65

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/162226/ft1_filtered_4FGL_J1303.0+2434_daily_bin1171.fits scfile=/scratch/kocevski/162226/ft2_4FGL_J1303.0+2434_daily_bin1171.fits outfile=/scratch/kocevski/162226/cmap_542851201_543110401_4FGL_J1303.0+2434_daily_bin1171.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162226/ft1_filtered_4FGL_J1303.0+2434_daily_bin1171.fits scfile=/scratch/kocevski/162226/ft2_4FGL_J1303.0+2434_daily_bin1171.fits outfile=/scratch/kocevski/162226/cmap_HighResolution_542851201_543110401_4FGL_J1303.0+2434_daily_bin1171.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.6795       1.0000         .10000E-03   10000.    
     6 'norm      '    37.689       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26742E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11725E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .13988E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    777.47       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    65.826       1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    297.21       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .37812       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2557       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=   212.7276     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3229 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    35.777        .45803E-05** at limit **
   2  Prefactor     .10000E-03    27.896       -.21544E-04** at limit **
   3  Prefactor     .10001E-03    44.926        .14989E-04** at limit **
   4  Prefactor     .10001E-03    195.56        .15378E-04** at limit **
   5  norm          7.6785        6.9227        .22884E-06   -.62388E-03
   6  norm          37.648        96.449       -.41622E-04   -.71103E-04
   7  Prefactor     .10005E-03    458.62        .14033E-04** at limit **
   8  Prefactor     .10015E-03    6774.9       -.15656E-02** at limit **
   9  Prefactor     .10000E-03    43.958        .12839E-05** at limit **
  10  norm          .10014E-03    204.79        .40377E-04** at limit **
  11  Prefactor     .10001E-03    265.61        .92258E-04** at limit **
  12  Prefactor     777.18        522.27       -.10683E-03   -.48526E-05
  13  norm          .10000E-03    37.148       -.98727E-05** at limit **
  14  norm          .10000E-03    42.861       -.95836E-05** at limit **
  15  norm          .10000E-03    30.981        .24936E-04** at limit **
  16  norm          .10000E-03    43.896        .53596E-06** at limit **
  17  norm          .10000E-03    150.43       -.98744E-04** at limit **
  18  Prefactor     .10001E-03    37.089       -.10879E-04** at limit **
  19  Prefactor     65.964        173.11        .15210E-03   -.17274E-04
  20  norm          .10000E-03    22.200       -.66418E-06** at limit **
  21  Prefactor     .10000E-03    271.64        .95295E-04** at limit **
  22  Prefactor     .10000E-03    633.73       -.34955E-03** at limit **
  23  norm          .10000E-03    26.013        .94479E-05** at limit **
  24  Prefactor     297.08        226.38       -.73083E-04   -.48985E-04
  25  Prefactor     .10000E-03    87.266        .10988E-04** at limit **
  26  Normalizat    .37873        1.3219        .15683E-03    .43971E-04
  27  Prefactor     1.2553        1.1673       -.43705E-04    .31368E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.00010001
  norm       = 7.67853
  norm       = 37.6478
  Prefactor  = 0.000100054
  Prefactor  = 0.000100155
  Prefactor  = 0.0001
  norm       = 0.000100136
  Prefactor  = 0.000100011
  Prefactor  = 777.178
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 65.9639
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 297.081
  Prefactor  = 0.0001
  Normalizat = 0.378728
  Prefactor  = 1.25532
 **********
 **   18 **HESSE 
 **********

 FCN=   212.7276     FROM HESSE     STATUS=OK           462 CALLS     3691 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    35.781        .85346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.890        .75338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    44.990        .95597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    195.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.6785        6.8862        .29580E-04   -1.5154    
   6  norm          37.648        96.309        .65285E-04   -1.4480    
   7  Prefactor     .10005E-03    459.46        .21438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10015E-03    6768.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.957        .94613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10014E-03    205.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    265.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     777.18        515.64        .74690E-04   -1.0058    
  13  norm          .10000E-03    37.198        .86958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    42.861        .93426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    30.972        .79386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    43.894        .94547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    150.43        .17534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    37.107        .86886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     65.964        172.03        .24733E-03   -1.4082    
  20  norm          .10000E-03    22.200        .67214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    271.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    633.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    26.012        .72761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     297.08        225.15        .11777E-03   -1.2243    
  25  Prefactor     .10000E-03    87.270        .13341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .37873        1.2855        .52462E-03   -1.1842    
  27  Prefactor     1.2553        1.1674        .28860E-03   -.84646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74852e-09
Minuit parameter uncertainties:
  1  0.000145331
  2  0.000131559
  3  0.00100022
  4  0.00285261
  5  6.88691
  6  96.7103
  7  0.00999535
  8  0.05013
  9  6.45685e-05
  10  0.0106329
  11  0.0034282
  12  518.885
  13  0.000150866
  14  6.73448e-05
  15  0.000107195
  16  0.000105572
  17  0.000163511
  18  0.00116909
  19  173.35
  20  1.3779e-05
  21  9.09314e-05
  22  0.00243158
  23  1.05539e-05
  24  225.812
  25  0.000106347
  26  1.4148
  27  1.19296
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  1.509e-04  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.255e+00  1.193e+00  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:  3.787e-01  1.415e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.757 24.582
Photon Flux Upper Limit: 9.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/162226/likelihoodResults_542851201_543110401_4FGL_J1303.0+2434_daily_bin1171.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) = 212.727716628
delta logL = -0.000108862746828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 212.312130406
delta logL = 0.415477358661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.562       1.0000         .10000E-03   10000.    
     2 'alpha     '    .80224       1.0000          .0000       5.0000    
     3 'Normalizat'    .36238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1012       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=   212.3121     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      264 TOTAL
                     EDM=   .26E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.541        33.661       -.39456E-05   -.43322E-05
   2  alpha         .80220        .74200       -.66389E-04    .46596E-06
   3  Normalizat    .36249        .98900       -.21915E-05   -.58992E-05
   4  Prefactor     1.1011        .98129       -.18734E-06   -.62011E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.5413
  alpha      = 0.802204
  Normalizat = 0.362486
  Prefactor  = 1.10108
 **********
 **   18 **HESSE 
 **********

 FCN=   212.3121     FROM HESSE     STATUS=OK            29 CALLS      293 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.541        33.640        .88516E-04   -1.4870    
   2  alpha         .80220        .74171        .45868E-03   -.74656    
   3  Normalizat    .36249        1.0370        .52627E-03   -1.1929    
   4  Prefactor     1.1011        1.0328        .29549E-03   -.89432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22203e-12
Minuit parameter uncertainties:
  1  33.6759
  2  0.763555
  3  1.10143
  4  1.05257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162226': 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) = 212.312130104
delta logL = 0.415477660811

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.754e+01  3.368e+01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  8.022e-01  7.636e-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.101e+00  1.053e+00  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:  3.625e-01  1.101e+00  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/162226/cmap_HighResolution_542851201_543110401_4FGL_J1303.0+2434_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-04', job_status='DONE', photon_flux_upper_limit='9.16e-07', time_completed='2021-09-06 18:25:09.630089', job_id='162226', GAL2='1.10', fit_tolerance='1e-08', EG2='0.36', EG='0.38', time_epoch_completed='1630977909.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='4.15e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1171' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:25:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 162226: <4FGL_J1303.0+2434_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1171> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 18:15:48 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:16:50 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:16:50 2021
Terminated at Mon Sep  6 18:25:10 2021
Results reported at Mon Sep  6 18:25:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1171 195.757 24.5821 542851201 543110401 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 :                                   312.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             193.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   499 sec.
    Turnaround time :                            562 sec.

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

