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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin473
RA = 189.885, Dec = 4.7284
tmin = 361929601, tmax = 362188801
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='867765', job_status='RUN', time_executed='2021-09-06 03:06:22.104802', time_epoch_executed='1630922782.1' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867765

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867765/ft1_4FGL_J1239.5+0443_daily_bin473.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867765/ft2_4FGL_J1239.5+0443_daily_bin473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867765/ft1_4FGL_J1239.5+0443_daily_bin473.fits outfile=/scratch/kocevski/867765/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin473.fits ra=189.885 dec=4.7284 rad=12.0 tmin=361929601.0 tmax=362188801.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 5.57
user 5.21
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867765/ft1_filtered_4FGL_J1239.5+0443_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/867765/ft2_4FGL_J1239.5+0443_daily_bin473.fits sctable="SC_DATA" expcube=/scratch/kocevski/867765/ltcube_361929601_362188801_4FGL_J1239.5+0443_daily_bin473.fits outfile=/scratch/kocevski/867765/expmap_361929601_362188801_4FGL_J1239.5+0443_daily_bin473.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/867765/ltcube_361929601_362188801_4FGL_J1239.5+0443_daily_bin473.fits
.....................!
real 192.32
user 186.30
sys 5.32

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/867765/ft1_filtered_4FGL_J1239.5+0443_daily_bin473.fits scfile=/scratch/kocevski/867765/ft2_4FGL_J1239.5+0443_daily_bin473.fits outfile=/scratch/kocevski/867765/cmap_361929601_362188801_4FGL_J1239.5+0443_daily_bin473.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.56
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0908       1.0000         .10000E-03   10000.    
     4 'Prefactor '    109.79       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.092       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.3894       1.0000         .10000E-03   10000.    
    10 'norm      '    10.940       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    79.371       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9728       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6214       1.0000         .10000E-03   10000.    
    18 'norm      '    10.180       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2325       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .84803E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .55119       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9680       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1908       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92023       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=   7384.629     FROM MIGRAD    STATUS=CONVERGED    824 CALLS     4135 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.288       -.10723E-04** at limit **
   2  Prefactor     .10000E-03    4.8119       -.24638E-06** at limit **
   3  Prefactor     1.0889        1.4026       -.12455E-06   -.12590E-02
   4  Prefactor     109.83        96.922        .28935E-04   -.17867E-05
   5  Prefactor     .10000E-03    30.638        .12655E-04** at limit **
   6  Prefactor     35.093        21.357        .17462E-06   -.63419E-04
   7  Prefactor     .10000E-03    23.686       -.21438E-05** at limit **
   8  Prefactor     .10000E-03    11.123        .33466E-05** at limit **
   9  norm          2.3895        1.9650        .67006E-08   -.29630E-03
  10  norm          10.940        4.1380       -.34775E-07   -.22307E-03
  11  Prefactor     .10000E-03    6.8039       -.73432E-07** at limit **
  12  norm          .10000E-03    15.116        .67519E-05** at limit **
  13  Prefactor     79.377        80.663        .41706E-05   -.20712E-05
  14  norm          1.9727        .60379        .22522E-07   -.58140E-03
  15  Prefactor     .10000E-03    4.5242       -.40160E-08** at limit **
  16  Prefactor     .10000E-03    9.5721        .11316E-05** at limit **
  17  Prefactor     7.6212        8.1626        .14348E-06   -.20800E-04
  18  norm          10.180        2.3398        .49824E-07   -.88007E-04
  19  Prefactor     5.2319        4.9523       -.19393E-06    .17612E-04
  20  Prefactor     .10000E-03    12.931       -.47544E-05** at limit **
  21  Prefactor     .10000E-03    13.599       -.24125E-05** at limit **
  22  Prefactor     .10000E-03    78.829        .25176E-05** at limit **
  23  norm          .10000E-03    20.169       -.32500E-05** at limit **
  24  Prefactor     .10000E-03    7.5073        .18854E-06** at limit **
  25  norm          .55122        .20381        .23204E-07    .19834E-03
  26  Prefactor     1.9721        35.297        .19271E-05   -.13135E-03
  27  Prefactor     .10000E-03    367.58       -.20528E-05** at limit **
  28  Prefactor     .10000E-03    9.2602       -.25284E-05** at limit **
  29  Prefactor     .10000E-03    8.3831        .84734E-06** at limit **
  30  Normalizat    1.1909        .20389       -.19571E-05   -.22597E-04
  31  Prefactor     .92023        .15986        .32599E-07   -.14719E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.08888
  Prefactor  = 109.835
  Prefactor  = 0.0001
  Prefactor  = 35.0931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.38947
  norm       = 10.9397
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 79.3768
  norm       = 1.9727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.62124
  norm       = 10.1796
  Prefactor  = 5.23191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.551223
  Prefactor  = 1.97209
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19089
  Prefactor  = 0.920225
 **********
 **   18 **HESSE 
 **********

 FCN=   7384.629     FROM HESSE     STATUS=OK           618 CALLS     4753 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0889        9.3002        .22896E-02   -1.5499    
   4  Prefactor     109.83        96.998        .19193E-03   -1.3608    
   5  Prefactor     .10000E-03    30.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.093        21.363        .67649E-04   -1.4522    
   7  Prefactor     .10000E-03    23.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.3895        1.9549        .10504E-03   -1.5399    
  10  norm          10.940        4.1429        .99546E-04   -1.5046    
  11  Prefactor     .10000E-03    6.8044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    15.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     79.377        80.665        .45079E-04   -1.3924    
  14  norm          1.9727        .60137        .33994E-04   -1.5427    
  15  Prefactor     .10000E-03    4.5473        .17850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.5775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6212        8.1567        .14526E-03   -1.5156    
  18  norm          10.180        2.3412        .59581E-04   -1.5070    
  19  Prefactor     5.2319        4.9472        .17572E-03   -1.5250    
  20  Prefactor     .10000E-03    12.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    79.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    20.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    32.124        .42470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .55122        .20343        .22707E-04   -1.5559    
  26  Prefactor     1.9721        33.977        .14780E-02   -1.5427    
  27  Prefactor     .10000E-03    375.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.2793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.4453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1909        .23925        .28786E-03   -.86885    
  31  Prefactor     .92023        .18811        .26273E-03   -.95438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84315e-09
