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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin248
RA = 189.885, Dec = 4.7284
tmin = 303609601, tmax = 303868801
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='865815', job_status='RUN', time_executed='2021-09-06 03:03:36.215523', time_epoch_executed='1630922616.22' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865815/ft1_4FGL_J1239.5+0443_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865815/ft2_4FGL_J1239.5+0443_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865815/ft1_4FGL_J1239.5+0443_daily_bin248.fits outfile=/scratch/kocevski/865815/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin248.fits ra=189.885 dec=4.7284 rad=12.0 tmin=303609601.0 tmax=303868801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.52
user 3.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865815/ft1_filtered_4FGL_J1239.5+0443_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/865815/ft2_4FGL_J1239.5+0443_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/865815/ltcube_303609601_303868801_4FGL_J1239.5+0443_daily_bin248.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/865815/ft2_4FGL_J1239.5+0443_daily_bin248.fits
.....................!
real 17.09
user 16.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865815/ft1_filtered_4FGL_J1239.5+0443_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/865815/ft2_4FGL_J1239.5+0443_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/865815/ltcube_303609601_303868801_4FGL_J1239.5+0443_daily_bin248.fits outfile=/scratch/kocevski/865815/expmap_303609601_303868801_4FGL_J1239.5+0443_daily_bin248.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/865815/ltcube_303609601_303868801_4FGL_J1239.5+0443_daily_bin248.fits
.....................!
real 195.77
user 189.89
sys 4.34

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/865815/ft1_filtered_4FGL_J1239.5+0443_daily_bin248.fits scfile=/scratch/kocevski/865815/ft2_4FGL_J1239.5+0443_daily_bin248.fits outfile=/scratch/kocevski/865815/cmap_303609601_303868801_4FGL_J1239.5+0443_daily_bin248.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.67
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865815/ft1_filtered_4FGL_J1239.5+0443_daily_bin248.fits scfile=/scratch/kocevski/865815/ft2_4FGL_J1239.5+0443_daily_bin248.fits outfile=/scratch/kocevski/865815/cmap_HighResolution_303609601_303868801_4FGL_J1239.5+0443_daily_bin248.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=189.885 yref=4.7284 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.960       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6063       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18883E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .63934       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7999       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.046       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.5740       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    51.631       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6668       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1401       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9394       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.4984       1.0000         .10000E-03   10000.    
    25 'norm      '    .93355       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.784       1.0000         .10000E-03   10000.    
    27 'Prefactor '    75.347       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3710       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .77590       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=   6464.333     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     4085 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    134.69       -.41404E-05** at limit **
   2  Prefactor     29.964        15.794        .11916E-05   -.64652E-05
   3  Prefactor     7.6064        7.0922       -.11186E-06    .15435E-05
   4  Prefactor     .10000E-03    322.03        .65607E-05** at limit **
   5  Prefactor     .60952        108.75       -.10764E-04    .93647E-06
   6  Prefactor     .10000E-03    15.483       -.28315E-06** at limit **
   7  Prefactor     2.7999        24.823       -.22254E-05   -.18803E-05
   8  Prefactor     11.045        9.4225       -.59477E-07    .46404E-05
   9  norm          .10000E-03    .86305       -.91358E-08** at limit **
  10  norm          7.5742        4.7542       -.41977E-07    .28614E-04
  11  Prefactor     .10000E-03    11.088       -.10257E-08** at limit **
  12  norm          51.634        51.725        .19179E-06    .28694E-05
  13  Prefactor     .10000E-03    44.659        .21805E-05** at limit **
  14  norm          2.6667        .78582        .20671E-07    .69056E-04
  15  Prefactor     .10000E-03    5.0669       -.12628E-06** at limit **
  16  Prefactor     .10000E-03    39.345       -.18513E-05** at limit **
  17  Prefactor     9.1397        12.189       -.32510E-06   -.17089E-05
  18  norm          4.9393        1.8360        .98205E-08    .22134E-04
  19  Prefactor     .10000E-03    4.5146        .47238E-07** at limit **
  20  Prefactor     .10000E-03    14.984        .21579E-06** at limit **
  21  Prefactor     .10000E-03    26.239        .32663E-06** at limit **
  22  Prefactor     .10000E-03    39.113       -.78376E-06** at limit **
  23  norm          .10000E-03    16.015       -.55004E-07** at limit **
  24  Prefactor     8.4980        14.065       -.21157E-05    .38349E-05
  25  norm          .93354        .29447        .10903E-07    .12909E-04
  26  Prefactor     14.783        18.776        .48409E-07    .15336E-04
  27  Prefactor     75.344        62.911        .88461E-08    .82841E-06
  28  Prefactor     .10000E-03    8.1014       -.27205E-08** at limit **
  29  Prefactor     .10000E-03    3.3683        .72482E-08** at limit **
  30  Normalizat    1.3710        .22354        .52276E-07    .80077E-05
  31  Prefactor     .77595        .17025        .20067E-06    .20275E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.9642
  Prefactor  = 7.60638
  Prefactor  = 0.0001
  Prefactor  = 0.609525
  Prefactor  = 0.0001
  Prefactor  = 2.79988
  Prefactor  = 11.0455
  norm       = 0.0001
  norm       = 7.57421
  Prefactor  = 0.0001
  norm       = 51.6336
  Prefactor  = 0.0001
  norm       = 2.66671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.13971
  norm       = 4.93928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.49797
  norm       = 0.933539
  Prefactor  = 14.7835
  Prefactor  = 75.3443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37102
  Prefactor  = 0.775954
 **********
 **   18 **HESSE 
 **********

 FCN=   6464.333     FROM HESSE     STATUS=OK           620 CALLS     4705 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    135.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.964        15.819        .73198E-04   -1.4613    
   3  Prefactor     7.6064        7.0869        .14541E-03   -1.5156    
   4  Prefactor     .10000E-03    322.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .60952        106.34        .63762E-02   -1.5552    
   6  Prefactor     .10000E-03    15.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7999        24.771        .24313E-03   -1.5373    
   8  Prefactor     11.045        9.4170        .12055E-03   -1.5043    
   9  norm          .10000E-03    .86764        .72892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.5742        4.7654        .11887E-03   -1.5157    
  11  Prefactor     .10000E-03    11.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          51.634        51.956        .55815E-04   -1.4270    
  13  Prefactor     .10000E-03    44.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6667        .78852        .34417E-04   -1.5381    
  15  Prefactor     .10000E-03    5.0817        .17673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.1397        12.180        .13257E-03   -1.5103    
  18  norm          4.9393        1.8357        .63689E-04   -1.5263    
  19  Prefactor     .10000E-03    4.5350        .16676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    39.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    16.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.4980        14.089        .13751E-03   -1.5125    
  25  norm          .93354        .29431        .23504E-04   -1.5515    
  26  Prefactor     14.783        18.805        .10417E-03   -1.4939    
  27  Prefactor     75.344        62.949        .46257E-04   -1.3970    
  28  Prefactor     .10000E-03    8.1104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.3709        .14411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3710        .26947        .27957E-03   -.81471    
  31  Prefactor     .77595        .20333        .28489E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87403e-11
