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


Performing analysis on: 4FGL_J1639.2+4129_daily_bin1129
RA = 249.824, Dec = 41.4964
tmin = 531964801, tmax = 532224001
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='809364', job_status='RUN', time_executed='2021-09-15 05:05:01.725700', time_epoch_executed='1631707501.73' WHERE source_name='4FGL J1639.2+4129' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809364/ft1_4FGL_J1639.2+4129_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809364/ft2_4FGL_J1639.2+4129_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809364/ft1_4FGL_J1639.2+4129_daily_bin1129.fits outfile=/scratch/kocevski/809364/ft1_filteredMKT_4FGL_J1639.2+4129_daily_bin1129.fits ra=249.824 dec=41.4964 rad=12.0 tmin=531964801.0 tmax=532224001.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.63
user 3.30
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/809364/ft2_4FGL_J1639.2+4129_daily_bin1129.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809364/ft2_4FGL_J1639.2+4129_daily_bin1129.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/809364/ft1_filteredMKT_4FGL_J1639.2+4129_daily_bin1129.fits evtable="EVENTS" outfile="/scratch/kocevski/809364/ft1_filtered_4FGL_J1639.2+4129_daily_bin1129.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809364/ft1_filtered_4FGL_J1639.2+4129_daily_bin1129.fits" evtable="EVENTS" scfile=/scratch/kocevski/809364/ft2_4FGL_J1639.2+4129_daily_bin1129.fits sctable="SC_DATA" outfile=/scratch/kocevski/809364/ltcube_531964801_532224001_4FGL_J1639.2+4129_daily_bin1129.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/809364/ft2_4FGL_J1639.2+4129_daily_bin1129.fits
.....................!
real 14.66
user 14.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809364/ft1_filtered_4FGL_J1639.2+4129_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/809364/ft2_4FGL_J1639.2+4129_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/809364/ltcube_531964801_532224001_4FGL_J1639.2+4129_daily_bin1129.fits outfile=/scratch/kocevski/809364/expmap_531964801_532224001_4FGL_J1639.2+4129_daily_bin1129.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/809364/ltcube_531964801_532224001_4FGL_J1639.2+4129_daily_bin1129.fits
.....................!
real 193.34
user 187.08
sys 5.17

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 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1639.2+4129 @ 249.824 41.4964

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/809364/ft1_filtered_4FGL_J1639.2+4129_daily_bin1129.fits scfile=/scratch/kocevski/809364/ft2_4FGL_J1639.2+4129_daily_bin1129.fits outfile=/scratch/kocevski/809364/cmap_531964801_532224001_4FGL_J1639.2+4129_daily_bin1129.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=249.824 yref=41.4964 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809364/ft1_filtered_4FGL_J1639.2+4129_daily_bin1129.fits scfile=/scratch/kocevski/809364/ft2_4FGL_J1639.2+4129_daily_bin1129.fits outfile=/scratch/kocevski/809364/cmap_HighResolution_531964801_532224001_4FGL_J1639.2+4129_daily_bin1129.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=249.824 yref=41.4964 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809364/ft1_filtered_4FGL_J1639.2+4129_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/809364/ft2_4FGL_J1639.2+4129_daily_bin1129.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809364/Model_4FGL_J1639.2+4129_daily_bin1129.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/809364/ft1_filtered_4FGL_J1639.2+4129_daily_bin1129.fits.....................!
real 57.49
user 55.71
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809364/ft1_filtered_4FGL_J1639.2+4129_daily_bin1129.fits', '/scratch/kocevski/809364/ft2_4FGL_J1639.2+4129_daily_bin1129.fits', expMap='/scratch/kocevski/809364/expmap_531964801_532224001_4FGL_J1639.2+4129_daily_bin1129.fits', expCube='/scratch/kocevski/809364/ltcube_531964801_532224001_4FGL_J1639.2+4129_daily_bin1129.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809364/Model_4FGL_J1639.2+4129_daily_bin1129.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1639.2+4129'

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  9.401e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
325        alpha:  2.192e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  2.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  8.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/809364/ft1_filtered_4FGL_J1639.2+4129_daily_bin1129.fits
Spacecraft file(s): /scratch/kocevski/809364/ft2_4FGL_J1639.2+4129_daily_bin1129.fits
Exposure map: /scratch/kocevski/809364/expmap_531964801_532224001_4FGL_J1639.2+4129_daily_bin1129.fits
Exposure cube: /scratch/kocevski/809364/ltcube_531964801_532224001_4FGL_J1639.2+4129_daily_bin1129.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809364/Model_4FGL_J1639.2+4129_daily_bin1129.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) = 7150.23484871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6919       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20119       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.576       1.0000         .10000E-03   10000.    
     8 'norm      '    17.866       1.0000         .10000E-03   10000.    
     9 'norm      '    .37431       1.0000         .10000E-03   10000.    
    10 'norm      '    .12835E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3484       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12475E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    68.915       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5774       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9534       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .17921       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6496       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.1809       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.3105       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .21115E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0691       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90571       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7150.156     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3310 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.763        .13651E-06** at limit **
   2  Prefactor     8.7298        30.696       -.89042E-06   -.19221E-04
   3  Prefactor     .10000E-03    1.3491        .24585E-07** at limit **
   4  Prefactor     .10000E-03    2.3803        .14799E-06** at limit **
   5  Prefactor     .10000E-03    22.646        .34074E-06** at limit **
   6  Prefactor     .20412        6.1473        .40626E-05   -.37746E-04
   7  Prefactor     11.565        4.7544        .18450E-06    .17519E-02
   8  norm          17.867        12.789       -.13737E-06   -.10640E-03
   9  norm          .37441        .18007       -.37765E-07   -.14182E-02
  10  norm          .10018E-03    39.115       -.11456E-04** at limit **
  11  Prefactor     3.3349        32.117        .19975E-05    .11659E-03
  12  Prefactor     .10000E-03    2.4412        .11373E-06** at limit **
  13  norm          68.862        45.613        .12244E-05    .48252E-03
  14  Prefactor     .10000E-03    .63388        .52473E-06** at limit **
  15  Prefactor     1.5797        1.2895       -.60735E-06   -.87993E-03
  16  Prefactor     5.9539        3.8341        .27764E-07    .26987E-03
  17  Prefactor     .10000E-03    1.9479       -.12606E-05** at limit **
  18  Prefactor     .10000E-03    4.7258        .12201E-07** at limit **
  19  norm          .17676        1.1215        .13521E-05    .11152E-02
  20  norm          2.6493        1.0976        .14238E-07    .78720E-03
  21  Prefactor     .10000E-03    2.4615        .48918E-07** at limit **
  22  norm          .10000E-03    .23487        .48264E-07** at limit **
  23  norm          .10000E-03    3.9644        .54476E-07** at limit **
  24  norm          3.1806        1.5309        .43178E-07    .55663E-03
  25  Prefactor     .10000E-03    66.012        .13022E-06** at limit **
  26  norm          5.3079        4.6297        .26703E-06    .65946E-03
  27  Prefactor     .10000E-03    56.762       -.25964E-06** at limit **
  28  Normalizat    1.0692        .19163       -.53112E-06    .43140E-03
  29  Prefactor     .90545        .15140        .91394E-08    .46900E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.72977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.204119
  Prefactor  = 11.5648
  norm       = 17.8668
  norm       = 0.374408
  norm       = 0.000100178
  Prefactor  = 3.33492
  Prefactor  = 0.0001
  norm       = 68.8617
  Prefactor  = 0.0001
  Prefactor  = 1.5797
  Prefactor  = 5.95394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.176759
  norm       = 2.64932
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.18062
  Prefactor  = 0.0001
  norm       = 5.30792
  Prefactor  = 0.0001
  Normalizat = 1.06924
  Prefactor  = 0.905447
 **********
 **   18 **HESSE 
 **********

 FCN=   7150.156     FROM HESSE     STATUS=OK           563 CALLS     3873 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7298        30.598        .13596E-03   -1.5117    
   3  Prefactor     .10000E-03    1.3637        .95882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3963        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20412        12.479        .28787E-02   -1.5618    
   7  Prefactor     11.565        4.8218        .10940E-03   -1.5028    
   8  norm          17.867        12.791        .94755E-04   -1.4862    
   9  norm          .37441        .17759        .19948E-04   -1.5586    
  10  norm          .10018E-03    70.076        .55501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3349        32.314        .22117E-03   -1.5343    
  12  Prefactor     .10000E-03    12.734        .24288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          68.862        46.298        .24176E-03   -1.4046    
  14  Prefactor     .10000E-03    1.0213        .12667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5797        1.3388        .78167E-04   -1.5457    
  16  Prefactor     5.9539        3.7758        .11982E-03   -1.5220    
  17  Prefactor     .10000E-03    6.2126        .19928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.7412        .17949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .17676        1.9084        .15926E-02   -1.5624    
  20  norm          2.6493        1.0943        .25045E-04   -1.5382    
  21  Prefactor     .10000E-03    2.4780        .12947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .33310        .79392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.9914        .16437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.1806        1.5293        .69721E-04   -1.5351    
  25  Prefactor     .10000E-03    66.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.3079        4.6414        .16441E-03   -1.5247    
  27  Prefactor     .10000E-03    56.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0692        .22832        .26327E-03   -.90746    
  29  Prefactor     .90545        .18258        .23998E-03   -.95951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5477e-08
