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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin397
RA = 189.885, Dec = 4.7284
tmin = 342230401, tmax = 342489601
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='866168', job_status='RUN', time_executed='2021-09-06 03:03:47.233056', time_epoch_executed='1630922627.23' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866168

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866168/ft1_4FGL_J1239.5+0443_daily_bin397.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866168/ft2_4FGL_J1239.5+0443_daily_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866168/ft1_4FGL_J1239.5+0443_daily_bin397.fits outfile=/scratch/kocevski/866168/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin397.fits ra=189.885 dec=4.7284 rad=12.0 tmin=342230401.0 tmax=342489601.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.73
user 3.39
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/866168/ft2_4FGL_J1239.5+0443_daily_bin397.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/866168/ft2_4FGL_J1239.5+0443_daily_bin397.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/866168/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin397.fits evtable="EVENTS" outfile="/scratch/kocevski/866168/ft1_filtered_4FGL_J1239.5+0443_daily_bin397.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.66
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866168/ft1_filtered_4FGL_J1239.5+0443_daily_bin397.fits" evtable="EVENTS" scfile=/scratch/kocevski/866168/ft2_4FGL_J1239.5+0443_daily_bin397.fits sctable="SC_DATA" outfile=/scratch/kocevski/866168/ltcube_342230401_342489601_4FGL_J1239.5+0443_daily_bin397.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/866168/ft2_4FGL_J1239.5+0443_daily_bin397.fits
.....................!
real 17.26
user 16.63
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866168/ft1_filtered_4FGL_J1239.5+0443_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/866168/ft2_4FGL_J1239.5+0443_daily_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/866168/ltcube_342230401_342489601_4FGL_J1239.5+0443_daily_bin397.fits outfile=/scratch/kocevski/866168/expmap_342230401_342489601_4FGL_J1239.5+0443_daily_bin397.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/866168/ltcube_342230401_342489601_4FGL_J1239.5+0443_daily_bin397.fits
.....................!
real 190.34
user 185.57
sys 4.30

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J1239.5+0443 @ 189.885 4.7284

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/866168/ft1_filtered_4FGL_J1239.5+0443_daily_bin397.fits scfile=/scratch/kocevski/866168/ft2_4FGL_J1239.5+0443_daily_bin397.fits outfile=/scratch/kocevski/866168/cmap_342230401_342489601_4FGL_J1239.5+0443_daily_bin397.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=189.885 yref=4.7284 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866168/ft1_filtered_4FGL_J1239.5+0443_daily_bin397.fits scfile=/scratch/kocevski/866168/ft2_4FGL_J1239.5+0443_daily_bin397.fits outfile=/scratch/kocevski/866168/cmap_HighResolution_342230401_342489601_4FGL_J1239.5+0443_daily_bin397.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=189.885 yref=4.7284 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/866168/ft1_filtered_4FGL_J1239.5+0443_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/866168/ft2_4FGL_J1239.5+0443_daily_bin397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/866168/Model_4FGL_J1239.5+0443_daily_bin397.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/866168/ft1_filtered_4FGL_J1239.5+0443_daily_bin397.fits.....................!
real 52.07
user 50.33
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/866168/ft1_filtered_4FGL_J1239.5+0443_daily_bin397.fits', '/scratch/kocevski/866168/ft2_4FGL_J1239.5+0443_daily_bin397.fits', expMap='/scratch/kocevski/866168/expmap_342230401_342489601_4FGL_J1239.5+0443_daily_bin397.fits', expCube='/scratch/kocevski/866168/ltcube_342230401_342489601_4FGL_J1239.5+0443_daily_bin397.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/866168/Model_4FGL_J1239.5+0443_daily_bin397.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1239.5+0443'

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.221e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.234e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/866168/ft1_filtered_4FGL_J1239.5+0443_daily_bin397.fits
Spacecraft file(s): /scratch/kocevski/866168/ft2_4FGL_J1239.5+0443_daily_bin397.fits
Exposure map: /scratch/kocevski/866168/expmap_342230401_342489601_4FGL_J1239.5+0443_daily_bin397.fits
Exposure cube: /scratch/kocevski/866168/ltcube_342230401_342489601_4FGL_J1239.5+0443_daily_bin397.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/866168/Model_4FGL_J1239.5+0443_daily_bin397.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) = 6181.27938297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4232       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3009       1.0000         .10000E-03   10000.    
     4 'Prefactor '    52.616       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.041       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.0952       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10681E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .64749E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2630       1.0000         .10000E-03   10000.    
    18 'norm      '    6.5233       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.356       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    53.899       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.388       1.0000         .10000E-03   10000.    
    25 'norm      '    .95073       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.212       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.5410       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3676       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .69369       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6181.269     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     4076 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3490        1628.8       -.21271E-04    .17155E-05
   2  Prefactor     .10000E-03    4.4031       -.46026E-06** at limit **
   3  Prefactor     7.3027        9.4495        .14989E-06   -.24702E-05
   4  Prefactor     52.562        66.400       -.31465E-06   -.27419E-04
   5  Prefactor     25.054        34.316       -.12421E-05    .11094E-04
   6  Prefactor     .10000E-03    30.725        .50106E-06** at limit **
   7  Prefactor     .10000E-03    19.094        .28083E-08** at limit **
   8  Prefactor     .10000E-03    5.1395        .13415E-06** at limit **
   9  norm          .10000E-03    .68418        .55043E-07** at limit **
  10  norm          5.0958        3.8615       -.14025E-06   -.18370E-03
  11  Prefactor     .10000E-03    31.661        .12304E-06** at limit **
  12  norm          .10000E-03    14.643        .39383E-07** at limit **
  13  Prefactor     .10000E-03    52.659        .47543E-07** at limit **
  14  norm          .64622E-01    .23780        .16610E-06   -.51486E-03
  15  Prefactor     .10000E-03    7.8798        .23499E-06** at limit **
  16  Prefactor     .10000E-03    34.452        .60319E-06** at limit **
  17  Prefactor     8.2633        7.0485       -.40053E-07   -.41569E-04
  18  norm          6.5236        2.1768       -.24641E-07   -.23887E-03
  19  Prefactor     10.357        7.5738        .28781E-07   -.27416E-04
  20  Prefactor     .10000E-03    11.482        .95667E-07** at limit **
  21  Prefactor     .10000E-03    7.1565        .11576E-07** at limit **
  22  Prefactor     .10000E-03    30.382       -.55270E-07** at limit **
  23  norm          53.928        28.415        .89979E-07    .29469E-04
  24  Prefactor     16.387        14.778        .10892E-05    .15278E-05
  25  norm          .95073        .25563       -.42057E-09   -.20044E-03
  26  Prefactor     10.209        15.074       -.24741E-06   -.57815E-05
  27  Prefactor     .10000E-03    16.330        .71877E-07** at limit **
  28  Prefactor     1.5357        74.677        .39336E-05    .19041E-05
  29  Prefactor     .10000E-03    4.4555        .86410E-07** at limit **
  30  Normalizat    1.3677        .21660        .44506E-06   -.16484E-03
  31  Prefactor     .69368        .16467       -.18659E-05   -.39845E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34904
  Prefactor  = 0.0001
  Prefactor  = 7.30268
  Prefactor  = 52.5623
  Prefactor  = 25.0541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.09575
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0646216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.26328
  norm       = 6.5236
  Prefactor  = 10.357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 53.9281
  Prefactor  = 16.3866
  norm       = 0.950733
  Prefactor  = 10.2088
  Prefactor  = 0.0001
  Prefactor  = 1.53572
  Prefactor  = 0.0001
  Normalizat = 1.36768
  Prefactor  = 0.693682
 **********
 **   18 **HESSE 
 **********

 FCN=   6181.269     FROM HESSE     STATUS=OK           624 CALLS     4700 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3490        1693.4        .36249E-02   -1.5476    
   2  Prefactor     .10000E-03    4.4009        .16089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.3027        9.4497        .14844E-03   -1.5167    
   4  Prefactor     52.562        66.645        .27646E-03   -1.4257    
   5  Prefactor     25.054        34.252        .80051E-04   -1.4706    
   6  Prefactor     .10000E-03    31.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.1648        .17408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .68777        .63525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.0958        3.8138        .12078E-03   -1.5256    
  11  Prefactor     .10000E-03    31.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    52.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .64622E-01    .37440        .65872E-03   -1.5657    
  15  Prefactor     .10000E-03    7.9486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.2633        7.0398        .13947E-03   -1.5133    
  18  norm          6.5236        2.1710        .62843E-04   -1.5197    
  19  Prefactor     10.357        7.5733        .12451E-03   -1.5064    
  20  Prefactor     .10000E-03    11.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          53.928        28.440        .27317E-03   -1.4238    
  24  Prefactor     16.387        15.048        .49469E-03   -1.4898    
  25  norm          .95073        .25578        .20016E-04   -1.5513    
  26  Prefactor     10.209        15.045        .12539E-03   -1.5069    
  27  Prefactor     .10000E-03    16.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.5357        76.700        .34345E-03   -1.5460    
  29  Prefactor     .10000E-03    4.4707        .16210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3677        .25938        .25568E-03   -.81568    
  31  Prefactor     .69368        .19050        .27594E-03   -1.0378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3669e-08
