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


Performing analysis on: 4FGL_J1639.2+4129_daily_bin1179
RA = 249.824, Dec = 41.4964
tmin = 544924801, tmax = 545184001
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='809432', job_status='RUN', time_executed='2021-09-15 05:08:11.541004', time_epoch_executed='1631707691.54' WHERE source_name='4FGL J1639.2+4129' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809432/ft1_4FGL_J1639.2+4129_daily_bin1179.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809432/ft2_4FGL_J1639.2+4129_daily_bin1179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809432/ft1_4FGL_J1639.2+4129_daily_bin1179.fits outfile=/scratch/kocevski/809432/ft1_filteredMKT_4FGL_J1639.2+4129_daily_bin1179.fits ra=249.824 dec=41.4964 rad=12.0 tmin=544924801.0 tmax=545184001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.52
user 3.18
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809432/ft2_4FGL_J1639.2+4129_daily_bin1179.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/809432/ft1_filteredMKT_4FGL_J1639.2+4129_daily_bin1179.fits evtable="EVENTS" outfile="/scratch/kocevski/809432/ft1_filtered_4FGL_J1639.2+4129_daily_bin1179.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.74
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809432/ft1_filtered_4FGL_J1639.2+4129_daily_bin1179.fits" evtable="EVENTS" scfile=/scratch/kocevski/809432/ft2_4FGL_J1639.2+4129_daily_bin1179.fits sctable="SC_DATA" outfile=/scratch/kocevski/809432/ltcube_544924801_545184001_4FGL_J1639.2+4129_daily_bin1179.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/809432/ft2_4FGL_J1639.2+4129_daily_bin1179.fits
.....................!
real 11.14
user 10.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809432/ft1_filtered_4FGL_J1639.2+4129_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/809432/ft2_4FGL_J1639.2+4129_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/809432/ltcube_544924801_545184001_4FGL_J1639.2+4129_daily_bin1179.fits outfile=/scratch/kocevski/809432/expmap_544924801_545184001_4FGL_J1639.2+4129_daily_bin1179.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/809432/ltcube_544924801_545184001_4FGL_J1639.2+4129_daily_bin1179.fits
.....................!
real 156.93
user 151.75
sys 4.29

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/809432/ft1_filtered_4FGL_J1639.2+4129_daily_bin1179.fits scfile=/scratch/kocevski/809432/ft2_4FGL_J1639.2+4129_daily_bin1179.fits outfile=/scratch/kocevski/809432/cmap_544924801_545184001_4FGL_J1639.2+4129_daily_bin1179.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 1.03
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809432/ft1_filtered_4FGL_J1639.2+4129_daily_bin1179.fits scfile=/scratch/kocevski/809432/ft2_4FGL_J1639.2+4129_daily_bin1179.fits outfile=/scratch/kocevski/809432/cmap_HighResolution_544924801_545184001_4FGL_J1639.2+4129_daily_bin1179.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.48
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.499       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.698       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .38064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15888E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    252.20       1.0000         .10000E-03   10000.    
     9 'norm      '    .93633       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .37309E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.914       1.0000         .10000E-03   10000.    
    13 'norm      '    134.99       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .37526       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12213E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .15829E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.500       1.0000         .10000E-03   10000.    
    22 'norm      '    .62335E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    .14726E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .48556E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.203       1.0000         .10000E-03   10000.    
    26 'norm      '    15.288       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .37222E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .68894       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93531       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=   1843.517     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     4608 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.475        78.895       -.22605E-06    .27396E-04
   2  Prefactor     .10005E-03    467.46        .75630E-05** at limit **
   3  Prefactor     8.9082        8.8989        .24788E-06    .56054E-03
   4  Prefactor     45.715        48.321       -.80581E-06   -.46199E-04
   5  Prefactor     .10000E-03    350.25       -.12129E-05** at limit **
   6  Prefactor     .10001E-03    221.93       -.40725E-05** at limit **
   7  Prefactor     .10000E-03    5.0080        .13168E-06** at limit **
   8  norm          252.23        507.07       -.24980E-05   -.77918E-05
   9  norm          .93630        .41063       -.41671E-08    .11388E-02
  10  norm          .10000E-03    77.018       -.33561E-06** at limit **
  11  Prefactor     .10001E-03    346.19       -.12769E-04** at limit **
  12  Prefactor     12.912        15.888        .28543E-06    .79469E-04
  13  norm          134.65        162.86       -.31472E-05   -.80162E-04
  14  Prefactor     .10000E-03    2.6541       -.99378E-06** at limit **
  15  Prefactor     .38369        11.002       -.32745E-05    .24767E-03
  16  Prefactor     .10000E-03    15.169        .20981E-06** at limit **
  17  Prefactor     .10000E-03    4.0187        .10577E-07** at limit **
  18  Prefactor     .10001E-03    310.19       -.38985E-05** at limit **
  19  norm          .10010E-03    7.6246        .10102E-05** at limit **
  20  norm          .10000E-03    3.1579       -.24994E-07** at limit **
  21  Prefactor     34.641        55.392       -.22230E-06   -.10131E-03
  22  norm          .37636E-01    59.139       -.83223E-05    .33133E-03
  23  norm          .10000E-03    82.321        .23874E-05** at limit **
  24  norm          .10006E-03    67.136       -.37639E-05** at limit **
  25  Prefactor     24.176        157.74       -.54514E-06    .16739E-04
  26  norm          15.316        17.687        .37048E-06    .12452E-03
  27  Prefactor     .10000E-03    306.41       -.29993E-06** at limit **
  28  Normalizat    .68880        .43946        .34308E-06    .21275E-03
  29  Prefactor     .93570        .31719        .17503E-05    .28074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.4749
  Prefactor  = 0.000100046
  Prefactor  = 8.9082
  Prefactor  = 45.7154
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 252.229
  norm       = 0.936296
  norm       = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 12.9122
  norm       = 134.651
  Prefactor  = 0.0001
  Prefactor  = 0.383689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.000100104
  norm       = 0.0001
  Prefactor  = 34.6408
  norm       = 0.0376362
  norm       = 0.000100001
  norm       = 0.000100062
  Prefactor  = 24.1762
  norm       = 15.3165
  Prefactor  = 0.000100001
  Normalizat = 0.688797
  Prefactor  = 0.935696
 **********
 **   18 **HESSE 
 **********

 FCN=   1843.517     FROM HESSE     STATUS=OK           541 CALLS     5149 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.475        79.032        .59440E-04   -1.4358    
   2  Prefactor     .10005E-03    471.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9082        8.9934        .10961E-03   -1.5111    
   4  Prefactor     45.715        48.295        .59311E-04   -1.4355    
   5  Prefactor     .10000E-03    350.39        .21286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    222.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0233        .93829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          252.23        507.39        .12756E-03   -1.2518    
   9  norm          .93630        .41745        .15374E-04   -1.5514    
  10  norm          .10000E-03    77.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    349.04        .42590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.912        15.900        .11147E-03   -1.4989    
  13  norm          134.65        167.20        .17331E-03   -1.3382    
  14  Prefactor     .10000E-03    2.5353        .13080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .38369        11.885        .16156E-02   -1.5584    
  16  Prefactor     .10000E-03    15.173        .16339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0241        .84068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    311.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10010E-03    15.049        .13554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.1668        .74599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     34.641        60.184        .68226E-04   -1.4530    
  22  norm          .37636E-01    86.187        .12529E-02   -1.5669    
  23  norm          .10000E-03    83.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10006E-03    71.032        .34918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     24.176        160.66        .81423E-04   -1.4724    
  26  norm          15.316        17.632        .10243E-03   -1.4925    
  27  Prefactor     .10000E-03    306.81        .21296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .68880        .54003        .34284E-03   -1.0434    
  29  Prefactor     .93570        .39234        .22255E-03   -.94905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3539e-08
