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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin305
RA = 195.757, Dec = 24.5821
tmin = 318384001, tmax = 318643201
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='156231', job_status='RUN', time_executed='2021-09-06 17:55:47.566133', time_epoch_executed='1630976147.57' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156231/ft1_4FGL_J1303.0+2434_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156231/ft2_4FGL_J1303.0+2434_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156231/ft1_4FGL_J1303.0+2434_daily_bin305.fits outfile=/scratch/kocevski/156231/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin305.fits ra=195.757 dec=24.5821 rad=12.0 tmin=318384001.0 tmax=318643201.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.36
user 3.07
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156231/ft1_filtered_4FGL_J1303.0+2434_daily_bin305.fits" evtable="EVENTS" scfile=/scratch/kocevski/156231/ft2_4FGL_J1303.0+2434_daily_bin305.fits sctable="SC_DATA" outfile=/scratch/kocevski/156231/ltcube_318384001_318643201_4FGL_J1303.0+2434_daily_bin305.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/156231/ft2_4FGL_J1303.0+2434_daily_bin305.fits
.....................!
real 16.96
user 16.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156231/ft1_filtered_4FGL_J1303.0+2434_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/156231/ft2_4FGL_J1303.0+2434_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/156231/ltcube_318384001_318643201_4FGL_J1303.0+2434_daily_bin305.fits outfile=/scratch/kocevski/156231/expmap_318384001_318643201_4FGL_J1303.0+2434_daily_bin305.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/156231/ltcube_318384001_318643201_4FGL_J1303.0+2434_daily_bin305.fits
.....................!
real 192.55
user 186.48
sys 5.14

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/156231/ft1_filtered_4FGL_J1303.0+2434_daily_bin305.fits scfile=/scratch/kocevski/156231/ft2_4FGL_J1303.0+2434_daily_bin305.fits outfile=/scratch/kocevski/156231/cmap_318384001_318643201_4FGL_J1303.0+2434_daily_bin305.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156231/ft1_filtered_4FGL_J1303.0+2434_daily_bin305.fits scfile=/scratch/kocevski/156231/ft2_4FGL_J1303.0+2434_daily_bin305.fits outfile=/scratch/kocevski/156231/cmap_HighResolution_318384001_318643201_4FGL_J1303.0+2434_daily_bin305.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3353       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3215       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13416E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9660       1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.919       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6437       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.1164       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.3499       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.876       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.424       1.0000         .10000E-03   10000.    
    23 'norm      '    22.029       1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.523       1.0000         .10000E-03   10000.    
    25 'Prefactor '    100.52       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1101       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78184       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=   6259.070     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3291 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3349        3.8647       -.34074E-06    .18354E-05
   2  Prefactor     4.3214        2.8703        .89358E-07   -.42591E-04
   3  Prefactor     .10035E-03    .95077       -.12656E-06** at limit **
   4  Prefactor     .10000E-03    9.1231       -.31709E-06** at limit **
   5  norm          1.9660        .37244       -.10937E-06    .11670E-02
   6  norm          .10000E-03    3.0605       -.41212E-06** at limit **
   7  Prefactor     21.915        11.884        .80733E-07    .81853E-04
   8  Prefactor     .10000E-03    61.445        .26238E-04** at limit **
   9  Prefactor     .10000E-03    3.5474       -.47233E-06** at limit **
  10  norm          5.6389        4.3888       -.97764E-07    .27602E-03
  11  Prefactor     16.659        12.680       -.13397E-05    .21018E-04
  12  Prefactor     .10000E-03    37.352       -.23484E-04** at limit **
  13  norm          .10000E-03    1.7025       -.18093E-06** at limit **
  14  norm          9.1146        6.2591        .21160E-05    .22574E-03
  15  norm          .10000E-03    .76437        .23348E-07** at limit **
  16  norm          .10000E-03    1.3601        .10369E-06** at limit **
  17  norm          .10000E-03    11.145        .22175E-06** at limit **
  18  Prefactor     .10000E-03    1.1696        .10377E-05** at limit **
  19  Prefactor     .10000E-03    5.5495        .11037E-05** at limit **
  20  norm          7.3504        6.3096       -.27648E-05   -.14985E-04
  21  Prefactor     14.876        20.279       -.64247E-06    .50308E-05
  22  Prefactor     33.309        58.070       -.14887E-03   -.18520E-04
  23  norm          22.028        10.076       -.82410E-06    .58026E-04
  24  Prefactor     45.523        18.502        .87472E-06    .32885E-04
  25  Prefactor     100.51        30.986       -.13091E-05    .27638E-04
  26  Normalizat    1.1102        .18183        .37412E-05    .10175E-03
  27  Prefactor     .78171        .19129        .48340E-05    .15663E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.33494
  Prefactor  = 4.32136
  Prefactor  = 0.000100347
  Prefactor  = 0.0001
  norm       = 1.96603
  norm       = 0.0001
  Prefactor  = 21.9149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.63888
  Prefactor  = 16.6585
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.11462
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100003
  norm       = 7.35037
  Prefactor  = 14.8758
  Prefactor  = 33.3085
  norm       = 22.0283
  Prefactor  = 45.5229
  Prefactor  = 100.513
  Normalizat = 1.11021
  Prefactor  = 0.781714
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.070     FROM HESSE     STATUS=OK           494 CALLS     3785 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3349        3.8960        .10645E-03   -1.5205    
   2  Prefactor     4.3214        2.8946        .95890E-04   -1.5292    
   3  Prefactor     .10035E-03    1.8613        .27629E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.4945        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9660        .37326        .20071E-04   -1.5428    
   6  norm          .10000E-03    3.1090        .13507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.915        11.875        .85555E-04   -1.4771    
   8  Prefactor     .10000E-03    61.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5735        .14549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6389        4.3939        .14023E-03   -1.5233    
  11  Prefactor     16.659        12.686        .98127E-04   -1.4891    
  12  Prefactor     .10000E-03    37.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7178        .10077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.1146        6.2577        .13274E-03   -1.5104    
  15  norm          .10000E-03    .76626        .67534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3608        .90106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.1823        .83578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.3504        6.3064        .14794E-03   -1.5166    
  21  Prefactor     14.876        20.284        .10385E-03   -1.4936    
  22  Prefactor     33.309        58.160        .34656E-03   -1.4553    
  23  norm          22.028        10.077        .85340E-04   -1.4769    
  24  Prefactor     45.523        18.527        .59424E-04   -1.4358    
  25  Prefactor     100.51        31.035        .40100E-04   -1.3699    
  26  Normalizat    1.1102        .21941        .24410E-03   -.89425    
  27  Prefactor     .78171        .22923        .30831E-03   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80392e-09
