/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 24 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1239.5+0443_daily_bin372
RA = 189.885, Dec = 4.7284
tmin = 335750401, tmax = 336009601
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='866115', job_status='RUN', time_executed='2021-09-06 03:02:16.124599', time_epoch_executed='1630922536.12' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866115

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866115/ft1_4FGL_J1239.5+0443_daily_bin372.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866115/ft2_4FGL_J1239.5+0443_daily_bin372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866115/ft1_4FGL_J1239.5+0443_daily_bin372.fits outfile=/scratch/kocevski/866115/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin372.fits ra=189.885 dec=4.7284 rad=12.0 tmin=335750401.0 tmax=336009601.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 7.07
user 6.57
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866115/ft1_filtered_4FGL_J1239.5+0443_daily_bin372.fits" evtable="EVENTS" scfile=/scratch/kocevski/866115/ft2_4FGL_J1239.5+0443_daily_bin372.fits sctable="SC_DATA" outfile=/scratch/kocevski/866115/ltcube_335750401_336009601_4FGL_J1239.5+0443_daily_bin372.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/866115/ft2_4FGL_J1239.5+0443_daily_bin372.fits
.....................!
real 16.42
user 15.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866115/ft1_filtered_4FGL_J1239.5+0443_daily_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/866115/ft2_4FGL_J1239.5+0443_daily_bin372.fits sctable="SC_DATA" expcube=/scratch/kocevski/866115/ltcube_335750401_336009601_4FGL_J1239.5+0443_daily_bin372.fits outfile=/scratch/kocevski/866115/expmap_335750401_336009601_4FGL_J1239.5+0443_daily_bin372.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/866115/ltcube_335750401_336009601_4FGL_J1239.5+0443_daily_bin372.fits
.....................!
real 192.81
user 186.95
sys 5.08

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/866115/ft1_filtered_4FGL_J1239.5+0443_daily_bin372.fits scfile=/scratch/kocevski/866115/ft2_4FGL_J1239.5+0443_daily_bin372.fits outfile=/scratch/kocevski/866115/cmap_335750401_336009601_4FGL_J1239.5+0443_daily_bin372.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866115/ft1_filtered_4FGL_J1239.5+0443_daily_bin372.fits scfile=/scratch/kocevski/866115/ft2_4FGL_J1239.5+0443_daily_bin372.fits outfile=/scratch/kocevski/866115/cmap_HighResolution_335750401_336009601_4FGL_J1239.5+0443_daily_bin372.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.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4349       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.603       1.0000         .10000E-03   10000.    
     4 'Prefactor '    154.08       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8708       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.773       1.0000         .10000E-03   10000.    
    12 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .68330       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.088       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.396       1.0000         .10000E-03   10000.    
    18 'norm      '    15.932       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.7831       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.841       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.6861       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5108       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95227       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=   6603.337     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4152 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.044       -.49094E-06** at limit **
   2  Prefactor     6.4499        11.299        .23940E-05    .26121E-03
   3  Prefactor     10.604        8.3271        .86530E-07    .22813E-04
   4  Prefactor     153.49        147.34       -.34124E-05   -.45715E-04
   5  Prefactor     .10000E-03    11.463        .34068E-09** at limit **
   6  Prefactor     .10000E-03    20.399        .91855E-06** at limit **
   7  Prefactor     .10000E-03    36.995       -.35959E-07** at limit **
   8  Prefactor     .10000E-03    6.9269        .51826E-06** at limit **
   9  norm          .10000E-03    .84689        .20654E-06** at limit **
  10  norm          3.8735        3.5241       -.24286E-06   -.67618E-04
  11  Prefactor     12.776        36.398       -.29241E-06   -.11584E-04
  12  norm          .10000E-03    32.182        .42531E-07** at limit **
  13  Prefactor     .10000E-03    243.35        .10699E-05** at limit **
  14  norm          .68291        .63162        .19696E-06    .88454E-03
  15  Prefactor     .10000E-03    8.5736        .80389E-07** at limit **
  16  Prefactor     12.088        19.620       -.20675E-06   -.20248E-04
  17  Prefactor     12.398        11.795       -.18268E-06   -.86106E-04
  18  norm          15.933        3.1275       -.13565E-06   -.36369E-03
  19  Prefactor     .10000E-03    5.3456        .56361E-06** at limit **
  20  Prefactor     .10000E-03    21.372        .46312E-06** at limit **
  21  Prefactor     .10000E-03    17.564        .20520E-06** at limit **
  22  Prefactor     .10000E-03    23.427        .44136E-06** at limit **
  23  norm          .10000E-03    17.214        .54465E-06** at limit **
  24  Prefactor     .10000E-03    11.962        .10383E-05** at limit **
  25  norm          1.7832        .38225       -.22689E-07   -.66393E-03
  26  Prefactor     10.849        16.261       -.99134E-06   -.46068E-04
  27  Prefactor     .10000E-03    32.332        .40179E-06** at limit **
  28  Prefactor     .10000E-03    9.5496        .39463E-06** at limit **
  29  Prefactor     8.6873        12.610       -.67332E-07   -.11711E-04
  30  Normalizat    1.5098        .28101        .68737E-05   -.23973E-03
  31  Prefactor     .95311        .21538       -.70620E-05   -.50849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.44993
  Prefactor  = 10.6043
  Prefactor  = 153.488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.87345
  Prefactor  = 12.7763
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.682908
  Prefactor  = 0.0001
  Prefactor  = 12.0875
  Prefactor  = 12.3977
  norm       = 15.9332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7832
  Prefactor  = 10.8486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.68733
  Normalizat = 1.50985
  Prefactor  = 0.953107
 **********
 **   18 **HESSE 
 **********

 FCN=   6603.337     FROM HESSE     STATUS=OK           614 CALLS     4766 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4499        11.561        .79109E-03   -1.5200    
   3  Prefactor     10.604        8.3302        .61522E-03   -1.5057    
   4  Prefactor     153.49        147.96        .16238E-03   -1.3224    
   5  Prefactor     .10000E-03    11.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .85182        .73081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8735        3.4919        .13564E-03   -1.5314    
  11  Prefactor     12.776        36.397        .11208E-03   -1.4993    
  12  norm          .10000E-03    32.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    243.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .68291        .60391        .56932E-03   -1.5543    
  15  Prefactor     .10000E-03    8.6450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.088        19.616        .11522E-03   -1.5012    
  17  Prefactor     12.398        11.785        .11378E-03   -1.5004    
  18  norm          15.933        3.1224        .60100E-04   -1.4909    
  19  Prefactor     .10000E-03    5.3931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    17.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.7832        .38265        .22523E-04   -1.5441    
  26  Prefactor     10.849        16.256        .12168E-03   -1.5049    
  27  Prefactor     .10000E-03    32.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.5622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.6873        12.609        .13601E-03   -1.5118    
  30  Normalizat    1.5098        .28425        .30090E-03   -.77502    
  31  Prefactor     .95311        .21836        .29250E-03   -.94309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77196e-10
