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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin235
RA = 189.885, Dec = 4.7284
tmin = 300240001, tmax = 300499201
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='865789', job_status='RUN', time_executed='2021-09-06 03:01:17.812724', time_epoch_executed='1630922477.81' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865789/ft1_4FGL_J1239.5+0443_daily_bin235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865789/ft2_4FGL_J1239.5+0443_daily_bin235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865789/ft1_4FGL_J1239.5+0443_daily_bin235.fits outfile=/scratch/kocevski/865789/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin235.fits ra=189.885 dec=4.7284 rad=12.0 tmin=300240001.0 tmax=300499201.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.52
user 3.24
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865789/ft1_filtered_4FGL_J1239.5+0443_daily_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/865789/ft2_4FGL_J1239.5+0443_daily_bin235.fits sctable="SC_DATA" expcube=/scratch/kocevski/865789/ltcube_300240001_300499201_4FGL_J1239.5+0443_daily_bin235.fits outfile=/scratch/kocevski/865789/expmap_300240001_300499201_4FGL_J1239.5+0443_daily_bin235.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/865789/ltcube_300240001_300499201_4FGL_J1239.5+0443_daily_bin235.fits
.....................!
real 194.76
user 188.92
sys 5.28

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/865789/ft1_filtered_4FGL_J1239.5+0443_daily_bin235.fits scfile=/scratch/kocevski/865789/ft2_4FGL_J1239.5+0443_daily_bin235.fits outfile=/scratch/kocevski/865789/cmap_300240001_300499201_4FGL_J1239.5+0443_daily_bin235.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.60
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865789/ft1_filtered_4FGL_J1239.5+0443_daily_bin235.fits scfile=/scratch/kocevski/865789/ft2_4FGL_J1239.5+0443_daily_bin235.fits outfile=/scratch/kocevski/865789/cmap_HighResolution_300240001_300499201_4FGL_J1239.5+0443_daily_bin235.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.58
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.975       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0193       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .95815       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.567       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6644       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.912       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4012       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.268       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7723       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    86.003       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.283       1.0000         .10000E-03   10000.    
    25 'norm      '    .32817       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.337       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.3691       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.6482       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5484       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .80954       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=   6519.928     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     4691 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.612       -.29647E-05** at limit **
   2  Prefactor     .10000E-03    4.5053       -.16892E-06** at limit **
   3  Prefactor     .10000E-03    3.7149        .74074E-08** at limit **
   4  Prefactor     22.941        59.259       -.53454E-05   -.97431E-04
   5  Prefactor     .10000E-03    20.517        .30522E-06** at limit **
   6  Prefactor     .10000E-03    11.852        .46898E-06** at limit **
   7  Prefactor     .10000E-03    10.875       -.35459E-06** at limit **
   8  Prefactor     3.0192        4.6040        .22064E-05   -.34623E-03
   9  norm          .10000E-03    .55857       -.66825E-07** at limit **
  10  norm          .95831        3.7367        .16497E-05   -.12078E-03
  11  Prefactor     15.565        24.970       -.27608E-06   -.25641E-04
  12  norm          .10000E-03    16.917       -.91473E-06** at limit **
  13  Prefactor     .10000E-03    49.396        .89148E-06** at limit **
  14  norm          2.6645        .78696       -.10916E-06   -.86495E-03
  15  Prefactor     27.913        14.745       -.24157E-07   -.72434E-06
  16  Prefactor     2.3968        78.075        .62414E-06   -.14097E-04
  17  Prefactor     13.268        12.521        .74962E-07   -.30208E-04
  18  norm          2.7724        1.6775        .58832E-08   -.16002E-03
  19  Prefactor     .10000E-03    4.1205        .52135E-07** at limit **
  20  Prefactor     .10000E-03    10.936       -.15998E-06** at limit **
  21  Prefactor     .10000E-03    47.512        .20866E-05** at limit **
  22  Prefactor     86.009        73.256        .51114E-06    .18327E-04
  23  norm          .10000E-03    13.079        .43615E-06** at limit **
  24  Prefactor     22.282        20.200       -.57798E-07   -.18035E-04
  25  norm          .32816        .20785        .17140E-07   -.32648E-03
  26  Prefactor     13.337        15.902        .11699E-06   -.69653E-05
  27  Prefactor     5.3785        165.92        .38022E-05    .12511E-04
  28  Prefactor     .10000E-03    5.7926        .49824E-07** at limit **
  29  Prefactor     7.6483        7.3226        .12807E-08    .19297E-05
  30  Normalizat    1.5483        .22833       -.70991E-06   -.72048E-04
  31  Prefactor     .80960        .17067        .16907E-06   -.87553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01921
  norm       = 0.0001
  norm       = 0.958312
  Prefactor  = 15.5647
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.66446
  Prefactor  = 27.9126
  Prefactor  = 2.39679
  Prefactor  = 13.2678
  norm       = 2.77235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 86.0092
  norm       = 0.0001
  Prefactor  = 22.2819
  norm       = 0.32816
  Prefactor  = 13.3368
  Prefactor  = 5.37851
  Prefactor  = 0.0001
  Prefactor  = 7.6483
  Normalizat = 1.54829
  Prefactor  = 0.809598
 **********
 **   18 **HESSE 
 **********

 FCN=   6519.928     FROM HESSE     STATUS=OK           618 CALLS     5309 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5193        .16735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7311        .15198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.941        61.200        .83567E-04   -1.4750    
   5  Prefactor     .10000E-03    20.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0192        4.6474        .10544E-02   -1.5360    
   9  norm          .10000E-03    .56040        .58967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .95831        3.7211        .26590E-03   -1.5512    
  11  Prefactor     15.565        24.973        .10151E-03   -1.4919    
  12  norm          .10000E-03    16.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    49.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6645        .77475        .33672E-04   -1.5381    
  15  Prefactor     27.913        14.607        .75830E-04   -1.4651    
  16  Prefactor     2.3968        77.114        .26424E-03   -1.5398    
  17  Prefactor     13.268        12.512        .10997E-03   -1.4979    
  18  norm          2.7724        1.6755        .77358E-04   -1.5375    
  19  Prefactor     .10000E-03    4.1444        .16003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    48.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     86.009        73.227        .43320E-04   -1.3850    
  23  norm          .10000E-03    13.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.282        20.282        .84854E-04   -1.4764    
  25  norm          .32816        .20804        .27930E-04   -1.5593    
  26  Prefactor     13.337        15.885        .10968E-03   -1.4977    
  27  Prefactor     5.3785        165.63        .17344E-03   -1.5244    
  28  Prefactor     .10000E-03    5.7962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.6483        7.3256        .14501E-03   -1.5155    
  30  Normalizat    1.5483        .26999        .27008E-03   -.76430    
  31  Prefactor     .80960        .20038        .28900E-03   -.99376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61018e-10