Minuit parameter uncertainties:
  1  2.17593e-05
  2  5.56554e-05
  3  6.36557
  4  97.1389
  5  8.50606e-06
  6  21.3672
  7  4.13597e-06
  8  2.29461e-06
  9  1.95495
  10  4.14302
  11  2.81144e-06
  12  1.77347e-06
  13  80.7765
  14  0.601374
  15  1.47389e-06
  16  7.38095e-07
  17  8.15787
  18  2.34122
  19  4.94759
  20  9.83393e-06
  21  6.62849e-06
  22  4.64421e-05
  23  4.17609e-05
  24  9.17654e-05
  25  0.203434
  26  16.3819
  27  0.0012723
  28  1.49167e-05
  29  1.27605e-05
  30  0.239467
  31  0.188244
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.018e+01  2.341e+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.202e-01  1.882e-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.191e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 47.39
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.60e-07 +/- 5.98e-08
Energy Flux (Fixed Index): 9.13e-05 +/- 2.10e-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) = 7384.61705343
delta logL = 0.0122374369466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7384.61612232
delta logL = 0.0131685421202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.245       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1897       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1975       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91643       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=   7384.616     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      194 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.245        2.7850        .31296E-02   -.29615E-02
   2  alpha         2.1897        .26905        .17385        .10281E-04
   3  Normalizat    1.1973        .19730        .64938E-01    .99273E-05
   4  Prefactor     .91658        .16004        .45214E-01    .16970E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2448
  alpha      = 2.18968
  Normalizat = 1.19733
  Prefactor  = 0.916577
 **********
 **   18 **HESSE 
 **********

 FCN=   7384.616     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.245        2.3692        .60063E-04   -1.5068    
   2  alpha         2.1897        .23503        .74921E-02   -.12445    
   3  Normalizat    1.1973        .23227        .28726E-03   -.86685    
   4  Prefactor     .91658        .18782        .26320E-03   -.95564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03093e-10
Minuit parameter uncertainties:
  1  2.36923
  2  0.235385
  3  0.232468
  4  0.187952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867765': 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) = 7384.61612194
delta logL = 0.0131689242398

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.024e+01  2.369e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.190e+00  2.354e-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.166e-01  1.880e-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.197e+00  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.51
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.19 +/- 0.24
Photon Flux (Free Index): 2.54e-07 +/- 6.83e-08
Energy Flux (Free Index): 9.29e-05 +/- 2.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/867765/cmap_HighResolution_361929601_362188801_4FGL_J1239.5+0443_daily_bin473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.60e-07', energy_flux2='9.29e-05', photon_flux_error='5.98e-08', dlogl='1.32e-02', energy_flux='9.13e-05', photon_flux2='2.54e-07', job_status='DONE', time_completed='2021-09-06 03:20:42.055500', photon_index_error2='0.24', photon_index2='2.19', ts='47.39', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.37e-05', EG='1.19', time_epoch_completed='1630923642.06', return_code='0', job_id='867765', GAL2='0.92', EG2='1.20', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='6.83e-08', ts2='47.51', photon_index='2.23' WHERE bin_id='473' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:20:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 867765: <4FGL_J1239.5+0443_daily_bin473> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin473 189.885 4.7284 361929601 362188801 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 :                                   852.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            888 sec.

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

