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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin550
RA = 189.885, Dec = 4.7284
tmin = 381888001, tmax = 382147201
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='867855', job_status='RUN', time_executed='2021-09-06 03:09:08.178802', time_epoch_executed='1630922948.18' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867855

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867855/ft1_4FGL_J1239.5+0443_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867855/ft2_4FGL_J1239.5+0443_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867855/ft1_4FGL_J1239.5+0443_daily_bin550.fits outfile=/scratch/kocevski/867855/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin550.fits ra=189.885 dec=4.7284 rad=12.0 tmin=381888001.0 tmax=382147201.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.95
user 4.67
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867855/ft1_filtered_4FGL_J1239.5+0443_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/867855/ft2_4FGL_J1239.5+0443_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/867855/ltcube_381888001_382147201_4FGL_J1239.5+0443_daily_bin550.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/867855/ft2_4FGL_J1239.5+0443_daily_bin550.fits
.....................!
real 14.16
user 13.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867855/ft1_filtered_4FGL_J1239.5+0443_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/867855/ft2_4FGL_J1239.5+0443_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/867855/ltcube_381888001_382147201_4FGL_J1239.5+0443_daily_bin550.fits outfile=/scratch/kocevski/867855/expmap_381888001_382147201_4FGL_J1239.5+0443_daily_bin550.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/867855/ltcube_381888001_382147201_4FGL_J1239.5+0443_daily_bin550.fits
.....................!
real 191.76
user 186.77
sys 4.53

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/867855/ft1_filtered_4FGL_J1239.5+0443_daily_bin550.fits scfile=/scratch/kocevski/867855/ft2_4FGL_J1239.5+0443_daily_bin550.fits outfile=/scratch/kocevski/867855/cmap_381888001_382147201_4FGL_J1239.5+0443_daily_bin550.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867855/ft1_filtered_4FGL_J1239.5+0443_daily_bin550.fits scfile=/scratch/kocevski/867855/ft2_4FGL_J1239.5+0443_daily_bin550.fits outfile=/scratch/kocevski/867855/cmap_HighResolution_381888001_382147201_4FGL_J1239.5+0443_daily_bin550.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/867855/ft1_filtered_4FGL_J1239.5+0443_daily_bin550.fits', '/scratch/kocevski/867855/ft2_4FGL_J1239.5+0443_daily_bin550.fits', expMap='/scratch/kocevski/867855/expmap_381888001_382147201_4FGL_J1239.5+0443_daily_bin550.fits', expCube='/scratch/kocevski/867855/ltcube_381888001_382147201_4FGL_J1239.5+0443_daily_bin550.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/867855/Model_4FGL_J1239.5+0443_daily_bin550.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/867855/ft1_filtered_4FGL_J1239.5+0443_daily_bin550.fits
Spacecraft file(s): /scratch/kocevski/867855/ft2_4FGL_J1239.5+0443_daily_bin550.fits
Exposure map: /scratch/kocevski/867855/expmap_381888001_382147201_4FGL_J1239.5+0443_daily_bin550.fits
Exposure cube: /scratch/kocevski/867855/ltcube_381888001_382147201_4FGL_J1239.5+0443_daily_bin550.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/867855/Model_4FGL_J1239.5+0443_daily_bin550.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) = 6609.81670815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10982E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5786       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.178       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9979       1.0000         .10000E-03   10000.    
    10 'norm      '    5.8380       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11985E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.276       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.219       1.0000         .10000E-03   10000.    
    18 'norm      '    10.489       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.801       1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.055       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.7170       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .37210       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.618       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.6279       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.5273       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5117       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .80473       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=   6609.809     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     4107 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.424        .10744E-04** at limit **
   2  Prefactor     .10000E-03    5.5039       -.35416E-05** at limit **
   3  Prefactor     .10000E-03    11.341        .34341E-05** at limit **
   4  Prefactor     .10000E-03    40.082        .67282E-05** at limit **
   5  Prefactor     .10000E-03    33.123        .97090E-05** at limit **
   6  Prefactor     4.5783        20.829       -.12874E-05   -.74787E-04
   7  Prefactor     20.178        24.373       -.10392E-05   -.30615E-04
   8  Prefactor     .10000E-03    7.2327        .44334E-05** at limit **
   9  norm          1.9977        2.6443       -.33890E-06   -.86693E-03
  10  norm          5.8370        4.3084       -.29911E-06   -.82675E-03
  11  Prefactor     .10000E-03    9.6577       -.69961E-05** at limit **
  12  norm          .10000E-03    36.242        .11026E-04** at limit **
  13  Prefactor     .10000E-03    49.339       -.27871E-04** at limit **
  14  norm          .10003E-03    .25685        .13193E-06** at limit **
  15  Prefactor     18.277        10.573       -.12026E-06   -.12901E-04
  16  Prefactor     .10000E-03    16.525        .20769E-05** at limit **
  17  Prefactor     15.220        9.8025        .17380E-07   -.66791E-04
  18  norm          10.489        2.6628       -.39807E-07   -.41414E-03
  19  Prefactor     .10000E-03    4.6628       -.17271E-05** at limit **
  20  Prefactor     26.799        34.422       -.14499E-05   -.12137E-04
  21  Prefactor     42.053        36.841       -.15714E-05    .59523E-05
  22  Prefactor     .10000E-03    23.389       -.87560E-05** at limit **
  23  norm          6.7170        17.236       -.15591E-06   -.16610E-04
  24  Prefactor     .10000E-03    11.794        .42791E-05** at limit **
  25  norm          .37210        .23169        .76653E-08   -.40007E-03
  26  Prefactor     12.619        11.846       -.25086E-06   -.47377E-04
  27  Prefactor     .10000E-03    22.789       -.92933E-05** at limit **
  28  Prefactor     4.6224        40.754       -.13234E-04   -.20055E-04
  29  Prefactor     8.5270        11.089       -.25207E-06   -.55805E-04
  30  Normalizat    1.5116        .22291        .12815E-05   -.23360E-03
  31  Prefactor     .80479        .17368        .13435E-06   -.11697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.57827
  Prefactor  = 20.1778
  Prefactor  = 0.0001
  norm       = 1.99772
  norm       = 5.83702
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010003
  Prefactor  = 18.2774
  Prefactor  = 0.0001
  Prefactor  = 15.2195
  norm       = 10.4887
  Prefactor  = 0.0001
  Prefactor  = 26.7987
  Prefactor  = 42.0531
  Prefactor  = 0.0001
  norm       = 6.71698
  Prefactor  = 0.0001
  norm       = 0.372102
  Prefactor  = 12.619
  Prefactor  = 0.0001
  Prefactor  = 4.62243
  Prefactor  = 8.52702
  Normalizat = 1.51164
  Prefactor  = 0.804787
 **********
 **   18 **HESSE 
 **********

 FCN=   6609.809     FROM HESSE     STATUS=OK           622 CALLS     4729 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5783        20.770        .18812E-03   -1.5280    
   7  Prefactor     20.178        24.348        .89164E-04   -1.4809    
   8  Prefactor     .10000E-03    7.2550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9977        2.6246        .14453E-03   -1.5425    
  10  norm          5.8370        4.2178        .13003E-03   -1.5225    
  11  Prefactor     .10000E-03    9.6561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    36.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    49.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10003E-03    6.0288        .74981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.277        10.574        .93687E-04   -1.4853    
  16  Prefactor     .10000E-03    16.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.220        9.7728        .10267E-03   -1.4928    
  18  norm          10.489        2.6492        .62206E-04   -1.5060    
  19  Prefactor     .10000E-03    4.7016        .17135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.799        34.397        .77383E-04   -1.4672    
  21  Prefactor     42.053        36.876        .61816E-04   -1.4410    
  22  Prefactor     .10000E-03    23.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.7170        17.246        .15482E-03   -1.5190    
  24  Prefactor     .10000E-03    11.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .37210        .22625        .29283E-04   -1.5586    
  26  Prefactor     12.619        11.860        .11277E-03   -1.4997    
  27  Prefactor     .10000E-03    22.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.6224        41.308        .18709E-03   -1.5278    
  29  Prefactor     8.5270        11.088        .13728E-03   -1.5124    
  30  Normalizat    1.5116        .26636        .27184E-03   -.77452    
  31  Prefactor     .80479        .20647        .28690E-03   -.99552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05629e-09
