/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 0 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 = 7572
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1303.0+2434_daily_bin412
RA = 195.757, Dec = 24.5821
tmin = 346118401, tmax = 346377601
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='156402', job_status='RUN', time_executed='2021-09-06 17:56:29.888062', time_epoch_executed='1630976189.89' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156402

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156402/ft1_4FGL_J1303.0+2434_daily_bin412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156402/ft2_4FGL_J1303.0+2434_daily_bin412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156402/ft1_4FGL_J1303.0+2434_daily_bin412.fits outfile=/scratch/kocevski/156402/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin412.fits ra=195.757 dec=24.5821 rad=12.0 tmin=346118401.0 tmax=346377601.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.08
user 3.83
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156402/ft1_filtered_4FGL_J1303.0+2434_daily_bin412.fits evtable="EVENTS" scfile=/scratch/kocevski/156402/ft2_4FGL_J1303.0+2434_daily_bin412.fits sctable="SC_DATA" expcube=/scratch/kocevski/156402/ltcube_346118401_346377601_4FGL_J1303.0+2434_daily_bin412.fits outfile=/scratch/kocevski/156402/expmap_346118401_346377601_4FGL_J1303.0+2434_daily_bin412.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/156402/ltcube_346118401_346377601_4FGL_J1303.0+2434_daily_bin412.fits
.....................!
real 190.39
user 185.21
sys 4.71

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/156402/ft1_filtered_4FGL_J1303.0+2434_daily_bin412.fits scfile=/scratch/kocevski/156402/ft2_4FGL_J1303.0+2434_daily_bin412.fits outfile=/scratch/kocevski/156402/cmap_346118401_346377601_4FGL_J1303.0+2434_daily_bin412.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156402/ft1_filtered_4FGL_J1303.0+2434_daily_bin412.fits scfile=/scratch/kocevski/156402/ft2_4FGL_J1303.0+2434_daily_bin412.fits outfile=/scratch/kocevski/156402/cmap_HighResolution_346118401_346377601_4FGL_J1303.0+2434_daily_bin412.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7558       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1440       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8668       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .63720       1.0000         .10000E-03   10000.    
     5 'norm      '    .54153       1.0000         .10000E-03   10000.    
     6 'norm      '    4.9339       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.871       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5725       1.0000         .10000E-03   10000.    
    10 'norm      '    .12215E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.469       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.2766       1.0000         .10000E-03   10000.    
    14 'norm      '    .33367       1.0000         .10000E-03   10000.    
    15 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0516       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .52201E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    11.217       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0357       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93196       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=   5710.028     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3329 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7560        2.3984        .23008E-08   -.21517E-05
   2  Prefactor     4.1441        2.2786        .45869E-08    .44905E-06
   3  Prefactor     1.8668        1.3614        .76118E-08    .23168E-05
   4  Prefactor     .64055        3.5060       -.91883E-08    .31871E-04
   5  norm          .54156        .25882        .13482E-07   -.23713E-04
   6  norm          4.9339        3.5242       -.63107E-07   -.25600E-05
   7  Prefactor     .10000E-03    2.2641       -.10474E-07** at limit **
   8  Prefactor     70.889        60.853        .98459E-05    .33274E-04
   9  Prefactor     1.5741        1.0130        .17741E-07   -.36133E-03
  10  norm          .10000E-03    2.3995       -.52420E-06** at limit **
  11  Prefactor     12.471        13.441        .33383E-07   -.40431E-05
  12  Prefactor     .10000E-03    7.9501       -.58368E-07** at limit **
  13  norm          7.2772        4.0977        .43138E-06   -.10031E-05
  14  norm          .33307        2.9287       -.26772E-07   -.15614E-04
  15  norm          .10000E-03    2.4541       -.27867E-07** at limit **
  16  norm          1.0508        3.3308       -.15633E-07   -.41832E-04
  17  norm          .10000E-03    6.2538        .24859E-08** at limit **
  18  Prefactor     2.0818        3.2404        .99471E-07    .19726E-04
  19  Prefactor     .10000E-03    28.964       -.11707E-06** at limit **
  20  norm          .10000E-03    2.0104        .25253E-08** at limit **
  21  Prefactor     .10000E-03    9.7700        .13552E-06** at limit **
  22  Prefactor     .10000E-03    399.30        .28282E-05** at limit **
  23  norm          11.217        6.7720        .52652E-07   -.12153E-04
  24  Prefactor     .10000E-03    4.0433        .18199E-07** at limit **
  25  Prefactor     .10000E-03    10.546       -.84102E-07** at limit **
  26  Normalizat    1.0356        .17454       -.74720E-06    .90216E-04
  27  Prefactor     .93195        .18437        .22372E-08    .15341E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75598
  Prefactor  = 4.14413
  Prefactor  = 1.86684
  Prefactor  = 0.640545
  norm       = 0.541564
  norm       = 4.93388
  Prefactor  = 0.0001
  Prefactor  = 70.8893
  Prefactor  = 1.57406
  norm       = 0.000100001
  Prefactor  = 12.4706
  Prefactor  = 0.0001
  norm       = 7.27718
  norm       = 0.333067
  norm       = 0.0001
  norm       = 1.05075
  norm       = 0.0001
  Prefactor  = 2.08178
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0356
  Prefactor  = 0.931946
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.028     FROM HESSE     STATUS=OK           498 CALLS     3827 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7560        2.4070        .10202E-03   -1.5376    
   2  Prefactor     4.1441        2.2908        .78980E-04   -1.5301    
   3  Prefactor     1.8668        1.3651        .72956E-04   -1.5435    
   4  Prefactor     .64055        11.351        .26334E-02   -1.5548    
   5  norm          .54156        .25588        .25011E-04   -1.5561    
   6  norm          4.9339        3.5190        .11403E-03   -1.5264    
   7  Prefactor     .10000E-03    2.2659        .11104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     70.889        61.007        .47685E-04   -1.4022    
   9  Prefactor     1.5741        8.4482        .16947E-02   -1.5457    
  10  norm          .10000E-03    4.7753        .22688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.471        13.450        .11344E-03   -1.5002    
  12  Prefactor     .10000E-03    7.9588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.2772        4.1128        .11024E-03   -1.5168    
  14  norm          .33307        12.027        .24424E-02   -1.5593    
  15  norm          .10000E-03    2.5213        .22919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0508        3.1335        .23483E-02   -1.5503    
  17  norm          .10000E-03    6.2585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0818        3.1780        .15491E-03   -1.5419    
  19  Prefactor     .10000E-03    29.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0172        .10457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.7714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    414.06        .38285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.217        6.7745        .59810E-03   -1.5038    
  24  Prefactor     .10000E-03    4.0494        .14839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0356        .20216        .22757E-03   -.91847    
  27  Prefactor     .93195        .21609        .26095E-03   -.95034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16775e-08
