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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1473
RA = 195.757, Dec = 24.5821
tmin = 621129601, tmax = 621388801
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='164856', job_status='RUN', time_executed='2021-09-06 18:28:26.019670', time_epoch_executed='1630978106.02' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164856

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164856/ft1_4FGL_J1303.0+2434_daily_bin1473.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164856/ft2_4FGL_J1303.0+2434_daily_bin1473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164856/ft1_4FGL_J1303.0+2434_daily_bin1473.fits outfile=/scratch/kocevski/164856/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1473.fits ra=195.757 dec=24.5821 rad=12.0 tmin=621129601.0 tmax=621388801.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.17
user 2.93
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164856/ft1_filtered_4FGL_J1303.0+2434_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/164856/ft2_4FGL_J1303.0+2434_daily_bin1473.fits sctable="SC_DATA" expcube=/scratch/kocevski/164856/ltcube_621129601_621388801_4FGL_J1303.0+2434_daily_bin1473.fits outfile=/scratch/kocevski/164856/expmap_621129601_621388801_4FGL_J1303.0+2434_daily_bin1473.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/164856/ltcube_621129601_621388801_4FGL_J1303.0+2434_daily_bin1473.fits
.....................!
real 192.66
user 187.01
sys 5.17

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/164856/ft1_filtered_4FGL_J1303.0+2434_daily_bin1473.fits scfile=/scratch/kocevski/164856/ft2_4FGL_J1303.0+2434_daily_bin1473.fits outfile=/scratch/kocevski/164856/cmap_621129601_621388801_4FGL_J1303.0+2434_daily_bin1473.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164856/ft1_filtered_4FGL_J1303.0+2434_daily_bin1473.fits scfile=/scratch/kocevski/164856/ft2_4FGL_J1303.0+2434_daily_bin1473.fits outfile=/scratch/kocevski/164856/cmap_HighResolution_621129601_621388801_4FGL_J1303.0+2434_daily_bin1473.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/164856/ft1_filtered_4FGL_J1303.0+2434_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/164856/ft2_4FGL_J1303.0+2434_daily_bin1473.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164856/Model_4FGL_J1303.0+2434_daily_bin1473.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/164856/ft1_filtered_4FGL_J1303.0+2434_daily_bin1473.fits......................!
real 38.06
user 36.55
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3642       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7899       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17974E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2120       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    87.039       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7618       1.0000         .10000E-03   10000.    
    10 'norm      '    23.560       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.277       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    26.697       1.0000         .10000E-03   10000.    
    15 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.2240       1.0000         .10000E-03   10000.    
    17 'norm      '    3.6748       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10330E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.364       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.120       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3329       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90344       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=   3765.543     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3306 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3674        8.9667       -.48065E-06   -.46037E-04
   2  Prefactor     1.7886        6.2780        .39248E-06   -.62383E-04
   3  Prefactor     .10000E-03    3.6606       -.53447E-07** at limit **
   4  Prefactor     .10001E-03    7.1248        .23217E-06** at limit **
   5  norm          1.2119        .67248       -.30751E-07    .14795E-04
   6  norm          .10000E-03    6.3095       -.41450E-06** at limit **
   7  Prefactor     .10000E-03    7.7371       -.85826E-06** at limit **
   8  Prefactor     87.038        115.22       -.66125E-06    .43400E-06
   9  Prefactor     1.7628        5.8977        .18300E-05   -.78892E-03
  10  norm          23.559        11.625        .16529E-05   -.49572E-04
  11  Prefactor     .10000E-03    13.242        .72952E-06** at limit **
  12  Prefactor     45.260        53.680       -.13430E-04   -.81294E-04
  13  norm          .10000E-03    10.234       -.11972E-05** at limit **
  14  norm          26.697        12.105        .11264E-05   -.72862E-06
  15  norm          .10000E-03    4.7568        .39413E-07** at limit **
  16  norm          6.2201        6.2540        .11308E-06    .11183E-04
  17  norm          3.6676        76.389       -.51760E-05    .15257E-05
  18  Prefactor     .10000E-03    2.7921        .15856E-06** at limit **
  19  Prefactor     .10000E-03    5.5515        .67463E-07** at limit **
  20  norm          .10002E-03    10.493       -.46016E-07** at limit **
  21  Prefactor     58.363        47.598       -.81762E-06   -.55924E-05
  22  Prefactor     17.111        50.072       -.11213E-04   -.31323E-04
  23  norm          .10000E-03    24.933       -.71880E-06** at limit **
  24  Prefactor     .10000E-03    7.8552        .10908E-05** at limit **
  25  Prefactor     .10000E-03    10.370        .38207E-06** at limit **
  26  Normalizat    1.3329        .24695        .14543E-05   -.16325E-04
  27  Prefactor     .90341        .24841       -.58622E-06    .65590E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.36735
  Prefactor  = 1.78858
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 1.21192
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 87.0377
  Prefactor  = 1.76277
  norm       = 23.5593
  Prefactor  = 0.0001
  Prefactor  = 45.2605
  norm       = 0.0001
  norm       = 26.6967
  norm       = 0.0001
  norm       = 6.22011
  norm       = 3.66765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100018
  Prefactor  = 58.3635
  Prefactor  = 17.1113
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33294
  Prefactor  = 0.903411
 **********
 **   18 **HESSE 
 **********

 FCN=   3765.543     FROM HESSE     STATUS=OK           488 CALLS     3794 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3674        8.7643        .19280E-03   -1.5290    
   2  Prefactor     1.7886        6.1209        .21728E-03   -1.5440    
   3  Prefactor     .10000E-03    3.6874        .11439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    45.269        .31805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2119        .66798        .36069E-04   -1.5488    
   6  norm          .10000E-03    6.3406        .15052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7414        .16672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     87.038        115.21        .43064E-04   -1.3839    
   9  Prefactor     1.7628        26.136        .15783E-02   -1.5442    
  10  norm          23.559        11.624        .41262E-03   -1.4737    
  11  Prefactor     .10000E-03    13.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.260        53.898        .59584E-04   -1.4361    
  13  norm          .10000E-03    10.538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          26.697        12.090        .77533E-04   -1.4674    
  15  norm          .10000E-03    4.8219        .13012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.2201        6.2341        .14871E-03   -1.5209    
  17  norm          3.6676        71.926        .21070E-03   -1.5325    
  18  Prefactor     .10000E-03    2.8409        .10006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5567        .14121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10002E-03    85.088        .35956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     58.363        47.648        .52514E-04   -1.4179    
  22  Prefactor     17.111        50.176        .96797E-04   -1.4880    
  23  norm          .10000E-03    25.775        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.8666        .16798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3329        .29453        .24448E-03   -.82588    
  27  Prefactor     .90341        .30106        .29988E-03   -.96022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14962e-09
