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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1540
RA = 195.757, Dec = 24.5821
tmin = 638496001, tmax = 638755201
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='164956', job_status='RUN', time_executed='2021-09-06 18:26:24.861518', time_epoch_executed='1630977984.86' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164956/ft1_4FGL_J1303.0+2434_daily_bin1540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164956/ft2_4FGL_J1303.0+2434_daily_bin1540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164956/ft1_4FGL_J1303.0+2434_daily_bin1540.fits outfile=/scratch/kocevski/164956/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1540.fits ra=195.757 dec=24.5821 rad=12.0 tmin=638496001.0 tmax=638755201.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.50
user 4.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164956/ft2_4FGL_J1303.0+2434_daily_bin1540.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/164956/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1540.fits evtable="EVENTS" outfile="/scratch/kocevski/164956/ft1_filtered_4FGL_J1303.0+2434_daily_bin1540.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.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164956/ft1_filtered_4FGL_J1303.0+2434_daily_bin1540.fits evtable="EVENTS" scfile=/scratch/kocevski/164956/ft2_4FGL_J1303.0+2434_daily_bin1540.fits sctable="SC_DATA" expcube=/scratch/kocevski/164956/ltcube_638496001_638755201_4FGL_J1303.0+2434_daily_bin1540.fits outfile=/scratch/kocevski/164956/expmap_638496001_638755201_4FGL_J1303.0+2434_daily_bin1540.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/164956/ltcube_638496001_638755201_4FGL_J1303.0+2434_daily_bin1540.fits
.....................!
real 192.98
user 188.01
sys 4.39

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/164956/ft1_filtered_4FGL_J1303.0+2434_daily_bin1540.fits scfile=/scratch/kocevski/164956/ft2_4FGL_J1303.0+2434_daily_bin1540.fits outfile=/scratch/kocevski/164956/cmap_638496001_638755201_4FGL_J1303.0+2434_daily_bin1540.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164956/ft1_filtered_4FGL_J1303.0+2434_daily_bin1540.fits scfile=/scratch/kocevski/164956/ft2_4FGL_J1303.0+2434_daily_bin1540.fits outfile=/scratch/kocevski/164956/cmap_HighResolution_638496001_638755201_4FGL_J1303.0+2434_daily_bin1540.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5932       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5501       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2476       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5698       1.0000         .10000E-03   10000.    
     5 'norm      '    .50692E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    3.0410       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.280       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0265       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1122       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.478       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    33.909       1.0000         .10000E-03   10000.    
    15 'norm      '    20.354       1.0000         .10000E-03   10000.    
    16 'norm      '    .10402E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4171       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.858       1.0000         .10000E-03   10000.    
    23 'norm      '    20.065       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3360       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86111       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=   6508.245     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3264 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5933        1.8022        .73418E-08   -.11844E-04
   2  Prefactor     2.5502        1.7779        .53947E-08   -.67374E-05
   3  Prefactor     1.2477        1.3120        .30818E-07   -.92963E-04
   4  Prefactor     2.5699        3.1702        .31021E-06    .23744E-03
   5  norm          .50716E-01    .10962        .15374E-06    .10748E-02
   6  norm          3.0411        3.1499        .15739E-06    .10350E-03
   7  Prefactor     .10000E-03    4.9534        .26609E-06** at limit **
   8  Prefactor     35.280        38.857       -.47459E-07    .15694E-05
   9  Prefactor     6.0263        5.9788        .12238E-05   -.56908E-03
  10  norm          1.1132        3.3961        .91751E-06   -.23032E-03
  11  Prefactor     14.477        13.121        .42322E-07   -.32352E-04
  12  Prefactor     .10000E-03    6.3779       -.18289E-06** at limit **
  13  norm          .10000E-03    1.5715        .16167E-07** at limit **
  14  norm          33.908        10.116       -.27793E-07   -.64608E-04
  15  norm          20.334        5.2562        .14083E-07   -.48042E-03
  16  norm          .10000E-03    14.673        .69204E-06** at limit **
  17  norm          .10000E-03    8.0702        .48727E-06** at limit **
  18  Prefactor     2.4205        4.0290        .40847E-06   -.14752E-03
  19  Prefactor     .10000E-03    5.1509       -.37166E-06** at limit **
  20  norm          .10000E-03    3.1847       -.80165E-07** at limit **
  21  Prefactor     .10000E-03    10.122       -.85028E-06** at limit **
  22  Prefactor     46.841        64.603       -.35389E-05   -.15642E-03
  23  norm          20.065        11.545        .46188E-06   -.16203E-03
  24  Prefactor     .10000E-03    6.6453        .19372E-06** at limit **
  25  Prefactor     .10000E-03    22.700       -.40412E-06** at limit **
  26  Normalizat    1.3361        .18089       -.26081E-06   -.81813E-04
  27  Prefactor     .86097        .19192       -.59910E-06   -.45036E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.59328
  Prefactor  = 2.55022
  Prefactor  = 1.24774
  Prefactor  = 2.56987
  norm       = 0.0507156
  norm       = 3.04106
  Prefactor  = 0.0001
  Prefactor  = 35.28
  Prefactor  = 6.02626
  norm       = 1.1132
  Prefactor  = 14.4765
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 33.9079
  norm       = 20.3336
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.4205
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.8406
  norm       = 20.0651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33606
  Prefactor  = 0.860972
 **********
 **   18 **HESSE 
 **********

 FCN=   6508.245     FROM HESSE     STATUS=OK           488 CALLS     3752 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5933        1.7990        .11056E-03   -1.5456    
   2  Prefactor     2.5502        1.7791        .86148E-04   -1.5389    
   3  Prefactor     1.2477        1.3002        .91606E-04   -1.5485    
   4  Prefactor     2.5699        3.1610        .15499E-03   -1.5387    
   5  norm          .50716E-01    .96674E-01    .40333E-03   -1.5663    
   6  norm          3.0411        3.1399        .14052E-03   -1.5359    
   7  Prefactor     .10000E-03    5.0107        .17546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.280        38.840        .67470E-04   -1.4519    
   9  Prefactor     6.0263        6.0397        .81779E-03   -1.5217    
  10  norm          1.1132        3.3881        .24953E-03   -1.5497    
  11  Prefactor     14.477        13.128        .10527E-03   -1.4947    
  12  Prefactor     .10000E-03    6.3839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5946        .98737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          33.908        10.089        .68816E-04   -1.4543    
  15  norm          20.334        5.1895        .87166E-04   -1.4806    
  16  norm          .10000E-03    15.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.1128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4205        3.9895        .18509E-03   -1.5397    
  19  Prefactor     .10000E-03    5.1613        .17886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.1918        .14045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     46.841        66.943        .58575E-04   -1.4338    
  23  norm          20.065        11.608        .44708E-03   -1.4812    
  24  Prefactor     .10000E-03    6.6673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3361        .21572        .23609E-03   -.82496    
  27  Prefactor     .86097        .22714        .31022E-03   -.97518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54474e-10