Minuit parameter uncertainties:
  1  98.5219
  2  5.26702e-06
  3  9.45159
  4  66.7397
  5  34.2791
  6  3.98184e-05
  7  1.03e-05
  8  3.50112e-06
  9  6.8521e-07
  10  3.81394
  11  2.7016e-05
  12  1.6293e-05
  13  2.35339e-05
  14  0.310853
  15  1.31502e-05
  16  5.65566e-05
  17  7.04046
  18  2.17104
  19  7.57396
  20  4.08756e-06
  21  1.39926e-06
  22  3.37712e-05
  23  28.447
  24  15.0512
  25  0.255782
  26  15.0503
  27  7.92795e-06
  28  21.735
  29  2.53382e-06
  30  0.259633
  31  0.190676
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  6.524e+00  2.171e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.234e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  6.937e-01  1.907e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.368e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.61
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.67e-07 +/- 5.55e-08
Energy Flux (Fixed Index): 5.85e-05 +/- 1.95e-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) = 6181.09613771
delta logL = 0.173070559756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6181.0960933
delta logL = 0.173114964625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2117       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4772       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72035       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+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=   6181.096     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      265 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2115        2.2301        .59076E-04    .33821E-02
   2  alpha         2.4768        .44365        .10454E-01    .18228E-03
   3  Normalizat    1.3240        .24859        .25897E-03   -.12599E-04
   4  Prefactor     .72026        .19408        .27135E-03   -.16918E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.21152
  alpha      = 2.47682
  Normalizat = 1.32399
  Prefactor  = 0.720257
 **********
 **   18 **HESSE 
 **********

 FCN=   6181.096     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2115        2.1975        .11815E-04   -1.5209    
   2  alpha         2.4768        .43681        .41816E-03   -.92712E-02
   3  Normalizat    1.3240        .24857        .10359E-04   -.82853    
   4  Prefactor     .72026        .19403        .10854E-04   -1.0274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08503e-09
