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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1035
RA = 195.757, Dec = 24.5821
tmin = 507600001, tmax = 507859201
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='162012', job_status='RUN', time_executed='2021-09-06 18:19:42.749953', time_epoch_executed='1630977582.75' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162012/ft1_4FGL_J1303.0+2434_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162012/ft2_4FGL_J1303.0+2434_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162012/ft1_4FGL_J1303.0+2434_daily_bin1035.fits outfile=/scratch/kocevski/162012/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1035.fits ra=195.757 dec=24.5821 rad=12.0 tmin=507600001.0 tmax=507859201.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.66
user 3.41
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/162012/ft2_4FGL_J1303.0+2434_daily_bin1035.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/162012/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1035.fits evtable="EVENTS" outfile="/scratch/kocevski/162012/ft1_filtered_4FGL_J1303.0+2434_daily_bin1035.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162012/ft1_filtered_4FGL_J1303.0+2434_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/162012/ft2_4FGL_J1303.0+2434_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/162012/ltcube_507600001_507859201_4FGL_J1303.0+2434_daily_bin1035.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/162012/ft2_4FGL_J1303.0+2434_daily_bin1035.fits
.....................!
real 16.62
user 16.27
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162012/ft1_filtered_4FGL_J1303.0+2434_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/162012/ft2_4FGL_J1303.0+2434_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/162012/ltcube_507600001_507859201_4FGL_J1303.0+2434_daily_bin1035.fits outfile=/scratch/kocevski/162012/expmap_507600001_507859201_4FGL_J1303.0+2434_daily_bin1035.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/162012/ltcube_507600001_507859201_4FGL_J1303.0+2434_daily_bin1035.fits
.....................!
real 190.66
user 186.27
sys 3.94

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/162012/ft1_filtered_4FGL_J1303.0+2434_daily_bin1035.fits scfile=/scratch/kocevski/162012/ft2_4FGL_J1303.0+2434_daily_bin1035.fits outfile=/scratch/kocevski/162012/cmap_507600001_507859201_4FGL_J1303.0+2434_daily_bin1035.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.58
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.630       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3337       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2035       1.0000         .10000E-03   10000.    
     5 'norm      '    .32702       1.0000         .10000E-03   10000.    
     6 'norm      '    4.8342       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.481       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8843       1.0000         .10000E-03   10000.    
    10 'norm      '    .33035E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4498       1.0000         .10000E-03   10000.    
    15 'norm      '    .10288E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5467       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0208       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1037       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6108       1.0000         .10000E-03   10000.    
    20 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.0269       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.0390       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2292       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78187       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=   5542.103     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3299 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.631        4.1062        .14912E-06    .90044E-05
   2  Prefactor     3.3336        2.1555       -.67852E-07    .54362E-04
   3  Prefactor     .10000E-03    .90514       -.56590E-08** at limit **
   4  Prefactor     7.2046        5.3082       -.38991E-06    .48554E-04
   5  norm          .32709        .25078       -.46052E-07   -.11584E-02
   6  norm          4.8344        3.9791        .75747E-07   -.86277E-04
   7  Prefactor     .10000E-03    3.1676        .30126E-07** at limit **
   8  Prefactor     27.470        50.679       -.16822E-04   -.10867E-03
   9  Prefactor     3.8854        6.7889       -.91610E-06   -.29307E-03
  10  norm          .10004E-03    2.5391        .14738E-05** at limit **
  11  Prefactor     .10000E-03    10.862       -.50420E-05** at limit **
  12  Prefactor     .10000E-03    10.086        .11983E-04** at limit **
  13  norm          .10000E-03    1.0919        .89204E-08** at limit **
  14  norm          1.4490        3.8541       -.11532E-05   -.89953E-03
  15  norm          .10000E-03    2.5872        .19615E-06** at limit **
  16  norm          1.5445        4.0606       -.12040E-05   -.75177E-03
  17  norm          6.0201        16.017       -.47874E-06    .14489E-04
  18  Prefactor     4.1035        3.1057        .19959E-06   -.23443E-03
  19  Prefactor     9.6056        13.079       -.86019E-06   -.75493E-04
  20  norm          .10000E-03    10.817       -.46996E-05** at limit **
  21  Prefactor     .10000E-03    18.319        .22033E-04** at limit **
  22  Prefactor     .10000E-03    26.887       -.16273E-04** at limit **
  23  norm          6.0284        10.677       -.42615E-06    .12197E-03
  24  Prefactor     1.0350        12.109       -.14297E-05   -.50585E-04
  25  Prefactor     .10000E-03    12.637       -.13348E-04** at limit **
  26  Normalizat    1.2286        .18348        .13861E-05   -.85458E-04
  27  Prefactor     .78232        .18670        .87277E-08    .27261E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6307
  Prefactor  = 3.33359
  Prefactor  = 0.0001
  Prefactor  = 7.20461
  norm       = 0.327091
  norm       = 4.83439
  Prefactor  = 0.0001
  Prefactor  = 27.4705
  Prefactor  = 3.88538
  norm       = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.44899
  norm       = 0.0001
  norm       = 1.54449
  norm       = 6.02005
  Prefactor  = 4.10347
  Prefactor  = 9.60561
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.02841
  Prefactor  = 1.03503
  Prefactor  = 0.0001
  Normalizat = 1.2286
  Prefactor  = 0.78232
 **********
 **   18 **HESSE 
 **********

 FCN=   5542.103     FROM HESSE     STATUS=OK           496 CALLS     3795 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.631        4.1090        .81021E-04   -1.4997    
   2  Prefactor     3.3336        2.1600        .82942E-04   -1.5343    
   3  Prefactor     .10000E-03    .94207        .13818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2046        5.3032        .14068E-03   -1.5171    
   5  norm          .32709        .24269        .30796E-03   -1.5594    
   6  norm          4.8344        3.9745        .12876E-03   -1.5268    
   7  Prefactor     .10000E-03    3.1719        .12939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.470        50.359        .76422E-04   -1.4659    
   9  Prefactor     3.8854        6.7895        .20473E-03   -1.5314    
  10  norm          .10004E-03    18.776        .22225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0982        .75957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4490        3.8464        .23112E-03   -1.5467    
  15  norm          .10000E-03    4.3338        .21847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5445        3.8879        .22826E-03   -1.5459    
  17  norm          6.0201        15.998        .16364E-03   -1.5217    
  18  Prefactor     4.1035        3.0912        .10234E-03   -1.5303    
  19  Prefactor     9.6056        13.004        .12927E-03   -1.5088    
  20  norm          .10000E-03    10.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.0284        10.632        .16355E-03   -1.5217    
  24  Prefactor     1.0350        49.041        .48735E-02   -1.5504    
  25  Prefactor     .10000E-03    12.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2286        .21950        .21889E-03   -.85724    
  27  Prefactor     .78232        .22364        .28568E-03   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98064e-08
