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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin89
RA = 195.757, Dec = 24.5821
tmin = 262396801, tmax = 262656001
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='152182', job_status='RUN', time_executed='2021-09-06 17:44:00.273905', time_epoch_executed='1630975440.27' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152182

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152182/ft1_4FGL_J1303.0+2434_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152182/ft2_4FGL_J1303.0+2434_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152182/ft1_4FGL_J1303.0+2434_daily_bin89.fits outfile=/scratch/kocevski/152182/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin89.fits ra=195.757 dec=24.5821 rad=12.0 tmin=262396801.0 tmax=262656001.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.45
user 1.26
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152182/ft1_filtered_4FGL_J1303.0+2434_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/152182/ft2_4FGL_J1303.0+2434_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/152182/ltcube_262396801_262656001_4FGL_J1303.0+2434_daily_bin89.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/152182/ft2_4FGL_J1303.0+2434_daily_bin89.fits
.....................!
real 18.07
user 17.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152182/ft1_filtered_4FGL_J1303.0+2434_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/152182/ft2_4FGL_J1303.0+2434_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/152182/ltcube_262396801_262656001_4FGL_J1303.0+2434_daily_bin89.fits outfile=/scratch/kocevski/152182/expmap_262396801_262656001_4FGL_J1303.0+2434_daily_bin89.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/152182/ltcube_262396801_262656001_4FGL_J1303.0+2434_daily_bin89.fits
.....................!
real 192.29
user 186.72
sys 4.99

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/152182/ft1_filtered_4FGL_J1303.0+2434_daily_bin89.fits scfile=/scratch/kocevski/152182/ft2_4FGL_J1303.0+2434_daily_bin89.fits outfile=/scratch/kocevski/152182/cmap_262396801_262656001_4FGL_J1303.0+2434_daily_bin89.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152182/ft1_filtered_4FGL_J1303.0+2434_daily_bin89.fits scfile=/scratch/kocevski/152182/ft2_4FGL_J1303.0+2434_daily_bin89.fits outfile=/scratch/kocevski/152182/cmap_HighResolution_262396801_262656001_4FGL_J1303.0+2434_daily_bin89.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=195.757 yref=24.5821 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .83501       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3547       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7879       1.0000         .10000E-03   10000.    
     5 'norm      '    .64003       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.566       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.8057       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9904       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.297       1.0000         .10000E-03   10000.    
    13 'norm      '    7.8801       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10857E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.244       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24875E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15168E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .85938E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1102       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0144       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=   5689.158     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     2886 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .89023       -.93488E-08** at limit **
   2  Prefactor     .83500        1.4935        .15851E-06    .20373E-03
   3  Prefactor     4.3544        2.3388        .12614E-07   -.53264E-04
   4  Prefactor     4.7874        4.0623        .11453E-07   -.37762E-05
   5  norm          .64002        .23651        .55826E-08   -.99131E-04
   6  norm          .10000E-03    .84304        .19768E-08** at limit **
   7  Prefactor     16.569        10.496       -.27386E-08   -.35419E-04
   8  Prefactor     .10000E-03    21.282       -.10468E-06** at limit **
   9  Prefactor     .10000E-03    6.6972        .19186E-07** at limit **
  10  norm          4.8041        5.6869        .80823E-07   -.93880E-04
  11  Prefactor     4.9916        14.061        .39098E-06   -.31390E-04
  12  Prefactor     16.313        22.407       -.83023E-06   -.20356E-03
  13  norm          7.8800        4.2832        .70773E-07    .76689E-04
  14  norm          .10000E-03    1.8343       -.15170E-07** at limit **
  15  norm          .10000E-03    3.1710        .13710E-05** at limit **
  16  norm          17.250        7.9114       -.10612E-05   -.64379E-03
  17  norm          .10000E-03    8.2198       -.48101E-07** at limit **
  18  Prefactor     .10000E-03    2.2586       -.49312E-07** at limit **
  19  Prefactor     .10036E-03    16.279       -.40501E-06** at limit **
  20  norm          .10000E-03    5.9482        .36450E-07** at limit **
  21  Prefactor     .10000E-03    31.035       -.32843E-06** at limit **
  22  Prefactor     .10000E-03    28.659        .14295E-06** at limit **
  23  norm          .10029E-03    8.7618        .14351E-05** at limit **
  24  Prefactor     .10000E-03    8.2114        .44003E-07** at limit **
  25  Prefactor     .10000E-03    21.867        .23948E-06** at limit **
  26  Normalizat    1.1103        .18358       -.52580E-06   -.35864E-03
  27  Prefactor     1.0143        .19281        .14296E-06   -.29520E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.834997
  Prefactor  = 4.35442
  Prefactor  = 4.78738
  norm       = 0.640018
  norm       = 0.0001
  Prefactor  = 16.5688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.80408
  Prefactor  = 4.99155
  Prefactor  = 16.313
  norm       = 7.88003
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 17.2497
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100358
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11027
  Prefactor  = 1.01426
 **********
 **   18 **HESSE 
 **********

 FCN=   5689.158     FROM HESSE     STATUS=OK           498 CALLS     3384 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .89310        .69432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .83500        1.2073        .12016E-02   -1.5525    
   3  Prefactor     4.3544        2.3311        .80482E-04   -1.5291    
   4  Prefactor     4.7874        4.0605        .13609E-03   -1.5270    
   5  norm          .64002        .23674        .21443E-04   -1.5548    
   6  norm          .10000E-03    .84350        .67630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.569        10.487        .98403E-04   -1.4894    
   8  Prefactor     .10000E-03    21.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.8506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8041        5.6063        .17125E-03   -1.5270    
  11  Prefactor     4.9916        14.067        .18002E-03   -1.5261    
  12  Prefactor     16.313        22.268        .99212E-04   -1.4900    
  13  norm          7.8800        4.2792        .11094E-03   -1.5146    
  14  norm          .10000E-03    1.8397        .99756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.218        .21650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.250        8.2088        .96450E-04   -1.4877    
  17  norm          .10000E-03    8.2247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.4227        .20896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10036E-03    19.207        .76524E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.0865        .35816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10029E-03    56.744        .39310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.2496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1103        .21652        .23761E-03   -.89423    
  27  Prefactor     1.0143        .22596        .26846E-03   -.92256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58141e-09
