/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 112 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 = 6613
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1303.0+2434_daily_bin92
RA = 195.757, Dec = 24.5821
tmin = 263174401, tmax = 263433601
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='152185', job_status='RUN', time_executed='2021-09-06 17:42:58.836321', time_epoch_executed='1630975378.84' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152185

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152185/ft1_4FGL_J1303.0+2434_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152185/ft2_4FGL_J1303.0+2434_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152185/ft1_4FGL_J1303.0+2434_daily_bin92.fits outfile=/scratch/kocevski/152185/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin92.fits ra=195.757 dec=24.5821 rad=12.0 tmin=263174401.0 tmax=263433601.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 1.46
user 1.20
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152185/ft1_filtered_4FGL_J1303.0+2434_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/152185/ft2_4FGL_J1303.0+2434_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/152185/ltcube_263174401_263433601_4FGL_J1303.0+2434_daily_bin92.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/152185/ft2_4FGL_J1303.0+2434_daily_bin92.fits
.....................!
real 17.32
user 16.91
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152185/ft1_filtered_4FGL_J1303.0+2434_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/152185/ft2_4FGL_J1303.0+2434_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/152185/ltcube_263174401_263433601_4FGL_J1303.0+2434_daily_bin92.fits outfile=/scratch/kocevski/152185/expmap_263174401_263433601_4FGL_J1303.0+2434_daily_bin92.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/152185/ltcube_263174401_263433601_4FGL_J1303.0+2434_daily_bin92.fits
.....................!
real 192.69
user 187.29
sys 4.77

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/152185/ft1_filtered_4FGL_J1303.0+2434_daily_bin92.fits scfile=/scratch/kocevski/152185/ft2_4FGL_J1303.0+2434_daily_bin92.fits outfile=/scratch/kocevski/152185/cmap_263174401_263433601_4FGL_J1303.0+2434_daily_bin92.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.80
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152185/ft1_filtered_4FGL_J1303.0+2434_daily_bin92.fits scfile=/scratch/kocevski/152185/ft2_4FGL_J1303.0+2434_daily_bin92.fits outfile=/scratch/kocevski/152185/cmap_HighResolution_263174401_263433601_4FGL_J1303.0+2434_daily_bin92.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1458       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1425       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6494       1.0000         .10000E-03   10000.    
     5 'norm      '    .80023       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .80321       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7457       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2169       1.0000         .10000E-03   10000.    
    16 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    29.280       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23281E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9107       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11575E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.2897       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    32.078       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2841       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89590       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=   4939.436     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3328 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7792        .90712E-02** at limit **
   2  Prefactor     2.1462        2.1095        .70332E-02   -.37879E-04
   3  Prefactor     7.1428        3.2123        .37524E-02    .43113E-04
   4  Prefactor     4.6492        5.1266        .46662E-02    .22882E-03
   5  norm          .80020        .33252        .55767E-02    .50502E-04
   6  norm          .10000E-03    4.8166        .90712E-02** at limit **
   7  Prefactor     .10000E-03    6.1669        .90712E-02** at limit **
   8  Prefactor     .10001E-03    21.592        .90712E-02** at limit **
   9  Prefactor     .79992        5.4439        .83387E-01    .15456E-03
  10  norm          .10000E-03    2.6919        .90712E-02** at limit **
  11  Prefactor     3.4903        16.810        .54058E-02   -.12232E-02
  12  Prefactor     .10000E-03    18.827        .90712E-02** at limit **
  13  norm          1.7455        2.9000        .79358E-02    .25671E-03
  14  norm          .10000E-03    4.3102        .90712E-02** at limit **
  15  norm          5.2160        4.6048        .43998E-02   -.32945E-03
  16  norm          .10000E-03    10.671        .90712E-02** at limit **
  17  norm          29.280        22.056        .18510E-02    .11482E-03
  18  Prefactor     .10450E-03    2.7699        .74400E-01** at limit **
  19  Prefactor     3.9150        18.499        .51004E-02    .68920E-03
  20  norm          .10000E-03    2.6736        .90712E-02** at limit **
  21  Prefactor     .10000E-03    27.357        .90712E-02** at limit **
  22  Prefactor     .10137E-03    412.58        .90712E-02** at limit **
  23  norm          6.2896        6.5156        .40014E-02    .34887E-03
  24  Prefactor     .10000E-03    6.9615        .90712E-02** at limit **
  25  Prefactor     32.075        28.577        .17687E-02   -.56680E-03
  26  Normalizat    1.2843        .20899        .52548E-01   -.87054E-04
  27  Prefactor     .89570        .21474        .66297E-01   -.69731E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.1462
  Prefactor  = 7.14276
  Prefactor  = 4.64917
  norm       = 0.800202
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.799917
  norm       = 0.0001
  Prefactor  = 3.4903
  Prefactor  = 0.000100001
  norm       = 1.74546
  norm       = 0.0001
  norm       = 5.216
  norm       = 0.0001
  norm       = 29.2798
  Prefactor  = 0.000104502
  Prefactor  = 3.915
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000101373
  norm       = 6.28962
  Prefactor  = 0.0001
  Prefactor  = 32.0754
  Normalizat = 1.28429
  Prefactor  = 0.895698
 **********
 **   18 **HESSE 
 **********

 FCN=   4939.436     FROM HESSE     STATUS=OK           492 CALLS     3820 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8782        .22813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1462        2.1124        .97278E-04   -1.5415    
   3  Prefactor     7.1428        3.2067        .80279E-04   -1.5173    
   4  Prefactor     4.6492        5.1214        .16161E-03   -1.5277    
   5  norm          .80020        .33128        .24798E-04   -1.5529    
   6  norm          .10000E-03    4.9742        .30090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.1898        .17043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    21.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .79992        16.566        .30821E-02   -1.5529    
  10  norm          .10000E-03    2.7204        .11255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.4903        16.835        .21623E-03   -1.5334    
  12  Prefactor     .10000E-03    18.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7455        2.8631        .14870E-03   -1.5444    
  14  norm          .10000E-03    4.3894        .14241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2160        4.5338        .12668E-03   -1.5251    
  16  norm          .10000E-03    10.764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          29.280        22.055        .74042E-04   -1.4625    
  18  Prefactor     .10450E-03    12.047        .32511E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9150        21.574        .20402E-03   -1.5312    
  20  norm          .10000E-03    2.6843        .11219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10137E-03    415.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.2896        6.5123        .16006E-03   -1.5206    
  24  Prefactor     .10000E-03    6.9736        .18107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     32.075        28.677        .70747E-04   -1.4575    
  26  Normalizat    1.2843        .25265        .23234E-03   -.84036    
  27  Prefactor     .89570        .25879        .29326E-03   -.96292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13082e-08