Minuit parameter uncertainties:
  1  7.83049e-05
  2  30.6527
  3  5.5683e-07
  4  2.10619e-05
  5  0.000187217
  6  3.19188
  7  4.82192
  8  12.7931
  9  0.177588
  10  0.00707521
  11  20.7764
  12  1.85211e-05
  13  46.3226
  14  1.38677e-05
  15  1.33883
  16  3.77598
  17  1.34945e-05
  18  1.71602e-06
  19  1.16132
  20  1.09435
  21  6.2951e-06
  22  2.02375e-06
  23  6.6726e-06
  24  1.52932
  25  9.48809e-05
  26  4.64173
  27  0.000124032
  28  0.228534
  29  0.182705
Done.

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

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  6.886e+01  4.632e+01  1.000e-04  1.000e+04 ( 1.000e-13)
325        alpha:  2.192e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  2.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  8.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  9.054e-01  1.827e-01  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  1.069e+00  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.41
Ra Dec: 249.824 41.496
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.08e-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) = 7150.05128467
delta logL = 0.105102827755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7150.04949452
delta logL = 0.10689297455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    68.862       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7979       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89901       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7150.049     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      207 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          68.462        52.800        .12093E-02    .16123E-04
   2  alpha         1.7961        .82454        .43417       -.68005E-05
   3  Normalizat    1.0823        .17898        .59240E-01    .42418E-04
   4  Prefactor     .89929        .14988        .44992E-01    .31126E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 68.4619
  alpha      = 1.79612
  Normalizat = 1.08233
  Prefactor  = 0.899288
 **********
 **   18 **HESSE 
 **********

 FCN=   7150.049     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          68.462        46.518        .48371E-04   -1.4051    
   2  alpha         1.7961        .77936        .24412E-01   -.28541    
   3  Normalizat    1.0823        .20978        .26199E-03   -.90321    
   4  Prefactor     .89929        .17782        .24076E-03   -.96166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56674e-11
