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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin622
RA = 189.885, Dec = 4.7284
tmin = 400550401, tmax = 400809601
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='867967', job_status='RUN', time_executed='2021-09-06 03:09:33.645262', time_epoch_executed='1630922973.65' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867967/ft1_4FGL_J1239.5+0443_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867967/ft2_4FGL_J1239.5+0443_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867967/ft1_4FGL_J1239.5+0443_daily_bin622.fits outfile=/scratch/kocevski/867967/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin622.fits ra=189.885 dec=4.7284 rad=12.0 tmin=400550401.0 tmax=400809601.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.56
user 4.17
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867967/ft1_filtered_4FGL_J1239.5+0443_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/867967/ft2_4FGL_J1239.5+0443_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/867967/ltcube_400550401_400809601_4FGL_J1239.5+0443_daily_bin622.fits outfile=/scratch/kocevski/867967/expmap_400550401_400809601_4FGL_J1239.5+0443_daily_bin622.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/867967/ltcube_400550401_400809601_4FGL_J1239.5+0443_daily_bin622.fits
.....................!
real 193.83
user 187.28
sys 5.79

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/867967/ft1_filtered_4FGL_J1239.5+0443_daily_bin622.fits scfile=/scratch/kocevski/867967/ft2_4FGL_J1239.5+0443_daily_bin622.fits outfile=/scratch/kocevski/867967/cmap_400550401_400809601_4FGL_J1239.5+0443_daily_bin622.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867967/ft1_filtered_4FGL_J1239.5+0443_daily_bin622.fits scfile=/scratch/kocevski/867967/ft2_4FGL_J1239.5+0443_daily_bin622.fits outfile=/scratch/kocevski/867967/cmap_HighResolution_400550401_400809601_4FGL_J1239.5+0443_daily_bin622.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.237       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12887E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    138.33       1.0000         .10000E-03   10000.    
     5 'Prefactor '    80.497       1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.224       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2485       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .58123       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10548E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.883       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8670       1.0000         .10000E-03   10000.    
    18 'norm      '    13.159       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0874       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .42514       1.0000         .10000E-03   10000.    
    25 'norm      '    1.4567       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.128       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0182       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97388       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=   5783.515     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     4064 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.201        102.90       -.35146E-04    .39969E-05
   2  Prefactor     .10000E-03    4.5206        .26370E-06** at limit **
   3  Prefactor     .10000E-03    14.855        .63585E-05** at limit **
   4  Prefactor     138.31        100.80       -.15140E-04    .85701E-05
   5  Prefactor     80.473        56.029       -.20473E-04   -.24358E-04
   6  Prefactor     40.223        35.183        .68160E-06   -.69598E-05
   7  Prefactor     .10000E-03    17.171        .17138E-05** at limit **
   8  Prefactor     .10000E-03    4.8663       -.27275E-07** at limit **
   9  norm          3.2480        2.5794       -.14614E-06   -.86375E-05
  10  norm          4.0394        3.7650        .58989E-06    .60187E-04
  11  Prefactor     .10000E-03    14.599        .42999E-05** at limit **
  12  norm          .10000E-03    28.247       -.63930E-05** at limit **
  13  Prefactor     .10000E-03    46.193        .11420E-04** at limit **
  14  norm          .58138        .70237       -.23843E-06   -.92491E-03
  15  Prefactor     .10000E-03    9.1739        .43516E-06** at limit **
  16  Prefactor     24.878        33.723       -.60589E-05    .11625E-03
  17  Prefactor     7.8667        10.643       -.97938E-06   -.18400E-04
  18  norm          13.159        2.8822       -.17687E-06    .51201E-03
  19  Prefactor     8.0875        7.2785       -.39271E-06    .88653E-04
  20  Prefactor     .10000E-03    18.327       -.33211E-05** at limit **
  21  Prefactor     .10000E-03    53.684       -.18138E-04** at limit **
  22  Prefactor     .10000E-03    17.994       -.17928E-05** at limit **
  23  norm          .10000E-03    28.383       -.56530E-05** at limit **
  24  Prefactor     .46081        9.1109       -.42779E-05    .33440E-03
  25  norm          1.4565        .39103       -.79071E-07    .12497E-02
  26  Prefactor     .10000E-03    12.900       -.60085E-05** at limit **
  27  Prefactor     .10000E-03    36.011        .15256E-04** at limit **
  28  Prefactor     19.127        17.376       -.52808E-06    .15583E-04
  29  Prefactor     .10000E-03    3.8174       -.76910E-07** at limit **
  30  Normalizat    1.0184        .23985        .96601E-05    .17326E-03
  31  Prefactor     .97372        .17984       -.84720E-06    .64996E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.2008
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 138.308
  Prefactor  = 80.4729
  Prefactor  = 40.2229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.24804
  norm       = 4.03936
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.581378
  Prefactor  = 0.0001
  Prefactor  = 24.8777
  Prefactor  = 7.86674
  norm       = 13.1585
  Prefactor  = 8.08752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.460809
  norm       = 1.45654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1273
  Prefactor  = 0.0001
  Normalizat = 1.01836
  Prefactor  = 0.97372
 **********
 **   18 **HESSE 
 **********

 FCN=   5783.515     FROM HESSE     STATUS=OK           616 CALLS     4680 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.201        102.86        .21035E-03   -1.3795    
   2  Prefactor     .10000E-03    4.5288        .15792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     138.31        100.86        .17124E-03   -1.3350    
   5  Prefactor     80.473        56.222        .44764E-04   -1.3911    
   6  Prefactor     40.223        35.192        .63202E-04   -1.4439    
   7  Prefactor     .10000E-03    17.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8707        .16378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2480        2.5741        .10350E-03   -1.5348    
  10  norm          4.0394        3.7111        .12829E-03   -1.5306    
  11  Prefactor     .10000E-03    14.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    28.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .58138        .66385        .60177E-04   -1.5555    
  15  Prefactor     .10000E-03    9.2413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.878        33.908        .80304E-04   -1.4710    
  17  Prefactor     7.8667        10.614        .14296E-03   -1.5147    
  18  norm          13.159        2.8708        .56315E-04   -1.4982    
  19  Prefactor     8.0875        7.2763        .14098E-03   -1.5139    
  20  Prefactor     .10000E-03    18.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    53.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    28.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .46081        54.526        .42494E-02   -1.5572    
  25  norm          1.4565        .39094        .23628E-04   -1.5467    
  26  Prefactor     .10000E-03    13.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    35.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.127        17.383        .91579E-04   -1.4833    
  29  Prefactor     .10000E-03    3.8243        .14511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0184        .28088        .30489E-03   -.92418    
  31  Prefactor     .97372        .21099        .25471E-03   -.93611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53273e-09
