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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1141
RA = 195.757, Dec = 24.5821
tmin = 535075201, tmax = 535334401
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='162179', job_status='RUN', time_executed='2021-09-06 18:18:50.851987', time_epoch_executed='1630977530.85' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162179

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162179/ft1_4FGL_J1303.0+2434_daily_bin1141.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162179/ft2_4FGL_J1303.0+2434_daily_bin1141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162179/ft1_4FGL_J1303.0+2434_daily_bin1141.fits outfile=/scratch/kocevski/162179/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1141.fits ra=195.757 dec=24.5821 rad=12.0 tmin=535075201.0 tmax=535334401.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 5.05
user 4.76
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/162179/ft2_4FGL_J1303.0+2434_daily_bin1141.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/162179/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1141.fits evtable="EVENTS" outfile="/scratch/kocevski/162179/ft1_filtered_4FGL_J1303.0+2434_daily_bin1141.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162179/ft1_filtered_4FGL_J1303.0+2434_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/162179/ft2_4FGL_J1303.0+2434_daily_bin1141.fits sctable="SC_DATA" expcube=/scratch/kocevski/162179/ltcube_535075201_535334401_4FGL_J1303.0+2434_daily_bin1141.fits outfile=/scratch/kocevski/162179/expmap_535075201_535334401_4FGL_J1303.0+2434_daily_bin1141.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/162179/ltcube_535075201_535334401_4FGL_J1303.0+2434_daily_bin1141.fits
.....................!
real 195.93
user 190.34
sys 4.95

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/162179/ft1_filtered_4FGL_J1303.0+2434_daily_bin1141.fits scfile=/scratch/kocevski/162179/ft2_4FGL_J1303.0+2434_daily_bin1141.fits outfile=/scratch/kocevski/162179/cmap_535075201_535334401_4FGL_J1303.0+2434_daily_bin1141.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.67
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162179/ft1_filtered_4FGL_J1303.0+2434_daily_bin1141.fits scfile=/scratch/kocevski/162179/ft2_4FGL_J1303.0+2434_daily_bin1141.fits outfile=/scratch/kocevski/162179/cmap_HighResolution_535075201_535334401_4FGL_J1303.0+2434_daily_bin1141.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.61
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.630       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35917       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47248       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .20182       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3731       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15314E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.531       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7811       1.0000         .10000E-03   10000.    
    10 'norm      '    .11355E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .55434E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4495       1.0000         .10000E-03   10000.    
    13 'norm      '    .69220E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .18835E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .85786E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.780       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14798E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .69413E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .41026E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37865E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .67943E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14090E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.734       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4652       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81447       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=   6140.827     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     2489 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.623        5.1581       -.11335E-06    .88899E-04
   2  Prefactor     .36281        2.2264        .52150E-06    .18069E-03
   3  Prefactor     .47599        2.2683        .46916E-06    .12804E-03
   4  Prefactor     .10000E-03    1.5634       -.33321E-07** at limit **
   5  norm          .20156        .16849       -.97119E-08   -.11028E-03
   6  norm          3.3743        2.9895        .72568E-08    .53641E-04
   7  Prefactor     .10000E-03    15.218       -.89233E-06** at limit **
   8  Prefactor     14.203        34.141        .13926E-05    .15194E-04
   9  Prefactor     2.8050        5.2347        .36008E-05    .10828E-02
  10  norm          .10000E-03    2.1023        .24611E-06** at limit **
  11  Prefactor     .10000E-03    8.7760       -.41007E-06** at limit **
  12  Prefactor     7.2018        12.115       -.11510E-05   -.53948E-04
  13  norm          .10143E-03    2.5121       -.24501E-05** at limit **
  14  norm          .10000E-03    1.1649        .10558E-07** at limit **
  15  norm          .10000E-03    2.1418        .17069E-06** at limit **
  16  norm          .10000E-03    4.0726        .54413E-06** at limit **
  17  norm          18.955        18.671       -.36149E-06    .31049E-04
  18  Prefactor     .10000E-03    1.5993       -.88742E-07** at limit **
  19  Prefactor     .10000E-03    11.086       -.19277E-06** at limit **
  20  norm          .10000E-03    6.3124        .45951E-06** at limit **
  21  Prefactor     .10000E-03    12.039        .65275E-06** at limit **
  22  Prefactor     .10000E-03    67.166        .35828E-05** at limit **
  23  norm          .10000E-03    7.8272        .32629E-06** at limit **
  24  Prefactor     .10000E-03    8.5262        .26738E-06** at limit **
  25  Prefactor     11.549        25.517       -.62212E-05   -.74274E-04
  26  Normalizat    1.4660        .18818       -.13579E-05    .13019E-03
  27  Prefactor     .81445        .19339        .22903E-05    .20453E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6232
  Prefactor  = 0.362814
  Prefactor  = 0.475988
  Prefactor  = 0.0001
  norm       = 0.201556
  norm       = 3.37426
  Prefactor  = 0.0001
  Prefactor  = 14.2026
  Prefactor  = 2.80501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.2018
  norm       = 0.00010143
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 18.9548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5489
  Normalizat = 1.466
  Prefactor  = 0.81445
 **********
 **   18 **HESSE 
 **********

 FCN=   6140.827     FROM HESSE     STATUS=OK           504 CALLS     2993 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.623        4.9750        .84339E-04   -1.4892    
   2  Prefactor     .36281        2.0130        .20477E-03   -1.5588    
   3  Prefactor     .47599        2.2236        .21477E-03   -1.5570    
   4  Prefactor     .10000E-03    1.5654        .95683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20156        .16420        .28374E-04   -1.5618    
   6  norm          3.3743        2.9900        .12363E-03   -1.5341    
   7  Prefactor     .10000E-03    15.564        .20454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.203        34.100        .10163E-03   -1.4954    
   9  Prefactor     2.8050        5.3269        .12069E-02   -1.5373    
  10  norm          .10000E-03    6.6381        .21883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.8795        .21105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2018        12.007        .14694E-03   -1.5171    
  13  norm          .10143E-03    2.0125        .37115E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1658        .82598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0737        .21285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.318        .29493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.955        18.376        .92422E-04   -1.4837    
  18  Prefactor     .10000E-03    3.0282        .19106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.220        .20984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    72.639        .36694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.041        .19562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    67.465        .18748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.8697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.5441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.549        25.685        .11695E-03   -1.5028    
  26  Normalizat    1.4660        .22048        .22111E-03   -.78738    
  27  Prefactor     .81445        .22925        .30432E-03   -.99198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53207e-09
