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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin625
RA = 195.757, Dec = 24.5821
tmin = 401328001, tmax = 401587201
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='159084', job_status='RUN', time_executed='2021-09-06 18:05:31.845268', time_epoch_executed='1630976731.85' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159084

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159084/ft1_4FGL_J1303.0+2434_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159084/ft2_4FGL_J1303.0+2434_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159084/ft1_4FGL_J1303.0+2434_daily_bin625.fits outfile=/scratch/kocevski/159084/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin625.fits ra=195.757 dec=24.5821 rad=12.0 tmin=401328001.0 tmax=401587201.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.42
user 3.18
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159084/ft1_filtered_4FGL_J1303.0+2434_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/159084/ft2_4FGL_J1303.0+2434_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/159084/ltcube_401328001_401587201_4FGL_J1303.0+2434_daily_bin625.fits outfile=/scratch/kocevski/159084/expmap_401328001_401587201_4FGL_J1303.0+2434_daily_bin625.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/159084/ltcube_401328001_401587201_4FGL_J1303.0+2434_daily_bin625.fits
.....................!
real 191.61
user 186.35
sys 4.57

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/159084/ft1_filtered_4FGL_J1303.0+2434_daily_bin625.fits scfile=/scratch/kocevski/159084/ft2_4FGL_J1303.0+2434_daily_bin625.fits outfile=/scratch/kocevski/159084/cmap_401328001_401587201_4FGL_J1303.0+2434_daily_bin625.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.56
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6060       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .90905       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.229       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1581       1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.087       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6524       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5642       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    27.222       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .29990       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.115       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0738       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.0035       1.0000         .10000E-03   10000.    
    21 'Prefactor '    65.407       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.695       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.9755       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1229       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84610       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6227.241     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     2821 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6066        3.8024        .96178E-07    .45946E-04
   2  Prefactor     .90851        2.1347       -.51962E-06   -.11279E-02
   3  Prefactor     .10000E-03    .88731        .86512E-08** at limit **
   4  Prefactor     20.229        8.0260       -.16011E-07   -.22486E-05
   5  norm          1.1581        .30981        .42609E-08   -.11181E-03
   6  norm          .10000E-03    2.3875       -.19911E-07** at limit **
   7  Prefactor     .10000E-03    3.6355       -.25406E-06** at limit **
   8  Prefactor     28.088        40.708        .26165E-05    .37826E-05
   9  Prefactor     2.6529        7.3912       -.79294E-06   -.37078E-03
  10  norm          2.5643        3.6720        .12506E-05   -.34658E-03
  11  Prefactor     .10000E-03    6.5014        .11193E-05** at limit **
  12  Prefactor     .10000E-03    8.7692       -.42594E-05** at limit **
  13  norm          27.222        6.1590        .83885E-08    .31754E-04
  14  norm          .10000E-03    4.4432       -.34945E-06** at limit **
  15  norm          .30520        1.6853       -.48710E-06   -.47114E-03
  16  norm          .10000E-03    3.2864        .31196E-06** at limit **
  17  norm          17.116        15.489        .35098E-06    .25052E-05
  18  Prefactor     2.0753        2.5189       -.22173E-06   -.66400E-03
  19  Prefactor     .10000E-03    13.395        .77958E-05** at limit **
  20  norm          6.0040        5.7069       -.13671E-06   -.14641E-03
  21  Prefactor     65.407        43.518        .52067E-07   -.19840E-05
  22  Prefactor     .10000E-03    16.280       -.55668E-05** at limit **
  23  norm          11.695        7.8679       -.40228E-07   -.33299E-04
  24  Prefactor     .10000E-03    6.5586        .90129E-06** at limit **
  25  Prefactor     7.9768        17.265        .16460E-05   -.35080E-04
  26  Normalizat    1.1228        .17361       -.19725E-06    .66689E-06
  27  Prefactor     .84619        .18180       -.74956E-07   -.22733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.60657
  Prefactor  = 0.908514
  Prefactor  = 0.0001
  Prefactor  = 20.2287
  norm       = 1.15813
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0884
  Prefactor  = 2.65285
  norm       = 2.5643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.2224
  norm       = 0.0001
  norm       = 0.305203
  norm       = 0.0001
  norm       = 17.1158
  Prefactor  = 2.07534
  Prefactor  = 0.0001
  norm       = 6.00395
  Prefactor  = 65.4066
  Prefactor  = 0.0001
  norm       = 11.6954
  Prefactor  = 0.0001
  Prefactor  = 7.97675
  Normalizat = 1.12278
  Prefactor  = 0.846194
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.241     FROM HESSE     STATUS=OK           494 CALLS     3315 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6066        3.7802        .90974E-04   -1.5121    
   2  Prefactor     .90851        2.1246        .16116E-03   -1.5517    
   3  Prefactor     .10000E-03    .90994        .14501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.229        8.0231        .89053E-04   -1.4808    
   5  norm          1.1581        .30996        .21655E-04   -1.5493    
   6  norm          .10000E-03    2.4153        .11894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6435        .14692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.088        40.680        .75594E-04   -1.4647    
   9  Prefactor     2.6529        7.4759        .25030E-03   -1.5382    
  10  norm          2.5643        3.5959        .16842E-03   -1.5388    
  11  Prefactor     .10000E-03    6.5218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.6992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          27.222        6.1600        .76783E-04   -1.4664    
  14  norm          .10000E-03    4.5827        .32459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .30520        5.7885        .19047E-02   -1.5597    
  16  norm          .10000E-03    3.3548        .27856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.116        15.486        .96811E-04   -1.4880    
  18  Prefactor     2.0753        2.5072        .13122E-03   -1.5420    
  19  Prefactor     .10000E-03    13.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.0040        5.7052        .16387E-03   -1.5218    
  21  Prefactor     65.407        43.528        .49623E-04   -1.4089    
  22  Prefactor     .10000E-03    16.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.695        7.8678        .11714E-03   -1.5024    
  24  Prefactor     .10000E-03    6.5635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.9768        17.227        .14198E-03   -1.5143    
  26  Normalizat    1.1228        .20527        .23759E-03   -.89024    
  27  Prefactor     .84619        .21381        .29263E-03   -.98047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41994e-09