Minuit parameter uncertainties:
  1  7.70189e-06
  2  1.40933e-06
  3  7.05231e-05
  4  8.94582e-06
  5  3.97919e-05
  6  19.5139
  7  24.3602
  8  3.42806e-07
  9  2.62472
  10  4.21802
  11  1.40584e-07
  12  6.65304e-06
  13  2.70513e-06
  14  0.000851552
  15  10.575
  16  1.49688e-05
  17  9.77383
  18  2.64921
  19  2.55702e-06
  20  34.4222
  21  36.8964
  22  1.27119e-05
  23  17.259
  24  3.07017e-05
  25  0.226254
  26  11.8626
  27  1.37533e-05
  28  27.6616
  29  11.0903
  30  0.266609
  31  0.206672
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.049e+01  2.649e+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:  8.048e-01  2.067e-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.512e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.49
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.68e-07 +/- 6.77e-08
Energy Flux (Fixed Index): 9.40e-05 +/- 2.38e-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) = 6609.00894184
delta logL = 0.799622627045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6608.97130345
delta logL = 0.837261011654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7573       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5888       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85032       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.

 FCN=   6608.971     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7527        9.0835        .32072E-02    .54273E-03
   2  alpha         2.5893        .96378        .17335        .11349E-03
   3  Normalizat    1.4272        .24271        .62772E-01    .95949E-05
   4  Prefactor     .85032        .19259        .44369E-01   -.48324E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.75267
  alpha      = 2.58933
  Normalizat = 1.42724
  Prefactor  = 0.850324
 **********
 **   18 **HESSE 
 **********

 FCN=   6608.971     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7527        2.5825        .55863E-04   -1.5083    
   2  alpha         2.5893        .28821        .74756E-02    .35740E-01
   3  Normalizat    1.4272        .26364        .27764E-03   -.79844    
   4  Prefactor     .85032        .20684        .27953E-03   -.97899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28875e-11
