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


Performing analysis on: 4FGL_J1639.2+4129_daily_bin1152
RA = 249.824, Dec = 41.4964
tmin = 537926401, tmax = 538185601
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='809400', job_status='RUN', time_executed='2021-09-15 05:06:34.712651', time_epoch_executed='1631707594.71' WHERE source_name='4FGL J1639.2+4129' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809400

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809400/ft1_4FGL_J1639.2+4129_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809400/ft2_4FGL_J1639.2+4129_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809400/ft1_4FGL_J1639.2+4129_daily_bin1152.fits outfile=/scratch/kocevski/809400/ft1_filteredMKT_4FGL_J1639.2+4129_daily_bin1152.fits ra=249.824 dec=41.4964 rad=12.0 tmin=537926401.0 tmax=538185601.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.46
user 6.22
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809400/ft1_filtered_4FGL_J1639.2+4129_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/809400/ft2_4FGL_J1639.2+4129_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/809400/ltcube_537926401_538185601_4FGL_J1639.2+4129_daily_bin1152.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/809400/ft2_4FGL_J1639.2+4129_daily_bin1152.fits
.....................!
real 13.14
user 12.51
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809400/ft1_filtered_4FGL_J1639.2+4129_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/809400/ft2_4FGL_J1639.2+4129_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/809400/ltcube_537926401_538185601_4FGL_J1639.2+4129_daily_bin1152.fits outfile=/scratch/kocevski/809400/expmap_537926401_538185601_4FGL_J1639.2+4129_daily_bin1152.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/809400/ltcube_537926401_538185601_4FGL_J1639.2+4129_daily_bin1152.fits
.....................!
real 191.82
user 185.88
sys 4.69

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/809400/ft1_filtered_4FGL_J1639.2+4129_daily_bin1152.fits scfile=/scratch/kocevski/809400/ft2_4FGL_J1639.2+4129_daily_bin1152.fits outfile=/scratch/kocevski/809400/cmap_537926401_538185601_4FGL_J1639.2+4129_daily_bin1152.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.67
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809400/ft1_filtered_4FGL_J1639.2+4129_daily_bin1152.fits scfile=/scratch/kocevski/809400/ft2_4FGL_J1639.2+4129_daily_bin1152.fits outfile=/scratch/kocevski/809400/cmap_HighResolution_537926401_538185601_4FGL_J1639.2+4129_daily_bin1152.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.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809400/ft1_filtered_4FGL_J1639.2+4129_daily_bin1152.fits', '/scratch/kocevski/809400/ft2_4FGL_J1639.2+4129_daily_bin1152.fits', expMap='/scratch/kocevski/809400/expmap_537926401_538185601_4FGL_J1639.2+4129_daily_bin1152.fits', expCube='/scratch/kocevski/809400/ltcube_537926401_538185601_4FGL_J1639.2+4129_daily_bin1152.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809400/Model_4FGL_J1639.2+4129_daily_bin1152.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/809400/ft1_filtered_4FGL_J1639.2+4129_daily_bin1152.fits
Spacecraft file(s): /scratch/kocevski/809400/ft2_4FGL_J1639.2+4129_daily_bin1152.fits
Exposure map: /scratch/kocevski/809400/expmap_537926401_538185601_4FGL_J1639.2+4129_daily_bin1152.fits
Exposure cube: /scratch/kocevski/809400/ltcube_537926401_538185601_4FGL_J1639.2+4129_daily_bin1152.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809400/Model_4FGL_J1639.2+4129_daily_bin1152.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) = 2241.46428606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9609       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15346E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1705       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1070       1.0000         .10000E-03   10000.    
     8 'norm      '    .14445       1.0000         .10000E-03   10000.    
     9 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    130.99       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2314       1.0000         .10000E-03   10000.    
    13 'norm      '    77.027       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1708       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0200       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .76921       1.0000         .10000E-03   10000.    
    19 'norm      '    2.9807       1.0000         .10000E-03   10000.    
    20 'norm      '    5.7352       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.6431       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    57.297       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86832       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0320       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2241.455     FROM MIGRAD    STATUS=CONVERGED   1361 CALLS     4341 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.038        .18142E-02** at limit **
   2  Prefactor     .10000E-03    148.20        .18142E-02** at limit **
   3  Prefactor     4.9608        6.3406        .13073E-03    .46961E-05
   4  Prefactor     .10000E-03    22.047        .18142E-02** at limit **
   5  Prefactor     6.3351        162.08        .16161E-03    .11888E-04
   6  Prefactor     .10000E-03    17.561        .18142E-02** at limit **
   7  Prefactor     9.1042        9.7767        .13281E-03    .16294E-03
   8  norm          .10992E-03    78.481        .10854    ** at limit **
   9  norm          .10000E-03    .47489        .43935E-03** at limit **
  10  norm          .10000E-03    14.681        .17721E-02** at limit **
  11  Prefactor     130.99        55.529        .17591E-03    .89660E-04
  12  Prefactor     4.2341        8.9006        .18963E-03   -.69063E-04
  13  norm          77.099        105.81        .22877E-03    .26040E-04
  14  Prefactor     .10000E-03    4.5870        .13931E-02** at limit **
  15  Prefactor     .10000E-03    4.7837        .14124E-02** at limit **
  16  Prefactor     2.1720        4.4435        .13632E-03   -.15804E-03
  17  Prefactor     1.0200        10.186        .26618E-03    .55843E-04
  18  Prefactor     .75929        74.593        .42503E-02    .14280E-03
  19  norm          2.9801        3.2255        .84930E-04    .14008E-03
  20  norm          5.7353        2.2182        .41306E-04   -.16459E-03
  21  Prefactor     .10000E-03    5.0585        .10385E-02** at limit **
  22  norm          1.6434        1.2064        .43088E-04   -.18601E-03
  23  norm          .10000E-03    8.0847        .13130E-02** at limit **
  24  norm          .10000E-03    1.1695        .97916E-04** at limit **
  25  Prefactor     .10000E-03    39.678        .18142E-02** at limit **
  26  norm          57.304        15.830        .52998E-04   -.39691E-03
  27  Prefactor     .10000E-03    388.19        .18142E-02** at limit **
  28  Normalizat    .86782        .49904        .32780E-03   -.12541E-03
  29  Prefactor     1.0323        .37454        .24712E-03   -.21440E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.96084
  Prefactor  = 0.0001
  Prefactor  = 6.33509
  Prefactor  = 0.0001
  Prefactor  = 9.10423
  norm       = 0.000109916
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 130.994
  Prefactor  = 4.23408
  norm       = 77.0994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17201
  Prefactor  = 1.02
  Prefactor  = 0.759292
  norm       = 2.98008
  norm       = 5.73533
  Prefactor  = 0.0001
  norm       = 1.64344
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 57.304
  Prefactor  = 0.000100004
  Normalizat = 0.867816
  Prefactor  = 1.03231
 **********
 **   18 **HESSE 
 **********

 FCN=   2241.455     FROM HESSE     STATUS=OK           535 CALLS     4876 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    148.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9608        6.3404        .52291E-05   -1.5262    
   4  Prefactor     .10000E-03    22.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3351        161.87        .64646E-05   -1.5205    
   6  Prefactor     .10000E-03    17.568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.1042        9.7757        .53124E-05   -1.5104    
   8  norm          .10992E-03    73.971        .11275       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .47614        .87870E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    14.681        .35443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     130.99        55.507        .35181E-04   -1.3414    
  12  Prefactor     4.2341        8.8986        .75854E-05   -1.5296    
  13  norm          77.099        105.75        .91507E-05   -1.3950    
  14  Prefactor     .10000E-03    4.5988        .27863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7968        .28248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1720        4.4385        .54529E-05   -1.5413    
  17  Prefactor     1.0200        10.164        .10647E-04   -1.5506    
  18  Prefactor     .75929        74.676        .17001E-03   -1.5534    
  19  norm          2.9801        3.2249        .33972E-05   -1.5363    
  20  norm          5.7353        2.2182        .16522E-05   -1.5229    
  21  Prefactor     .10000E-03    5.0587        .20770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6434        1.2063        .17235E-05   -1.5452    
  23  norm          .10000E-03    8.0852        .26260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.1695        .19583E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    39.678        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          57.304        15.828        .10600E-04   -1.4193    
  27  Prefactor     .10000E-03    388.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .86782        .49934        .13112E-04   -.97600    
  29  Prefactor     1.0323        .37479        .49423E-04   -.91660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01135e-09
