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


Performing analysis on: 4FGL_J0638.6+7320_daily_bin778
RA = 99.6711, Dec = 73.3438
tmin = 440985601, tmax = 441244801
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='587047', job_status='RUN', time_executed='2021-08-25 13:41:27.090487', time_epoch_executed='1629924087.09' WHERE source_name='4FGL J0638.6+7320' and cadence='daily' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587047

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587047/ft1_4FGL_J0638.6+7320_daily_bin778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587047/ft2_4FGL_J0638.6+7320_daily_bin778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587047/ft1_4FGL_J0638.6+7320_daily_bin778.fits outfile=/scratch/kocevski/587047/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin778.fits ra=99.6711 dec=73.3438 rad=12.0 tmin=440985601.0 tmax=441244801.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.82
user 3.24
sys 0.56

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/587047/ft2_4FGL_J0638.6+7320_daily_bin778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/587047/ft2_4FGL_J0638.6+7320_daily_bin778.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/587047/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin778.fits evtable="EVENTS" outfile="/scratch/kocevski/587047/ft1_filtered_4FGL_J0638.6+7320_daily_bin778.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587047/ft1_filtered_4FGL_J0638.6+7320_daily_bin778.fits" evtable="EVENTS" scfile=/scratch/kocevski/587047/ft2_4FGL_J0638.6+7320_daily_bin778.fits sctable="SC_DATA" outfile=/scratch/kocevski/587047/ltcube_440985601_441244801_4FGL_J0638.6+7320_daily_bin778.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/587047/ft2_4FGL_J0638.6+7320_daily_bin778.fits
.....................!
real 13.47
user 13.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587047/ft1_filtered_4FGL_J0638.6+7320_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/587047/ft2_4FGL_J0638.6+7320_daily_bin778.fits sctable="SC_DATA" expcube=/scratch/kocevski/587047/ltcube_440985601_441244801_4FGL_J0638.6+7320_daily_bin778.fits outfile=/scratch/kocevski/587047/expmap_440985601_441244801_4FGL_J0638.6+7320_daily_bin778.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/587047/ltcube_440985601_441244801_4FGL_J0638.6+7320_daily_bin778.fits
.....................!
real 192.49
user 187.92
sys 4.15

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