Minuit parameter uncertainties:
  1  2.58249
  2  0.288851
  3  0.263896
  4  0.207032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867855': 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) = 6608.97130026
delta logL = 0.837264197981

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  9.753e+00  2.582e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.589e+00  2.889e-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:  8.503e-01  2.070e-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.427e+00  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 41.06
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.59 +/- 0.29
Photon Flux (Free Index): 3.41e-07 +/- 9.47e-08
Energy Flux (Free Index): 8.80e-05 +/- 2.10e-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/867855/cmap_HighResolution_381888001_382147201_4FGL_J1239.5+0443_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.68e-07', energy_flux2='8.80e-05', photon_flux_error='6.77e-08', dlogl='8.37e-01', energy_flux='9.40e-05', photon_flux2='3.41e-07', job_status='DONE', time_completed='2021-09-06 03:22:10.242629', photon_index_error2='0.29', photon_index2='2.59', ts='39.49', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='1.51', time_epoch_completed='1630923730.24', return_code='0', job_id='867855', GAL2='0.85', EG2='1.43', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='9.47e-08', ts2='41.06', photon_index='2.23' WHERE bin_id='550' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:22:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 867855: <4FGL_J1239.5+0443_daily_bin550> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin550> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 03:06:04 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:06: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 03:06:22 2021
Terminated at Mon Sep  6 03:22:11 2021
Results reported at Mon Sep  6 03:22:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin550 189.885 4.7284 381888001 382147201 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 :                                   781.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            967 sec.

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

