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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin979
RA = 189.885, Dec = 4.7284
tmin = 493084801, tmax = 493344001
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='872744', job_status='RUN', time_executed='2021-09-06 03:19:22.043390', time_epoch_executed='1630923562.04' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/872744

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/872744/ft1_4FGL_J1239.5+0443_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/872744/ft2_4FGL_J1239.5+0443_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/872744/ft1_4FGL_J1239.5+0443_daily_bin979.fits outfile=/scratch/kocevski/872744/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin979.fits ra=189.885 dec=4.7284 rad=12.0 tmin=493084801.0 tmax=493344001.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.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/872744/ft1_filtered_4FGL_J1239.5+0443_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/872744/ft2_4FGL_J1239.5+0443_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/872744/ltcube_493084801_493344001_4FGL_J1239.5+0443_daily_bin979.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/872744/ft2_4FGL_J1239.5+0443_daily_bin979.fits
.....................!
real 12.64
user 12.17
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/872744/ft1_filtered_4FGL_J1239.5+0443_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/872744/ft2_4FGL_J1239.5+0443_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/872744/ltcube_493084801_493344001_4FGL_J1239.5+0443_daily_bin979.fits outfile=/scratch/kocevski/872744/expmap_493084801_493344001_4FGL_J1239.5+0443_daily_bin979.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/872744/ltcube_493084801_493344001_4FGL_J1239.5+0443_daily_bin979.fits
.....................!
real 191.17
user 185.31
sys 4.66

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/872744/ft1_filtered_4FGL_J1239.5+0443_daily_bin979.fits scfile=/scratch/kocevski/872744/ft2_4FGL_J1239.5+0443_daily_bin979.fits outfile=/scratch/kocevski/872744/cmap_493084801_493344001_4FGL_J1239.5+0443_daily_bin979.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.93
user 0.38
sys 0.18

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.293       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1364       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30782E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6918       1.0000         .10000E-03   10000.    
    10 'norm      '    9.4407       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.379       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.047       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6925       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15459E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    77.291       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .48893       1.0000         .10000E-03   10000.    
    23 'norm      '    24.576       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13176E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .45590       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.6252       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.975       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11028E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0485       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1172       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5130.443     FROM MIGRAD    STATUS=CONVERGED   1468 CALLS     4794 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.325        78.199        .68430E-04   -.34490E-04
   2  Prefactor     .10000E-03    4.2316        .14377E-02** at limit **
   3  Prefactor     3.1369        9.3514        .11445E-02    .24127E-04
   4  Prefactor     .10000E-03    59.359        .18142E-02** at limit **
   5  Prefactor     .10000E-03    64.572        .18142E-02** at limit **
   6  Prefactor     .10024E-03    205.63        .60988E-02** at limit **
   7  Prefactor     .10000E-03    39.053        .18142E-02** at limit **
   8  Prefactor     .10000E-03    4.1463        .14233E-02** at limit **
   9  norm          1.6912        2.3323        .12530E-03   -.26040E-04
  10  norm          9.4448        4.6586        .49308E-03    .13953E-02
  11  Prefactor     .10000E-03    11.606        .18142E-02** at limit **
  12  norm          .10000E-03    75.446        .18142E-02** at limit **
  13  Prefactor     36.390        95.468        .66446E-04    .69465E-05
  14  norm          1.0329        .63925        .41882E-04    .22215E-02
  15  Prefactor     .10000E-03    6.2454        .17447E-02** at limit **
  16  Prefactor     .10000E-03    11.792        .18142E-02** at limit **
  17  Prefactor     19.038        11.461        .91773E-04   -.21233E-03
  18  norm          3.6924        1.8759        .66821E-04    .12607E-03
  19  Prefactor     .10006E-03    17.286        .33337E-02** at limit **
  20  Prefactor     .10000E-03    21.508        .18142E-02** at limit **
  21  Prefactor     77.270        54.444        .22838E-03   -.17572E-04
  22  Prefactor     .62748        82.523        .15885        .43930E-04
  23  norm          24.566        27.844        .80803E-04   -.12837E-03
  24  Prefactor     .10000E-03    11.969        .18142E-02** at limit **
  25  norm          .45579        .26300        .26297E-04    .13812E-02
  26  Prefactor     8.6278        12.817        .13649E-03    .34983E-05
  27  Prefactor     15.014        56.478        .10350E-03   -.43717E-04
  28  Prefactor     .10000E-03    14.531        .18142E-02** at limit **
  29  Prefactor     .10040E-03    56.614        .38923E-02** at limit **
  30  Normalizat    1.0480        .27261        .29129E-03   -.23423E-03
  31  Prefactor     1.1180        .21809        .24016E-03   -.40125E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.3246
  Prefactor  = 0.0001
  Prefactor  = 3.13687
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100237
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.69117
  norm       = 9.44478
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.3903
  norm       = 1.03289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0385
  norm       = 3.69242
  Prefactor  = 0.000100065
  Prefactor  = 0.0001
  Prefactor  = 77.2696
  Prefactor  = 0.627478
  norm       = 24.5658
  Prefactor  = 0.0001
  norm       = 0.455794
  Prefactor  = 8.62777
  Prefactor  = 15.0139
  Prefactor  = 0.0001
  Prefactor  = 0.000100402
  Normalizat = 1.04796
  Prefactor  = 1.11797
 **********
 **   18 **HESSE 
 **********

 FCN=   5130.443     FROM HESSE     STATUS=OK           602 CALLS     5396 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.325        78.199        .13686E-04   -1.4536    
   2  Prefactor     .10000E-03    4.2318        .28755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1369        9.3472        .45781E-04   -1.5354    
   4  Prefactor     .10000E-03    59.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    64.585        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10024E-03    214.53        .24395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1464        .28466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6912        2.3320        .50119E-05   -1.5448    
  10  norm          9.4448        4.6582        .19723E-04   -1.5093    
  11  Prefactor     .10000E-03    11.606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    75.459        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.390        95.462        .13289E-04   -1.4501    
  14  norm          1.0329        .63923        .16753E-05   -1.5505    
  15  Prefactor     .10000E-03    6.2462        .34894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.038        11.461        .18355E-04   -1.4835    
  18  norm          3.6924        1.8759        .26728E-05   -1.5324    
  19  Prefactor     .10006E-03    17.414        .66673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     77.270        54.443        .91352E-05   -1.3948    
  22  Prefactor     .62748        85.702        .15530       -1.5550    
  23  norm          24.566        27.841        .16161E-04   -1.4716    
  24  Prefactor     .10000E-03    11.970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .45579        .26300        .10519E-05   -1.5573    
  26  Prefactor     8.6278        12.816        .54596E-05   -1.5120    
  27  Prefactor     15.014        56.462        .41401E-05   -1.4933    
  28  Prefactor     .10000E-03    14.533        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10040E-03    57.717        .77847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0480        .27285        .58259E-04   -.91441    
  31  Prefactor     1.1180        .21825        .48031E-04   -.88894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29789e-08
