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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin799
RA = 195.757, Dec = 24.5821
tmin = 446428801, tmax = 446688001
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='160522', job_status='RUN', time_executed='2021-09-06 18:10:56.583949', time_epoch_executed='1630977056.58' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='799'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160522

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160522/ft1_4FGL_J1303.0+2434_daily_bin799.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160522/ft2_4FGL_J1303.0+2434_daily_bin799.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160522/ft1_4FGL_J1303.0+2434_daily_bin799.fits outfile=/scratch/kocevski/160522/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin799.fits ra=195.757 dec=24.5821 rad=12.0 tmin=446428801.0 tmax=446688001.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.47
user 3.25
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160522/ft1_filtered_4FGL_J1303.0+2434_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/160522/ft2_4FGL_J1303.0+2434_daily_bin799.fits sctable="SC_DATA" expcube=/scratch/kocevski/160522/ltcube_446428801_446688001_4FGL_J1303.0+2434_daily_bin799.fits outfile=/scratch/kocevski/160522/expmap_446428801_446688001_4FGL_J1303.0+2434_daily_bin799.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/160522/ltcube_446428801_446688001_4FGL_J1303.0+2434_daily_bin799.fits
.....................!
real 193.69
user 185.94
sys 4.64

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/160522/ft1_filtered_4FGL_J1303.0+2434_daily_bin799.fits scfile=/scratch/kocevski/160522/ft2_4FGL_J1303.0+2434_daily_bin799.fits outfile=/scratch/kocevski/160522/cmap_446428801_446688001_4FGL_J1303.0+2434_daily_bin799.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160522/ft1_filtered_4FGL_J1303.0+2434_daily_bin799.fits scfile=/scratch/kocevski/160522/ft2_4FGL_J1303.0+2434_daily_bin799.fits outfile=/scratch/kocevski/160522/cmap_HighResolution_446428801_446688001_4FGL_J1303.0+2434_daily_bin799.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.303       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3401       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0514       1.0000         .10000E-03   10000.    
     6 'norm      '    22.664       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4183       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .61367E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8812       1.0000         .10000E-03   10000.    
    10 'norm      '    29.209       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.638       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53034E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .11030E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11145E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10465E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.8856       1.0000         .10000E-03   10000.    
    17 'norm      '    .26426E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4122       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.890       1.0000         .10000E-03   10000.    
    20 'norm      '    17.089       1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.059       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .69370E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.0340       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1988       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9030       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1505       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .67226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6299.362     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     2796 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.305        3.8975       -.50084E-07   -.16774E-03
   2  Prefactor     1.3398        1.3382       -.25105E-07    .11946E-03
   3  Prefactor     1.5963        1.7723       -.95928E-08    .30257E-03
   4  Prefactor     .10042E-03    90.442        .24208E-04** at limit **
   5  norm          1.0515        .29258        .14229E-07    .20463E-03
   6  norm          22.655        6.2702       -.80916E-06   -.15206E-02
   7  Prefactor     9.4090        2.9998        .92255E-06    .16581E-02
   8  Prefactor     .10008E-03    17.268       -.56085E-05** at limit **
   9  Prefactor     6.8817        1.2854        .10120E-05    .29280E-03
  10  norm          29.204        2.8925       -.11457E-05    .30110E-02
  11  Prefactor     15.640        1.2688        .50534E-06   -.22315E-03
  12  Prefactor     .10038E-03    69.296       -.15028E-04** at limit **
  13  norm          .10000E-03    6.4816       -.23164E-05** at limit **
  14  norm          .10000E-03    4.0524        .12025E-05** at limit **
  15  norm          .10000E-03    2.9495       -.41040E-06** at limit **
  16  norm          6.8666        4.8617       -.36347E-06   -.68347E-03
  17  norm          .10022E-03    7.5173        .25856E-04** at limit **
  18  Prefactor     3.4121        3.0501        .34413E-06   -.15001E-03
  19  Prefactor     14.889        1.1370        .13713E-06   -.10211E-02
  20  norm          17.074        6.3780        .14363E-05    .40686E-02
  21  Prefactor     56.238        47.179        .85996E-05   -.14690E-02
  22  Prefactor     .10016E-03    26.915       -.23694E-05** at limit **
  23  norm          4.0460        5.4601       -.49269E-05   -.19768E-02
  24  Prefactor     3.2178        6.9566       -.10764E-04    .49237E-02
  25  Prefactor     2.9046        2.0715       -.27781E-05    .11557E-02
  26  Normalizat    1.1507        .21056        .17864E-05    .24145E-03
  27  Prefactor     .67210        .22005       -.50073E-06    .24746E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.3047
  Prefactor  = 1.33984
  Prefactor  = 1.59634
  Prefactor  = 0.000100415
  norm       = 1.05153
  norm       = 22.6547
  Prefactor  = 9.40896
  Prefactor  = 0.000100079
  Prefactor  = 6.88172
  norm       = 29.2044
  Prefactor  = 15.6396
  Prefactor  = 0.000100382
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.86659
  norm       = 0.000100215
  Prefactor  = 3.41205
  Prefactor  = 14.8892
  norm       = 17.0743
  Prefactor  = 56.2378
  Prefactor  = 0.000100156
  norm       = 4.04602
  Prefactor  = 3.21785
  Prefactor  = 2.90458
  Normalizat = 1.15073
  Prefactor  = 0.672098
 **********
 **   18 **HESSE 
 **********

 FCN=   6299.362     FROM HESSE     STATUS=OK           566 CALLS     3362 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.305        3.9053        .28552E-02   -1.5006    
   2  Prefactor     1.3398        1.3284        .94668E-02   -1.5476    
   3  Prefactor     1.5963        1.8021        .83924E-02   -1.5455    
   4  Prefactor     .10042E-03    4.1117        .53022E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0515        .29325        .49080E-02   -1.5503    
   6  norm          22.655        6.5193        .21034E-02   -1.4756    
   7  Prefactor     9.4090        7.5211        .32646E-02   -1.5094    
   8  Prefactor     .10008E-03    17.914        .10526E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8817        7.1311        .38236E-02   -1.5183    
  10  norm          29.204        6.8808        .18533E-02   -1.4627    
  11  Prefactor     15.640        16.481        .25321E-02   -1.4917    
  12  Prefactor     .10038E-03    70.323        .95600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5260        .38659E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.9675        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8871        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.8666        4.9706        .38224E-02   -1.5184    
  17  norm          .10022E-03    9.1954        .10721E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4121        3.2080        .54750E-02   -1.5339    
  19  Prefactor     14.889        12.125        .25949E-02   -1.4936    
  20  norm          17.074        7.3422        .24221E-02   -1.4881    
  21  Prefactor     56.238        48.169        .13394E-02   -1.4207    
  22  Prefactor     .10016E-03    27.904        .10492E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.0460        5.7135        .50193E-02   -1.5306    
  24  Prefactor     3.2178        12.178        .56636E-02   -1.5349    
  25  Prefactor     2.9046        27.147        .59621E-02   -1.5367    
  26  Normalizat    1.1507        .18304        .53478E-01   -.88139    
  27  Prefactor     .67210        .18700        .72698E-01   -1.0463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73446e-07
