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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin393
RA = 189.885, Dec = 4.7284
tmin = 341193601, tmax = 341452801
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='866161', job_status='RUN', time_executed='2021-09-06 03:02:15.385583', time_epoch_executed='1630922535.39' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866161

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866161/ft1_4FGL_J1239.5+0443_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866161/ft2_4FGL_J1239.5+0443_daily_bin393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866161/ft1_4FGL_J1239.5+0443_daily_bin393.fits outfile=/scratch/kocevski/866161/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin393.fits ra=189.885 dec=4.7284 rad=12.0 tmin=341193601.0 tmax=341452801.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.50
user 3.19
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866161/ft1_filtered_4FGL_J1239.5+0443_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/866161/ft2_4FGL_J1239.5+0443_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/866161/ltcube_341193601_341452801_4FGL_J1239.5+0443_daily_bin393.fits outfile=/scratch/kocevski/866161/expmap_341193601_341452801_4FGL_J1239.5+0443_daily_bin393.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/866161/ltcube_341193601_341452801_4FGL_J1239.5+0443_daily_bin393.fits
.....................!
real 191.01
user 185.54
sys 4.85

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/866161/ft1_filtered_4FGL_J1239.5+0443_daily_bin393.fits scfile=/scratch/kocevski/866161/ft2_4FGL_J1239.5+0443_daily_bin393.fits outfile=/scratch/kocevski/866161/cmap_341193601_341452801_4FGL_J1239.5+0443_daily_bin393.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866161/ft1_filtered_4FGL_J1239.5+0443_daily_bin393.fits scfile=/scratch/kocevski/866161/ft2_4FGL_J1239.5+0443_daily_bin393.fits outfile=/scratch/kocevski/866161/cmap_HighResolution_341193601_341452801_4FGL_J1239.5+0443_daily_bin393.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.59
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7734       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.033       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.807       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.7095       1.0000         .10000E-03   10000.    
    11 'Prefactor '    72.169       1.0000         .10000E-03   10000.    
    12 'norm      '    50.485       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .46155       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.758       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .46116E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.4980       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5571       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5312       1.0000         .10000E-03   10000.    
    21 'Prefactor '    86.159       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.3741       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.7367       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.671       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.423       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3422       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95369       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=   6400.905     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     4135 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.349       -.39662E-06** at limit **
   2  Prefactor     5.7739        8.2973        .61672E-07   -.10209E-04
   3  Prefactor     .10000E-03    2.1865       -.65204E-07** at limit **
   4  Prefactor     .10000E-03    22.436       -.23828E-06** at limit **
   5  Prefactor     12.032        29.678        .99877E-06    .79421E-06
   6  Prefactor     .10000E-03    8.7181       -.17515E-06** at limit **
   7  Prefactor     31.807        29.660       -.11155E-05    .11718E-04
   8  Prefactor     .10000E-03    2.7509       -.67009E-07** at limit **
   9  norm          .10000E-03    .54437       -.44073E-07** at limit **
  10  norm          9.7085        5.5261        .15094E-05    .28700E-04
  11  Prefactor     72.165        42.517       -.34578E-06    .14388E-04
  12  norm          50.464        57.799       -.26110E-05   -.14489E-04
  13  Prefactor     .10000E-03    45.525       -.42999E-06** at limit **
  14  norm          .46171        .59514       -.24715E-06   -.10725E-02
  15  Prefactor     17.726        15.734        .12052E-05    .29854E-03
  16  Prefactor     .10000E-03    26.184       -.21874E-05** at limit **
  17  Prefactor     .10000E-03    5.8701       -.14855E-06** at limit **
  18  norm          9.4977        2.4855       -.56726E-07    .12305E-03
  19  Prefactor     1.5564        9.3355        .18689E-05   -.89573E-06
  20  Prefactor     3.5318        20.162        .11234E-04   -.33858E-04
  21  Prefactor     86.176        78.598        .18426E-05   -.73078E-05
  22  Prefactor     .10000E-03    70.526        .77651E-07** at limit **
  23  norm          .10000E-03    20.206        .47450E-06** at limit **
  24  Prefactor     .10000E-03    32.700       -.64729E-07** at limit **
  25  norm          1.3739        .42718       -.98737E-07    .17933E-03
  26  Prefactor     1.7344        21.975        .26178E-05   -.33547E-05
  27  Prefactor     17.851        90.095        .34603E-05    .83712E-04
  28  Prefactor     .10000E-03    11.806        .94365E-07** at limit **
  29  Prefactor     10.424        12.343        .85005E-07   -.30616E-05
  30  Normalizat    1.3424        .23454        .27458E-05    .17785E-04
  31  Prefactor     .95350        .18506       -.24582E-05    .18600E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.77387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0322
  Prefactor  = 0.0001
  Prefactor  = 31.8073
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.7085
  Prefactor  = 72.1652
  norm       = 50.4635
  Prefactor  = 0.0001
  norm       = 0.461711
  Prefactor  = 17.7261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.49772
  Prefactor  = 1.55645
  Prefactor  = 3.53176
  Prefactor  = 86.1761
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37392
  Prefactor  = 1.73439
  Prefactor  = 17.8508
  Prefactor  = 0.0001
  Prefactor  = 10.4241
  Normalizat = 1.34238
  Prefactor  = 0.953496
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.905     FROM HESSE     STATUS=OK           620 CALLS     4755 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.7739        8.2908        .16715E-03   -1.5227    
   3  Prefactor     .10000E-03    2.1882        .11553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.032        29.695        .57740E-03   -1.5014    
   6  Prefactor     .10000E-03    8.7411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.807        29.651        .71047E-04   -1.4579    
   8  Prefactor     .10000E-03    2.7532        .12959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .54503        .57644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.7085        5.5393        .57153E-03   -1.5085    
  11  Prefactor     72.165        42.537        .47257E-04   -1.4007    
  12  norm          50.464        57.866        .56442E-04   -1.4286    
  13  Prefactor     .10000E-03    45.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .46171        .56830        .61322E-04   -1.5572    
  15  Prefactor     17.726        14.642        .95043E-04   -1.4866    
  16  Prefactor     .10000E-03    200.98        .71575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.9078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.4977        2.4796        .60934E-04   -1.5092    
  19  Prefactor     1.5564        9.2110        .34111E-03   -1.5458    
  20  Prefactor     3.5318        19.836        .10756E-02   -1.5332    
  21  Prefactor     86.176        79.529        .43281E-04   -1.3849    
  22  Prefactor     .10000E-03    70.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    20.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    33.867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3739        .43272        .25413E-04   -1.5474    
  26  Prefactor     1.7344        22.161        .31843E-03   -1.5445    
  27  Prefactor     17.851        90.527        .95277E-04   -1.4863    
  28  Prefactor     .10000E-03    11.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.424        12.347        .12411E-03   -1.5062    
  30  Normalizat    1.3424        .27084        .28985E-03   -.82310    
  31  Prefactor     .95350        .21321        .27712E-03   -.94296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67865e-10
