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


Performing analysis on: 4FGL_J1302.8+5748_daily_bin758
RA = 195.721, Dec = 57.8146
tmin = 435801601, tmax = 436060801
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='113555', job_status='RUN', time_executed='2021-09-06 15:25:46.636094', time_epoch_executed='1630967146.64' WHERE source_name='4FGL J1302.8+5748' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113555

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113555/ft1_4FGL_J1302.8+5748_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113555/ft2_4FGL_J1302.8+5748_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113555/ft1_4FGL_J1302.8+5748_daily_bin758.fits outfile=/scratch/kocevski/113555/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin758.fits ra=195.721 dec=57.8146 rad=12.0 tmin=435801601.0 tmax=436060801.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 5.69
user 5.37
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/113555/ft2_4FGL_J1302.8+5748_daily_bin758.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/113555/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin758.fits evtable="EVENTS" outfile="/scratch/kocevski/113555/ft1_filtered_4FGL_J1302.8+5748_daily_bin758.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113555/ft1_filtered_4FGL_J1302.8+5748_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/113555/ft2_4FGL_J1302.8+5748_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/113555/ltcube_435801601_436060801_4FGL_J1302.8+5748_daily_bin758.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/113555/ft2_4FGL_J1302.8+5748_daily_bin758.fits
.....................!
real 12.04
user 11.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113555/ft1_filtered_4FGL_J1302.8+5748_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/113555/ft2_4FGL_J1302.8+5748_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/113555/ltcube_435801601_436060801_4FGL_J1302.8+5748_daily_bin758.fits outfile=/scratch/kocevski/113555/expmap_435801601_436060801_4FGL_J1302.8+5748_daily_bin758.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/113555/ltcube_435801601_436060801_4FGL_J1302.8+5748_daily_bin758.fits
.....................!
real 191.99
user 186.30
sys 5.18

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/113555/ft1_filtered_4FGL_J1302.8+5748_daily_bin758.fits scfile=/scratch/kocevski/113555/ft2_4FGL_J1302.8+5748_daily_bin758.fits outfile=/scratch/kocevski/113555/cmap_435801601_436060801_4FGL_J1302.8+5748_daily_bin758.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113555/ft1_filtered_4FGL_J1302.8+5748_daily_bin758.fits scfile=/scratch/kocevski/113555/ft2_4FGL_J1302.8+5748_daily_bin758.fits outfile=/scratch/kocevski/113555/cmap_HighResolution_435801601_436060801_4FGL_J1302.8+5748_daily_bin758.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/113555/ft1_filtered_4FGL_J1302.8+5748_daily_bin758.fits', '/scratch/kocevski/113555/ft2_4FGL_J1302.8+5748_daily_bin758.fits', expMap='/scratch/kocevski/113555/expmap_435801601_436060801_4FGL_J1302.8+5748_daily_bin758.fits', expCube='/scratch/kocevski/113555/ltcube_435801601_436060801_4FGL_J1302.8+5748_daily_bin758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/113555/Model_4FGL_J1302.8+5748_daily_bin758.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/113555/ft1_filtered_4FGL_J1302.8+5748_daily_bin758.fits
Spacecraft file(s): /scratch/kocevski/113555/ft2_4FGL_J1302.8+5748_daily_bin758.fits
Exposure map: /scratch/kocevski/113555/expmap_435801601_436060801_4FGL_J1302.8+5748_daily_bin758.fits
Exposure cube: /scratch/kocevski/113555/ltcube_435801601_436060801_4FGL_J1302.8+5748_daily_bin758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/113555/Model_4FGL_J1302.8+5748_daily_bin758.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) = 3809.59207905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1038       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.307       1.0000         .10000E-03   10000.    
     5 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4785       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4389       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.4191       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.880       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1519       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.261       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.587       1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.609       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11597E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.5356       1.0000         .10000E-03   10000.    
    28 'Prefactor '    20.817       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.4950       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2940       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .53251       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=   3809.588     FROM MIGRAD    STATUS=CONVERGED    935 CALLS     4799 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.7045        .88106E-08** at limit **
   2  norm          1.1021        8.2336        .27237E-05   -.35835E-04
   3  Prefactor     .10000E-03    3.6748        .14512E-07** at limit **
   4  Prefactor     29.309        21.754       -.20013E-06   -.43860E-04
   5  norm          .10000E-03    1.6156        .11004E-06** at limit **
   6  Prefactor     .10000E-03    20.544        .40980E-07** at limit **
   7  Prefactor     .10000E-03    29.034        .17445E-07** at limit **
   8  norm          .10000E-03    4.8827       -.17418E-06** at limit **
   9  Prefactor     1.4696        50.974        .28822E-05   -.49398E-05
  10  Prefactor     4.4389        6.1699        .17847E-06   -.19644E-04
  11  norm          .10000E-03    1.4088        .23208E-07** at limit **
  12  Prefactor     .10000E-03    9.8905        .74776E-08** at limit **
  13  norm          5.4191        2.8371        .42680E-08   -.11977E-04
  14  Prefactor     .10000E-03    26.098        .75169E-07** at limit **
  15  Prefactor     11.879        13.370        .10767E-06   -.88146E-05
  16  norm          1.1511        4.0679        .99153E-06   -.59951E-05
  17  Prefactor     39.255        78.484        .67190E-06   -.66836E-05
  18  Prefactor     .10000E-03    14.810       -.21839E-07** at limit **
  19  Prefactor     12.592        23.962       -.78012E-06    .85238E-05
  20  Prefactor     47.597        43.070        .39666E-07   -.11131E-04
  21  norm          .10000E-03    2.9139       -.22680E-07** at limit **
  22  Prefactor     .10000E-03    302.37       -.27548E-05** at limit **
  23  Prefactor     .10000E-03    2.5572        .76209E-07** at limit **
  24  Prefactor     .10000E-03    10.171       -.24218E-07** at limit **
  25  Prefactor     .10000E-03    13.112        .38850E-06** at limit **
  26  norm          .10000E-03    61.976       -.79293E-07** at limit **
  27  norm          3.5360        6.3354        .70815E-07    .11654E-04
  28  Prefactor     20.832        57.434        .71090E-06    .21681E-05
  29  Prefactor     .10000E-03    202.18        .85842E-06** at limit **
  30  Prefactor     .10000E-03    20.357       -.26246E-07** at limit **
  31  Prefactor     3.4948        3.4872        .51093E-07    .17956E-05
  32  Prefactor     .10000E-03    13.154       -.57001E-08** at limit **
  33  Normalizat    1.2939        .21575       -.12407E-05   -.74626E-04
  34  Prefactor     .53257        .24581        .52731E-07   -.73150E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.10211
  Prefactor  = 0.0001
  Prefactor  = 29.3089
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.46959
  Prefactor  = 4.43893
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.41906
  Prefactor  = 0.0001
  Prefactor  = 11.8793
  norm       = 1.15111
  Prefactor  = 39.2545
  Prefactor  = 0.0001
  Prefactor  = 12.5925
  Prefactor  = 47.5965
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.53598
  Prefactor  = 20.8318
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.49481
  Prefactor  = 0.0001
  Normalizat = 1.29394
  Prefactor  = 0.53257
 **********
 **   18 **HESSE 
 **********

 FCN=   3809.588     FROM HESSE     STATUS=OK           724 CALLS     5523 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.7320        .17784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1021        8.2550        .32423E-03   -1.5498    
   3  Prefactor     .10000E-03    3.6760        .11547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.309        21.713        .74007E-04   -1.4625    
   5  norm          .10000E-03    2.8180        .15145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9014        .13287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4696        51.585        .35308E-03   -1.5466    
  10  Prefactor     4.4389        6.1395        .17119E-03   -1.5287    
  11  norm          .10000E-03    1.4169        .71277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.9000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.4191        2.8374        .72998E-04   -1.5242    
  14  Prefactor     .10000E-03    26.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.879        13.355        .11622E-03   -1.5019    
  16  norm          1.1511        4.0451        .22665E-03   -1.5493    
  17  Prefactor     39.255        78.508        .63969E-04   -1.4454    
  18  Prefactor     .10000E-03    14.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.592        23.900        .11291E-03   -1.4998    
  20  Prefactor     47.597        43.053        .58113E-04   -1.4327    
  21  norm          .10000E-03    2.9288        .10276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    305.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5773        .96365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    61.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.5360        6.2998        .19295E-03   -1.5332    
  28  Prefactor     20.832        57.340        .87788E-04   -1.4795    
  29  Prefactor     .10000E-03    203.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    20.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.4948        3.4714        .10930E-03   -1.5334    
  32  Prefactor     .10000E-03    13.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2939        .24130        .19257E-03   -.83747    
  34  Prefactor     .53257        .27483        .34250E-03   -1.1050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38102e-11
