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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin22
RA = 195.757, Dec = 24.5821
tmin = 245030401, tmax = 245289601
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='152109', job_status='RUN', time_executed='2021-09-06 17:42:39.221749', time_epoch_executed='1630975359.22' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152109/ft1_4FGL_J1303.0+2434_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152109/ft2_4FGL_J1303.0+2434_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152109/ft1_4FGL_J1303.0+2434_daily_bin22.fits outfile=/scratch/kocevski/152109/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin22.fits ra=195.757 dec=24.5821 rad=12.0 tmin=245030401.0 tmax=245289601.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.49
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152109/ft1_filtered_4FGL_J1303.0+2434_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/152109/ft2_4FGL_J1303.0+2434_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/152109/ltcube_245030401_245289601_4FGL_J1303.0+2434_daily_bin22.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/152109/ft2_4FGL_J1303.0+2434_daily_bin22.fits
.....................!
real 12.88
user 12.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152109/ft1_filtered_4FGL_J1303.0+2434_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/152109/ft2_4FGL_J1303.0+2434_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/152109/ltcube_245030401_245289601_4FGL_J1303.0+2434_daily_bin22.fits outfile=/scratch/kocevski/152109/expmap_245030401_245289601_4FGL_J1303.0+2434_daily_bin22.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/152109/ltcube_245030401_245289601_4FGL_J1303.0+2434_daily_bin22.fits
.....................!
real 191.68
user 186.07
sys 5.13

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/152109/ft1_filtered_4FGL_J1303.0+2434_daily_bin22.fits scfile=/scratch/kocevski/152109/ft2_4FGL_J1303.0+2434_daily_bin22.fits outfile=/scratch/kocevski/152109/cmap_245030401_245289601_4FGL_J1303.0+2434_daily_bin22.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152109/ft1_filtered_4FGL_J1303.0+2434_daily_bin22.fits scfile=/scratch/kocevski/152109/ft2_4FGL_J1303.0+2434_daily_bin22.fits outfile=/scratch/kocevski/152109/cmap_HighResolution_245030401_245289601_4FGL_J1303.0+2434_daily_bin22.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.721       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9958       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2894       1.0000         .10000E-03   10000.    
     5 'norm      '    .63528       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7979       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .42390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.026       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6016       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26964E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1422       1.0000         .10000E-03   10000.    
    14 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2592       1.0000         .10000E-03   10000.    
    16 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.9839       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.650       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11307E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    31.318       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11553E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .54515       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4402       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=   5817.323     FROM MIGRAD    STATUS=CONVERGED   1183 CALLS     3372 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.720        6.8490        .68009E-04    .25944E-03
   2  Prefactor     .10000E-03    1.6234        .93983E-03** at limit **
   3  Prefactor     4.9950        2.7307        .87376E-04    .41506E-03
   4  Prefactor     3.2893        3.4806        .14217E-03    .51256E-04
   5  norm          .63532        .26467        .24260E-04    .21885E-03
   6  norm          1.7981        2.4367        .13553E-03    .43703E-04
   7  Prefactor     .44058        37.973        .40218E-02    .49534E-03
   8  Prefactor     .10000E-03    53.232        .18142E-02** at limit **
   9  Prefactor     .10000E-03    5.7510        .17782E-02** at limit **
  10  norm          11.031        6.1974        .12065E-03    .52380E-03
  11  Prefactor     1.6103        18.247        .16748E-02   -.65860E-03
  12  Prefactor     .10019E-03    192.60        .71354E-02** at limit **
  13  norm          2.1442        3.3417        .16821E-03   -.36699E-04
  14  norm          .10007E-03    18.717        .30679E-02** at limit **
  15  norm          5.2635        4.7003        .14261E-03    .51283E-03
  16  norm          .10000E-03    3.2791        .13465E-02** at limit **
  17  norm          9.9823        15.287        .12682E-03    .74407E-05
  18  Prefactor     10.648        4.8711        .10546E-03    .93532E-03
  19  Prefactor     .10000E-03    14.981        .18142E-02** at limit **
  20  norm          .10000E-03    2.9558        .12779E-02** at limit **
  21  Prefactor     .10000E-03    18.810        .18142E-02** at limit **
  22  Prefactor     .10001E-03    111.65        .18142E-02** at limit **
  23  norm          31.322        11.225        .71598E-04   -.65737E-04
  24  Prefactor     .10000E-03    78.938        .46155E-02** at limit **
  25  Prefactor     .10000E-03    9.0096        .18142E-02** at limit **
  26  Normalizat    .54518        .21576        .32795E-03    .32042E-03
  27  Prefactor     1.4400        .23360        .23758E-03    .41492E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 34.7202
  Prefactor  = 0.0001
  Prefactor  = 4.99504
  Prefactor  = 3.28931
  norm       = 0.635325
  norm       = 1.79814
  Prefactor  = 0.440578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0312
  Prefactor  = 1.61033
  Prefactor  = 0.000100192
  norm       = 2.14418
  norm       = 0.000100066
  norm       = 5.26346
  norm       = 0.0001
  norm       = 9.9823
  Prefactor  = 10.6483
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 31.3216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.545176
  Prefactor  = 1.44004
 **********
 **   18 **HESSE 
 **********

 FCN=   5817.323     FROM HESSE     STATUS=OK           462 CALLS     3834 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.720        6.8461        .27203E-05   -1.4529    
   2  Prefactor     .10000E-03    1.6237        .18797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9950        2.7248        .34950E-05   -1.5261    
   4  Prefactor     3.2893        3.4806        .56870E-05   -1.5345    
   5  norm          .63532        .26464        .97039E-06   -1.5549    
   6  norm          1.7981        2.4365        .54212E-05   -1.5440    
   7  Prefactor     .44058        38.177        .16087E-03   -1.5575    
   8  Prefactor     .10000E-03    53.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7528        .35565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.031        6.1831        .48261E-05   -1.5044    
  11  Prefactor     1.6103        18.200        .66992E-04   -1.5454    
  12  Prefactor     .10019E-03    197.02        .28541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1442        3.3413        .67285E-05   -1.5415    
  14  norm          .10007E-03    19.029        .61358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2635        4.6962        .57044E-05   -1.5249    
  16  norm          .10000E-03    3.2791        .26931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.9823        15.286        .50727E-05   -1.5076    
  18  Prefactor     10.648        4.8687        .42182E-05   -1.5055    
  19  Prefactor     .10000E-03    14.983        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.9559        .25558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.812        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    111.66        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          31.322        11.223        .28639E-05   -1.4588    
  24  Prefactor     .10000E-03    80.550        .92310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.0103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .54518        .21570        .13118E-04   -1.1037    
  27  Prefactor     1.4400        .23371        .47517E-04   -.79233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09015e-08
