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


Performing analysis on: 4FGL_J1302.8+5748_daily_bin1202
RA = 195.721, Dec = 57.8146
tmin = 550886401, tmax = 551145601
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='116312', job_status='RUN', time_executed='2021-09-06 15:38:30.100540', time_epoch_executed='1630967910.1' WHERE source_name='4FGL J1302.8+5748' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/116312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/116312/ft1_4FGL_J1302.8+5748_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/116312/ft2_4FGL_J1302.8+5748_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/116312/ft1_4FGL_J1302.8+5748_daily_bin1202.fits outfile=/scratch/kocevski/116312/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin1202.fits ra=195.721 dec=57.8146 rad=12.0 tmin=550886401.0 tmax=551145601.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.84
user 3.53
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/116312/ft2_4FGL_J1302.8+5748_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/116312/ft2_4FGL_J1302.8+5748_daily_bin1202.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/116312/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/116312/ft1_filtered_4FGL_J1302.8+5748_daily_bin1202.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.80
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/116312/ft1_filtered_4FGL_J1302.8+5748_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/116312/ft2_4FGL_J1302.8+5748_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/116312/ltcube_550886401_551145601_4FGL_J1302.8+5748_daily_bin1202.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/116312/ft2_4FGL_J1302.8+5748_daily_bin1202.fits
.....................!
real 16.04
user 15.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/116312/ft1_filtered_4FGL_J1302.8+5748_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/116312/ft2_4FGL_J1302.8+5748_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/116312/ltcube_550886401_551145601_4FGL_J1302.8+5748_daily_bin1202.fits outfile=/scratch/kocevski/116312/expmap_550886401_551145601_4FGL_J1302.8+5748_daily_bin1202.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/116312/ltcube_550886401_551145601_4FGL_J1302.8+5748_daily_bin1202.fits
.....................!
real 192.42
user 185.60
sys 5.20

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1302.8+5748 @ 195.721 57.8146

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/116312/ft1_filtered_4FGL_J1302.8+5748_daily_bin1202.fits scfile=/scratch/kocevski/116312/ft2_4FGL_J1302.8+5748_daily_bin1202.fits outfile=/scratch/kocevski/116312/cmap_550886401_551145601_4FGL_J1302.8+5748_daily_bin1202.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.721 yref=57.8146 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/116312/ft1_filtered_4FGL_J1302.8+5748_daily_bin1202.fits scfile=/scratch/kocevski/116312/ft2_4FGL_J1302.8+5748_daily_bin1202.fits outfile=/scratch/kocevski/116312/cmap_HighResolution_550886401_551145601_4FGL_J1302.8+5748_daily_bin1202.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.721 yref=57.8146 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.87
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/116312/ft1_filtered_4FGL_J1302.8+5748_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/116312/ft2_4FGL_J1302.8+5748_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/116312/Model_4FGL_J1302.8+5748_daily_bin1202.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/116312/ft1_filtered_4FGL_J1302.8+5748_daily_bin1202.fits......................!
real 31.47
user 24.59
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/116312/ft1_filtered_4FGL_J1302.8+5748_daily_bin1202.fits', '/scratch/kocevski/116312/ft2_4FGL_J1302.8+5748_daily_bin1202.fits', expMap='/scratch/kocevski/116312/expmap_550886401_551145601_4FGL_J1302.8+5748_daily_bin1202.fits', expCube='/scratch/kocevski/116312/ltcube_550886401_551145601_4FGL_J1302.8+5748_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/116312/Model_4FGL_J1302.8+5748_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1302.8+5748'

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.988e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/116312/ft1_filtered_4FGL_J1302.8+5748_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/116312/ft2_4FGL_J1302.8+5748_daily_bin1202.fits
Exposure map: /scratch/kocevski/116312/expmap_550886401_551145601_4FGL_J1302.8+5748_daily_bin1202.fits
Exposure cube: /scratch/kocevski/116312/ltcube_550886401_551145601_4FGL_J1302.8+5748_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/116312/Model_4FGL_J1302.8+5748_daily_bin1202.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) = 1847.99507717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    67.618       1.0000         .10000E-03   10000.    
     2 'norm      '    .11826E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .41244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .17255E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8580       1.0000         .10000E-03   10000.    
    11 'norm      '    5.7021       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2569       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    111.33       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    21.181       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    95.305       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.159       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    15.272       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .16802E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    110.92       1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.6337       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .39508       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.5257       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1847.953     FROM MIGRAD    STATUS=CONVERGED    944 CALLS     5735 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          67.589        43.712       -.21094E-07   -.50222E-04
   2  norm          .10000E-03    5.9926        .62859E-06** at limit **
   3  Prefactor     .10000E-03    5.3080        .21465E-07** at limit **
   4  Prefactor     .10000E-03    15.662        .17492E-07** at limit **
   5  norm          .41084        4.7858        .12890E-05    .12654E-03
   6  Prefactor     .10000E-03    36.893        .14325E-07** at limit **
   7  Prefactor     .10000E-03    85.279       -.17102E-06** at limit **
   8  norm          .10006E-03    38.035       -.12839E-04** at limit **
   9  Prefactor     .10000E-03    34.950       -.59869E-08** at limit **
  10  Prefactor     7.8571        13.830       -.10089E-08   -.92130E-04
  11  norm          5.7016        5.2053       -.18136E-06   -.35357E-03
  12  Prefactor     .10000E-03    23.309        .82776E-07** at limit **
  13  norm          4.2568        4.1863       -.46899E-08    .49369E-05
  14  Prefactor     .10000E-03    165.09        .10485E-05** at limit **
  15  Prefactor     .10000E-03    25.784        .15236E-06** at limit **
  16  norm          .10000E-03    3.5247        .46492E-07** at limit **
  17  Prefactor     .10000E-03    51.174        .10822E-06** at limit **
  18  Prefactor     111.34        83.265       -.72912E-08   -.16636E-04
  19  Prefactor     .10000E-03    28.068        .32613E-06** at limit **
  20  Prefactor     .10000E-03    83.226        .20791E-08** at limit **
  21  norm          21.179        11.302        .29531E-06    .20344E-03
  22  Prefactor     .10001E-03    405.72        .35929E-05** at limit **
  23  Prefactor     .10000E-03    3.1901        .60306E-07** at limit **
  24  Prefactor     95.330        102.17        .50989E-06    .32347E-04
  25  Prefactor     14.159        14.128        .27254E-06    .45610E-04
  26  norm          .10000E-03    128.50       -.41772E-06** at limit **
  27  norm          15.270        10.941        .68663E-06    .57405E-03
  28  Prefactor     .10000E-03    63.572        .44236E-06** at limit **
  29  Prefactor     .10016E-03    1461.7       -.81373E-05** at limit **
  30  Prefactor     110.90        126.68       -.19349E-05    .30211E-05
  31  Prefactor     6.6335        6.3848        .17948E-05    .14244E-02
  32  Prefactor     .10000E-03    27.251       -.31951E-07** at limit **
  33  Normalizat    .39516        .34062       -.26358E-05   -.23911E-04
  34  Prefactor     1.5257        .40404       -.32378E-06   -.13386E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 67.5893
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.410841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100055
  Prefactor  = 0.0001
  Prefactor  = 7.85713
  norm       = 5.70162
  Prefactor  = 0.0001
  norm       = 4.25683
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 111.336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.1786
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 95.3304
  Prefactor  = 14.159
  norm       = 0.0001
  norm       = 15.2702
  Prefactor  = 0.0001
  Prefactor  = 0.000100164
  Prefactor  = 110.899
  Prefactor  = 6.63351
  Prefactor  = 0.0001
  Normalizat = 0.395158
  Prefactor  = 1.52572
 **********
 **   18 **HESSE 
 **********

 FCN=   1847.953     FROM HESSE     STATUS=OK           722 CALLS     6457 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          67.589        43.266        .48811E-04   -1.4062    
   2  norm          .10000E-03    10.338        .20243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.3107        .96732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.664        .16620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .41084        8.2582        .17206E-02   -1.5580    
   6  Prefactor     .10000E-03    36.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    85.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10006E-03    42.223        .32090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8571        13.791        .14304E-03   -1.5147    
  11  norm          5.7016        5.2055        .87061E-04   -1.5230    
  12  Prefactor     .10000E-03    23.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2568        4.1882        .84471E-04   -1.5295    
  14  Prefactor     .10000E-03    165.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.5290        .78814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    51.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     111.34        83.140        .38123E-04   -1.3594    
  19  Prefactor     .10000E-03    28.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    83.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          21.179        11.307        .87030E-04   -1.4787    
  22  Prefactor     .10001E-03    407.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.2007        .74966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     95.330        102.19        .41171E-04   -1.3752    
  25  Prefactor     14.159        14.122        .10644E-03   -1.4955    
  26  norm          .10000E-03    128.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          15.270        10.997        .51244E-03   -1.4926    
  28  Prefactor     .10000E-03    63.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10016E-03    1474.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     110.90        127.05        .19096E-03   -1.3598    
  31  Prefactor     6.6335        6.7641        .52391E-03   -1.5193    
  32  Prefactor     .10000E-03    27.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .39516        .38041        .34644E-03   -1.1755    
  34  Prefactor     1.5257        .45957        .23961E-03   -.76822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29907e-09