Minuit parameter uncertainties:
  1  4.97513
  2  1.70906
  3  2.05749
  4  1.97059e-06
  5  0.164196
  6  2.9901
  7  6.94257e-05
  8  34.1468
  9  5.32782
  10  3.4318e-05
  11  3.11721e-05
  12  12.0105
  13  0.00339252
  14  5.10333e-07
  15  7.12517e-06
  16  0.00036295
  17  18.3813
  18  8.69811e-06
  19  4.82801e-06
  20  0.000869784
  21  1.0535e-05
  22  0.000135133
  23  1.07007e-05
  24  9.6783e-05
  25  25.7099
  26  0.220626
  27  0.229516
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.014e-04  3.393e-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:  8.144e-01  2.295e-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.466e+00  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.757 24.582
Photon Flux Upper Limit: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/162179/likelihoodResults_535075201_535334401_4FGL_J1303.0+2434_daily_bin1141.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) = 6140.82688324
delta logL = -0.000170325439285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6140.81439474
delta logL = 0.0123181700201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19380       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7690       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81533       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=   6140.814     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      429 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19322        25.593        .29938E-01    .11171E-02
   2  alpha         2.7736        3.5923        .41457        .57653E-05
   3  Normalizat    1.4628        .22178E-01    .50060E-01   -.84375E-04
   4  Prefactor     .81536        .23693E-01    .68744E-01   -.95195E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.19322
  alpha      = 2.77361
  Normalizat = 1.46282
  Prefactor  = 0.815359
 **********
 **   18 **HESSE 
 **********

 FCN=   6140.814     FROM HESSE     STATUS=OK            33 CALLS      462 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19322        12.361        .16300E-02   -1.5620    
   2  alpha         2.7736        3.1462        .74701E-01    .10966    
   3  Normalizat    1.4628        .21478        .22131E-03   -.78828    
   4  Prefactor     .81536        .22801        .30415E-03   -.99165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05124e-07
Minuit parameter uncertainties:
  1  3.09076
  2  7.03633
  3  0.214911
  4  0.22828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162179': 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) = 6140.81439363
delta logL = 0.0123192794817

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.932e-01  3.091e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.774e+00  7.036e+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:  8.154e-01  2.283e-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.463e+00  2.149e-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/162179/cmap_HighResolution_535075201_535334401_4FGL_J1303.0+2434_daily_bin1141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-05', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-06 18:31:01.588602', job_id='162179', GAL2='0.82', fit_tolerance='1e-08', EG2='1.46', EG='1.47', time_epoch_completed='1630978261.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.23e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1141' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:31:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 162179: <4FGL_J1303.0+2434_daily_bin1141> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1141> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 18:15:44 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:16:37 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:16:37 2021
Terminated at Mon Sep  6 18:31:02 2021
Results reported at Mon Sep  6 18:31:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1141 195.757 24.5821 535075201 535334401 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 :                                   725.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            918 sec.

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