Setting source of interest to:
4FGL J0638.6+7320 @ 99.6711 73.3438

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/587047/ft1_filtered_4FGL_J0638.6+7320_daily_bin778.fits scfile=/scratch/kocevski/587047/ft2_4FGL_J0638.6+7320_daily_bin778.fits outfile=/scratch/kocevski/587047/cmap_440985601_441244801_4FGL_J0638.6+7320_daily_bin778.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=99.6711 yref=73.3438 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.69
user 0.38
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587047/ft1_filtered_4FGL_J0638.6+7320_daily_bin778.fits scfile=/scratch/kocevski/587047/ft2_4FGL_J0638.6+7320_daily_bin778.fits outfile=/scratch/kocevski/587047/cmap_HighResolution_440985601_441244801_4FGL_J0638.6+7320_daily_bin778.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=99.6711 yref=73.3438 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.68
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/587047/ft1_filtered_4FGL_J0638.6+7320_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/587047/ft2_4FGL_J0638.6+7320_daily_bin778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/587047/Model_4FGL_J0638.6+7320_daily_bin778.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/587047/ft1_filtered_4FGL_J0638.6+7320_daily_bin778.fits.....................!
real 126.46
user 124.48
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/587047/ft1_filtered_4FGL_J0638.6+7320_daily_bin778.fits', '/scratch/kocevski/587047/ft2_4FGL_J0638.6+7320_daily_bin778.fits', expMap='/scratch/kocevski/587047/expmap_440985601_441244801_4FGL_J0638.6+7320_daily_bin778.fits', expCube='/scratch/kocevski/587047/ltcube_440985601_441244801_4FGL_J0638.6+7320_daily_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/587047/Model_4FGL_J0638.6+7320_daily_bin778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0638.6+7320'

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  9.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  3.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/587047/ft1_filtered_4FGL_J0638.6+7320_daily_bin778.fits
Spacecraft file(s): /scratch/kocevski/587047/ft2_4FGL_J0638.6+7320_daily_bin778.fits
Exposure map: /scratch/kocevski/587047/expmap_440985601_441244801_4FGL_J0638.6+7320_daily_bin778.fits
Exposure cube: /scratch/kocevski/587047/ltcube_440985601_441244801_4FGL_J0638.6+7320_daily_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/587047/Model_4FGL_J0638.6+7320_daily_bin778.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) = 10649.7375909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7968       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.116       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.147       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2889       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.055       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1304       1.0000         .10000E-03   10000.    
    14 'norm      '    7.0427       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3301       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1302       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89372       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10649.67     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1871 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5036        .78221E-08** at limit **
   2  Prefactor     .10000E-03    2.2750        .12340E-07** at limit **
   3  Prefactor     .10000E-03    11.416       -.60865E-06** at limit **
   4  Prefactor     .10000E-03    6.6339        .41426E-06** at limit **
   5  norm          2.7812        2089.5       -.92203E-04    .63100E-06
   6  Prefactor     19.116        27.577       -.11908E-06   -.92270E-05
   7  Prefactor     .10000E-03    27.936       -.14342E-05** at limit **
   8  Prefactor     .10000E-03    7.9311       -.29254E-05** at limit **
   9  Prefactor     26.149        23.807        .22205E-05   -.63514E-05
  10  norm          .10000E-03    15.617       -.44509E-05** at limit **
  11  norm          3.2889        .81632       -.10121E-06   -.39424E-03
  12  Prefactor     21.107        86.405        .10667E-03   -.14923E-05
  13  Prefactor     7.1343        26.193        .81750E-05   -.33914E-04
  14  norm          7.0436        12.405       -.16099E-05   -.89278E-03
  15  Prefactor     .10000E-03    18.485        .55888E-05** at limit **
  16  Prefactor     .10000E-03    8.6634        .39044E-05** at limit **
  17  Prefactor     .10000E-03    2.2444        .23765E-07** at limit **
  18  norm          4.3304        2.0704        .12381E-07   -.51183E-03
  19  Prefactor     .10000E-03    8.1661       -.38807E-06** at limit **
  20  Normalizat    1.1300        .16002       -.40521E-05    .19119E-03
  21  Prefactor     .89378        .76121E-01    .98345E-06   -.39223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.78119
  Prefactor  = 19.1156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1492
  norm       = 0.0001
  norm       = 3.28891
  Prefactor  = 21.1071
  Prefactor  = 7.13431
  norm       = 7.04363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.33035
  Prefactor  = 0.0001
  Normalizat = 1.13005
  Prefactor  = 0.893777
 **********
 **   18 **HESSE 
 **********

 FCN=   10649.67     FROM HESSE     STATUS=OK           311 CALLS     2182 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.2859        .15199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7812        2125.3        .24327E-03   -1.5374    
   6  Prefactor     19.116        27.596        .91607E-04   -1.4833    
   7  Prefactor     .10000E-03    28.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.149        23.854        .78343E-04   -1.4685    
  10  norm          .10000E-03    15.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2889        .81575        .43247E-04   -1.5345    
  12  Prefactor     21.107        85.496        .87289E-04   -1.4789    
  13  Prefactor     7.1343        26.282        .15022E-03   -1.5174    
  14  norm          7.0436        12.482        .75582E-03   -1.5177    
  15  Prefactor     .10000E-03    18.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.6739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2909        .15093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3304        2.0757        .97982E-04   -1.5292    
  19  Prefactor     .10000E-03    8.1811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1300        .18335        .30608E-03   -.88793    
  21  Prefactor     .89378        .87234E-01    .17064E-03   -.96359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43962e-09