Minuit parameter uncertainties:
  1  0.000294032
  2  15.8212
  3  7.08771
  4  0.000457857
  5  16.1293
  6  3.12979e-06
  7  16.6649
  8  9.41826
  9  2.33731e-07
  10  4.76566
  11  9.34396e-08
  12  52.0013
  13  8.76197e-05
  14  0.788522
  15  2.30941e-06
  16  7.55193e-06
  17  12.1838
  18  1.83568
  19  1.50777e-06
  20  4.15362e-06
  21  4.65699e-06
  22  0.000101936
  23  2.20084e-06
  24  14.0941
  25  0.294315
  26  18.8126
  27  63.0051
  28  5.17183e-07
  29  8.20552e-07
  30  0.269753
  31  0.203522
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.939e+00  1.836e+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.760e-01  2.035e-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.371e+00  2.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.96
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 4.69e-08
Energy Flux (Fixed Index): 4.43e-05 +/- 1.65e-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) = 6463.32104282
delta logL = 1.011525328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6463.30252106
delta logL = 1.03004709273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5840       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7164       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75457       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=   6463.303     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5833        1.7270        .47002E-02   -.58699E-04
   2  alpha         1.7162        .30457        .23546       -.26921E-04
   3  Normalizat    1.4123        .21264        .62481E-01   -.55127E-05
   4  Prefactor     .75443        .16871        .65208E-01    .14061E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.58328
  alpha      = 1.71623
  Normalizat = 1.41226
  Prefactor  = 0.754428
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.303     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5833        1.8759        .62666E-04   -1.5280    
   2  alpha         1.7162        .34314        .10031E-01   -.31889    
   3  Normalizat    1.4123        .25286        .27635E-03   -.80275    
   4  Prefactor     .75443        .20031        .28848E-03   -1.0143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58329e-10
Minuit parameter uncertainties:
  1  1.87592
  2  0.344348
  3  0.25308
  4  0.200499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865815': 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) = 6463.30252037
delta logL = 1.0300477795

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.583e+00  1.876e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  1.716e+00  3.443e-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:  7.544e-01  2.005e-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.412e+00  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.10
Ra Dec: 189.885 4.728
Photon Index (Free Index): 1.72 +/- 0.34
Photon Flux (Free Index): 8.58e-08 +/- 4.12e-08
Energy Flux (Free Index): 6.16e-05 +/- 3.02e-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/865815/cmap_HighResolution_303609601_303868801_4FGL_J1239.5+0443_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='6.16e-05', photon_flux_error='4.69e-08', dlogl='1.03e+00', energy_flux='4.43e-05', photon_flux2='8.58e-08', job_status='DONE', time_completed='2021-09-06 03:16:30.655275', photon_index_error2='0.34', photon_index2='1.72', ts='23.96', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='3.02e-05', EG='1.37', time_epoch_completed='1630923390.66', return_code='0', job_id='865815', GAL2='0.75', EG2='1.41', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='4.12e-08', ts2='26.10', photon_index='2.23' WHERE bin_id='248' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:16:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 865815: <4FGL_J1239.5+0443_daily_bin248> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin248 189.885 4.7284 303609601 303868801 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 :                                   769.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            960 sec.

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

