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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1326
RA = 195.757, Dec = 24.5821
tmin = 583027201, tmax = 583286401
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='163546', job_status='RUN', time_executed='2021-09-06 18:23:10.678092', time_epoch_executed='1630977790.68' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163546

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163546/ft1_4FGL_J1303.0+2434_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163546/ft2_4FGL_J1303.0+2434_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163546/ft1_4FGL_J1303.0+2434_daily_bin1326.fits outfile=/scratch/kocevski/163546/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1326.fits ra=195.757 dec=24.5821 rad=12.0 tmin=583027201.0 tmax=583286401.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.65
user 3.45
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163546/ft1_filtered_4FGL_J1303.0+2434_daily_bin1326.fits" evtable="EVENTS" scfile=/scratch/kocevski/163546/ft2_4FGL_J1303.0+2434_daily_bin1326.fits sctable="SC_DATA" outfile=/scratch/kocevski/163546/ltcube_583027201_583286401_4FGL_J1303.0+2434_daily_bin1326.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/163546/ft2_4FGL_J1303.0+2434_daily_bin1326.fits
.....................!
real 17.12
user 16.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163546/ft1_filtered_4FGL_J1303.0+2434_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/163546/ft2_4FGL_J1303.0+2434_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/163546/ltcube_583027201_583286401_4FGL_J1303.0+2434_daily_bin1326.fits outfile=/scratch/kocevski/163546/expmap_583027201_583286401_4FGL_J1303.0+2434_daily_bin1326.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/163546/ltcube_583027201_583286401_4FGL_J1303.0+2434_daily_bin1326.fits
.....................!
real 190.75
user 186.31
sys 3.88

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/163546/ft1_filtered_4FGL_J1303.0+2434_daily_bin1326.fits scfile=/scratch/kocevski/163546/ft2_4FGL_J1303.0+2434_daily_bin1326.fits outfile=/scratch/kocevski/163546/cmap_583027201_583286401_4FGL_J1303.0+2434_daily_bin1326.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/163546/ft1_filtered_4FGL_J1303.0+2434_daily_bin1326.fits scfile=/scratch/kocevski/163546/ft2_4FGL_J1303.0+2434_daily_bin1326.fits outfile=/scratch/kocevski/163546/cmap_HighResolution_583027201_583286401_4FGL_J1303.0+2434_daily_bin1326.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/163546/ft1_filtered_4FGL_J1303.0+2434_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/163546/ft2_4FGL_J1303.0+2434_daily_bin1326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/163546/Model_4FGL_J1303.0+2434_daily_bin1326.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/163546/ft1_filtered_4FGL_J1303.0+2434_daily_bin1326.fits.....................!
real 53.79
user 52.47
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.339       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0533       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9138       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.502       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    72.227       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1631       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.3399       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2294       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.607       1.0000         .10000E-03   10000.    
    20 'norm      '    6.5257       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4622       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3146       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95647       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=   6236.577     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3276 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.342        4.6947       -.33601E-06   -.35935E-04
   2  Prefactor     1.0503        2.1803        .18008E-06    .23319E-03
   3  Prefactor     2.9145        2.1960        .77850E-07   -.47083E-04
   4  Prefactor     .10000E-03    4.1206       -.53294E-07** at limit **
   5  norm          .10000E-03    .11810        .24356E-07** at limit **
   6  norm          13.504        6.0289       -.51035E-08   -.52750E-04
   7  Prefactor     .10000E-03    7.0650        .19742E-06** at limit **
   8  Prefactor     72.227        63.467        .61599E-06   -.11542E-05
   9  Prefactor     .10000E-03    4.0335        .19100E-07** at limit **
  10  norm          2.1627        4.1251        .92317E-06    .27153E-04
  11  Prefactor     .10000E-03    10.504        .27373E-05** at limit **
  12  Prefactor     .10000E-03    15.856       -.58371E-05** at limit **
  13  norm          .10004E-03    1.8515        .69732E-06** at limit **
  14  norm          9.3394        6.4427        .26149E-07    .23245E-04
  15  norm          7.2281        4.0819        .57108E-06    .58025E-04
  16  norm          .10000E-03    2.7794       -.52869E-07** at limit **
  17  norm          .10000E-03    10.438        .19251E-05** at limit **
  18  Prefactor     .10000E-03    1.2845       -.52105E-07** at limit **
  19  Prefactor     10.606        12.335        .35291E-07    .34702E-05
  20  norm          6.5253        5.6263        .35687E-06   -.45361E-04
  21  Prefactor     .10000E-03    14.773       -.33636E-05** at limit **
  22  Prefactor     .10000E-03    23.630        .97159E-05** at limit **
  23  norm          1.4621        .72685       -.18080E-07   -.61662E-03
  24  Prefactor     .10000E-03    9.6557       -.46862E-05** at limit **
  25  Prefactor     .10000E-03    34.342       -.54832E-05** at limit **
  26  Normalizat    1.3146        .18459       -.54474E-06   -.55893E-04
  27  Prefactor     .95644        .19116        .24133E-07   -.97897E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.3419
  Prefactor  = 1.05033
  Prefactor  = 2.9145
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.5042
  Prefactor  = 0.0001
  Prefactor  = 72.2272
  Prefactor  = 0.0001
  norm       = 2.16274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100039
  norm       = 9.33943
  norm       = 7.22815
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6056
  norm       = 6.52528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31462
  Prefactor  = 0.956437
 **********
 **   18 **HESSE 
 **********

 FCN=   6236.577     FROM HESSE     STATUS=OK           492 CALLS     3768 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.342        4.5972        .89573E-04   -1.4950    
   2  Prefactor     1.0503        1.7408        .15405E-02   -1.5503    
   3  Prefactor     2.9145        2.1823        .96832E-04   -1.5367    
   4  Prefactor     .10000E-03    4.1432        .15639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .28349        .51975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.504        6.0137        .10901E-03   -1.4973    
   7  Prefactor     .10000E-03    7.1601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     72.227        63.416        .47239E-04   -1.4006    
   9  Prefactor     .10000E-03    10.132        .30691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1627        4.0997        .20983E-03   -1.5414    
  11  Prefactor     .10000E-03    10.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10004E-03    12.076        .20539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.3394        6.4384        .13113E-03   -1.5097    
  15  norm          7.2281        4.0792        .11240E-03   -1.5170    
  16  norm          .10000E-03    2.7837        .12839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.2926        .87283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.606        12.324        .12302E-03   -1.5057    
  20  norm          6.5253        5.7770        .15710E-03   -1.5197    
  21  Prefactor     .10000E-03    14.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4621        6.4606        .17787E-02   -1.5466    
  24  Prefactor     .10000E-03    9.6643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    34.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3146        .21952        .24030E-03   -.83131    
  27  Prefactor     .95644        .22648        .29371E-03   -.94196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06536e-09