Minuit parameter uncertainties:
  1  78.4337
  2  2.48536e-05
  3  9.35155
  4  0.000243435
  5  0.00111454
  6  0.014301
  7  0.000389449
  8  9.18608e-06
  9  2.33209
  10  4.65837
  11  3.12532e-05
  12  0.000203589
  13  95.8663
  14  0.639237
  15  9.00284e-07
  16  3.73388e-06
  17  11.462
  18  1.8759
  19  0.00212607
  20  4.60176e-05
  21  54.4782
  22  14.6868
  23  27.8562
  24  2.33314e-05
  25  0.262996
  26  12.8203
  27  56.6642
  28  8.20245e-05
  29  0.0096395
  30  0.273212
  31  0.218424
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.692e+00  1.876e+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:  1.118e+00  2.184e-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.048e+00  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.50
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 9.44e-08 +/- 4.79e-08
Energy Flux (Fixed Index): 3.31e-05 +/- 1.68e-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) = 5130.11028078
delta logL = 0.333061973451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5130.07163374
delta logL = 0.371709010447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1831       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7613       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1033       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=   5130.072     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1827        1.7306        .56783E-02    .40354E-04
   2  alpha         1.7610        .41824        .29543       -.31713E-04
   3  Normalizat    1.0825        .21616        .64973E-01    .10389E-04
   4  Prefactor     1.1033        .18327        .54657E-01   -.14489E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.18266
  alpha      = 1.76096
  Normalizat = 1.08249
  Prefactor  = 1.10331
 **********
 **   18 **HESSE 
 **********

 FCN=   5130.072     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1827        2.0028        .66926E-04   -1.5351    
   2  alpha         1.7610        .51767        .12160E-01   -.30010    
   3  Normalizat    1.0825        .25411        .28742E-03   -.90316    
   4  Prefactor     1.1033        .21537        .24166E-03   -.89361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92183e-12
Minuit parameter uncertainties:
  1  2.00284
  2  0.521816
  3  0.254393
  4  0.215536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/872744': 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) = 5130.07163346
delta logL = 0.371709287977

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.183e+00  2.003e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  1.761e+00  5.218e-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:  1.103e+00  2.155e-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.082e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.27
Ra Dec: 189.885 4.728
Photon Index (Free Index): 1.76 +/- 0.52
Photon Flux (Free Index): 6.07e-08 +/- 4.69e-08
Energy Flux (Free Index): 4.03e-05 +/- 2.58e-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/872744/cmap_HighResolution_493084801_493344001_4FGL_J1239.5+0443_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.44e-08', energy_flux2='4.03e-05', photon_flux_error='4.79e-08', dlogl='3.72e-01', energy_flux='3.31e-05', photon_flux2='6.07e-08', job_status='DONE', time_completed='2021-09-06 03:31:34.329635', photon_index_error2='0.52', photon_index2='1.76', ts='11.50', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='1.05', time_epoch_completed='1630924294.33', return_code='0', job_id='872744', GAL2='1.10', EG2='1.08', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='4.69e-08', ts2='12.27', photon_index='2.23' WHERE bin_id='979' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:31:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 872744: <4FGL_J1239.5+0443_daily_bin979> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin979 189.885 4.7284 493084801 493344001 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 :                                   719.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            957 sec.

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