Minuit parameter uncertainties:
  1  43.286
  2  6.79212e-05
  3  3.17078e-06
  4  5.41574e-06
  5  3.68404
  6  1.05815e-05
  7  0.000157812
  8  0.00306351
  9  0.000138577
  10  13.7965
  11  5.20596
  12  5.28681e-05
  13  4.1885
  14  0.00114748
  15  2.69299e-05
  16  5.96047e-06
  17  7.27003e-05
  18  83.2271
  19  0.000126977
  20  5.69561e-05
  21  11.3079
  22  0.00434748
  23  6.89913e-06
  24  102.382
  25  14.1251
  26  0.000416207
  27  10.9986
  28  0.000314025
  29  0.0319245
  30  127.361
  31  6.76486
  32  1.51522e-05
  33  0.382931
  34  0.460835
Done.

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

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.000e-04  2.693e-05  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.526e+00  4.608e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  3.952e-01  3.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.721 57.815
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/116312/likelihoodResults_550886401_551145601_4FGL_J1302.8+5748_daily_bin1202.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) = 1847.95335915
delta logL = -0.000183716274705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1847.9531755
delta logL = -6.41477981844e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3188       1.0000          .0000       10.000    
     3 'Normalizat'    .39537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+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.

 FCN=   1847.953     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      257 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1824.9        .18142E-02** at limit **
   2  Index         2.3884        6.1907        .50000       -.24699E-04
   3  Normalizat    .39516        .54332E-01    .34645E-03   -.14324E-04
   4  Prefactor     1.5257        .70532E-01    .23961E-03   -.16549E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010002
  Index      = 2.38835
  Normalizat = 0.395158
  Prefactor  = 1.52572
 **********
 **   18 **HESSE 
 **********

 FCN=   1847.953     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    7652.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3884        6.1508        .50000       -.54958    
   3  Normalizat    .39516        .13563        .13858E-04   -1.1755    
   4  Prefactor     1.5257        .17613        .47922E-04   -.76822    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.68781e-10
Minuit parameter uncertainties:
  1  0.0233117
  2  57.1378
  3  0.135743
  4  0.176203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/116312': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1847.95317483
delta logL = 5.99758777753e-07

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.000e-04  2.331e-02  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.388e+00  5.714e+01  0.000e+00  1.000e+01 (-1.000e+00)
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.526e+00  1.762e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  3.952e-01  1.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.721 57.815

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/116312/cmap_HighResolution_550886401_551145601_4FGL_J1302.8+5748_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-09-06 15:49:20.563826', job_id='116312', GAL2='1.53', fit_tolerance='1e-08', EG2='0.40', EG='0.40', time_epoch_completed='1630968560.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.53', dlogl='6.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1202' AND source_name='4FGL J1302.8+5748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:49:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 116312: <4FGL_J1302.8+5748_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1302.8+5748_daily_bin1202> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep  6 15:35:49 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:35: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 15:35:51 2021
Terminated at Mon Sep  6 15:49:20 2021
Results reported at Mon Sep  6 15:49:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1302.8+5748_daily_bin1202 195.721 57.8146 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1302.8+5748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   601.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             266.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