Minuit parameter uncertainties:
  1  3.89615
  2  2.89471
  3  0.00160785
  4  0.000126047
  5  0.373256
  6  3.53539e-05
  7  11.8758
  8  0.00017557
  9  2.76317e-05
  10  4.39416
  11  12.688
  12  0.000105851
  13  1.34257e-05
  14  6.25813
  15  6.69894e-06
  16  4.20398e-06
  17  8.76093e-07
  18  0.000111752
  19  0.000263134
  20  6.30696
  21  20.2934
  22  58.2593
  23  10.078
  24  18.5295
  25  31.0404
  26  0.219589
  27  0.229511
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  1.343e-05  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:  7.817e-01  2.295e-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.110e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/156231/likelihoodResults_318384001_318643201_4FGL_J1303.0+2434_daily_bin305.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) = 6259.07276112
delta logL = -0.00275461533784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6259.07000646
delta logL = 4.19749994762e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0825       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78172       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=   6259.070     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7051        .90712E-02** at limit **
   2  alpha         2.0995        3.5333        .41901       -.49174E-04
   3  Normalizat    1.1102        .17469        .55203E-01    .95441E-05
   4  Prefactor     .78171        .18923        .69678E-01    .36063E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.09954
  Normalizat = 1.11021
  Prefactor  = 0.781713
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.070     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7752        .10187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0995        3.4488        .50000       -.16088    
   3  Normalizat    1.1102        .20848        .24410E-03   -.89425    
   4  Prefactor     .78171        .22564        .30831E-03   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46736e-09
Minuit parameter uncertainties:
  1  5.76352e-06
  2  2.4808
  3  0.20864
  4  0.225908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156231': 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) = 6259.07000584
delta logL = 6.61040758132e-07

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  5.764e-06  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.100e+00  2.481e+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:  7.817e-01  2.259e-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.110e+00  2.086e-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/156231/cmap_HighResolution_318384001_318643201_4FGL_J1303.0+2434_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='4.94e-08', time_completed='2021-09-06 18:08:38.779609', job_id='156231', GAL2='0.78', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630976918.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='6.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='305' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:08:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 156231: <4FGL_J1303.0+2434_daily_bin305> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin305 195.757 24.5821 318384001 318643201 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 :                                   767.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            797 sec.

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

