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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1306
RA = 195.757, Dec = 24.5821
tmin = 577843201, tmax = 578102401
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='163515', job_status='RUN', time_executed='2021-09-06 18:22:58.266374', time_epoch_executed='1630977778.27' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163515

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163515/ft1_4FGL_J1303.0+2434_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163515/ft2_4FGL_J1303.0+2434_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163515/ft1_4FGL_J1303.0+2434_daily_bin1306.fits outfile=/scratch/kocevski/163515/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1306.fits ra=195.757 dec=24.5821 rad=12.0 tmin=577843201.0 tmax=578102401.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 3.41
user 3.14
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163515/ft1_filtered_4FGL_J1303.0+2434_daily_bin1306.fits" evtable="EVENTS" scfile=/scratch/kocevski/163515/ft2_4FGL_J1303.0+2434_daily_bin1306.fits sctable="SC_DATA" outfile=/scratch/kocevski/163515/ltcube_577843201_578102401_4FGL_J1303.0+2434_daily_bin1306.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/163515/ft2_4FGL_J1303.0+2434_daily_bin1306.fits
.....................!
real 18.82
user 17.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163515/ft1_filtered_4FGL_J1303.0+2434_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/163515/ft2_4FGL_J1303.0+2434_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/163515/ltcube_577843201_578102401_4FGL_J1303.0+2434_daily_bin1306.fits outfile=/scratch/kocevski/163515/expmap_577843201_578102401_4FGL_J1303.0+2434_daily_bin1306.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/163515/ltcube_577843201_578102401_4FGL_J1303.0+2434_daily_bin1306.fits
.....................!
real 195.36
user 187.73
sys 5.21

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/163515/ft1_filtered_4FGL_J1303.0+2434_daily_bin1306.fits scfile=/scratch/kocevski/163515/ft2_4FGL_J1303.0+2434_daily_bin1306.fits outfile=/scratch/kocevski/163515/cmap_577843201_578102401_4FGL_J1303.0+2434_daily_bin1306.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.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.223       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1576       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6258       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .15917       1.0000         .10000E-03   10000.    
     6 'norm      '    6.6577       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4554       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.177       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9972       1.0000         .10000E-03   10000.    
    10 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.625       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7910       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2241       1.0000         .10000E-03   10000.    
    14 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7783       1.0000         .10000E-03   10000.    
    16 'norm      '    11.267       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .12522E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    28.735       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2205       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83499       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=   6640.965     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     2809 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.222        4.2436       -.43913E-06   -.31603E-03
   2  Prefactor     2.1579        2.3090        .30411E-06   -.11845E-03
   3  Prefactor     3.6258        2.0615       -.10557E-07   -.26001E-04
   4  Prefactor     .10000E-03    2.2180       -.17477E-09** at limit **
   5  norm          .15916        .22166       -.27582E-07   -.13513E-02
   6  norm          6.6578        4.3397        .71542E-06    .40380E-03
   7  Prefactor     8.4553        8.2279        .24281E-06   -.42436E-03
   8  Prefactor     14.163        41.289       -.15362E-04   -.18890E-03
   9  Prefactor     2.9963        3.9857        .19716E-05   -.25218E-02
  10  norm          .10000E-03    2.0458        .99386E-07** at limit **
  11  Prefactor     11.623        16.656       -.77399E-06   -.43876E-04
  12  Prefactor     4.7789        18.930       -.52904E-05   -.13785E-03
  13  norm          3.2238        3.6092       -.14120E-06   -.12455E-03
  14  norm          .10000E-03    2.5901        .47758E-07** at limit **
  15  norm          2.7812        5.7578        .40093E-06   -.44439E-04
  16  norm          11.264        10.889        .13800E-07   -.43366E-03
  17  norm          .10000E-03    10.609       -.18597E-05** at limit **
  18  Prefactor     .10000E-03    .78462        .34814E-07** at limit **
  19  Prefactor     .10000E-03    3.2355       -.14761E-07** at limit **
  20  norm          .10000E-03    10.702        .21310E-05** at limit **
  21  Prefactor     .10000E-03    18.637        .24793E-05** at limit **
  22  Prefactor     .10000E-03    16.730       -.12256E-05** at limit **
  23  norm          28.732        13.369       -.32761E-06   -.18919E-03
  24  Prefactor     .10000E-03    16.177       -.13170E-05** at limit **
  25  Prefactor     .10000E-03    39.974       -.12531E-06** at limit **
  26  Normalizat    1.2204        .17903        .98997E-06   -.89276E-04
  27  Prefactor     .83505        .18513       -.47055E-06    .27025E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2223
  Prefactor  = 2.15785
  Prefactor  = 3.62578
  Prefactor  = 0.0001
  norm       = 0.159159
  norm       = 6.6578
  Prefactor  = 8.45525
  Prefactor  = 14.1631
  Prefactor  = 2.99634
  norm       = 0.0001
  Prefactor  = 11.6235
  Prefactor  = 4.77894
  norm       = 3.22382
  norm       = 0.0001
  norm       = 2.7812
  norm       = 11.2636
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.7318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22044
  Prefactor  = 0.835051
 **********
 **   18 **HESSE 
 **********

 FCN=   6640.965     FROM HESSE     STATUS=OK           490 CALLS     3299 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.222        4.2854        .89606E-04   -1.5038    
   2  Prefactor     2.1579        2.3156        .11184E-03   -1.5414    
   3  Prefactor     3.6258        2.0586        .84079E-04   -1.5327    
   4  Prefactor     .10000E-03    2.2270        .11848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .15916        .20602        .42985E-03   -1.5628    
   6  norm          6.6578        4.3438        .13204E-03   -1.5192    
   7  Prefactor     8.4553        8.2754        .68931E-03   -1.5126    
   8  Prefactor     14.163        42.131        .10638E-03   -1.4955    
   9  Prefactor     2.9963        5.9454        .11723E-02   -1.5362    
  10  norm          .10000E-03    2.0673        .11370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.623        16.672        .11749E-03   -1.5026    
  12  Prefactor     4.7789        18.990        .18381E-03   -1.5271    
  13  norm          3.2238        3.5999        .15675E-03   -1.5349    
  14  norm          .10000E-03    2.6224        .12803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7812        6.0456        .15167E-03   -1.5374    
  16  norm          11.264        11.526        .59675E-03   -1.5037    
  17  norm          .10000E-03    10.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .79026        .70469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2457        .14315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          28.732        13.368        .74739E-04   -1.4635    
  24  Prefactor     .10000E-03    16.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    40.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2204        .21613        .23645E-03   -.85973    
  27  Prefactor     .83505        .22330        .29862E-03   -.98449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84787e-09
