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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin432
RA = 189.885, Dec = 4.7284
tmin = 351302401, tmax = 351561601
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='866228', job_status='RUN', time_executed='2021-09-06 03:03:53.215767', time_epoch_executed='1630922633.22' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866228/ft1_4FGL_J1239.5+0443_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866228/ft2_4FGL_J1239.5+0443_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866228/ft1_4FGL_J1239.5+0443_daily_bin432.fits outfile=/scratch/kocevski/866228/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin432.fits ra=189.885 dec=4.7284 rad=12.0 tmin=351302401.0 tmax=351561601.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.58
user 3.18
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866228/ft1_filtered_4FGL_J1239.5+0443_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/866228/ft2_4FGL_J1239.5+0443_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/866228/ltcube_351302401_351561601_4FGL_J1239.5+0443_daily_bin432.fits outfile=/scratch/kocevski/866228/expmap_351302401_351561601_4FGL_J1239.5+0443_daily_bin432.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/866228/ltcube_351302401_351561601_4FGL_J1239.5+0443_daily_bin432.fits
.....................!
real 191.69
user 185.79
sys 4.54

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/866228/ft1_filtered_4FGL_J1239.5+0443_daily_bin432.fits scfile=/scratch/kocevski/866228/ft2_4FGL_J1239.5+0443_daily_bin432.fits outfile=/scratch/kocevski/866228/cmap_351302401_351561601_4FGL_J1239.5+0443_daily_bin432.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/866228/ft1_filtered_4FGL_J1239.5+0443_daily_bin432.fits scfile=/scratch/kocevski/866228/ft2_4FGL_J1239.5+0443_daily_bin432.fits outfile=/scratch/kocevski/866228/cmap_HighResolution_351302401_351561601_4FGL_J1239.5+0443_daily_bin432.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.240       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4410       1.0000         .10000E-03   10000.    
     4 'Prefactor '    155.53       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.858       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2108       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.912       1.0000         .10000E-03   10000.    
     9 'norm      '    .10403E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4713       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9321       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.153       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.600       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1315       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4456       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.109       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.640       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.760       1.0000         .10000E-03   10000.    
    25 'norm      '    .62856       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.9836       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.9128       1.0000         .10000E-03   10000.    
    28 'Prefactor '    29.037       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2411       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91586       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=   6696.828     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     4171 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.192        85.994        .73693E-05   -.93050E-06
   2  Prefactor     .10000E-03    7.9093       -.36819E-06** at limit **
   3  Prefactor     3.4410        6.2708        .18552E-06   -.32244E-05
   4  Prefactor     155.50        112.40        .25181E-05   -.11620E-06
   5  Prefactor     .10000E-03    134.00       -.74514E-06** at limit **
   6  Prefactor     32.859        23.577        .91795E-07    .15159E-05
   7  Prefactor     7.2133        23.869        .26574E-07   -.17816E-05
   8  Prefactor     28.903        17.809        .17786E-06    .20896E-04
   9  norm          .10000E-03    1.9868       -.36484E-07** at limit **
  10  norm          2.4721        4.0082        .10200E-06   -.14239E-04
  11  Prefactor     .10000E-03    10.957       -.65583E-08** at limit **
  12  norm          .10000E-03    25.790        .94562E-07** at limit **
  13  Prefactor     .10000E-03    60.514        .21402E-08** at limit **
  14  norm          1.9322        .72567       -.36365E-08   -.65671E-04
  15  Prefactor     22.155        13.432       -.53443E-07   -.95971E-05
  16  Prefactor     10.594        33.972        .69013E-06   -.12066E-05
  17  Prefactor     .10000E-03    3.8162        .78589E-07** at limit **
  18  norm          2.1316        1.4151        .33120E-07   -.14038E-04
  19  Prefactor     3.4454        6.3853        .22529E-05   -.10582E-04
  20  Prefactor     24.108        34.857       -.48839E-07   -.44982E-05
  21  Prefactor     24.637        28.612        .52033E-07   -.31692E-05
  22  Prefactor     .10000E-03    18.011       -.66592E-06** at limit **
  23  norm          .10000E-03    17.511        .80699E-06** at limit **
  24  Prefactor     11.765        12.737        .22382E-07   -.30266E-05
  25  norm          .62858        .25294       -.18521E-07   -.20853E-03
  26  Prefactor     2.9815        9.0593        .37382E-06    .13951E-05
  27  Prefactor     8.8917        113.23        .56437E-05   -.11196E-05
  28  Prefactor     29.038        21.849        .10818E-06   -.59671E-05
  29  Prefactor     .10000E-03    9.5119        .11267E-06** at limit **
  30  Normalizat    1.2408        .22687        .45787E-07    .63434E-05
  31  Prefactor     .91614        .16934       -.11250E-05   -.15302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.192
  Prefactor  = 0.0001
  Prefactor  = 3.44105
  Prefactor  = 155.499
  Prefactor  = 0.0001
  Prefactor  = 32.8586
  Prefactor  = 7.21329
  Prefactor  = 28.9028
  norm       = 0.0001
  norm       = 2.47206
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.93224
  Prefactor  = 22.1555
  Prefactor  = 10.594
  Prefactor  = 0.0001
  norm       = 2.13155
  Prefactor  = 3.44541
  Prefactor  = 24.1083
  Prefactor  = 24.6373
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.7654
  norm       = 0.628582
  Prefactor  = 2.98155
  Prefactor  = 8.89173
  Prefactor  = 29.0384
  Prefactor  = 0.0001
  Normalizat = 1.24077
  Prefactor  = 0.91614
 **********
 **   18 **HESSE 
 **********

 FCN=   6696.828     FROM HESSE     STATUS=OK           632 CALLS     4803 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.192        85.996        .67507E-04   -1.4521    
   2  Prefactor     .10000E-03    7.9906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4410        6.2539        .21804E-03   -1.5337    
   4  Prefactor     155.50        112.74        .16163E-03   -1.3207    
   5  Prefactor     .10000E-03    135.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.859        23.583        .69905E-04   -1.4561    
   7  Prefactor     7.2133        23.782        .14938E-03   -1.5171    
   8  Prefactor     28.903        16.638        .74510E-04   -1.4632    
   9  norm          .10000E-03    3.4739        .20778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4721        3.9652        .18160E-03   -1.5394    
  11  Prefactor     .10000E-03    10.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    25.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    60.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9322        .71874        .37553E-04   -1.5430    
  15  Prefactor     22.155        13.385        .85102E-04   -1.4766    
  16  Prefactor     10.594        34.111        .12306E-03   -1.5057    
  17  Prefactor     .10000E-03    3.8237        .15611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1316        1.4092        .75761E-04   -1.5416    
  19  Prefactor     3.4454        6.4017        .10894E-02   -1.5337    
  20  Prefactor     24.108        34.878        .81581E-04   -1.4726    
  21  Prefactor     24.637        28.625        .80699E-04   -1.4715    
  22  Prefactor     .10000E-03    18.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    17.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.765        12.830        .11682E-03   -1.5022    
  25  norm          .62858        .25252        .24423E-04   -1.5549    
  26  Prefactor     2.9815        9.0281        .23504E-03   -1.5363    
  27  Prefactor     8.8917        113.11        .13426E-03   -1.5111    
  28  Prefactor     29.038        21.861        .74349E-04   -1.4630    
  29  Prefactor     .10000E-03    9.7233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2408        .26803        .28712E-03   -.85352    
  31  Prefactor     .91614        .19679        .26573E-03   -.95579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2795e-10
