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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1355
RA = 195.757, Dec = 24.5821
tmin = 590544001, tmax = 590803201
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='163591', job_status='RUN', time_executed='2021-09-06 18:22:54.280903', time_epoch_executed='1630977774.28' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163591

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163591/ft1_4FGL_J1303.0+2434_daily_bin1355.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163591/ft2_4FGL_J1303.0+2434_daily_bin1355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163591/ft1_4FGL_J1303.0+2434_daily_bin1355.fits outfile=/scratch/kocevski/163591/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1355.fits ra=195.757 dec=24.5821 rad=12.0 tmin=590544001.0 tmax=590803201.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 4.30
user 4.01
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163591/ft1_filtered_4FGL_J1303.0+2434_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/163591/ft2_4FGL_J1303.0+2434_daily_bin1355.fits sctable="SC_DATA" expcube=/scratch/kocevski/163591/ltcube_590544001_590803201_4FGL_J1303.0+2434_daily_bin1355.fits outfile=/scratch/kocevski/163591/expmap_590544001_590803201_4FGL_J1303.0+2434_daily_bin1355.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/163591/ltcube_590544001_590803201_4FGL_J1303.0+2434_daily_bin1355.fits
.....................!
real 193.10
user 186.52
sys 5.23

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/163591/ft1_filtered_4FGL_J1303.0+2434_daily_bin1355.fits scfile=/scratch/kocevski/163591/ft2_4FGL_J1303.0+2434_daily_bin1355.fits outfile=/scratch/kocevski/163591/cmap_590544001_590803201_4FGL_J1303.0+2434_daily_bin1355.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.61
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163591/ft1_filtered_4FGL_J1303.0+2434_daily_bin1355.fits scfile=/scratch/kocevski/163591/ft2_4FGL_J1303.0+2434_daily_bin1355.fits outfile=/scratch/kocevski/163591/cmap_HighResolution_590544001_590803201_4FGL_J1303.0+2434_daily_bin1355.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2731       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2317       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3482       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6875       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0806       1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.909       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4641       1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.026       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.988       1.0000         .10000E-03   10000.    
    13 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.750       1.0000         .10000E-03   10000.    
    15 'norm      '    12.243       1.0000         .10000E-03   10000.    
    16 'norm      '    .10832E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    10.280       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1346       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3008       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.918       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14918E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.292       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0645       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1633       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=   6127.901     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3290 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2727        4.0574       -.95554E-06   -.56404E-03
   2  Prefactor     5.2315        3.8152       -.23018E-06   -.80377E-04
   3  Prefactor     1.3473        2.3569       -.35652E-06   -.79463E-03
   4  Prefactor     4.6874        4.4318       -.62974E-06    .17750E-03
   5  norm          .10000E-03    .90608E-01   -.72598E-07** at limit **
   6  norm          .10000E-03    2.2253       -.71904E-07** at limit **
   7  Prefactor     4.0771        11.030       -.20108E-05   -.11001E-03
   8  Prefactor     56.914        75.203        .56811E-05    .28513E-04
   9  Prefactor     6.4645        6.4492       -.12732E-06   -.47792E-04
  10  norm          .10000E-03    1.4521        .31689E-07** at limit **
  11  Prefactor     22.004        22.143       -.27256E-04    .39847E-04
  12  Prefactor     24.981        18.818       -.60421E-05    .88181E-04
  13  norm          .10000E-03    2.8509       -.18478E-06** at limit **
  14  norm          17.749        8.1967       -.16236E-06    .15037E-03
  15  norm          12.244        5.7659        .44389E-06    .24947E-02
  16  norm          .10001E-03    8.6271       -.26320E-05** at limit **
  17  norm          10.281        16.227        .96512E-06    .66571E-05
  18  Prefactor     2.1345        2.4897       -.30198E-06    .11060E-03
  19  Prefactor     .10000E-03    5.4353        .12353E-06** at limit **
  20  norm          3.2961        7.8343       -.24821E-05   -.32675E-03
  21  Prefactor     17.918        23.985        .12446E-05    .13153E-04
  22  Prefactor     .10000E-03    25.123       -.10074E-04** at limit **
  23  norm          12.296        10.575       -.47522E-06    .56464E-04
  24  Prefactor     .10000E-03    23.000        .12294E-04** at limit **
  25  Prefactor     .10000E-03    14.295       -.49890E-06** at limit **
  26  Normalizat    1.0645        .19729        .63696E-05   -.18331E-04
  27  Prefactor     1.1633        .20007        .13517E-05    .26924E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.27273
  Prefactor  = 5.23147
  Prefactor  = 1.34727
  Prefactor  = 4.68735
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.07713
  Prefactor  = 56.9137
  Prefactor  = 6.4645
  norm       = 0.0001
  Prefactor  = 22.0036
  Prefactor  = 24.9811
  norm       = 0.0001
  norm       = 17.7487
  norm       = 12.2444
  norm       = 0.000100009
  norm       = 10.2809
  Prefactor  = 2.13448
  Prefactor  = 0.0001
  norm       = 3.29615
  Prefactor  = 17.9183
  Prefactor  = 0.0001
  norm       = 12.2962
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.06451
  Prefactor  = 1.16333
 **********
 **   18 **HESSE 
 **********

 FCN=   6127.901     FROM HESSE     STATUS=OK           492 CALLS     3782 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2727        4.0876        .16770E-03   -1.5406    
   2  Prefactor     5.2315        3.8609        .10306E-03   -1.5250    
   3  Prefactor     1.3473        2.3044        .14533E-03   -1.5476    
   4  Prefactor     4.6874        4.4310        .15546E-03   -1.5275    
   5  norm          .10000E-03    .11276        .45754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.2435        .11399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0771        10.951        .19958E-03   -1.5304    
   8  Prefactor     56.914        75.198        .53177E-04   -1.4198    
   9  Prefactor     6.4645        6.4478        .15786E-03   -1.5199    
  10  norm          .10000E-03    1.4542        .92075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.004        22.107        .85345E-04   -1.4769    
  12  Prefactor     24.981        18.821        .80136E-04   -1.4708    
  13  norm          .10000E-03    2.9551        .25797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.749        8.1926        .95065E-04   -1.4865    
  15  norm          12.244        4.7158        .99981E-04   -1.5008    
  16  norm          .10001E-03    17.996        .36314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.281        16.208        .12497E-03   -1.5067    
  18  Prefactor     2.1345        2.4821        .12826E-03   -1.5416    
  19  Prefactor     .10000E-03    5.4422        .17821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2961        7.7533        .22284E-03   -1.5345    
  21  Prefactor     17.918        23.986        .94619E-04   -1.4861    
  22  Prefactor     .10000E-03    25.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.296        10.473        .11426E-03   -1.5007    
  24  Prefactor     .10000E-03    23.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0645        .23697        .27067E-03   -.90900    
  27  Prefactor     1.1633        .24151        .27361E-03   -.87467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92609e-09