Minuit parameter uncertainties:
  1  79.2145
  2  0.00940474
  3  8.99475
  4  48.3359
  5  0.000700889
  6  0.00330913
  7  1.79519e-05
  8  516.692
  9  0.417448
  10  0.00039733
  11  0.0028207
  12  15.9051
  13  167.789
  14  3.6019e-05
  15  4.27129
  16  4.70351e-05
  17  2.48445e-06
  18  0.00389584
  19  0.00249992
  20  2.3898e-06
  21  60.2897
  22  3.60249
  23  0.000502668
  24  0.00418699
  25  125.136
  26  17.6381
  27  0.00130046
  28  0.544269
  29  0.393533
Done.

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

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  1.347e+02  1.678e+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:  9.357e-01  3.935e-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:  6.888e-01  5.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 249.824 41.496
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.16e-08 +/- 8.93e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 3.93e-05

TS (Fixed Index): 1.30
Ra Dec: 249.824 41.496
Photon Flux Upper Limit: 2.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809432/likelihoodResults_544924801_545184001_4FGL_J1639.2+4129_daily_bin1179.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) = 1843.42267659
delta logL = 0.0945237602309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1843.41969402
delta logL = 0.0975063316614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    115.11       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6366       1.0000          .0000       5.0000    
     3 'Normalizat'    .66509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94770       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=   1843.420     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      288 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          115.26        142.89        .18749E-03    .75794E-06
   2  alpha         2.6380        1.0154        .12742E-01    .46310E-04
   3  Normalizat    .66515        .49737        .34811E-03   -.63112E-05
   4  Prefactor     .94757        .37470        .22118E-03    .11912E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 115.262
  alpha      = 2.63796
  Normalizat = 0.665146
  Prefactor  = 0.947566
 **********
 **   18 **HESSE 
 **********

 FCN=   1843.420     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          115.26        139.87        .74997E-05   -1.3557    
   2  alpha         2.6380        .99481        .25483E-02    .55213E-01
   3  Normalizat    .66515        .49787        .13925E-04   -1.0529    
   4  Prefactor     .94757        .37507        .88471E-05   -.94498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39693e-12
