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


Performing analysis on: 4FGL_J1644.9+2620_daily_bin1025
RA = 251.232, Dec = 26.3465
tmin = 505008001, tmax = 505267201
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='885144', job_status='RUN', time_executed='2021-09-15 09:17:10.908625', time_epoch_executed='1631722630.91' WHERE source_name='4FGL J1644.9+2620' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/885144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/885144/ft1_4FGL_J1644.9+2620_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/885144/ft2_4FGL_J1644.9+2620_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/885144/ft1_4FGL_J1644.9+2620_daily_bin1025.fits outfile=/scratch/kocevski/885144/ft1_filteredMKT_4FGL_J1644.9+2620_daily_bin1025.fits ra=251.232 dec=26.3465 rad=12.0 tmin=505008001.0 tmax=505267201.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 4.63
user 4.35
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/885144/ft2_4FGL_J1644.9+2620_daily_bin1025.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/885144/ft2_4FGL_J1644.9+2620_daily_bin1025.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/885144/ft1_filteredMKT_4FGL_J1644.9+2620_daily_bin1025.fits evtable="EVENTS" outfile="/scratch/kocevski/885144/ft1_filtered_4FGL_J1644.9+2620_daily_bin1025.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.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/885144/ft1_filtered_4FGL_J1644.9+2620_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/885144/ft2_4FGL_J1644.9+2620_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/885144/ltcube_505008001_505267201_4FGL_J1644.9+2620_daily_bin1025.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/885144/ft2_4FGL_J1644.9+2620_daily_bin1025.fits
.....................!
real 14.50
user 14.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/885144/ft1_filtered_4FGL_J1644.9+2620_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/885144/ft2_4FGL_J1644.9+2620_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/885144/ltcube_505008001_505267201_4FGL_J1644.9+2620_daily_bin1025.fits outfile=/scratch/kocevski/885144/expmap_505008001_505267201_4FGL_J1644.9+2620_daily_bin1025.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/885144/ltcube_505008001_505267201_4FGL_J1644.9+2620_daily_bin1025.fits
.....................!
real 193.06
user 187.61
sys 5.02

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

Setting source of interest to:
4FGL J1644.9+2620 @ 251.232 26.3465

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/885144/ft1_filtered_4FGL_J1644.9+2620_daily_bin1025.fits scfile=/scratch/kocevski/885144/ft2_4FGL_J1644.9+2620_daily_bin1025.fits outfile=/scratch/kocevski/885144/cmap_505008001_505267201_4FGL_J1644.9+2620_daily_bin1025.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=251.232 yref=26.3465 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/885144/ft1_filtered_4FGL_J1644.9+2620_daily_bin1025.fits scfile=/scratch/kocevski/885144/ft2_4FGL_J1644.9+2620_daily_bin1025.fits outfile=/scratch/kocevski/885144/cmap_HighResolution_505008001_505267201_4FGL_J1644.9+2620_daily_bin1025.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=251.232 yref=26.3465 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.60
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/885144/ft1_filtered_4FGL_J1644.9+2620_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/885144/ft2_4FGL_J1644.9+2620_daily_bin1025.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/885144/Model_4FGL_J1644.9+2620_daily_bin1025.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/885144/ft1_filtered_4FGL_J1644.9+2620_daily_bin1025.fits.....................!
real 53.38
user 51.78
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/885144/ft1_filtered_4FGL_J1644.9+2620_daily_bin1025.fits', '/scratch/kocevski/885144/ft2_4FGL_J1644.9+2620_daily_bin1025.fits', expMap='/scratch/kocevski/885144/expmap_505008001_505267201_4FGL_J1644.9+2620_daily_bin1025.fits', expCube='/scratch/kocevski/885144/ltcube_505008001_505267201_4FGL_J1644.9+2620_daily_bin1025.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/885144/Model_4FGL_J1644.9+2620_daily_bin1025.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1644.9+2620'

4FGL J1644.9+2620
   Spectrum: PowerLaw