Minuit parameter uncertainties:
  1  3.31642e-06
  2  0.000436877
  3  6.34123
  4  1.77842e-05
  5  64.2404
  6  4.59517e-05
  7  9.77746
  8  0.0542344
  9  1.10271e-05
  10  2.67006e-06
  11  55.5292
  12  8.90139
  13  106.009
  14  2.00226e-05
  15  7.95674e-06
  16  4.4392
  17  6.44077
  18  15.0784
  19  3.22511
  20  2.21824
  21  1.76605e-05
  22  1.20628
  23  5.26746e-05
  24  8.42262e-06
  25  9.62164e-05
  26  15.8292
  27  0.00264842
  28  0.502028
  29  0.375746
Done.

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

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  7.710e+01  1.060e+02  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:  1.032e+00  3.757e-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:  8.678e-01  5.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 249.824 41.496
Photon Flux Upper Limit: 1.92e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809400/likelihoodResults_537926401_538185601_4FGL_J1639.2+4129_daily_bin1152.txt

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) = 2239.79028101
delta logL = 1.66442536466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2239.75251077
delta logL = 1.70219559996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8110       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .52912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2385       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=   2239.753     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      273 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8095        4.3295        .41651E-02    .98612E-04
   2  alpha         5.0000        .63258        .46267    ** at limit **
   3  Normalizat    .52827        .40579        .92150E-01    .18778E-04
   4  Prefactor     1.2389        .32594        .51565E-01    .60445E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.80949
  alpha      = 5
  Normalizat = 0.528266
  Prefactor  = 1.23893
 **********
 **   18 **HESSE 
 **********

 FCN=   2239.753     FROM HESSE     STATUS=OK            29 CALLS      302 TOTAL
                     EDM=   .53E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8095        3.4493        .61575E-04   -1.5226    
   2  alpha         5.0000        .88983        .25150E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .52827        .45955        .40829E-03   -1.1112    
   4  Prefactor     1.2389        .37295        .22795E-03   -.85142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31131e-13
