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


Performing analysis on: 4FGL_J0644.6+6039_daily_bin1337
RA = 101.162, Dec = 60.6562
tmin = 585878401, tmax = 586137601
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='777800', job_status='RUN', time_executed='2021-08-26 00:23:59.444918', time_epoch_executed='1629962639.44' WHERE source_name='4FGL J0644.6+6039' and cadence='daily' and bin_id='1337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/777800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/777800/ft1_4FGL_J0644.6+6039_daily_bin1337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/777800/ft2_4FGL_J0644.6+6039_daily_bin1337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/777800/ft1_4FGL_J0644.6+6039_daily_bin1337.fits outfile=/scratch/kocevski/777800/ft1_filteredMKT_4FGL_J0644.6+6039_daily_bin1337.fits ra=101.162 dec=60.6562 rad=12.0 tmin=585878401.0 tmax=586137601.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.10
user 2.60
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/777800/ft2_4FGL_J0644.6+6039_daily_bin1337.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/777800/ft1_filteredMKT_4FGL_J0644.6+6039_daily_bin1337.fits evtable="EVENTS" outfile="/scratch/kocevski/777800/ft1_filtered_4FGL_J0644.6+6039_daily_bin1337.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.00
user 0.35
sys 0.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/777800/ft1_filtered_4FGL_J0644.6+6039_daily_bin1337.fits" evtable="EVENTS" scfile=/scratch/kocevski/777800/ft2_4FGL_J0644.6+6039_daily_bin1337.fits sctable="SC_DATA" outfile=/scratch/kocevski/777800/ltcube_585878401_586137601_4FGL_J0644.6+6039_daily_bin1337.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/777800/ft2_4FGL_J0644.6+6039_daily_bin1337.fits
.....................!
real 13.86
user 13.26
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/777800/ft1_filtered_4FGL_J0644.6+6039_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/777800/ft2_4FGL_J0644.6+6039_daily_bin1337.fits sctable="SC_DATA" expcube=/scratch/kocevski/777800/ltcube_585878401_586137601_4FGL_J0644.6+6039_daily_bin1337.fits outfile=/scratch/kocevski/777800/expmap_585878401_586137601_4FGL_J0644.6+6039_daily_bin1337.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/777800/ltcube_585878401_586137601_4FGL_J0644.6+6039_daily_bin1337.fits
.....................!
real 192.85
user 187.14
sys 5.31

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/777800/ft1_filtered_4FGL_J0644.6+6039_daily_bin1337.fits scfile=/scratch/kocevski/777800/ft2_4FGL_J0644.6+6039_daily_bin1337.fits outfile=/scratch/kocevski/777800/cmap_585878401_586137601_4FGL_J0644.6+6039_daily_bin1337.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.75
user 0.37
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/777800/ft1_filtered_4FGL_J0644.6+6039_daily_bin1337.fits scfile=/scratch/kocevski/777800/ft2_4FGL_J0644.6+6039_daily_bin1337.fits outfile=/scratch/kocevski/777800/cmap_HighResolution_585878401_586137601_4FGL_J0644.6+6039_daily_bin1337.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.77
user 0.38
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/777800/ft1_filtered_4FGL_J0644.6+6039_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/777800/ft2_4FGL_J0644.6+6039_daily_bin1337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/777800/Model_4FGL_J0644.6+6039_daily_bin1337.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/777800/ft1_filtered_4FGL_J0644.6+6039_daily_bin1337.fits.....................!
real 63.81
user 61.44
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/777800/ft1_filtered_4FGL_J0644.6+6039_daily_bin1337.fits', '/scratch/kocevski/777800/ft2_4FGL_J0644.6+6039_daily_bin1337.fits', expMap='/scratch/kocevski/777800/expmap_585878401_586137601_4FGL_J0644.6+6039_daily_bin1337.fits', expCube='/scratch/kocevski/777800/ltcube_585878401_586137601_4FGL_J0644.6+6039_daily_bin1337.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/777800/Model_4FGL_J0644.6+6039_daily_bin1337.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/777800/ft1_filtered_4FGL_J0644.6+6039_daily_bin1337.fits
Spacecraft file(s): /scratch/kocevski/777800/ft2_4FGL_J0644.6+6039_daily_bin1337.fits
Exposure map: /scratch/kocevski/777800/expmap_585878401_586137601_4FGL_J0644.6+6039_daily_bin1337.fits
Exposure cube: /scratch/kocevski/777800/ltcube_585878401_586137601_4FGL_J0644.6+6039_daily_bin1337.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/777800/Model_4FGL_J0644.6+6039_daily_bin1337.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) = 3435.33914651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30033E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.760       1.0000         .10000E-03   10000.    
     6 'Prefactor '    82.880       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    262.75       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.769       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.794       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4570       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0775       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1663       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.609       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15998       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88364       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0142       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=   3435.339     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     3680 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.943        .73400E-06** at limit **
   2  Prefactor     .10000E-03    44.519       -.66286E-06** at limit **
   3  norm          .10000E-03    109.07       -.19499E-05** at limit **
   4  Prefactor     .10001E-03    6617.5       -.25608E-04** at limit **
   5  Prefactor     61.765        45.503        .12407E-05   -.23666E-04
   6  Prefactor     82.886        68.241        .95691E-06   -.13617E-04
   7  Prefactor     .10000E-03    18.212       -.12342E-06** at limit **
   8  Prefactor     .10000E-03    75.133        .21993E-05** at limit **
   9  Prefactor     262.73        148.69       -.22142E-06   -.80997E-05
  10  Prefactor     .10000E-03    75.751        .14608E-05** at limit **
  11  norm          .10000E-03    5.1685       -.10208E-07** at limit **
  12  norm          10.769        17.116        .77459E-06   -.26620E-05
  13  Prefactor     11.792        31.109        .11119E-05   -.52915E-05
  14  Prefactor     .10000E-03    28.580       -.14950E-06** at limit **
  15  Prefactor     .10000E-03    23.627       -.44662E-06** at limit **
  16  norm          2.4570        .91988        .63665E-07   -.17835E-03
  17  Prefactor     .10000E-03    149.72        .72262E-06** at limit **
  18  Prefactor     .10000E-03    94.973       -.96978E-06** at limit **
  19  norm          1.0774        1.1517        .55577E-07    .41105E-05
  20  Prefactor     .10000E-03    48.210        .65071E-06** at limit **
  21  norm          3.1672        4.0080        .29438E-06   -.12749E-03
  22  Prefactor     23.607        41.092        .79266E-06   -.11381E-04
  23  Prefactor     .15877        1.6456        .40937E-06   -.25523E-03
  24  Normalizat    .88371        .30737        .36626E-06   -.13992E-03
  25  Prefactor     1.0141        .15197       -.41091E-05   -.25482E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 61.7647
  Prefactor  = 82.8858
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 262.734
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.7685
  Prefactor  = 11.7918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.45697
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.07744
  Prefactor  = 0.0001
  norm       = 3.16721
  Prefactor  = 23.607
  Prefactor  = 0.158771
  Normalizat = 0.883714
  Prefactor  = 1.01407
 **********
 **   18 **HESSE 
 **********

 FCN=   3435.339     FROM HESSE     STATUS=OK           421 CALLS     4101 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    44.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    109.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    6617.3        .36689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     61.765        45.530        .51058E-04   -1.4135    
   6  Prefactor     82.886        68.278        .44121E-04   -1.3885    
   7  Prefactor     .10000E-03    18.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    77.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     262.73        148.84        .12504E-03   -1.2452    
  10  Prefactor     .10000E-03    75.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.1721        .13014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.769        17.115        .61045E-03   -1.5052    
  13  Prefactor     11.792        31.111        .11665E-03   -1.5021    
  14  Prefactor     .10000E-03    28.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4570        .92448        .32746E-04   -1.5394    
  17  Prefactor     .10000E-03    151.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    94.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0774        1.1536        .63230E-04   -1.5500    
  20  Prefactor     .10000E-03    48.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1672        3.9930        .12027E-03   -1.5352    
  22  Prefactor     23.607        41.093        .82439E-04   -1.4736    
  23  Prefactor     .15877        7.3371        .13768E-02   -1.5628    
  24  Normalizat    .88371        .33700        .37092E-03   -.97035    
  25  Prefactor     1.0141        .15951        .17640E-03   -.92262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69883e-10