Minuit parameter uncertainties:
  1  4.1091
  2  2.16006
  3  1.96278e-06
  4  5.30357
  5  0.242695
  6  3.97473
  7  7.57211e-07
  8  50.4369
  9  6.79083
  10  0.00167898
  11  5.804e-06
  12  1.12702e-06
  13  3.68027e-08
  14  3.84708
  15  7.82689e-05
  16  3.88858
  17  16.0096
  18  3.09135
  19  13.0079
  20  3.78913e-05
  21  1.29936e-05
  22  1.40997e-05
  23  10.6352
  24  14.2608
  25  1.12417e-05
  26  0.219661
  27  0.223904
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  3.680e-08  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.823e-01  2.239e-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.229e+00  2.197e-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: 3.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/162012/likelihoodResults_507600001_507859201_4FGL_J1303.0+2434_daily_bin1035.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) = 5542.10742658
delta logL = -0.00412991625672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5542.10329884
delta logL = -2.17726574192e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10608E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0484       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78239       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5542.103     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      254 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7713        .18050E-03** at limit **
   2  alpha         1.3184        2.6208        .50000       -.32355E-05
   3  Normalizat    1.2286        .20564        .21889E-03    .47368E-04
   4  Prefactor     .78232        .22011        .28568E-03    .39636E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.31843
  Normalizat = 1.2286
  Prefactor  = 0.782318
 **********
 **   18 **HESSE 
 **********

 FCN=   5542.103     FROM HESSE     STATUS=OK            27 CALLS      281 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6014        .36100E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3184        2.5959        .50000       -.49227    
   3  Normalizat    1.2286        .20584        .87554E-05   -.85724    
   4  Prefactor     .78232        .22032        .11427E-04   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48962e-08
Minuit parameter uncertainties:
  1  3.01177e-05
  2  83.2539
  3  0.205975
  4  0.220571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162012': 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) = 5542.10328248
delta logL = 1.41839345815e-05

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  3.012e-05  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.318e+00  8.325e+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:  7.823e-01  2.206e-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.229e+00  2.060e-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/162012/cmap_HighResolution_507600001_507859201_4FGL_J1303.0+2434_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-05', job_status='DONE', photon_flux_upper_limit='3.73e-08', time_completed='2021-09-06 18:31:44.383895', job_id='162012', GAL2='0.78', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630978304.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.42e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1035' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 162012: <4FGL_J1303.0+2434_daily_bin1035> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1035> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 18:15:29 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:15:59 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:15:59 2021
Terminated at Mon Sep  6 18:31:45 2021
Results reported at Mon Sep  6 18:31:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1035 195.757 24.5821 507600001 507859201 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 :                                   713.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            976 sec.

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

