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


Performing analysis on: 4FGL_J0644.6+6039_daily_bin1510
RA = 101.162, Dec = 60.6562
tmin = 630720001, tmax = 630979201
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='779095', job_status='RUN', time_executed='2021-08-26 00:28:37.730756', time_epoch_executed='1629962917.73' WHERE source_name='4FGL J0644.6+6039' and cadence='daily' and bin_id='1510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779095

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779095/ft1_4FGL_J0644.6+6039_daily_bin1510.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779095/ft2_4FGL_J0644.6+6039_daily_bin1510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779095/ft1_4FGL_J0644.6+6039_daily_bin1510.fits outfile=/scratch/kocevski/779095/ft1_filteredMKT_4FGL_J0644.6+6039_daily_bin1510.fits ra=101.162 dec=60.6562 rad=12.0 tmin=630720001.0 tmax=630979201.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.66
user 2.71
sys 0.61

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/779095/ft2_4FGL_J0644.6+6039_daily_bin1510.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779095/ft2_4FGL_J0644.6+6039_daily_bin1510.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/779095/ft1_filteredMKT_4FGL_J0644.6+6039_daily_bin1510.fits evtable="EVENTS" outfile="/scratch/kocevski/779095/ft1_filtered_4FGL_J0644.6+6039_daily_bin1510.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 1.13
user 0.33
sys 0.55

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779095/ft1_filtered_4FGL_J0644.6+6039_daily_bin1510.fits" evtable="EVENTS" scfile=/scratch/kocevski/779095/ft2_4FGL_J0644.6+6039_daily_bin1510.fits sctable="SC_DATA" outfile=/scratch/kocevski/779095/ltcube_630720001_630979201_4FGL_J0644.6+6039_daily_bin1510.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/779095/ft2_4FGL_J0644.6+6039_daily_bin1510.fits
.....................!
real 13.92
user 12.71
sys 0.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779095/ft1_filtered_4FGL_J0644.6+6039_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/779095/ft2_4FGL_J0644.6+6039_daily_bin1510.fits sctable="SC_DATA" expcube=/scratch/kocevski/779095/ltcube_630720001_630979201_4FGL_J0644.6+6039_daily_bin1510.fits outfile=/scratch/kocevski/779095/expmap_630720001_630979201_4FGL_J0644.6+6039_daily_bin1510.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/779095/ltcube_630720001_630979201_4FGL_J0644.6+6039_daily_bin1510.fits
.....................!
real 192.44
user 185.61
sys 5.36

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 189 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0644.6+6039 @ 101.162 60.6562

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/779095/ft1_filtered_4FGL_J0644.6+6039_daily_bin1510.fits scfile=/scratch/kocevski/779095/ft2_4FGL_J0644.6+6039_daily_bin1510.fits outfile=/scratch/kocevski/779095/cmap_630720001_630979201_4FGL_J0644.6+6039_daily_bin1510.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=101.162 yref=60.6562 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.95
user 0.38
sys 0.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779095/ft1_filtered_4FGL_J0644.6+6039_daily_bin1510.fits scfile=/scratch/kocevski/779095/ft2_4FGL_J0644.6+6039_daily_bin1510.fits outfile=/scratch/kocevski/779095/cmap_HighResolution_630720001_630979201_4FGL_J0644.6+6039_daily_bin1510.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=101.162 yref=60.6562 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.95
user 0.38
sys 0.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/779095/ft1_filtered_4FGL_J0644.6+6039_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/779095/ft2_4FGL_J0644.6+6039_daily_bin1510.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/779095/Model_4FGL_J0644.6+6039_daily_bin1510.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
Working on...
/scratch/kocevski/779095/ft1_filtered_4FGL_J0644.6+6039_daily_bin1510.fits.....................!
real 63.92
user 61.99
sys 1.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/779095/ft1_filtered_4FGL_J0644.6+6039_daily_bin1510.fits', '/scratch/kocevski/779095/ft2_4FGL_J0644.6+6039_daily_bin1510.fits', expMap='/scratch/kocevski/779095/expmap_630720001_630979201_4FGL_J0644.6+6039_daily_bin1510.fits', expCube='/scratch/kocevski/779095/ltcube_630720001_630979201_4FGL_J0644.6+6039_daily_bin1510.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/779095/Model_4FGL_J0644.6+6039_daily_bin1510.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0644.6+6039'