Minuit parameter uncertainties:
  1  1.88233e-07
  2  1.20738
  3  2.33116
  4  4.06074
  5  0.236744
  6  3.29466e-07
  7  10.4882
  8  6.76332e-05
  9  3.42652e-07
  10  5.60696
  11  14.0765
  12  22.2796
  13  4.27939
  14  8.94315e-07
  15  0.000457516
  16  8.20931
  17  1.99502e-05
  18  9.05891e-05
  19  0.00524258
  20  2.14538e-05
  21  0.000152228
  22  8.99264e-05
  23  0.00806939
  24  1.62798e-05
  25  9.69661e-05
  26  0.216697
  27  0.226172
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  7.880e+00  4.279e+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:  1.014e+00  2.262e-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.110e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.80
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 5.34e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.51e-05

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) = 5689.14373775
delta logL = 0.0145392152008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5689.14147358
delta logL = 0.016803390633

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1674       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9851       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0118       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=   5689.141     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      238 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1674        4.6621        .11336E-03   -.30687E-03
   2  alpha         1.9851        .43821        .11276E-01   -.36335E-04
   3  Normalizat    1.1138        .20647        .23728E-03    .15907E-04
   4  Prefactor     1.0118        .22437        .26874E-03    .17175E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.16744
  alpha      = 1.98508
  Normalizat = 1.11383
  Prefactor  = 1.01178
 **********
 **   18 **HESSE 
 **********

 FCN=   5689.141     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1674        4.6219        .45345E-05   -1.5136    
   2  alpha         1.9851        .43441        .45103E-03   -.20745    
   3  Normalizat    1.1138        .20665        .94912E-05   -.89309    
   4  Prefactor     1.0118        .22457        .10750E-04   -.92338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.619e-11
Minuit parameter uncertainties:
  1  4.62213
  2  0.436727
  3  0.206802
  4  0.224779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152182': 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) = 5689.14147357
delta logL = 0.0168033935024

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  8.167e+00  4.622e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.985e+00  4.367e-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:  1.012e+00  2.248e-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.114e+00  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.81
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.99 +/- 0.44
Photon Flux (Free Index): 5.05e-08 +/- 3.20e-08
Energy Flux (Free Index): 3.01e-05 +/- 2.16e-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/152182/cmap_HighResolution_262396801_262656001_4FGL_J1303.0+2434_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.34e-08', energy_flux2='3.01e-05', photon_flux_error='2.90e-08', dlogl='1.68e-02', energy_flux='2.77e-05', photon_flux2='5.05e-08', job_status='DONE', time_completed='2021-09-06 17:54:20.692024', photon_index_error2='0.44', photon_index2='1.99', ts='6.80', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='1.11', time_epoch_completed='1630976060.69', return_code='0', job_id='152182', GAL2='1.01', EG2='1.11', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='3.20e-08', ts2='6.81', photon_index='2.07' WHERE bin_id='89' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:54:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 152182: <4FGL_J1303.0+2434_daily_bin89> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin89> 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) <bullet0291>, 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:21 2021
Results reported at Mon Sep  6 17:54:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin89 195.757 24.5821 262396801 262656001 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 :                                   618.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            814 sec.

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