Minuit parameter uncertainties:
  1  6.84622
  2  1.70714e-06
  3  2.72483
  4  3.48078
  5  0.264642
  6  2.43665
  7  8.20688
  8  0.000155652
  9  1.61395e-05
  10  6.18346
  11  10.8313
  12  0.0123565
  13  3.34158
  14  0.00224215
  15  4.69654
  16  3.07007e-06
  17  15.2922
  18  4.86887
  19  8.419e-05
  20  9.4786e-06
  21  7.11544e-05
  22  0.00149991
  23  11.2235
  24  0.000102628
  25  6.89574e-06
  26  0.216036
  27  0.233878
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.144e+00  3.342e+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.440e+00  2.339e-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:  5.452e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/152109/likelihoodResults_245030401_245289601_4FGL_J1303.0+2434_daily_bin22.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) = 5817.31671552
delta logL = 0.00653000918919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5817.31646659
delta logL = 0.00677893848751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0999       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1998       1.0000          .0000       5.0000    
     3 'Normalizat'    .54199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4421       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=   5817.316     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1000        3.3676        .16289E-03   -.74245E-03
   2  alpha         2.1997        1.1464        .25530E-01   -.29389E-04
   3  Normalizat    .54200        .20706        .32888E-03    .42622E-04
   4  Prefactor     1.4420        .23276        .23745E-03    .77151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.09996
  alpha      = 2.19971
  Normalizat = 0.542
  Prefactor  = 1.44205
 **********
 **   18 **HESSE 
 **********

 FCN=   5817.316     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1000        3.2988        .65157E-05   -1.5418    
   2  alpha         2.1997        1.1240        .10212E-02   -.12041    
   3  Normalizat    .54200        .20700        .13155E-04   -1.1051    
   4  Prefactor     1.4420        .23274        .47490E-04   -.79176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03277e-10
Minuit parameter uncertainties:
  1  3.2991
  2  1.16653
  3  0.207298
  4  0.232914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152109': 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) = 5817.31646658
delta logL = 0.00677894562068

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.100e+00  3.299e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.200e+00  1.167e+00  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.442e+00  2.329e-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:  5.420e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/152109/cmap_HighResolution_245030401_245289601_4FGL_J1303.0+2434_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-05', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-09-06 17:54:55.166295', job_id='152109', GAL2='1.44', fit_tolerance='1e-08', EG2='0.54', EG='0.55', time_epoch_completed='1630976095.17', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='6.78e-03', ts2='0.57', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='22' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:54:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 152109: <4FGL_J1303.0+2434_daily_bin22> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin22> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 17:40:40 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:40:42 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:42 2021
Terminated at Mon Sep  6 17:54:55 2021
Results reported at Mon Sep  6 17:54:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin22 195.757 24.5821 245030401 245289601 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 :                                   734.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