Minuit parameter uncertainties:
  1  0.000141219
  2  11.5649
  3  8.33107
  4  148.315
  5  3.28166e-06
  6  7.10851e-05
  7  1.31704e-05
  8  2.50383e-05
  9  4.46967e-06
  10  3.49211
  11  36.4601
  12  2.90617e-05
  13  0.000621086
  14  0.603917
  15  1.23607e-05
  16  19.6269
  17  11.787
  18  3.12247
  19  3.08612e-05
  20  4.83874e-05
  21  2.56928e-05
  22  5.11735e-05
  23  5.72588e-05
  24  6.36898e-05
  25  0.382653
  26  16.2626
  27  6.32942e-05
  28  2.39966e-05
  29  12.6125
  30  0.284549
  31  0.21856
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.593e+01  3.122e+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.531e-01  2.186e-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.510e+00  2.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 75.44
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.07e-07 +/- 7.98e-08
Energy Flux (Fixed Index): 1.43e-04 +/- 2.80e-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) = 6603.16796472
delta logL = 0.168657411207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6603.15157893
delta logL = 0.185043200956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.165       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1005       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93586       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=   6603.152     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      205 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.165        3.3561        .24904E-02   -.19555E-03
   2  alpha         2.1005        .21430        .14707       -.60402E-04
   3  Normalizat    1.5419        .23282        .67491E-01    .19589E-05
   4  Prefactor     .93587        .18390        .66665E-01    .18147E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.1648
  alpha      = 2.10046
  Normalizat = 1.54195
  Prefactor  = 0.935867
 **********
 **   18 **HESSE 
 **********

 FCN=   6603.152     FROM HESSE     STATUS=OK            27 CALLS      232 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.165        3.1810        .61378E-04   -1.4904    
   2  alpha         2.1005        .20710        .63889E-03   -.16050    
   3  Normalizat    1.5419        .27720        .29854E-03   -.76606    
   4  Prefactor     .93587        .21796        .29487E-03   -.94899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7312e-11
Minuit parameter uncertainties:
  1  3.18104
  2  0.207346
  3  0.277473
  4  0.218162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866115': 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) = 6603.15157893
delta logL = 0.185043201806

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.616e+01  3.181e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.100e+00  2.073e-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.359e-01  2.182e-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.542e+00  2.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 75.31
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.10 +/- 0.21
Photon Flux (Free Index): 3.76e-07 +/- 9.04e-08
Energy Flux (Free Index): 1.52e-04 +/- 3.44e-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/866115/cmap_HighResolution_335750401_336009601_4FGL_J1239.5+0443_daily_bin372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.07e-07', energy_flux2='1.52e-04', photon_flux_error='7.98e-08', dlogl='1.85e-01', energy_flux='1.43e-04', photon_flux2='3.76e-07', job_status='DONE', time_completed='2021-09-06 03:15:58.505216', photon_index_error2='0.21', photon_index2='2.10', ts='75.44', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='3.44e-05', EG='1.51', time_epoch_completed='1630923358.51', return_code='0', job_id='866115', GAL2='0.94', EG2='1.54', return_code2='0', energy_flux_error='2.80e-05', photon_flux_error2='9.04e-08', ts2='75.31', photon_index='2.23' WHERE bin_id='372' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:15:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 866115: <4FGL_J1239.5+0443_daily_bin372> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin372 189.885 4.7284 335750401 336009601 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 :                                   803.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            913 sec.

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

