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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin576
RA = 189.885, Dec = 4.7284
tmin = 388627201, tmax = 388886401
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='867901', job_status='RUN', time_executed='2021-09-06 03:09:40.690654', time_epoch_executed='1630922980.69' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867901

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867901/ft1_4FGL_J1239.5+0443_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867901/ft2_4FGL_J1239.5+0443_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867901/ft1_4FGL_J1239.5+0443_daily_bin576.fits outfile=/scratch/kocevski/867901/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin576.fits ra=189.885 dec=4.7284 rad=12.0 tmin=388627201.0 tmax=388886401.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.10
user 3.78
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867901/ft1_filtered_4FGL_J1239.5+0443_daily_bin576.fits" evtable="EVENTS" scfile=/scratch/kocevski/867901/ft2_4FGL_J1239.5+0443_daily_bin576.fits sctable="SC_DATA" outfile=/scratch/kocevski/867901/ltcube_388627201_388886401_4FGL_J1239.5+0443_daily_bin576.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/867901/ft2_4FGL_J1239.5+0443_daily_bin576.fits
.....................!
real 16.55
user 15.78
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867901/ft1_filtered_4FGL_J1239.5+0443_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/867901/ft2_4FGL_J1239.5+0443_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/867901/ltcube_388627201_388886401_4FGL_J1239.5+0443_daily_bin576.fits outfile=/scratch/kocevski/867901/expmap_388627201_388886401_4FGL_J1239.5+0443_daily_bin576.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/867901/ltcube_388627201_388886401_4FGL_J1239.5+0443_daily_bin576.fits
.....................!
real 194.12
user 186.15
sys 5.14

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/867901/ft1_filtered_4FGL_J1239.5+0443_daily_bin576.fits scfile=/scratch/kocevski/867901/ft2_4FGL_J1239.5+0443_daily_bin576.fits outfile=/scratch/kocevski/867901/cmap_388627201_388886401_4FGL_J1239.5+0443_daily_bin576.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867901/ft1_filtered_4FGL_J1239.5+0443_daily_bin576.fits scfile=/scratch/kocevski/867901/ft2_4FGL_J1239.5+0443_daily_bin576.fits outfile=/scratch/kocevski/867901/cmap_HighResolution_388627201_388886401_4FGL_J1239.5+0443_daily_bin576.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.999       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9458       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.827       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1044       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.848       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7089       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    77.194       1.0000         .10000E-03   10000.    
    22 'Prefactor '    68.946       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .65325       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.3705       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    28.195       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.2801       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2046       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82925       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=   5041.004     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     4186 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.588        .28957E-05** at limit **
   2  Prefactor     .10000E-03    4.2732        .12280E-06** at limit **
   3  Prefactor     .10000E-03    3.4259        .96999E-08** at limit **
   4  Prefactor     .10000E-03    40.826        .11027E-05** at limit **
   5  Prefactor     50.006        50.581        .21847E-05    .42440E-04
   6  Prefactor     .10000E-03    7.3748        .26244E-06** at limit **
   7  Prefactor     .10000E-03    16.691       -.16623E-06** at limit **
   8  Prefactor     .10000E-03    4.8525       -.85219E-07** at limit **
   9  norm          .10000E-03    .70793       -.11018E-07** at limit **
  10  norm          1.9460        3.1386        .17316E-06   -.96460E-04
  11  Prefactor     .10000E-03    31.037        .26065E-05** at limit **
  12  norm          .10000E-03    16.835       -.34976E-06** at limit **
  13  Prefactor     51.896        161.96        .16430E-04    .72587E-04
  14  norm          1.1045        .63211        .74703E-07   -.28507E-03
  15  Prefactor     13.849        14.545        .34094E-06   -.85699E-06
  16  Prefactor     .10000E-03    22.853       -.14409E-05** at limit **
  17  Prefactor     .10000E-03    4.0873       -.99815E-07** at limit **
  18  norm          4.7091        2.0317        .49000E-07   -.96907E-04
  19  Prefactor     .10000E-03    9.9539       -.13086E-05** at limit **
  20  Prefactor     .10000E-03    26.666        .33697E-06** at limit **
  21  Prefactor     77.201        51.236        .13880E-05    .80692E-04
  22  Prefactor     68.975        69.042        .36736E-05    .20894E-03
  23  norm          .10000E-03    12.117        .19356E-05** at limit **
  24  Prefactor     .10001E-03    45.089       -.10864E-05** at limit **
  25  norm          .65324        .28392        .13683E-07    .11042E-03
  26  Prefactor     6.3737        14.229        .32074E-05   -.15817E-03
  27  Prefactor     .10000E-03    23.339       -.12998E-05** at limit **
  28  Prefactor     28.199        28.083        .10438E-05    .11412E-04
  29  Prefactor     4.2811        12.373        .72763E-05   -.28649E-03
  30  Normalizat    1.2044        .24896       -.36088E-05    .10106E-03
  31  Prefactor     .82943        .18132        .13548E-06   -.88436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.0063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.94601
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 51.8956
  norm       = 1.10455
  Prefactor  = 13.8486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.7091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.201
  Prefactor  = 68.975
  norm       = 0.000100001
  Prefactor  = 0.000100013
  norm       = 0.653244
  Prefactor  = 6.37366
  Prefactor  = 0.0001
  Prefactor  = 28.1986
  Prefactor  = 4.28107
  Normalizat = 1.20438
  Prefactor  = 0.82943
 **********
 **   18 **HESSE 
 **********

 FCN=   5041.004     FROM HESSE     STATUS=OK           610 CALLS     4796 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2786        .14336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4322        .12832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     50.006        50.711        .56714E-04   -1.4292    
   6  Prefactor     .10000E-03    7.3818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8631        .15272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .70976        .58332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9460        3.1019        .14845E-03   -1.5429    
  11  Prefactor     .10000E-03    31.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    16.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     51.896        165.33        .55710E-04   -1.4266    
  14  norm          1.1045        .62137        .39275E-04   -1.5498    
  15  Prefactor     13.849        14.553        .10763E-03   -1.4964    
  16  Prefactor     .10000E-03    22.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0937        .14016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7091        2.0309        .63243E-04   -1.5274    
  19  Prefactor     .10000E-03    10.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     77.201        51.503        .45705E-04   -1.3948    
  22  Prefactor     68.975        70.983        .48342E-04   -1.4045    
  23  norm          .10000E-03    12.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    47.431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .65324        .28499        .23408E-04   -1.5546    
  26  Prefactor     6.3737        14.367        .79513E-03   -1.5203    
  27  Prefactor     .10000E-03    23.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     28.199        28.151        .75449E-04   -1.4645    
  29  Prefactor     4.2811        12.750        .97370E-03   -1.5294    
  30  Normalizat    1.2044        .29427        .27277E-03   -.86467    
  31  Prefactor     .82943        .21582        .25528E-03   -.98652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74213e-09