Minuit parameter uncertainties:
  1  2.19756
  2  0.439067
  3  0.248792
  4  0.194217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866168': 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) = 6181.09609277
delta logL = 0.173115493037

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  6.212e+00  2.198e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.477e+00  4.391e-01  0.000e+00  5.000e+00 ( 1.000e+00)
296         beta:  1.234e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  7.203e-01  1.942e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.324e+00  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.81
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.48 +/- 0.44
Photon Flux (Free Index): 1.96e-07 +/- 7.85e-08
Energy Flux (Free Index): 5.48e-05 +/- 1.83e-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/866168/cmap_HighResolution_342230401_342489601_4FGL_J1239.5+0443_daily_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-07', energy_flux2='5.48e-05', photon_flux_error='5.55e-08', dlogl='1.73e-01', energy_flux='5.85e-05', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-09-06 03:16:17.424282', photon_index_error2='0.44', photon_index2='2.48', ts='19.61', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.37', time_epoch_completed='1630923377.42', return_code='0', job_id='866168', GAL2='0.72', EG2='1.32', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='7.85e-08', ts2='19.81', photon_index='2.23' WHERE bin_id='397' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:16:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 866168: <4FGL_J1239.5+0443_daily_bin397> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin397> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 03:00:49 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:01:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 03:01:35 2021
Terminated at Mon Sep  6 03:16:18 2021
Results reported at Mon Sep  6 03:16:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin397 189.885 4.7284 342230401 342489601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1239.5+0443 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   746.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            929 sec.

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