Minuit parameter uncertainties:
  1  1.79907
  2  1.77913
  3  1.30018
  4  3.16124
  5  0.0966745
  6  3.14006
  7  2.0882e-05
  8  38.8678
  9  6.04031
  10  3.38865
  11  13.1303
  12  1.80122e-05
  13  3.78716e-07
  14  10.0899
  15  5.18961
  16  0.00013187
  17  5.72978e-05
  18  3.98994
  19  2.38221e-05
  20  6.156e-06
  21  0.000113175
  22  67.0507
  23  11.6095
  24  2.30177e-05
  25  7.76998e-05
  26  0.215869
  27  0.227389
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  3.787e-07  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.610e-01  2.274e-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.336e+00  2.159e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164956/likelihoodResults_638496001_638755201_4FGL_J1303.0+2434_daily_bin1540.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) = 6508.24768594
delta logL = -0.00295164799991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6508.24473427
delta logL = 1.511125447e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0747       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86100       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.

 FCN=   6508.245     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.584        .98996E-02** at limit **
   2  alpha         2.3644        3.8171        .50000       -.45816E-07
   3  Normalizat    1.3361        .13727E-01    .23609E-03   -.30840E-03
   4  Prefactor     .86097        .14909E-01    .31022E-03   -.24924E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.36443
  Normalizat = 1.33606
  Prefactor  = 0.860971
 **********
 **   18 **HESSE 
 **********

 FCN=   6508.245     FROM HESSE     STATUS=OK            29 CALLS      279 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1826        .20073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3644        2.5346        .50000       -.54254E-01
   3  Normalizat    1.3361        .20724        .47218E-04   -.82496    
   4  Prefactor     .86097        .22499        .12409E-04   -.97519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10659e-10
Minuit parameter uncertainties:
  1  6.3006e-07
  2  203.972
  3  0.207368
  4  0.225234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164956': 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) = 6508.24473262
delta logL = 1.67198595591e-06

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  6.301e-07  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.364e+00  2.040e+02  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.610e-01  2.252e-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.336e+00  2.074e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/164956/cmap_HighResolution_638496001_638755201_4FGL_J1303.0+2434_daily_bin1540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-05', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-06 18:39:57.243190', job_id='164956', GAL2='0.86', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630978797.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1540' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:39:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 164956: <4FGL_J1303.0+2434_daily_bin1540> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1540 195.757 24.5821 638496001 638755201 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 :                                   795.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            866 sec.

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