Minuit parameter uncertainties:
  1  0.000450648
  2  1.01635e-05
  3  1.23761e-06
  4  0.000206697
  5  50.7545
  6  2.48366e-05
  7  3.33647e-05
  8  3.86776e-06
  9  1.21422e-06
  10  3.10212
  11  0.00034048
  12  4.72924e-05
  13  166.824
  14  0.621376
  15  14.5569
  16  0.000164774
  17  3.46973e-06
  18  2.03096
  19  5.03517e-05
  20  9.18657e-05
  21  51.5332
  22  71.0707
  23  0.000193159
  24  0.00156441
  25  0.284994
  26  14.375
  27  0.000157595
  28  28.1646
  29  12.7583
  30  0.294681
  31  0.21604
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.709e+00  2.031e+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.294e-01  2.160e-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.204e+00  2.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.53
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 5.19e-08
Energy Flux (Fixed Index): 4.22e-05 +/- 1.82e-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) = 5040.99011536
delta logL = 0.0138391104892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5040.98926983
delta logL = 0.0146846444386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6786       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1455       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82408       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=   5040.989     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      194 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6786        2.3726        .46512E-02    .39032E-02
   2  alpha         2.1455        .50811        .29280       -.41751E-04
   3  Normalizat    1.2145        .23183        .61458E-01    .10153E-04
   4  Prefactor     .82414        .18234        .44030E-01    .10717E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.67865
  alpha      = 2.14554
  Normalizat = 1.21454
  Prefactor  = 0.824145
 **********
 **   18 **HESSE 
 **********

 FCN=   5040.989     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6786        2.0418        .63836E-04   -1.5275    
   2  alpha         2.1455        .47448        .11905E-01   -.14226    
   3  Normalizat    1.2145        .27487        .27183E-03   -.86155    
   4  Prefactor     .82414        .21510        .25600E-03   -.98844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29582e-09
Minuit parameter uncertainties:
  1  2.04183
  2  0.477436
  3  0.275197
  4  0.215316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867901': 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) = 5040.98926968
delta logL = 0.0146847908782

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.679e+00  2.042e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.146e+00  4.774e-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.241e-01  2.153e-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.215e+00  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.52
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.15 +/- 0.48
Photon Flux (Free Index): 1.12e-07 +/- 6.65e-08
Energy Flux (Free Index): 4.31e-05 +/- 1.97e-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/867901/cmap_HighResolution_388627201_388886401_4FGL_J1239.5+0443_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='4.31e-05', photon_flux_error='5.19e-08', dlogl='1.47e-02', energy_flux='4.22e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-06 03:21:09.244815', photon_index_error2='0.48', photon_index2='2.15', ts='12.53', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.20', time_epoch_completed='1630923669.24', return_code='0', job_id='867901', GAL2='0.82', EG2='1.21', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='6.65e-08', ts2='12.52', photon_index='2.23' WHERE bin_id='576' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:21:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 867901: <4FGL_J1239.5+0443_daily_bin576> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin576 189.885 4.7284 388627201 388886401 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 :                                   675.60 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             295.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            903 sec.

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

