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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1501
RA = 195.757, Dec = 24.5821
tmin = 628387201, tmax = 628646401
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='164899', job_status='RUN', time_executed='2021-09-06 18:26:16.359288', time_epoch_executed='1630977976.36' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164899

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164899/ft1_4FGL_J1303.0+2434_daily_bin1501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164899/ft2_4FGL_J1303.0+2434_daily_bin1501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164899/ft1_4FGL_J1303.0+2434_daily_bin1501.fits outfile=/scratch/kocevski/164899/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1501.fits ra=195.757 dec=24.5821 rad=12.0 tmin=628387201.0 tmax=628646401.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.77
user 3.51
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164899/ft1_filtered_4FGL_J1303.0+2434_daily_bin1501.fits" evtable="EVENTS" scfile=/scratch/kocevski/164899/ft2_4FGL_J1303.0+2434_daily_bin1501.fits sctable="SC_DATA" outfile=/scratch/kocevski/164899/ltcube_628387201_628646401_4FGL_J1303.0+2434_daily_bin1501.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/164899/ft2_4FGL_J1303.0+2434_daily_bin1501.fits
.....................!
real 17.50
user 17.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164899/ft1_filtered_4FGL_J1303.0+2434_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/164899/ft2_4FGL_J1303.0+2434_daily_bin1501.fits sctable="SC_DATA" expcube=/scratch/kocevski/164899/ltcube_628387201_628646401_4FGL_J1303.0+2434_daily_bin1501.fits outfile=/scratch/kocevski/164899/expmap_628387201_628646401_4FGL_J1303.0+2434_daily_bin1501.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/164899/ltcube_628387201_628646401_4FGL_J1303.0+2434_daily_bin1501.fits
.....................!
real 193.12
user 187.75
sys 4.71

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/164899/ft1_filtered_4FGL_J1303.0+2434_daily_bin1501.fits scfile=/scratch/kocevski/164899/ft2_4FGL_J1303.0+2434_daily_bin1501.fits outfile=/scratch/kocevski/164899/cmap_628387201_628646401_4FGL_J1303.0+2434_daily_bin1501.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164899/ft1_filtered_4FGL_J1303.0+2434_daily_bin1501.fits scfile=/scratch/kocevski/164899/ft2_4FGL_J1303.0+2434_daily_bin1501.fits outfile=/scratch/kocevski/164899/cmap_HighResolution_628387201_628646401_4FGL_J1303.0+2434_daily_bin1501.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.104       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2650       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .61740E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    18.087       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .40844E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    22.259       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0099       1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.030       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6076       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1168       1.0000         .10000E-03   10000.    
    17 'norm      '    7.3326       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22622E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11958E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.046       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2145       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0010       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=   7444.080     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3382 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.105        4.7379        .20399E-07   -.33520E-04
   2  Prefactor     7.2647        3.5243        .15932E-07   -.21877E-04
   3  Prefactor     .10000E-03    1.3506       -.39573E-07** at limit **
   4  Prefactor     .10000E-03    3.7465       -.10276E-06** at limit **
   5  norm          .61740E-01    .12366        .98948E-07    .20777E-02
   6  norm          18.086        5.9445        .26516E-07   -.11541E-03
   7  Prefactor     .10000E-03    7.1462        .16846E-06** at limit **
   8  Prefactor     8.3667        145.73        .26029E-05    .43638E-04
   9  Prefactor     .10000E-03    2.7200       -.26221E-07** at limit **
  10  norm          22.257        7.8624        .88687E-08   -.10936E-03
  11  Prefactor     4.0115        12.755        .74376E-06   -.11601E-04
  12  Prefactor     56.051        37.223       -.97655E-07   -.32350E-04
  13  norm          .10000E-03    1.1443       -.20265E-07** at limit **
  14  norm          .10000E-03    1.6415        .56716E-08** at limit **
  15  norm          1.6040        5.1005        .17221E-05   -.37480E-05
  16  norm          8.1215        9.0619       -.97593E-06   -.52977E-04
  17  norm          7.3327        9.3075       -.51949E-07    .23059E-05
  18  Prefactor     .10000E-03    2.0091       -.10329E-07** at limit **
  19  Prefactor     .10000E-03    7.1561       -.10473E-06** at limit **
  20  norm          .10000E-03    3.1558       -.31366E-06** at limit **
  21  Prefactor     .10000E-03    16.906       -.28751E-07** at limit **
  22  Prefactor     .10000E-03    232.57        .17278E-06** at limit **
  23  norm          10.047        9.7945        .20946E-05   -.10410E-03
  24  Prefactor     .10000E-03    6.4953       -.29536E-07** at limit **
  25  Prefactor     .10000E-03    9.5156       -.47423E-07** at limit **
  26  Normalizat    1.2145        .17913       -.10893E-05   -.12924E-04
  27  Prefactor     1.0008        .18216        .21042E-06   -.91596E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.1046
  Prefactor  = 7.26469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0617402
  norm       = 18.0859
  Prefactor  = 0.0001
  Prefactor  = 8.36675
  Prefactor  = 0.0001
  norm       = 22.2571
  Prefactor  = 4.01153
  Prefactor  = 56.0508
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.60404
  norm       = 8.12148
  norm       = 7.33269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21454
  Prefactor  = 1.00084
 **********
 **   18 **HESSE 
 **********

 FCN=   7444.080     FROM HESSE     STATUS=OK           500 CALLS     3882 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.105        4.7170        .10392E-03   -1.5012    
   2  Prefactor     7.2647        3.5031        .99574E-04   -1.5169    
   3  Prefactor     .10000E-03    2.2490        .18802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8076        .16286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .61740E-01    .10280        .42893E-03   -1.5658    
   6  norm          18.086        5.9146        .94176E-04   -1.4857    
   7  Prefactor     .10000E-03    61.016        .43313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3667        147.06        .13914E-03   -1.5129    
   9  Prefactor     .10000E-03    2.7681        .13894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          22.257        7.8643        .84898E-04   -1.4764    
  11  Prefactor     4.0115        12.735        .20139E-03   -1.5307    
  12  Prefactor     56.051        37.049        .53590E-04   -1.4209    
  13  norm          .10000E-03    2.8722        .17984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.6436        .10794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6040        4.9721        .21431E-03   -1.5455    
  16  norm          8.1215        8.9421        .14073E-03   -1.5138    
  17  norm          7.3327        9.3039        .14812E-03   -1.5166    
  18  Prefactor     .10000E-03    2.0385        .11912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.388        .44060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2040        .15016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    235.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.047        9.6728        .63211E-03   -1.5074    
  24  Prefactor     .10000E-03    6.5170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.5941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2145        .21363        .25179E-03   -.86155    
  27  Prefactor     1.0008        .22025        .29142E-03   -.92701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31524e-10