Minuit parameter uncertainties:
  1  2.73327e-06
  2  4.38574e-05
  3  0.000104395
  4  0.0116616
  5  45.5554
  6  68.3431
  7  1.6451e-05
  8  0.000574931
  9  149.056
  10  7.17608e-05
  11  1.88317e-06
  12  17.1228
  13  31.154
  14  1.02553e-05
  15  3.11334e-05
  16  0.924483
  17  0.00055286
  18  9.63939e-05
  19  1.15365
  20  4.69345e-05
  21  3.99336
  22  41.1421
  23  2.15824
  24  0.337804
  25  0.159586
Done.

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

Extracting fit parameters...

4FGL J0644.6+6039
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  7.176e-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:  1.014e+00  1.596e-01  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:  8.837e-01  3.378e-01  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.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/777800/likelihoodResults_585878401_586137601_4FGL_J0644.6+6039_daily_bin1337.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) = 3435.33881809
delta logL = -6.26684127383e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3435.32481141
delta logL = 0.0139440047046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92222       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3108       1.0000          .0000       10.000    
     3 'Normalizat'    .86962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0162       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.

 FCN=   3435.325     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      277 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92218        76.004        .43230E-01    .24526E-03
   2  Index         3.3107        3.9151        .11337        .84377E-04
   3  Normalizat    .86963        .34884E-01    .84366E-01    .12991E-04
   4  Prefactor     1.0162        .17748E-01    .42539E-01   -.96392E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.922179
  Index      = 3.31072
  Normalizat = 0.869634
  Prefactor  = 1.01622
 **********
 **   18 **HESSE 
 **********

 FCN=   3435.325     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      312 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92218        1337.4        .23856E-02   -1.5516    
   2  Index         3.3107        7.9008        .13426E-01   -.34464    
   3  Normalizat    .86963        .19925        .37356E-03   -.97535    
   4  Prefactor     1.0162        .97141E-01    .17621E-03   -.92191    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.38317e-08