305    Prefactor:  4.478e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  4.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/885144/ft1_filtered_4FGL_J1644.9+2620_daily_bin1025.fits
Spacecraft file(s): /scratch/kocevski/885144/ft2_4FGL_J1644.9+2620_daily_bin1025.fits
Exposure map: /scratch/kocevski/885144/expmap_505008001_505267201_4FGL_J1644.9+2620_daily_bin1025.fits
Exposure cube: /scratch/kocevski/885144/ltcube_505008001_505267201_4FGL_J1644.9+2620_daily_bin1025.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/885144/Model_4FGL_J1644.9+2620_daily_bin1025.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) = 6590.5577093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69167E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1702       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .83872E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3736       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .83739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.785       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11156E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4019       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6296       1.0000         .10000E-03   10000.    
    12 'Normalizat'    .67359       1.0000         .10000E-01   10.000    
    13 'Prefactor '    1.0676       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6590.541     FROM MIGRAD    STATUS=FAILED       441 CALLS     1395 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35334E-03    7.3703        .57998E-01** at limit **
   2  Prefactor     6.1718        3.5600        .11071E-03   -.40900E-03
   3  Prefactor     .10000E-03    14.422        .36285E-03** at limit **
   4  norm          .10239E-03    .23289        .81549E-02** at limit **
   5  Prefactor     9.4272        18.852        .13090E-03   -.51903E-03
   6  Prefactor     .10000E-03    8.3631        .18142E-02** at limit **
   7  Prefactor     .86276        14.190        .27381E-02    .18438E-02
   8  Prefactor     20.809        40.879        .87855E-04   -.34551E-04
   9  Prefactor     .10000E-03    28.118        .18142E-02** at limit **
  10  Prefactor     8.3686        13.098        .13830E-03   -.16490E-03
  11  norm          1.6295        2.2322        .13936E-03   -.26513E-03
  12  Normalizat    .67315        .23333        .34215E-03   -.18471E-03
  13  Prefactor     1.0677        .13125        .15978E-03   -.53542E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6590.541     FROM SIMPLEX   STATUS=PROGRESS     518 CALLS     1913 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13851E-03    7.3703        .19422E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1718        3.5600        .15031E-05   -1.5211    
   3  Prefactor     .10000E-03    14.422        .52989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10239E-03    .23289        .84886E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.4272        18.852        .28632E-06   -1.5094    
   6  Prefactor     .10000E-03    8.3631        .46099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .86276        14.190        .12282E-06   -1.5522    
   8  Prefactor     20.809        40.879        .22177E-06   -1.4795    
   9  Prefactor     .10000E-03    28.118        .94499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3686        13.098        .24910E-06   -1.5129    
  11  norm          1.6295        2.2322        .25022E-06   -1.5453    
  12  Normalizat    .67315        .23333        .20713E-06   -1.0496    
  13  Prefactor     1.0677        .13125        .14734E-06   -.90506    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6590.541     FROM MIGRAD    STATUS=CONVERGED     14 CALLS     1927 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12656E-03    12.945       -.65709E-05** at limit **
   2  Prefactor     6.1718        3.5603       -.33925E-06   -.16298E-03
   3  Prefactor     .10000E-03    14.416        .31180E-05** at limit **
   4  norm          .10000E-03    11.857        .10706E-04** at limit **
   5  Prefactor     9.4278        15.606       -.82915E-05    .98978E-04
   6  Prefactor     .10000E-03    8.3658       -.12985E-05** at limit **
   7  Prefactor     .86277        14.195       -.44674E-06    .35169E-05
   8  Prefactor     20.809        40.878        .64403E-07   -.55760E-05
   9  Prefactor     .10000E-03    28.111        .14471E-05** at limit **
  10  Prefactor     8.3687        13.100       -.11467E-05   -.11158E-03
  11  norm          1.6295        2.2323       -.28148E-06   -.18167E-03
  12  Normalizat    .67315        .23333        .44064E-05   -.90223E-04
  13  Prefactor     1.0677        .13107       -.28076E-05   -.44735E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000126562
  Prefactor  = 6.17183
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.42779
  Prefactor  = 0.0001
  Prefactor  = 0.862772
  Prefactor  = 20.8088
  Prefactor  = 0.0001
  Prefactor  = 8.36867
  norm       = 1.62955
  Normalizat = 0.673153
  Prefactor  = 1.06768
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.541     FROM HESSE     STATUS=OK           153 CALLS     2080 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12656E-03    6.4712        .63773E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1718        3.5598        .44285E-05   -1.5211    
   3  Prefactor     .10000E-03    14.422        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .20806        .87336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.4278        18.735        .52359E-05   -1.5094    
   6  Prefactor     .10000E-03    8.3646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .86277        13.715        .54761E-03   -1.5522    
   8  Prefactor     20.809        40.289        .35142E-05   -1.4795    
   9  Prefactor     .10000E-03    28.124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3687        13.097        .55321E-05   -1.5129    
  11  norm          1.6295        2.2322        .55744E-05   -1.5453    
  12  Normalizat    .67315        .23330        .13686E-04   -1.0496    
  13  Prefactor     1.0677        .13132        .31955E-04   -.90506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80962e-10