Minuit parameter uncertainties:
  1  4.71719
  2  3.50317
  3  1.58938e-05
  4  1.78949e-06
  5  0.1028
  6  5.91484
  7  0.000142038
  8  70.3567
  9  1.79201e-06
  10  7.86466
  11  12.744
  12  37.0644
  13  8.38797e-06
  14  7.30488e-08
  15  4.97341
  16  8.94355
  17  9.3057
  18  1.18987e-06
  19  1.42382e-05
  20  2.6447e-05
  21  2.50944e-06
  22  0.000403492
  23  9.67434
  24  2.34916e-06
  25  2.00114e-06
  26  0.213784
  27  0.220448
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  8.388e-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.001e+00  2.204e-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.215e+00  2.138e-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: 3.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164899/likelihoodResults_628387201_628646401_4FGL_J1303.0+2434_daily_bin1501.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) = 7444.08174899
delta logL = -0.00166115280172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7444.08008546
delta logL = 2.37494441535e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0013       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0009       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=   7444.080     FROM MIGRAD    STATUS=FAILED       102 CALLS      262 TOTAL
                     EDM=   .22E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11680E-03    304.97        .18892E-02** at limit **
   2  alpha         1.5835        2.8328        .50000        .11002E-04
   3  Normalizat    1.2145        .24369E-01    .25179E-03    .62716E-04
   4  Prefactor     1.0008        .26012E-01    .29142E-03    .13256E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7444.080     FROM SIMPLEX   STATUS=PROGRESS     119 CALLS      381 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11613E-03    304.97        .43520E-03** at limit **
   2  alpha         1.5831        2.8328        .24841E-03    .11002E-04
   3  Normalizat    1.2145        .24369E-01    .30492E-05    .62716E-04
   4  Prefactor     1.0008        .26012E-01    .45605E-05    .13256E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7444.080     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      431 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    770.83        .75568E-03** at limit **
   2  alpha         1.5468        4.1376        .50000       -.10525E-06
   3  Normalizat    1.2145        .40214E-01    .10071E-04   -.13997E-04
   4  Prefactor     1.0008        .42924E-01    .11657E-04   -.13264E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.54678
  Normalizat = 1.21454
  Prefactor  = 1.00085
 **********
 **   18 **HESSE 
 **********

 FCN=   7444.080     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      460 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6160.1        .15114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5468        4.1759        .50000       -.39119    
   3  Normalizat    1.2145        .13068        .20143E-05   -.86155    
   4  Prefactor     1.0008        .13946        .23314E-05   -.92701    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.35507e-09
Minuit parameter uncertainties:
  1  0.00029558
  2  1156.51
  3  0.130719
  4  0.13951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164899': 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) = 7444.08007508
delta logL = 1.27571875055e-05

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  2.956e-04  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.547e+00  1.157e+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:  1.001e+00  1.395e-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.215e+00  1.307e-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/164899/cmap_HighResolution_628387201_628646401_4FGL_J1303.0+2434_daily_bin1501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-05', job_status='DONE', photon_flux_upper_limit='3.39e-08', time_completed='2021-09-06 18:41:09.683347', job_id='164899', GAL2='1.00', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630978869.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.28e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1501' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:41:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 164899: <4FGL_J1303.0+2434_daily_bin1501> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1501> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 18:25:28 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:25:56 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:25:56 2021
Terminated at Mon Sep  6 18:41:10 2021
Results reported at Mon Sep  6 18:41:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1501 195.757 24.5821 628387201 628646401 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 :                                   871.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            942 sec.

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