Minuit parameter uncertainties:
  1  4.28553
  2  2.3157
  3  2.05865
  4  6.22797e-06
  5  0.206023
  6  4.34397
  7  8.27652
  8  42.2194
  9  5.94653
  10  3.78239e-05
  11  16.679
  12  19.0145
  13  3.60012
  14  7.02717e-06
  15  6.04691
  16  11.528
  17  9.45446e-05
  18  1.20078e-06
  19  4.2003e-07
  20  0.000101183
  21  0.000158253
  22  7.68881e-05
  23  13.3694
  24  0.000102321
  25  8.06693e-05
  26  0.216285
  27  0.223541
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.224e+00  3.600e+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.351e-01  2.235e-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.220e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 2.44e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/163515/likelihoodResults_577843201_578102401_4FGL_J1303.0+2434_daily_bin1306.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) = 6640.89297625
delta logL = 0.0719407831211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6640.8835073
delta logL = 0.0814097336361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7394       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3812       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84094       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=   6640.884     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7441        86.597        .61498E-02    .48809E-03
   2  alpha         2.3811        3.2948        .41210        .40148E-04
   3  Normalizat    1.2123        .58390E-01    .53626E-01   -.27092E-04
   4  Prefactor     .84120        .62174E-01    .67272E-01   -.40645E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.74409
  alpha      = 2.38107
  Normalizat = 1.21231
  Prefactor  = 0.841198
 **********
 **   18 **HESSE 
 **********

 FCN=   6640.884     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7441        3.6450        .13597E-03   -1.5377    
   2  alpha         2.3811        .84292        .17073E-01   -.47588E-01
   3  Normalizat    1.2123        .20660        .23711E-03   -.86223    
   4  Prefactor     .84120        .22039        .29761E-03   -.98227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86523e-11
Minuit parameter uncertainties:
  1  3.64533
  2  0.859807
  3  0.206742
  4  0.22062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163515': 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) = 6640.88350529
delta logL = 0.0814117383952

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.744e+00  3.645e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.381e+00  8.598e-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.412e-01  2.206e-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.212e+00  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.38 +/- 0.86
Photon Flux (Free Index): 2.78e-08 +/- 3.08e-08
Energy Flux (Free Index): 9.40e-06 +/- 1.13e-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/163515/cmap_HighResolution_577843201_578102401_4FGL_J1303.0+2434_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-05', comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='9.40e-06', photon_flux_error='2.44e-08', dlogl='8.14e-02', energy_flux='1.13e-05', photon_flux2='2.78e-08', job_status='DONE', time_completed='2021-09-06 18:35:56.628968', photon_index_error2='0.86', photon_index2='2.38', ts='1.19', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='7.92e-08', energy_flux_error2='1.13e-05', EG='1.22', time_epoch_completed='1630978556.63', return_code='0', job_id='163515', GAL2='0.84', EG2='1.21', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='3.08e-08', ts2='1.35', photon_index='2.07' WHERE bin_id='1306' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:35:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 163515: <4FGL_J1303.0+2434_daily_bin1306> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1306> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 18:20:33 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:20:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 18:20:37 2021
Terminated at Mon Sep  6 18:35:57 2021
Results reported at Mon Sep  6 18:35:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1306 195.757 24.5821 577843201 578102401 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 :                                   745.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            924 sec.

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