Minuit parameter uncertainties:
  1  0.00061887
  2  6.93875e-06
  3  5.76115e-07
  4  61.3684
  5  3.77041e-05
  6  4.06168e-05
  7  3.89844e-05
  8  4.64794
  9  2.44063e-06
  10  3.722
  11  24.9901
  12  0.000116946
  13  0.000182012
  14  0.774755
  15  14.6086
  16  27.2279
  17  12.5149
  18  1.67552
  19  1.18575e-08
  20  1.66772e-05
  21  0.000378261
  22  73.3035
  23  3.80745e-05
  24  20.2883
  25  0.208045
  26  15.8896
  27  59.8762
  28  1.14846e-06
  29  7.32642
  30  0.270244
  31  0.200564
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  2.772e+00  1.676e+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.096e-01  2.006e-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.548e+00  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.02
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.09e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.50e-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) = 6519.18246508
delta logL = 0.745709039552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6519.16324937
delta logL = 0.764924750041

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4568       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1801       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85915       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=   6519.163     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4564        15.264        .65236E-02    .34082E-03
   2  alpha         3.1802        4.0546        .36048        .51202E-04
   3  Normalizat    1.4481        .10081        .62576E-01    .51543E-05
   4  Prefactor     .85911        .65250E-01    .63578E-01    .15756E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.45636
  alpha      = 3.18018
  Normalizat = 1.4481
  Prefactor  = 0.859111
 **********
 **   18 **HESSE 
 **********

 FCN=   6519.163     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4564        1.8314        .53412E-04   -1.5395    
   2  alpha         3.1802        .86046        .14177E-01    .27555    
   3  Normalizat    1.4481        .26182        .27677E-03   -.79247    
   4  Prefactor     .85911        .20405        .28120E-03   -.97585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60995e-09
Minuit parameter uncertainties:
  1  1.83147
  2  0.879955
  3  0.262062
  4  0.20423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865789': 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) = 6519.16324929
delta logL = 0.764924830546

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  2.456e+00  1.831e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  3.180e+00  8.800e-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.591e-01  2.042e-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.448e+00  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.69
Ra Dec: 189.885 4.728
Photon Index (Free Index): 3.18 +/- 0.88
Photon Flux (Free Index): 1.59e-07 +/- 9.42e-08
Energy Flux (Free Index): 3.04e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/865789/cmap_HighResolution_300240001_300499201_4FGL_J1239.5+0443_daily_bin235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.09e-08', energy_flux2='3.04e-05', photon_flux_error='4.28e-08', dlogl='7.65e-01', energy_flux='2.49e-05', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-09-06 03:15:29.717673', photon_index_error2='0.88', photon_index2='3.18', ts='7.02', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.55', time_epoch_completed='1630923329.72', return_code='0', job_id='865789', GAL2='0.86', EG2='1.45', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='9.42e-08', ts2='8.69', photon_index='2.23' WHERE bin_id='235' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:15:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 865789: <4FGL_J1239.5+0443_daily_bin235> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin235> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 03:00:29 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:01:02 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:02 2021
Terminated at Mon Sep  6 03:15:30 2021
Results reported at Mon Sep  6 03:15:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin235 189.885 4.7284 300240001 300499201 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 :                                   845.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            901 sec.

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