Minuit parameter uncertainties:
  1  86.301
  2  3.61504e-05
  3  6.25513
  4  112.902
  5  0.000249729
  6  23.5893
  7  23.8131
  8  16.6403
  9  1.67538e-06
  10  3.96566
  11  5.61871e-07
  12  4.46986e-06
  13  5.32882e-06
  14  0.718745
  15  13.3872
  16  34.1735
  17  2.1046e-06
  18  1.40922
  19  6.40297
  20  34.9078
  21  28.641
  22  6.37493e-06
  23  3.57103e-07
  24  12.8329
  25  0.252523
  26  9.03218
  27  63.5764
  28  21.8672
  29  1.48176e-05
  30  0.26833
  31  0.19694
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  2.132e+00  1.409e+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.161e-01  1.969e-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.241e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.21
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.26e-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) = 6696.61695614
delta logL = 0.210661858271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6696.60060993
delta logL = 0.227008062591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9139       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7534       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90242       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=   6696.601     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9134        1.2818        .75113E-02    .10994E-03
   2  alpha         1.7532        .47588        .42912       -.38696E-04
   3  Normalizat    1.2658        .20531        .64364E-01    .96519E-05
   4  Prefactor     .90244        .16649        .45036E-01    .14092E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91345
  alpha      = 1.75317
  Normalizat = 1.26585
  Prefactor  = 0.902437
 **********
 **   18 **HESSE 
 **********

 FCN=   6696.601     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9134        1.4357        .72347E-04   -1.5431    
   2  alpha         1.7532        .64247        .15691E-01   -.30336    
   3  Normalizat    1.2658        .23771        .28472E-03   -.84592    
   4  Prefactor     .90244        .19241        .26743E-03   -.96056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78237e-09
Minuit parameter uncertainties:
  1  1.43571
  2  0.650502
  3  0.237914
  4  0.192554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866228': 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) = 6696.60060983
delta logL = 0.227008159615

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.913e+00  1.436e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  1.753e+00  6.505e-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.024e-01  1.926e-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.266e+00  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.67
Ra Dec: 189.885 4.728
Photon Index (Free Index): 1.75 +/- 0.65
Photon Flux (Free Index): 3.64e-08 +/- 3.35e-08
Energy Flux (Free Index): 2.45e-05 +/- 1.99e-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/866228/cmap_HighResolution_351302401_351561601_4FGL_J1239.5+0443_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='2.45e-05', photon_flux_error='3.60e-08', dlogl='2.27e-01', energy_flux='1.91e-05', photon_flux2='3.64e-08', job_status='DONE', time_completed='2021-09-06 03:17:16.543395', photon_index_error2='0.65', photon_index2='1.75', ts='5.21', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='1.24', time_epoch_completed='1630923436.54', return_code='0', job_id='866228', GAL2='0.90', EG2='1.27', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='3.35e-08', ts2='5.67', photon_index='2.23' WHERE bin_id='432' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:17:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 866228: <4FGL_J1239.5+0443_daily_bin432> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin432 189.885 4.7284 351302401 351561601 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 :                                   795.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            983 sec.

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