Minuit parameter uncertainties:
  1  1.49623e-05
  2  6.03345
  3  1.34111e-05
  4  21.719
  5  3.75813e-06
  6  5.24832e-06
  7  7.65347e-06
  8  1.01652e-05
  9  17.4294
  10  6.14041
  11  8.39017e-08
  12  7.06228e-06
  13  2.8375
  14  3.39957e-05
  15  13.3583
  16  4.04605
  17  78.7153
  18  1.14162e-05
  19  23.9182
  20  43.0808
  21  7.50207e-06
  22  0.00129366
  23  3.21157e-06
  24  2.49658e-06
  25  5.91648e-06
  26  3.86128e-05
  27  6.30098
  28  57.4926
  29  0.00122212
  30  6.96677e-06
  31  3.47162
  32  6.34819e-07
  33  0.241505
  34  0.275523
Done.

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

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.188e+01  1.336e+01  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:  5.326e-01  2.755e-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:  1.294e+00  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 195.721 57.815
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.52e-05

TS (Fixed Index): 1.14
Ra Dec: 195.721 57.815
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113555/likelihoodResults_435801601_436060801_4FGL_J1302.8+5748_daily_bin758.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) = 3809.52074859
delta logL = 0.0677288343168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3809.51927932
delta logL = 0.0691980977072

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4377       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5679       1.0000          .0000       10.000    
     3 'Normalizat'    1.2827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54139       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=   3809.519     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      294 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4353        15.659        .13801E-03    .42190E-03
   2  Index         2.5676        .97092        .61067E-02    .11929E-03
   3  Normalizat    1.2826        .23447        .19327E-03   -.55818E-03
   4  Prefactor     .54163        .27572        .33983E-03   -.36542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.4353
  Index      = 2.56758
  Normalizat = 1.28257
  Prefactor  = 0.541632
 **********
 **   18 **HESSE 
 **********

 FCN=   3809.519     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4353        13.779        .55203E-05   -1.5127    
   2  Index         2.5676        .85508        .24427E-03   -.50806    
   3  Normalizat    1.2826        .23429        .38653E-04   -.84088    
   4  Prefactor     .54163        .27547        .13593E-04   -1.1010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32564e-10