Minuit parameter uncertainties:
  1  3.78028
  2  2.12482
  3  1.01621e-06
  4  8.02353
  5  0.309955
  6  1.23542e-06
  7  9.13321e-07
  8  40.72
  9  7.47851
  10  3.59623
  11  8.36886e-07
  12  1.57558e-05
  13  6.16019
  14  4.79294e-06
  15  2.65819
  16  4.03517e-06
  17  15.4892
  18  2.50732
  19  2.8719e-06
  20  5.70573
  21  43.5491
  22  5.45603e-07
  23  7.8685
  24  4.92319e-06
  25  17.2378
  26  0.20542
  27  0.214022
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.722e+01  6.160e+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

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  8.462e-01  2.140e-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.123e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 89.72
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.85e-07 +/- 4.18e-08
Energy Flux (Fixed Index): 9.57e-05 +/- 2.17e-05

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) = 6225.41522763
delta logL = 1.8256016433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6225.31678794
delta logL = 1.92404132911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.506       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6745       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82010       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6225.317     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      216 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.508        7.0990        .18439E-02    .18663E-04
   2  alpha         1.6748        .19254        .14171       -.32371E-04
   3  Normalizat    1.1705        .16710        .52868E-01    .36984E-04
   4  Prefactor     .82007        .18087        .67164E-01    .50318E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.5084
  alpha      = 1.6748
  Normalizat = 1.17047
  Prefactor  = 0.820072
 **********
 **   18 **HESSE 
 **********

 FCN=   6225.317     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.508        7.0340        .73758E-04   -1.4621    
   2  alpha         1.6748        .19509        .61248E-02   -.33639    
   3  Normalizat    1.1705        .19624        .23375E-03   -.87520    
   4  Prefactor     .82007        .21199        .29713E-03   -.98993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55781e-12
Minuit parameter uncertainties:
  1  7.03418
  2  0.195315
  3  0.196363
  4  0.212199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159084': 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) = 6225.3167868
delta logL = 1.92404247021

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  8.201e-01  2.122e-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.170e+00  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 93.21
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.67 +/- 0.20
Photon Flux (Free Index): 1.36e-07 +/- 4.00e-08
Energy Flux (Free Index): 1.57e-04 +/- 5.92e-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/159084/cmap_HighResolution_401328001_401587201_4FGL_J1303.0+2434_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-07', energy_flux2='1.57e-04', photon_flux_error='4.18e-08', dlogl='1.92e+00', energy_flux='9.57e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-06 18:16:25.651954', photon_index_error2='0.20', photon_index2='1.67', ts='89.72', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='5.92e-05', EG='1.12', time_epoch_completed='1630977385.65', return_code='0', job_id='159084', GAL2='0.82', EG2='1.17', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='4.00e-08', ts2='93.21', photon_index='2.07' WHERE bin_id='625' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:16:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 159084: <4FGL_J1303.0+2434_daily_bin625> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin625> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 18:05:21 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:05:22 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:05:22 2021
Terminated at Mon Sep  6 18:16:26 2021
Results reported at Mon Sep  6 18:16:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin625 195.757 24.5821 401328001 401587201 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 :                                   651.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            665 sec.

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