Minuit parameter uncertainties:
  1  7.15182e-06
  2  1.31131e-06
  3  8.23788e-06
  4  3.14494e-06
  5  159.834
  6  27.6141
  7  4.71998e-05
  8  1.2418e-05
  9  23.8629
  10  5.50554e-05
  11  0.815751
  12  85.1725
  13  26.3245
  14  12.4863
  15  0.000131212
  16  8.66674e-06
  17  1.15478e-06
  18  2.07576
  19  7.77654e-06
  20  0.183458
  21  0.0872473
Done.

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

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  2.615e+01  2.386e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  3.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  8.938e-01  8.725e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.130e+00  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 99.671 73.344
Photon Index (Fixed Index): 3.03 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 8.98e-06 +/- 8.20e-06

TS (Fixed Index): 1.55
Ra Dec: 99.671 73.344
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/587047/likelihoodResults_440985601_441244801_4FGL_J0638.6+7320_daily_bin778.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) = 10647.916406
delta logL = 1.75308388352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10647.8974465
delta logL = 1.77204339179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1629       1.0000         .10000E-03   10000.    
     2 'Index     '    5.6878       1.0000          .0000       10.000    
     3 'Normalizat'    1.0775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91077       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10647.90     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      258 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1594        46.630        .44232E-02    .49619E-03
   2  Index         5.6884        7.3591        .20340        .14302E-03
   3  Normalizat    1.0775        .61707E-01    .70531E-01    .12666E-04
   4  Prefactor     .91077        .30938E-01    .45142E-01   -.40168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.1594
  Index      = 5.68838
  Normalizat = 1.07754
  Prefactor  = 0.910768
 **********
 **   18 **HESSE 
 **********

 FCN=   10647.90     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      289 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1594        76.199        .11898E-03   -1.5254    
   2  Index         5.6884        7.8011        .93521E-02    .13811    
   3  Normalizat    1.0775        .16561        .31208E-03   -.90476    
   4  Prefactor     .91077        .81538E-01    .16916E-03   -.95766    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29473e-09
Minuit parameter uncertainties:
  1  39.7161
  2  7.54257
  3  0.165693
  4  0.0815491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587047': 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) = 10647.8974464
delta logL = 1.77204345858

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  5.159e+00  3.972e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  5.688e+00  7.543e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  3.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  9.108e-01  8.155e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.078e+00  1.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.32
Ra Dec: 99.671 73.344
Photon Index (Free Index): 5.69 +/- 7.54
Photon Flux (Free Index): 9.00e-08 +/- 5.98e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/587047/cmap_HighResolution_440985601_441244801_4FGL_J0638.6+7320_daily_bin778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='1.14e-05', photon_flux_error='4.16e-08', dlogl='1.77e+00', energy_flux='8.98e-06', photon_flux2='9.00e-08', job_status='DONE', time_completed='2021-08-25 13:57:40.133769', photon_index_error2='7.54', photon_index2='5.69', ts='1.55', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.13e-05', EG='1.13', time_epoch_completed='1629925060.13', return_code='0', job_id='587047', GAL2='0.91', EG2='1.08', return_code2='102', energy_flux_error='8.20e-06', photon_flux_error2='5.98e-08', ts2='5.32', photon_index='3.03' WHERE bin_id='778' AND source_name='4FGL J0638.6+7320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:57:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 587047: <4FGL_J0638.6+7320_daily_bin778> in cluster <slac> Done

Job <4FGL_J0638.6+7320_daily_bin778> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Aug 25 13:41:07 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 13:41:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 25 13:41:09 2021
Terminated at Wed Aug 25 13:57:41 2021
Results reported at Wed Aug 25 13:57:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0638.6+7320_daily_bin778 99.6711 73.3438 440985601 441244801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0638.6+7320 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   966.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