Minuit parameter uncertainties:
  1  2.40706
  2  2.29081
  3  1.36514
  4  5.39357
  5  0.255876
  6  3.51916
  7  4.73175e-07
  8  61.061
  9  7.29464
  10  0.000116306
  11  13.4528
  12  8.71685e-06
  13  4.11298
  14  4.00309
  15  3.43073e-06
  16  3.13398
  17  3.84969e-07
  18  3.17829
  19  4.20717e-06
  20  6.21251e-07
  21  1.1227e-06
  22  5.3541e-05
  23  6.77493
  24  1.13784e-06
  25  5.61256e-06
  26  0.202306
  27  0.216288
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  7.277e+00  4.113e+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:  9.319e-01  2.163e-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.036e+00  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.65
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 1.45e-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) = 5709.90631289
delta logL = 0.12213574163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5709.90390251
delta logL = 0.124546120539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6141       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3550       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94695       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=   5709.904     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      257 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6166        64.712        .39009E-02    .10538E-03
   2  alpha         2.3557        3.6035        .31324        .42414E-04
   3  Normalizat    1.0135        .97557E-01    .44549E-01    .83812E-05
   4  Prefactor     .94690        .75484E-01    .45601E-01    .10220E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.61657
  alpha      = 2.35572
  Normalizat = 1.01347
  Prefactor  = 0.946902
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.904     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6166        4.2130        .96946E-04   -1.5193    
   2  alpha         2.3557        .59811        .11108E-01   -.57744E-01
   3  Normalizat    1.0135        .20032        .22967E-03   -.92581    
   4  Prefactor     .94690        .21537        .25910E-03   -.94521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78233e-12
Minuit parameter uncertainties:
  1  4.21319
  2  0.603987
  3  0.200464
  4  0.215568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156402': 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) = 5709.90390043
delta logL = 0.124548200515

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  6.617e+00  4.213e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.356e+00  6.040e-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:  9.469e-01  2.156e-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.013e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.36 +/- 0.60
Photon Flux (Free Index): 6.48e-08 +/- 4.48e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.29e-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/156402/cmap_HighResolution_346118401_346377601_4FGL_J1303.0+2434_daily_bin412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='2.25e-05', photon_flux_error='2.79e-08', dlogl='1.25e-01', energy_flux='2.56e-05', photon_flux2='6.48e-08', job_status='DONE', time_completed='2021-09-06 18:07:15.013636', photon_index_error2='0.60', photon_index2='2.36', ts='9.65', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='1.04', time_epoch_completed='1630976835.01', return_code='0', job_id='156402', GAL2='0.95', EG2='1.01', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='4.48e-08', ts2='9.88', photon_index='2.07' WHERE bin_id='412' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:07:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 156402: <4FGL_J1303.0+2434_daily_bin412> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin412> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 17:55:36 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:56:22 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:56:22 2021
Terminated at Mon Sep  6 18:07:15 2021
Results reported at Mon Sep  6 18:07:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin412 195.757 24.5821 346118401 346377601 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 :                                   640.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            699 sec.

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