Minuit parameter uncertainties:
  1  4.59729
  2  1.74087
  3  2.18237
  4  2.039e-06
  5  4.23579e-07
  6  6.01393
  7  2.59259e-06
  8  63.4754
  9  2.49457e-05
  10  4.1002
  11  1.44074e-06
  12  3.40105e-05
  13  0.00137186
  14  6.43885
  15  4.07936
  16  1.35705e-05
  17  5.16487e-06
  18  2.56122e-06
  19  12.3273
  20  5.77747
  21  1.30067e-06
  22  1.67162e-06
  23  6.14772
  24  6.54805e-06
  25  8.81859e-05
  26  0.219673
  27  0.226704
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  1.372e-03  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:  9.564e-01  2.267e-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.315e+00  2.197e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163546/likelihoodResults_583027201_583286401_4FGL_J1303.0+2434_daily_bin1326.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) = 6236.57758715
delta logL = -0.000394136937757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6236.57719399
delta logL = -9.79821379588e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12165E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0179       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95666       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=   6236.577     FROM MIGRAD    STATUS=FAILED        95 CALLS      266 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10020E-03    230.62        .20998E-02** at limit **
   2  alpha         1.9556        3.4021        .50000        .86281E-06
   3  Normalizat    1.3146        .19655E-01    .24030E-03   -.52813E-03
   4  Prefactor     .95643        .20973E-01    .29371E-03   -.52800E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6236.577     FROM SIMPLEX   STATUS=UNCHANGED    135 CALLS      401 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10020E-03    230.62        .61538E-03** at limit **
   2  alpha         1.9556        3.4021        .71325E-04    .86281E-06
   3  Normalizat    1.3146        .19655E-01    .50780E-06   -.52813E-03
   4  Prefactor     .95643        .20973E-01    .64511E-06   -.52800E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6236.577     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      442 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1002.2        .41995E-03** at limit **
   2  alpha         1.9539        3.9352        .50000        .56104E-06
   3  Normalizat    1.3146        .44428E-01    .48061E-04    .12723E-02
   4  Prefactor     .95644        .47407E-01    .58742E-04    .96950E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.95394
  Normalizat = 1.31462
  Prefactor  = 0.956439
 **********
 **   18 **HESSE 
 **********

 FCN=   6236.577     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      471 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6438.5        .83991E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9539        3.3837        .50000       -.22020    
   3  Normalizat    1.3146        .14472        .96122E-05   -.83131    
   4  Prefactor     .95644        .15439        .11748E-04   -.94196    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.73235e-09
Minuit parameter uncertainties:
  1  0.00771874
  2  1445.14
  3  0.14476
  4  0.15446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163546': 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) = 6236.57719253
delta logL = 4.82590621687e-07

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  7.719e-03  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.954e+00  1.445e+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:  9.564e-01  1.545e-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.315e+00  1.448e-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/163546/cmap_HighResolution_583027201_583286401_4FGL_J1303.0+2434_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-05', job_status='DONE', photon_flux_upper_limit='5.62e-08', time_completed='2021-09-06 18:36:33.987946', job_id='163546', GAL2='0.96', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630978593.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1326' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:36:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 163546: <4FGL_J1303.0+2434_daily_bin1326> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1326> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 18:20:35 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:20:41 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:20:41 2021
Terminated at Mon Sep  6 18:36:34 2021
Results reported at Mon Sep  6 18:36:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1326 195.757 24.5821 583027201 583286401 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 :                                   780.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            959 sec.

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