Minuit parameter uncertainties:
  1  103.058
  2  5.02351e-05
  3  0.000367738
  4  100.987
  5  56.2588
  6  35.2106
  7  8.56495e-05
  8  1.34157e-06
  9  2.57414
  10  3.71135
  11  5.14744e-06
  12  1.26418e-05
  13  2.94925e-06
  14  0.663859
  15  2.46121e-05
  16  33.9342
  17  10.6166
  18  2.87081
  19  7.27714
  20  3.3348e-05
  21  6.7273e-05
  22  4.72535e-07
  23  5.14162e-05
  24  10.0335
  25  0.390941
  26  3.48469e-05
  27  5.20001e-05
  28  17.3871
  29  1.2069e-05
  30  0.281294
  31  0.211168
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.316e+01  2.871e+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:  9.737e-01  2.112e-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.018e+00  2.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 55.58
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.36e-07 +/- 7.33e-08
Energy Flux (Fixed Index): 1.18e-04 +/- 2.57e-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) = 5783.44829154
delta logL = 0.0662176411561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5783.43596822
delta logL = 0.0785409621558

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.860       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3197       1.0000          .0000       5.0000    
     3 'Normalizat'    .99926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98464       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=   5783.436     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      202 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.860        3.5774        .27925E-02   -.17132E-03
   2  alpha         2.3197        .28529        .14479        .17774E-04
   3  Normalizat    .99933        .22139        .69458E-01    .13052E-04
   4  Prefactor     .98457        .18014        .46075E-01    .69415E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8598
  alpha      = 2.31972
  Normalizat = 0.999328
  Prefactor  = 0.984572
 **********
 **   18 **HESSE 
 **********

 FCN=   5783.436     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.860        2.8816        .55113E-04   -1.4991    
   2  alpha         2.3197        .23361        .63050E-03   -.72175E-01
   3  Normalizat    .99933        .25867        .30727E-03   -.93053    
   4  Prefactor     .98457        .20997        .25346E-03   -.93246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41117e-12
Minuit parameter uncertainties:
  1  2.88164
  2  0.233952
  3  0.258996
  4  0.210141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867967': 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) = 5783.43596814
delta logL = 0.078541046355

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.286e+01  2.882e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.320e+00  2.340e-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:  9.846e-01  2.101e-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:  9.993e-01  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 55.14
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.32 +/- 0.23
Photon Flux (Free Index): 3.54e-07 +/- 8.67e-08
Energy Flux (Free Index): 1.13e-04 +/- 2.65e-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/867967/cmap_HighResolution_400550401_400809601_4FGL_J1239.5+0443_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.36e-07', energy_flux2='1.13e-04', photon_flux_error='7.33e-08', dlogl='7.85e-02', energy_flux='1.18e-04', photon_flux2='3.54e-07', job_status='DONE', time_completed='2021-09-06 03:21:46.460145', photon_index_error2='0.23', photon_index2='2.32', ts='55.58', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.65e-05', EG='1.02', time_epoch_completed='1630923706.46', return_code='0', job_id='867967', GAL2='0.98', EG2='1.00', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='8.67e-08', ts2='55.14', photon_index='2.23' WHERE bin_id='622' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:21:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 867967: <4FGL_J1239.5+0443_daily_bin622> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin622 189.885 4.7284 400550401 400809601 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 :                                   721.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            936 sec.

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