Minuit parameter uncertainties:
  1  0.000149818
  2  8.29249
  3  1.87994e-06
  4  8.78533e-05
  5  29.7317
  6  3.8918e-06
  7  29.6643
  8  2.05714e-06
  9  1.55132e-07
  10  5.53957
  11  42.5545
  12  57.9301
  13  0.000260395
  14  0.568308
  15  14.6445
  16  0.000239941
  17  9.94388e-06
  18  2.47964
  19  7.5742
  20  16.7483
  21  79.6277
  22  0.000253099
  23  1.28027e-05
  24  1.06125e-05
  25  0.432722
  26  12.4045
  27  80.5926
  28  6.3952e-07
  29  12.3496
  30  0.27113
  31  0.213395
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  9.498e+00  2.480e+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.535e-01  2.134e-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.342e+00  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.63
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.43e-07 +/- 6.34e-08
Energy Flux (Fixed Index): 8.52e-05 +/- 2.22e-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) = 6400.78360264
delta logL = 0.121535688271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6400.7774733
delta logL = 0.127665025109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5280       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0870       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94141       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=   6400.777     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      196 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5280        2.6674        .32457E-02   -.10204E-02
   2  alpha         2.0870        .28411        .19418        .56464E-05
   3  Normalizat    1.3669        .22034        .65083E-01    .25463E-04
   4  Prefactor     .94142        .17963        .45531E-01    .45307E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.52803
  alpha      = 2.087
  Normalizat = 1.36694
  Prefactor  = 0.941423
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.777     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5280        2.5160        .62455E-04   -1.5091    
   2  alpha         2.0870        .27719        .82906E-02   -.16596    
   3  Normalizat    1.3669        .25675        .28789E-03   -.81590    
   4  Prefactor     .94142        .20853        .27873E-03   -.94708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82118e-11
Minuit parameter uncertainties:
  1  2.51605
  2  0.277775
  3  0.256986
  4  0.208708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866161': 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) = 6400.77747329
delta logL = 0.127665040607

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  9.528e+00  2.516e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.087e+00  2.778e-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.414e-01  2.087e-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.367e+00  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.79
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.09 +/- 0.28
Photon Flux (Free Index): 2.19e-07 +/- 7.38e-08
Energy Flux (Free Index): 9.03e-05 +/- 2.66e-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/866161/cmap_HighResolution_341193601_341452801_4FGL_J1239.5+0443_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.43e-07', energy_flux2='9.03e-05', photon_flux_error='6.34e-08', dlogl='1.28e-01', energy_flux='8.52e-05', photon_flux2='2.19e-07', job_status='DONE', time_completed='2021-09-06 03:15:26.349312', photon_index_error2='0.28', photon_index2='2.09', ts='43.63', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.66e-05', EG='1.34', time_epoch_completed='1630923326.35', return_code='0', job_id='866161', GAL2='0.94', EG2='1.37', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='7.38e-08', ts2='43.79', photon_index='2.23' WHERE bin_id='393' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:15:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 866161: <4FGL_J1239.5+0443_daily_bin393> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin393 189.885 4.7284 341193601 341452801 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            879 sec.

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