Minuit parameter uncertainties:
  1  8.76689
  2  6.12306
  3  1.14296e-06
  4  0.00105099
  5  0.66798
  6  7.52213e-06
  7  9.75888e-06
  8  115.509
  9  13.582
  10  11.6248
  11  8.96039e-07
  12  53.9563
  13  1.1515e-05
  14  12.0912
  15  6.34567e-05
  16  6.2347
  17  32.5285
  18  3.2082e-05
  19  1.54866e-05
  20  0.00248859
  21  47.6794
  22  50.3002
  23  1.72426e-05
  24  1.24207e-05
  25  1.85107e-06
  26  0.2949
  27  0.301618
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  1.152e-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:  9.034e-01  3.016e-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.333e+00  2.949e-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: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164856/likelihoodResults_621129601_621388801_4FGL_J1303.0+2434_daily_bin1473.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): 0
logL (Free Index) = 3765.54356738
delta logL = -0.000452807633792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3765.54311601
delta logL = -1.43860688695e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3764.986     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      268 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96065E-01    4.3896        .42039E-02    .18268E-03
   2  alpha         5.0000        2.9212        .41552    ** at limit **
   3  Normalizat    1.2174        .14013        .57435E-01    .33606E-04
   4  Prefactor     .97991        .12575        .65433E-01    .52673E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0960651
  alpha      = 5
  Normalizat = 1.21744
  Prefactor  = 0.979906
 **********
 **   18 **HESSE 
 **********

 FCN=   3764.986     FROM HESSE     STATUS=OK            37 CALLS      305 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96065E-01    .11905        .19148E-03   -1.5646    
   2  alpha         5.0000        3.2768        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2174        .30763        .25400E-03   -.86066    
   4  Prefactor     .97991        .30626        .28940E-03   -.93402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60021e-11
Minuit parameter uncertainties:
  1  0.119053
  2  8.33043e-06
  3  0.308088
  4  0.306803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164856': 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) = 3764.98621603
delta logL = 0.556898536945

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  9.607e-02  1.191e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  8.330e-06  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.799e-01  3.068e-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.217e+00  3.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 195.757 24.582
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.81e-08 +/- 1.09e-07
Energy Flux (Free Index): 1.20e-05 +/- 1.48e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/164856/cmap_HighResolution_621129601_621388801_4FGL_J1303.0+2434_daily_bin1473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-05', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='5.57e-01', photon_flux2='8.81e-08', job_status='DONE', time_completed='2021-09-06 18:38:51.007625', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.48e-05', EG='1.33', time_epoch_completed='1630978731.01', return_code='0', job_id='164856', GAL2='0.98', EG2='1.22', return_code2='0', photon_flux_error2='1.09e-07', ts2='1.23', photon_index='2.07' WHERE bin_id='1473' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:38:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 164856: <4FGL_J1303.0+2434_daily_bin1473> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1473 195.757 24.5821 621129601 621388801 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 :                                   590.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            807 sec.

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