Minuit parameter uncertainties:
  1  71.9049
  2  23.402
  3  0.199421
  4  0.0971582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/777800': 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) = 3435.3248114
delta logL = 0.0139440158136

Extracting fit parameters...

4FGL J0644.6+6039
   Spectrum: PowerLaw
235    Prefactor:  9.222e-01  7.190e+01  1.000e-04  1.000e+04 ( 1.000e-14)
236        Index:  3.311e+00  2.340e+01  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:  1.016e+00  9.716e-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:  8.696e-01  1.994e-01  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/777800/cmap_HighResolution_585878401_586137601_4FGL_J0644.6+6039_daily_bin1337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2021-08-26 00:34:29.921091', job_id='777800', GAL2='1.02', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1629963269.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.39e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1337' AND source_name='4FGL J0644.6+6039' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 00:34:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 777800: <4FGL_J0644.6+6039_daily_bin1337> in cluster <slac> Done

Job <4FGL_J0644.6+6039_daily_bin1337> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 26 00:20:39 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 00:21:40 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:21:40 2021
Terminated at Thu Aug 26 00:34:30 2021
Results reported at Thu Aug 26 00:34:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0644.6+6039_daily_bin1337 101.162 60.6562 585878401 586137601 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 :                                   627.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            831 sec.

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

