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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin944
RA = 189.885, Dec = 4.7284
tmin = 484012801, tmax = 484272001
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='872688', job_status='RUN', time_executed='2021-09-06 03:17:24.717967', time_epoch_executed='1630923444.72' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/872688

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/872688/ft1_4FGL_J1239.5+0443_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/872688/ft2_4FGL_J1239.5+0443_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/872688/ft1_4FGL_J1239.5+0443_daily_bin944.fits outfile=/scratch/kocevski/872688/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin944.fits ra=189.885 dec=4.7284 rad=12.0 tmin=484012801.0 tmax=484272001.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.64
user 3.18
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/872688/ft1_filtered_4FGL_J1239.5+0443_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/872688/ft2_4FGL_J1239.5+0443_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/872688/ltcube_484012801_484272001_4FGL_J1239.5+0443_daily_bin944.fits outfile=/scratch/kocevski/872688/expmap_484012801_484272001_4FGL_J1239.5+0443_daily_bin944.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/872688/ltcube_484012801_484272001_4FGL_J1239.5+0443_daily_bin944.fits
.....................!
real 191.47
user 185.65
sys 5.17

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/872688/ft1_filtered_4FGL_J1239.5+0443_daily_bin944.fits scfile=/scratch/kocevski/872688/ft2_4FGL_J1239.5+0443_daily_bin944.fits outfile=/scratch/kocevski/872688/cmap_484012801_484272001_4FGL_J1239.5+0443_daily_bin944.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=189.885 yref=4.7284 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/872688/ft1_filtered_4FGL_J1239.5+0443_daily_bin944.fits scfile=/scratch/kocevski/872688/ft2_4FGL_J1239.5+0443_daily_bin944.fits outfile=/scratch/kocevski/872688/cmap_HighResolution_484012801_484272001_4FGL_J1239.5+0443_daily_bin944.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.70
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5651       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.418       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3049       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1348       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2075       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9142       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.248       1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.061       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .99448       1.0000         .10000E-03   10000.    
    25 'norm      '    .69258       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.391       1.0000         .10000E-03   10000.    
    27 'Prefactor '    122.32       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.0779       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2615       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .74765       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=   5371.184     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     4081 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.643       -.99617E-06** at limit **
   2  Prefactor     3.5631        8.0789        .14975E-06   -.17444E-04
   3  Prefactor     .10000E-03    2.8936       -.18584E-07** at limit **
   4  Prefactor     .10000E-03    71.070        .11350E-05** at limit **
   5  Prefactor     .10000E-03    33.397        .55404E-06** at limit **
   6  Prefactor     10.416        19.112       -.99655E-06   -.32109E-04
   7  Prefactor     .10000E-03    11.077       -.17621E-06** at limit **
   8  Prefactor     2.3052        9.2752        .78825E-05    .97104E-05
   9  norm          .10000E-03    1.6771       -.26302E-07** at limit **
  10  norm          .10000E-03    1.6696        .18721E-07** at limit **
  11  Prefactor     .10000E-03    63.178       -.65776E-07** at limit **
  12  norm          .10000E-03    13.017        .25290E-06** at limit **
  13  Prefactor     .10000E-03    68.810        .73468E-06** at limit **
  14  norm          1.1350        .58534       -.95627E-07   -.46416E-03
  15  Prefactor     9.2070        10.646        .28494E-06    .60995E-04
  16  Prefactor     .10000E-03    18.093       -.17345E-06** at limit **
  17  Prefactor     .10000E-03    10.044        .21782E-09** at limit **
  18  norm          5.9142        2.4103        .50300E-07   -.25051E-04
  19  Prefactor     13.251        9.9605        .35875E-07    .38549E-05
  20  Prefactor     45.056        48.346        .47129E-06   -.49850E-04
  21  Prefactor     .10000E-03    54.472       -.85553E-06** at limit **
  22  Prefactor     .10000E-03    15.259       -.78649E-07** at limit **
  23  norm          .10000E-03    14.777        .37365E-08** at limit **
  24  Prefactor     .97597        6.2103       -.12125E-05   -.76492E-05
  25  norm          .69257        .28904        .25127E-07    .83525E-03
  26  Prefactor     14.394        12.603        .14493E-06   -.36239E-06
  27  Prefactor     122.33        89.298        .25130E-06    .11726E-04
  28  Prefactor     7.0782        10.041        .44784E-07    .55952E-06
  29  Prefactor     .10000E-03    6.4170       -.15903E-07** at limit **
  30  Normalizat    1.2614        .21483       -.45208E-06   -.65027E-04
  31  Prefactor     .74770        .17303       -.44970E-06   -.35167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 3.56306
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  Prefactor  = 10.4157
  Prefactor  = 0.0001
  Prefactor  = 2.30523
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.13495
  Prefactor  = 9.20698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.91423
  Prefactor  = 13.2515
  Prefactor  = 45.0556
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.975966
  norm       = 0.692575
  Prefactor  = 14.3943
  Prefactor  = 122.325
  Prefactor  = 7.07816
  Prefactor  = 0.0001
  Normalizat = 1.26142
  Prefactor  = 0.747699
 **********
 **   18 **HESSE 
 **********

 FCN=   5371.184     FROM HESSE     STATUS=OK           618 CALLS     4699 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5631        8.0673        .21405E-03   -1.5330    
   3  Prefactor     .10000E-03    2.8996        .12175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    71.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.416        19.113        .12414E-03   -1.5062    
   7  Prefactor     .10000E-03    11.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3052        9.4201        .13514E-02   -1.5404    
   9  norm          .10000E-03    1.7383        .18596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.7319        .18464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    63.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    13.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    68.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1350        .57865        .37160E-04   -1.5495    
  15  Prefactor     9.2070        10.647        .13208E-03   -1.5101    
  16  Prefactor     .10000E-03    18.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9142        2.4112        .66908E-04   -1.5222    
  19  Prefactor     13.251        9.9511        .11005E-03   -1.4980    
  20  Prefactor     45.056        48.371        .59726E-04   -1.4364    
  21  Prefactor     .10000E-03    54.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    14.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .97597        21.359        .33369E-02   -1.5510    
  25  norm          .69257        .28805        .24273E-04   -1.5542    
  26  Prefactor     14.394        12.541        .10558E-03   -1.4949    
  27  Prefactor     122.33        89.295        .36390E-04   -1.3491    
  28  Prefactor     7.0782        10.037        .15078E-03   -1.5176    
  29  Prefactor     .10000E-03    6.4377        .18131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2614        .25178        .25230E-03   -.84725    
  31  Prefactor     .74770        .20204        .26249E-03   -1.0169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55681e-08