4FGL J0644.6+6039
   Spectrum: PowerLaw
235    Prefactor:  4.581e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
236        Index:  2.071e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  2.636e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/779095/ft1_filtered_4FGL_J0644.6+6039_daily_bin1510.fits
Spacecraft file(s): /scratch/kocevski/779095/ft2_4FGL_J0644.6+6039_daily_bin1510.fits
Exposure map: /scratch/kocevski/779095/expmap_630720001_630979201_4FGL_J0644.6+6039_daily_bin1510.fits
Exposure cube: /scratch/kocevski/779095/ltcube_630720001_630979201_4FGL_J0644.6+6039_daily_bin1510.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/779095/Model_4FGL_J0644.6+6039_daily_bin1510.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) = 3011.39798834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.989       1.0000         .10000E-03   10000.    
     3 'norm      '    43.102       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.202       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.776       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    163.21       1.0000         .10000E-03   10000.    
    12 'norm      '    10000.       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9175       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10000.       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10619E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96882       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3011.336     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     3068 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.249        .96946E-08** at limit **
   2  Prefactor     32.989        52.055        .82401E-08    .14600E-04
   3  norm          43.170        104.15        .67690E-06   -.48644E-05
   4  Prefactor     30.025        471.90       -.62390E-06    .52573E-05
   5  Prefactor     .10000E-03    90.967        .32591E-06** at limit **
   6  Prefactor     .10000E-03    32.203        .12977E-06** at limit **
   7  Prefactor     .10000E-03    602.61        .22926E-05** at limit **
   8  Prefactor     13.781        30.444       -.13547E-05    .31588E-04
   9  Prefactor     .10000E-03    53.508       -.31471E-06** at limit **
  10  Prefactor     .10000E-03    35.034       -.17643E-06** at limit **
  11  norm          160.67        6564.8       -.87081E-05    .27180E-05
  12  norm         10000.0        1004.0        .59859E-05** at limit **
  13  Prefactor     .10000E-03    115.88        .67781E-06** at limit **
  14  Prefactor    10000.0        6341.1        .99483E-06** at limit **
  15  Prefactor     .10000E-03    164.91       -.12403E-06** at limit **
  16  norm          2.9176        .81656       -.33354E-07    .31999E-03
  17  Prefactor    10000.0        669.57        .49897E-05** at limit **
  18  Prefactor     .10000E-03    54.684       -.26232E-06** at limit **
  19  norm         10000.0        126.41       -.52925E-06** at limit **
  20  Prefactor     .10000E-03    8.9056       -.87390E-08** at limit **
  21  norm          .10000E-03    12.733       -.52595E-08** at limit **
  22  Prefactor     .10000E-03    207.48       -.90718E-06** at limit **
  23  Prefactor     .10000E-03    .39328       -.43486E-08** at limit **
  24  Normalizat    .10000E-01    .10493       -.68628E-05** at limit **
  25  Prefactor     .96891        .92091E-01   -.18813E-05    .24222E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 32.9889
  norm       = 43.1702
  Prefactor  = 30.0253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 160.67
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 2.91762
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.968909
 **********
 **   18 **HESSE 
 **********

 FCN=   3011.336     FROM HESSE     STATUS=OK           425 CALLS     3493 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.989        52.262        .69766E-04   -1.4559    
   3  norm          43.170        104.14        .30532E-03   -1.4393    
   4  Prefactor     30.025        477.04        .36453E-03   -1.4612    
   5  Prefactor     .10000E-03    91.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.029        .12409       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.781        30.578        .10792E-03   -1.4965    
   9  Prefactor     .10000E-03    53.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          160.67        6598.4        .15785E-03   -1.3166    
  12  norm         10000.0        1007.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    115.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        6341.0        .21434E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    164.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9176        .81768        .25324E-04   -1.5366    
  17  Prefactor    10000.0        672.36        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    54.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        126.47        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9063        .15996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    12.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    207.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .39340        .33610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .10792        .96774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .96891        .93702E-01    .15016E-03   -.93773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30995e-10