Minuit parameter uncertainties:
  1  3.90536
  2  1.32843
  3  1.80216
  4  0.00261367
  5  0.29325
  6  6.51953
  7  7.52185
  8  0.00237561
  9  7.13202
  10  6.881
  11  16.4857
  12  0.0103813
  13  0.000104436
  14  2.84589e-05
  15  1.50822e-05
  16  4.97095
  17  0.0028158
  18  3.20815
  19  12.1275
  20  7.34254
  21  48.2025
  22  0.00417448
  23  5.71428
  24  12.187
  25  17.77
  26  0.183145
  27  0.187172
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  1.044e-04  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  6.721e-01  1.872e-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.151e+00  1.831e-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: 5.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160522/likelihoodResults_446428801_446688001_4FGL_J1303.0+2434_daily_bin799.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) = 6299.36270219
delta logL = -0.000736326132028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6299.3619657
delta logL = 1.68473889062e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10632E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1142       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67208       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6299.362     FROM MIGRAD    STATUS=FAILED        96 CALLS      262 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10535E-03    222.92        .19838E-02** at limit **
   2  alpha         2.4061        2.9166        .50000       -.39946E-05
   3  Normalizat    1.1507        .20563E-01    .23646E-03   -.89934E-03
   4  Prefactor     .67210        .22019E-01    .32178E-03   -.52083E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6299.362     FROM SIMPLEX   STATUS=PROGRESS     130 CALLS      392 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10087E-03    222.92        .42411E-03** at limit **
   2  alpha         2.4059        2.9166        .12146E-03   -.39946E-05
   3  Normalizat    1.1507        .20563E-01    .10920E-05   -.89934E-03
   4  Prefactor     .67210        .22019E-01    .10580E-05   -.52083E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6299.362     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      433 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    855.92        .39676E-03** at limit **
   2  alpha         2.4389        3.3454        .50000        .13965E-06
   3  Normalizat    1.1507        .43784E-01    .47291E-04   -.21395E-03
   4  Prefactor     .67210        .46888E-01    .64357E-04   -.83026E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.43891
  Normalizat = 1.15073
  Prefactor  = 0.672099
 **********
 **   18 **HESSE 
 **********

 FCN=   6299.362     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      462 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6216.8        .79352E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4389        3.5208        .50000       -.24440E-01
   3  Normalizat    1.1507        .20121        .94582E-05   -.88139    
   4  Prefactor     .67210        .21521        .25743E-05   -1.0463    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.69876e-08
Minuit parameter uncertainties:
  1  0.00133056
  2  1803.53
  3  0.201343
  4  0.215478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160522': 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) = 6299.36196288
delta logL = 2.98674694932e-06

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  1.331e-03  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.439e+00  1.804e+03  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:  6.721e-01  2.155e-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.151e+00  2.013e-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/160522/cmap_HighResolution_446428801_446688001_4FGL_J1303.0+2434_daily_bin799.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', job_status='DONE', photon_flux_upper_limit='5.47e-08', time_completed='2021-09-06 18:23:33.438516', job_id='160522', GAL2='0.67', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630977813.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.99e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='799' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:23:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 160522: <4FGL_J1303.0+2434_daily_bin799> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin799> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 18:10:23 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:10:44 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:10:44 2021
Terminated at Mon Sep  6 18:23:34 2021
Results reported at Mon Sep  6 18:23:34 2021

Your job looked like:

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

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