Minuit parameter uncertainties:
  1  46.5422
  2  0.793766
  3  0.209938
  4  0.17794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809364': 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) = 7150.04945664
delta logL = 0.106930855812

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  6.846e+01  4.654e+01  1.000e-04  1.000e+04 ( 1.000e-13)
325        alpha:  1.796e+00  7.938e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  2.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  8.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  8.993e-01  1.779e-01  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  1.082e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.65
Ra Dec: 249.824 41.496
Photon Index (Free Index): 1.80 +/- 0.79
Photon Flux (Free Index): 2.51e-08 +/- 2.51e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/809364/cmap_HighResolution_531964801_532224001_4FGL_J1639.2+4129_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='1.74e-05', photon_flux_error='2.46e-08', dlogl='1.07e-01', energy_flux='1.61e-05', photon_flux2='2.51e-08', job_status='DONE', time_completed='2021-09-15 05:19:06.168773', photon_index_error2='0.79', photon_index2='1.80', ts='5.41', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='1.07', time_epoch_completed='1631708346.17', return_code='0', job_id='809364', GAL2='0.90', EG2='1.08', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='2.51e-08', ts2='5.65', photon_index='2.19' WHERE bin_id='1129' AND source_name='4FGL J1639.2+4129' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 05:19:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 809364: <4FGL_J1639.2+4129_daily_bin1129> in cluster <slac> Done

Job <4FGL_J1639.2+4129_daily_bin1129> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 15 05:02:54 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 05:03:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 05:03:15 2021
Terminated at Wed Sep 15 05:19:06 2021
Results reported at Wed Sep 15 05:19:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1639.2+4129_daily_bin1129 249.824 41.4964 531964801 532224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1639.2+4129 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   839.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             296.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            972 sec.

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