Minuit parameter uncertainties:
  1  140.273
  2  1.02323
  3  0.501294
  4  0.376105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809432': 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) = 1843.4196908
delta logL = 0.0975095468725

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  1.153e+02  1.403e+02  1.000e-04  1.000e+04 ( 1.000e-13)
325        alpha:  2.638e+00  1.023e+00  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:  9.476e-01  3.761e-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:  6.651e-01  5.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 249.824 41.496
Photon Index (Free Index): 2.64 +/- 1.02
Photon Flux (Free Index): 1.06e-07 +/- 1.30e-07
Energy Flux (Free Index): 3.19e-05 +/- 3.23e-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/809432/cmap_HighResolution_544924801_545184001_4FGL_J1639.2+4129_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-04', comment='SUCCESS', photon_flux='7.16e-08', energy_flux2='3.19e-05', photon_flux_error='8.93e-08', dlogl='9.75e-02', energy_flux='3.15e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-15 05:15:21.132013', photon_index_error2='1.02', photon_index2='2.64', ts='1.30', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='2.69e-07', energy_flux_error2='3.23e-05', EG='0.69', time_epoch_completed='1631708121.13', return_code='0', job_id='809432', GAL2='0.95', EG2='0.67', return_code2='0', energy_flux_error='3.93e-05', photon_flux_error2='1.30e-07', ts2='1.52', photon_index='2.19' WHERE bin_id='1179' AND source_name='4FGL J1639.2+4129' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 05:15:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 809432: <4FGL_J1639.2+4129_daily_bin1179> in cluster <slac> Done

Job <4FGL_J1639.2+4129_daily_bin1179> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 15 05:03:00 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 05:06:05 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:06:05 2021
Terminated at Wed Sep 15 05:15:22 2021
Results reported at Wed Sep 15 05:15:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1639.2+4129_daily_bin1179 249.824 41.4964 544924801 545184001 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 :                                   422.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            742 sec.

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

