/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 = 7476
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1303.0+2434_daily_bin301
RA = 195.757, Dec = 24.5821
tmin = 317347201, tmax = 317606401
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='156224', job_status='RUN', time_executed='2021-09-06 17:55:41.049700', time_epoch_executed='1630976141.05' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='301'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156224/ft1_4FGL_J1303.0+2434_daily_bin301.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156224/ft2_4FGL_J1303.0+2434_daily_bin301.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156224/ft1_4FGL_J1303.0+2434_daily_bin301.fits outfile=/scratch/kocevski/156224/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin301.fits ra=195.757 dec=24.5821 rad=12.0 tmin=317347201.0 tmax=317606401.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.58
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156224/ft1_filtered_4FGL_J1303.0+2434_daily_bin301.fits" evtable="EVENTS" scfile=/scratch/kocevski/156224/ft2_4FGL_J1303.0+2434_daily_bin301.fits sctable="SC_DATA" outfile=/scratch/kocevski/156224/ltcube_317347201_317606401_4FGL_J1303.0+2434_daily_bin301.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/156224/ft2_4FGL_J1303.0+2434_daily_bin301.fits
.....................!
real 16.57
user 16.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156224/ft1_filtered_4FGL_J1303.0+2434_daily_bin301.fits evtable="EVENTS" scfile=/scratch/kocevski/156224/ft2_4FGL_J1303.0+2434_daily_bin301.fits sctable="SC_DATA" expcube=/scratch/kocevski/156224/ltcube_317347201_317606401_4FGL_J1303.0+2434_daily_bin301.fits outfile=/scratch/kocevski/156224/expmap_317347201_317606401_4FGL_J1303.0+2434_daily_bin301.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/156224/ltcube_317347201_317606401_4FGL_J1303.0+2434_daily_bin301.fits
.....................!
real 192.14
user 186.71
sys 4.58

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/156224/ft1_filtered_4FGL_J1303.0+2434_daily_bin301.fits scfile=/scratch/kocevski/156224/ft2_4FGL_J1303.0+2434_daily_bin301.fits outfile=/scratch/kocevski/156224/cmap_317347201_317606401_4FGL_J1303.0+2434_daily_bin301.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156224/ft1_filtered_4FGL_J1303.0+2434_daily_bin301.fits scfile=/scratch/kocevski/156224/ft2_4FGL_J1303.0+2434_daily_bin301.fits outfile=/scratch/kocevski/156224/cmap_HighResolution_317347201_317606401_4FGL_J1303.0+2434_daily_bin301.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44009       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4454       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0227       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9383       1.0000         .10000E-03   10000.    
     5 'norm      '    4.0231       1.0000         .10000E-03   10000.    
     6 'norm      '    8.0023       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.207       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.072       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2166       1.0000         .10000E-03   10000.    
    10 'norm      '    .65010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2558       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29898E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9188       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3412       1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6263       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .32626E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.941       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.6582       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13264E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0064       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1166       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=   7170.450     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3343 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44072        1.9756        .16512E-05    .43881E-04
   2  Prefactor     1.4458        1.4249       -.20747E-06   -.10327E-03
   3  Prefactor     8.0238        2.7895       -.52364E-07   -.17305E-03
   4  Prefactor     4.9490        6.9924        .38374E-06   -.22352E-05
   5  norm          4.0231        .51102        .17699E-07   -.25288E-03
   6  norm          7.9933        5.0884        .11074E-07   -.23483E-04
   7  Prefactor     27.133        12.183        .51587E-07   -.40777E-04
   8  Prefactor     23.136        49.173        .75374E-06   -.12522E-04
   9  Prefactor     9.2188        6.4756        .12830E-06   -.95097E-05
  10  norm          .10003E-03    2.2114        .59928E-06** at limit **
  11  Prefactor     8.2823        14.887        .10477E-05    .45998E-05
  12  Prefactor     .10000E-03    30.176        .76301E-06** at limit **
  13  norm          .10000E-03    1.9226       -.48613E-07** at limit **
  14  norm          .10000E-03    1.0895       -.59196E-08** at limit **
  15  norm          1.9049        4.3307       -.28158E-06   -.15266E-03
  16  norm          4.3672        6.4899        .11820E-06   -.66244E-04
  17  norm          .10000E-03    4.5715       -.57107E-07** at limit **
  18  Prefactor     1.6270        2.2242        .89724E-07   -.47509E-04
  19  Prefactor     .10000E-03    4.0539       -.14082E-07** at limit **
  20  norm          .10000E-03    2.7192       -.11437E-06** at limit **
  21  Prefactor     .10000E-03    11.788       -.23316E-06** at limit **
  22  Prefactor     .10000E-03    13.987       -.24310E-07** at limit **
  23  norm          12.958        9.4671        .24410E-06   -.16451E-04
  24  Prefactor     9.6055        12.127        .31141E-06   -.66304E-05
  25  Prefactor     .10000E-03    7.4552        .24553E-07** at limit **
  26  Normalizat    1.0066        .18105       -.78326E-06   -.16688E-03
  27  Prefactor     1.1164        .19287       -.10499E-05   -.12596E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.440717
  Prefactor  = 1.44576
  Prefactor  = 8.0238
  Prefactor  = 4.94896
  norm       = 4.02305
  norm       = 7.99335
  Prefactor  = 27.1329
  Prefactor  = 23.136
  Prefactor  = 9.21883
  norm       = 0.000100027
  Prefactor  = 8.28226
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.90487
  norm       = 4.36724
  norm       = 0.0001
  Prefactor  = 1.62698
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.9581
  Prefactor  = 9.60552
  Prefactor  = 0.0001
  Normalizat = 1.00664
  Prefactor  = 1.11643
 **********
 **   18 **HESSE 
 **********

 FCN=   7170.450     FROM HESSE     STATUS=OK           494 CALLS     3837 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44072        1.9603        .22408E-03   -1.5575    
   2  Prefactor     1.4458        1.4414        .94731E-04   -1.5467    
   3  Prefactor     8.0238        2.7843        .79275E-04   -1.5141    
   4  Prefactor     4.9490        6.9772        .18099E-03   -1.5263    
   5  norm          4.0231        .51224        .20526E-04   -1.5307    
   6  norm          7.9933        5.0810        .14137E-03   -1.5142    
   7  Prefactor     27.133        12.179        .76805E-04   -1.4666    
   8  Prefactor     23.136        49.355        .83392E-04   -1.4746    
   9  Prefactor     9.2188        6.4758        .13201E-03   -1.5101    
  10  norm          .10003E-03    17.283        .22850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2823        14.890        .13953E-03   -1.5132    
  12  Prefactor     .10000E-03    30.718        .21391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9933        .22916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.0901        .86315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9049        4.3511        .18229E-03   -1.5432    
  16  norm          4.3672        6.5973        .18619E-03   -1.5290    
  17  norm          .10000E-03    4.5717        .17682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6270        2.1949        .14104E-03   -1.5453    
  19  Prefactor     .10000E-03    4.0617        .16647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7315        .13613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.792        .21354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.958        9.4763        .11135E-03   -1.4988    
  24  Prefactor     9.6055        12.142        .12895E-03   -1.5088    
  25  Prefactor     .10000E-03    7.4696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0066        .21205        .13761E-02   -.92808    
  27  Prefactor     1.1164        .22503        .28982E-03   -.88943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58219e-09