Minuit parameter uncertainties:
  1  1.35905e-05
  2  2.11244
  3  3.20679
  4  5.12188
  5  0.331283
  6  8.73893e-06
  7  5.05951e-05
  8  0.000707546
  9  7.28225
  10  9.40951e-06
  11  15.3375
  12  0.000301242
  13  2.86335
  14  4.6241e-06
  15  4.53408
  16  1.96226e-06
  17  22.0608
  18  0.0147317
  19  18.3908
  20  1.43819e-05
  21  0.000563732
  22  0.0481036
  23  6.51304
  24  5.88298e-05
  25  28.6895
  26  0.252895
  27  0.259144
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.745e+00  2.863e+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

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  8.957e-01  2.591e-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.284e+00  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/152185/likelihoodResults_263174401_263433601_4FGL_J1303.0+2434_daily_bin92.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) = 4939.29381699
delta logL = 0.141885800235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4939.28826634
delta logL = 0.147436455559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0257       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5141       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88723       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=   4939.288     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0252        3.2336        .72678E-02    .20196E-03
   2  alpha         1.5140        .77524        .46180       -.23638E-04
   3  Normalizat    1.2932        .19786        .52386E-01    .31610E-05
   4  Prefactor     .88723        .21393        .66554E-01    .13398E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0252
  alpha      = 1.51401
  Normalizat = 1.29315
  Prefactor  = 0.887234
 **********
 **   18 **HESSE 
 **********

 FCN=   4939.288     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0252        2.9032        .13779E-03   -1.5423    
   2  alpha         1.5140        .83190        .20872E-01   -.40541    
   3  Normalizat    1.2932        .23567        .23162E-03   -.83771    
   4  Prefactor     .88723        .25471        .29440E-03   -.96589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05056e-12
Minuit parameter uncertainties:
  1  2.90337
  2  0.851247
  3  0.235866
  4  0.255055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152185': 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) = 4939.28826632
delta logL = 0.14743647021

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.025e+00  2.903e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.514e+00  8.512e-01  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.872e-01  2.551e-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.293e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
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/152185/cmap_HighResolution_263174401_263433601_4FGL_J1303.0+2434_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-05', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2021-09-06 17:54:13.436198', job_id='152185', GAL2='0.89', fit_tolerance='1e-08', EG2='1.29', EG='1.28', time_epoch_completed='1630976053.44', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.47e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='92' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:54:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 152185: <4FGL_J1303.0+2434_daily_bin92> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin92> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 17:40:47 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:40:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 17:40:56 2021
Terminated at Mon Sep  6 17:54:14 2021
Results reported at Mon Sep  6 17:54:14 2021

Your job looked like:

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

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