Minuit parameter uncertainties:
  1  0.0262241
  2  3.55994
  3  0.000167884
  4  7.95175e-06
  5  18.7467
  6  4.30398e-05
  7  6.88135
  8  40.3421
  9  0.000141794
  10  13.1019
  11  2.23227
  12  0.233649
  13  0.131355
Done.

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

Extracting fit parameters...

4FGL J1644.9+2620
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  4.304e-05  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  4.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  1.068e+00  1.314e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  6.732e-01  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 251.232 26.346
Photon Flux Upper Limit: 8.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/885144/likelihoodResults_505008001_505267201_4FGL_J1644.9+2620_daily_bin1025.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): 102
logL (Free Index) = 6590.54173598
delta logL = -0.000569869964238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6590.54116734
delta logL = -1.22883739095e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7681       1.0000          .0000       10.000    
     3 'Normalizat'    .67284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0679       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+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=   6590.541     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      253 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.367        .18142E-01** at limit **
   2  Index         2.3288        5.9937        .50000        .18802E-06
   3  Normalizat    .67315        .11708E-01    .34215E-03   -.24020E-03
   4  Prefactor     1.0677        .68042E-02    .15978E-03   -.51090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32878
  Normalizat = 0.673151
  Prefactor  = 1.06768
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.541     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    431.87        .25139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3288        5.4731        .50000       -.56361    
   3  Normalizat    .67315        .32796E-01    .13686E-04   -1.0496    
   4  Prefactor     1.0677        .19061E-01    .31955E-04   -.90506    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.74552e-10
Minuit parameter uncertainties:
  1  0.000322629
  2  883.853
  3  0.0327974
  4  0.0190612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/885144': 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): 102
logL (Free Index) = 6590.541165
delta logL = 1.10578093881e-06

Extracting fit parameters...

4FGL J1644.9+2620
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  3.226e-04  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.329e+00  8.839e+02  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  4.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  1.068e+00  1.906e-02  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  6.732e-01  3.280e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 251.232 26.346

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/885144/cmap_HighResolution_505008001_505267201_4FGL_J1644.9+2620_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-03', job_status='DONE', photon_flux_upper_limit='8.50e-08', time_completed='2021-09-15 09:27:38.342265', job_id='885144', GAL2='1.07', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1631723258.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1025' AND source_name='4FGL J1644.9+2620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 09:27:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 885144: <4FGL_J1644.9+2620_daily_bin1025> in cluster <slac> Done

Job <4FGL_J1644.9+2620_daily_bin1025> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 15 09:15:21 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 09:16:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 09:16:01 2021
Terminated at Wed Sep 15 09:27:39 2021
Results reported at Wed Sep 15 09:27:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1644.9+2620_daily_bin1025 251.232 26.3465 505008001 505267201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1644.9+2620 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   625.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            738 sec.

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