Minuit parameter uncertainties:
  1  1.85883
  2  1.44141
  3  2.78438
  4  6.9783
  5  0.512236
  6  5.08123
  7  12.1803
  8  49.442
  9  6.47627
  10  0.0013778
  11  14.8968
  12  4.88887e-05
  13  4.97527e-06
  14  3.23525e-07
  15  4.35178
  16  6.59844
  17  7.34949e-07
  18  2.19505
  19  3.95754e-06
  20  2.50772e-06
  21  6.39031e-07
  22  1.52636e-06
  23  9.47743
  24  12.1452
  25  7.22445e-06
  26  0.212227
  27  0.22522
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  4.975e-06  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:  1.116e+00  2.252e-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.007e+00  2.122e-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: 4.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/156224/likelihoodResults_317347201_317606401_4FGL_J1303.0+2434_daily_bin301.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) = 7170.45211985
delta logL = -0.00238667139274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7170.44972053
delta logL = 1.26450240714e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11363E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8587       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1164       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=   7170.450     FROM MIGRAD    STATUS=FAILED        97 CALLS      304 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10023E-03    7.5519        .13928E-02** at limit **
   2  alpha         2.9177        3.7696        .50000       -.73827E-04
   3  Normalizat    1.0066        .20132        .27523E-03    .33470E-03
   4  Prefactor     1.1164        .22279        .28982E-03    .29748E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7170.450     FROM SIMPLEX   STATUS=UNCHANGED    117 CALLS      421 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10023E-03    7.5519        .39886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9177        3.7696        .16104E-02    .16787    
   3  Normalizat    1.0066        .20132        .71994E-04   -.92808    
   4  Prefactor     1.1164        .22279        .45287E-04   -.88943    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7170.060     FROM MIGRAD    STATUS=CONVERGED    149 CALLS      570 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51341E-01    .58639E-01   -.54615E-06    .95529E-02
   2  alpha         5.0000        3.2416       -.38263E-03** at limit **
   3  Normalizat    .93865        .21435        .19629E-04   -.10533E-03
   4  Prefactor     1.1636        .22974       -.25309E-05   -.18732E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0513405
  alpha      = 5
  Normalizat = 0.938649
  Prefactor  = 1.16361
 **********
 **   18 **HESSE 
 **********

 FCN=   7170.060     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      607 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51341E-01    3.2610        .27855E-02   -1.5663    
   2  alpha         5.0000        2.6574        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .93865        .16480        .55046E-03   -.95115    
   4  Prefactor     1.1636        .12571        .57963E-04   -.87459    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.93795e-07
Minuit parameter uncertainties:
  1  0.817592
  2  2.24185e-05
  3  0.164892
  4  0.125745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156224': 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) = 7170.0604612
delta logL = 0.389271976102

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  5.134e-02  8.176e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  2.242e-05  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:  1.164e+00  1.257e-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:  9.386e-01  1.649e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/156224/cmap_HighResolution_317347201_317606401_4FGL_J1303.0+2434_daily_bin301.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-05', job_status='DONE', photon_flux_upper_limit='4.28e-08', time_completed='2021-09-06 18:10:27.193119', job_id='156224', GAL2='1.16', fit_tolerance='1e-08', EG2='0.94', EG='1.01', time_epoch_completed='1630977027.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.89e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='301' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:10:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 156224: <4FGL_J1303.0+2434_daily_bin301> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin301> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 17:55:22 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:55:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 17:55:27 2021
Terminated at Mon Sep  6 18:10:27 2021
Results reported at Mon Sep  6 18:10:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin301 195.757 24.5821 317347201 317606401 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 :                                   880.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            905 sec.

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