Minuit parameter uncertainties:
  1  13.7839
  2  0.860633
  3  0.234483
  4  0.276155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113555': 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) = 3809.51927832
delta logL = 0.0691990993832

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  8.435e+00  1.378e+01  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.568e+00  8.606e-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:  5.416e-01  2.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:  1.283e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 195.721 57.815
Photon Index (Free Index): 2.57 +/- 0.86
Photon Flux (Free Index): 4.26e-08 +/- 4.77e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.29e-05

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/113555/cmap_HighResolution_435801601_436060801_4FGL_J1302.8+5748_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.22e-03', comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='1.15e-05', photon_flux_error='3.81e-08', dlogl='6.92e-02', energy_flux='1.36e-05', photon_flux2='4.26e-08', job_status='DONE', time_completed='2021-09-06 15:39:27.420283', photon_index_error2='0.86', photon_index2='2.57', ts='1.14', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.29e-05', EG='1.29', time_epoch_completed='1630967967.42', return_code='0', job_id='113555', GAL2='0.54', EG2='1.28', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='4.77e-08', ts2='1.28', photon_index='2.27' WHERE bin_id='758' AND source_name='4FGL J1302.8+5748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:39:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 113555: <4FGL_J1302.8+5748_daily_bin758> in cluster <slac> Done

Job <4FGL_J1302.8+5748_daily_bin758> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 15:25:31 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:25:33 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:25:33 2021
Terminated at Mon Sep  6 15:39:28 2021
Results reported at Mon Sep  6 15:39:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1302.8+5748_daily_bin758 195.721 57.8146 435801601 436060801 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 :                                   814.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            837 sec.

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