Minuit parameter uncertainties:
  1  0.00079061
  2  8.0698
  3  1.31784e-07
  4  0.00113037
  5  0.000456524
  6  19.1242
  7  6.33957e-05
  8  9.32231
  9  1.36039e-05
  10  3.02865e-06
  11  0.000127201
  12  9.0834e-05
  13  0.000645362
  14  0.578658
  15  10.649
  16  8.8022e-05
  17  3.21718e-05
  18  2.41127
  19  9.95234
  20  48.4127
  21  0.00078521
  22  2.5621e-05
  23  1.17002e-05
  24  9.13458
  25  0.288048
  26  12.5428
  27  89.3934
  28  10.0396
  29  3.1494e-06
  30  0.252023
  31  0.202244
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  5.914e+00  2.411e+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:  7.477e-01  2.022e-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.261e+00  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.48
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.51e-07 +/- 6.16e-08
Energy Flux (Fixed Index): 5.30e-05 +/- 2.16e-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) = 5366.99096025
delta logL = 4.19336757456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5366.97013441
delta logL = 4.21419340756

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9892       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5664       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85639       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=   5366.970     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      218 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9889        11.270        .58700E-02    .21957E-03
   2  alpha         3.5665        4.0491        .17024        .34944E-04
   3  Normalizat    1.0737        .10836        .60710E-01    .98316E-05
   4  Prefactor     .85640        .94471E-01    .44447E-01    .11471E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.98888
  alpha      = 3.5665
  Normalizat = 1.07375
  Prefactor  = 0.856396
 **********
 **   18 **HESSE 
 **********

 FCN=   5366.970     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .26E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9889        2.0666        .35181E-04   -1.5362    
   2  alpha         3.5665        .57456        .74997E-03    .44073    
   3  Normalizat    1.0737        .25179        .26850E-03   -.90599    
   4  Prefactor     .85640        .20519        .24671E-03   -.97682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64245e-14
Minuit parameter uncertainties:
  1  2.06669
  2  0.580931
  3  0.252069
  4  0.205373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/872688': 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) = 5366.97013439
delta logL = 4.21419342474

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  2.989e+00  2.067e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  3.567e+00  5.809e-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.564e-01  2.054e-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.074e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.82
Ra Dec: 189.885 4.728
Photon Index (Free Index): 3.57 +/- 0.58
Photon Flux (Free Index): 3.03e-07 +/- 9.31e-08
Energy Flux (Free Index): 5.14e-05 +/- 1.60e-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/872688/cmap_HighResolution_484012801_484272001_4FGL_J1239.5+0443_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-07', energy_flux2='5.14e-05', photon_flux_error='6.16e-08', dlogl='4.21e+00', energy_flux='5.30e-05', photon_flux2='3.03e-07', job_status='DONE', time_completed='2021-09-06 03:29:05.227702', photon_index_error2='0.58', photon_index2='3.57', ts='10.48', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.26', time_epoch_completed='1630924145.23', return_code='0', job_id='872688', GAL2='0.86', EG2='1.07', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='9.31e-08', ts2='19.82', photon_index='2.23' WHERE bin_id='944' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:29:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 872688: <4FGL_J1239.5+0443_daily_bin944> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin944 189.885 4.7284 484012801 484272001 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 :                                   693.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            812 sec.

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