Minuit parameter uncertainties:
  1  1.03528e-05
  2  52.3348
  3  104.579
  4  241.681
  5  0.000384811
  6  5.86142e-05
  7  0.000298273
  8  30.6124
  9  0.000104939
  10  4.21252e-05
  11  1873.75
  12  0.00883518
  13  0.000338613
  14  0.00252259
  15  7.20129e-05
  16  0.817679
  17  0.00600708
  18  8.52825e-05
  19  0.000275223
  20  6.09754e-08
  21  1.43551e-07
  22  0.000601585
  23  3.40249e-08
  24  2.66435e-06
  25  0.0937174
Done.

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

Extracting fit parameters...

4FGL J0644.6+6039
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  4.213e-05  1.000e-04  1.000e+04 ( 1.000e-14)
236        Index:  2.071e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  2.636e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  9.689e-01  9.372e-02  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.000e-02  2.664e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 101.162 60.656
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779095/likelihoodResults_630720001_630979201_4FGL_J0644.6+6039_daily_bin1510.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) = 3011.33648412
delta logL = -0.000145424031416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3011.33633928
delta logL = -5.91191565036e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2070       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+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=   3011.336     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      287 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10160E-03    106.61        .18142E-02** at limit **
   2  Index         2.1390        5.2289        .50000        .13567E-04
   3  Normalizat    .10000E-01    .75721E-03    .96774E-02** at limit **
   4  Prefactor     .96891        .69313E-02    .15016E-03    .97665E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101598
  Index      = 2.139
  Normalizat = 0.01
  Prefactor  = 0.968909
 **********
 **   18 **HESSE 
 **********

 FCN=   3011.336     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10160E-03    463.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1390        5.9150        .50000       -.60919    
   3  Normalizat    .10000E-01    .34177E-02    .19355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .96891        .14723E-01    .60065E-05   -.93773    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.63296e-09
Minuit parameter uncertainties:
  1  0.0548895
  2  285.905
  3  8.37137e-09
  4  0.0147228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779095': 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) = 3011.33633892
delta logL = -2.26180873142e-07

Extracting fit parameters...

4FGL J0644.6+6039
   Spectrum: PowerLaw
235    Prefactor:  1.016e-04  5.489e-02  1.000e-04  1.000e+04 ( 1.000e-14)
236        Index:  2.139e+00  2.859e+02  0.000e+00  1.000e+01 (-1.000e+00)
237        Scale:  2.636e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  9.689e-01  1.472e-02  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.000e-02  8.371e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 101.162 60.656

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/779095/cmap_HighResolution_630720001_630979201_4FGL_J0644.6+6039_daily_bin1510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-08-26 00:38:14.068497', job_id='779095', GAL2='0.97', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629963494.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-2.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1510' AND source_name='4FGL J0644.6+6039' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 00:38:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 779095: <4FGL_J0644.6+6039_daily_bin1510> in cluster <slac> Done

Job <4FGL_J0644.6+6039_daily_bin1510> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 26 00:25:16 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 00:25:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 00:25:18 2021
Terminated at Thu Aug 26 00:38:16 2021
Results reported at Thu Aug 26 00:38:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0644.6+6039_daily_bin1510 101.162 60.6562 630720001 630979201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0644.6+6039 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   577.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             224.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