Minuit parameter uncertainties:
  1  3.44937
  2  1.10988e-06
  3  0.462912
  4  0.373749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809400': 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) = 2239.75250232
delta logL = 1.70220405012

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  5.809e+00  3.449e+00  1.000e-04  1.000e+04 ( 1.000e-13)
325        alpha:  5.000e+00  1.110e-06  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:  1.239e+00  3.737e-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:  5.283e-01  4.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.98
Ra Dec: 249.824 41.496
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.60e-07 +/- 1.54e-07
Energy Flux (Free Index): 3.73e-05 +/- 2.21e-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/809400/cmap_HighResolution_537926401_538185601_4FGL_J1639.2+4129_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-05', comment='SUCCESS', energy_flux2='3.73e-05', dlogl='1.70e+00', photon_flux2='2.60e-07', job_status='DONE', time_completed='2021-09-15 05:16:36.542791', photon_index_error2='0.00', photon_index2='5.00', ts='0.97', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.92e-07', energy_flux_error2='2.21e-05', EG='0.87', time_epoch_completed='1631708196.54', return_code='0', job_id='809400', GAL2='1.24', EG2='0.53', return_code2='0', photon_flux_error2='1.54e-07', ts2='4.98', photon_index='2.19' WHERE bin_id='1152' AND source_name='4FGL J1639.2+4129' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 05:16:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 809400: <4FGL_J1639.2+4129_daily_bin1152> in cluster <slac> Done

Job <4FGL_J1639.2+4129_daily_bin1152> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 15 05:02:56 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 05:05:25 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:05:25 2021
Terminated at Wed Sep 15 05:16:37 2021
Results reported at Wed Sep 15 05:16:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1639.2+4129_daily_bin1152 249.824 41.4964 537926401 538185601 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 :                                   591.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            821 sec.

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