Minuit parameter uncertainties:
  1  4.08807
  2  3.86106
  3  2.3046
  4  4.43135
  5  2.84043e-06
  6  1.12462e-05
  7  10.9565
  8  75.324
  9  6.4485
  10  6.91267e-06
  11  22.115
  12  18.8256
  13  3.19128e-05
  14  8.19315
  15  4.71598
  16  0.000800082
  17  16.2146
  18  2.48223
  19  1.33586e-05
  20  7.75566
  21  23.9986
  22  1.70525e-05
  23  10.4745
  24  0.000428622
  25  7.62652e-05
  26  0.237206
  27  0.241739
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  3.191e-05  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.163e+00  2.417e-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.065e+00  2.372e-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.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163591/likelihoodResults_590544001_590803201_4FGL_J1303.0+2434_daily_bin1355.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) = 6127.90311067
delta logL = -0.00161164243127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6127.90149726
delta logL = 1.76603316504e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1213       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1633       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=   6127.901     FROM MIGRAD    STATUS=FAILED        95 CALLS      251 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10008E-03    4.2927        .21694E-02** at limit **
   2  alpha         2.1860        3.4869        .16706       -.97451E-04
   3  Normalizat    1.0645        .22589        .27067E-03    .45811E-03
   4  Prefactor     1.1633        .23855        .27361E-03    .36983E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6127.901     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      371 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10008E-03    4.2927        .23828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1860        3.4869        .11459E-02   -.12594    
   3  Normalizat    1.0645        .22589        .98632E-04   -.90899    
   4  Prefactor     1.1633        .23855        .10309E-03   -.87468    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6127.768     FROM MIGRAD    STATUS=CONVERGED    184 CALLS      555 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34702        1.3626        .90684E-04   -.18930E-04
   2  alpha         3.5289        1.7812        .13365E-01    .41596E-04
   3  Normalizat    1.0380        .23294        .10827E-04    .42003E-06
   4  Prefactor     1.1783        .24201        .10944E-04   -.39473E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.347025
  alpha      = 3.52889
  Normalizat = 1.03802
  Prefactor  = 1.17827
 **********
 **   18 **HESSE 
 **********

 FCN=   6127.768     FROM HESSE     STATUS=OK            25 CALLS      580 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34702        1.1648        .36273E-05   -1.5590    
   2  alpha         3.5289        1.5810        .26729E-02    .42416    
   3  Normalizat    1.0380        .23334        .21653E-05   -.91767    
   4  Prefactor     1.1783        .24234        .21889E-05   -.87003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77943e-13
Minuit parameter uncertainties:
  1  1.16492
  2  1.74731
  3  0.233568
  4  0.24257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163591': 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) = 6127.76810106
delta logL = 0.133397960686

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.470e-01  1.165e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.529e+00  1.747e+00  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.178e+00  2.426e-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.038e+00  2.336e-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/163591/cmap_HighResolution_590544001_590803201_4FGL_J1303.0+2434_daily_bin1355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='5.25e-08', time_completed='2021-09-06 18:36:04.651205', job_id='163591', GAL2='1.18', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1630978564.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.33e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1355' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:36:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 163591: <4FGL_J1303.0+2434_daily_bin1355> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1355 195.757 24.5821 590544001 590803201 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 :                                   761.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            926 sec.

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

